From b21535b44414142194adbd229f18382f0eddc1cf Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 18 Jan 2024 11:07:32 -0800 Subject: [PATCH 01/35] chore(main): release 4.3.0 (#1499) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- CHANGELOG.md | 17 +++++++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cfc217cc7..6845b9660 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,22 @@ # Changelog +## [4.3.0](https://github.com/googleapis/gapic-generator-typescript/compare/v4.2.0...v4.3.0) (2024-01-18) + + +### Features + +* Add system tests to ESM ([#1495](https://github.com/googleapis/gapic-generator-typescript/issues/1495)) ([1b2c036](https://github.com/googleapis/gapic-generator-typescript/commit/1b2c036d63693d9fc9b5f0d7478741d71d92702b)) +* Use ESM types for ESM ([#1503](https://github.com/googleapis/gapic-generator-typescript/issues/1503)) ([d7f9d7a](https://github.com/googleapis/gapic-generator-typescript/commit/d7f9d7a2a9da246f3a26a3fbb21b7f10e9f987a7)) + + +### Bug Fixes + +* **deps:** Update dependency @types/js-yaml to ^4.0.9 ([#1486](https://github.com/googleapis/gapic-generator-typescript/issues/1486)) ([5de2050](https://github.com/googleapis/gapic-generator-typescript/commit/5de20507cb754997c47606f244b0b72ff207be42)) +* **deps:** Update gapic-tools and gax for new proto ([#1517](https://github.com/googleapis/gapic-generator-typescript/issues/1517)) ([eeb8851](https://github.com/googleapis/gapic-generator-typescript/commit/eeb88514e90eb98b7d0d4be7c86217c0681e8ab8)) +* Fix protos import in index files ([#1498](https://github.com/googleapis/gapic-generator-typescript/issues/1498)) ([eb0e74d](https://github.com/googleapis/gapic-generator-typescript/commit/eb0e74d151c155e3b5ea58a100f09dbeb68df280)), closes [#1496](https://github.com/googleapis/gapic-generator-typescript/issues/1496) +* Remove log message when methodConfig is undefined ([4173a45](https://github.com/googleapis/gapic-generator-typescript/commit/4173a45491caa232655fcfab6d6c4fb5126400e0)) +* Use new gax streaming retries ([#1518](https://github.com/googleapis/gapic-generator-typescript/issues/1518)) ([8da1195](https://github.com/googleapis/gapic-generator-typescript/commit/8da1195417063a02170db81032badcb526b31952)) + ## [4.2.0](https://github.com/googleapis/gapic-generator-typescript/compare/v4.1.0...v4.2.0) (2023-11-07) diff --git a/package-lock.json b/package-lock.json index 097f9c1ca..3c63b60f7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@google-cloud/gapic-generator", - "version": "4.2.0", + "version": "4.3.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@google-cloud/gapic-generator", - "version": "4.2.0", + "version": "4.3.0", "license": "Apache-2.0", "dependencies": { "@types/js-yaml": "^4.0.9", diff --git a/package.json b/package.json index 69dd3b305..cce3c9d8b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@google-cloud/gapic-generator", - "version": "4.2.0", + "version": "4.3.0", "type": "module", "description": "Google API Client Library Generator for TypeScript, written in TypeScript.", "homepage": "https://github.com/googleapis/gapic-generator-typescript#readme", From 58c23344c6b7d9088ddd225ac32ef90c90ba7acf Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 18 Jan 2024 21:03:54 +0100 Subject: [PATCH 02/35] fix(deps): update dependency protobufjs to v7.2.6 (#1519) --- package-lock.json | 32 +++- package.json | 2 +- pnpm-lock.yaml | 41 ++++-- yarn.lock | 368 +++++++++++++++++----------------------------- 4 files changed, 196 insertions(+), 247 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3c63b60f7..f87a3574e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,7 @@ "nunjucks": "^3.2.4", "object-hash": "^3.0.0", "proto3-json-serializer": "^2.0.0", - "protobufjs": "7.2.5", + "protobufjs": "7.2.6", "protobufjs-cli": "^1.1.2", "yargs": "^17.7.2" }, @@ -3544,6 +3544,30 @@ "node": ">=14" } }, + "node_modules/google-gax/node_modules/protobufjs": { + "version": "7.2.5", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.5.tgz", + "integrity": "sha512-gGXRSXvxQ7UiPgfw8gevrfRWcTlSbOFg+p/N+JVJEK5VhueL2miT6qTymqAmjr1Q5WbOCyJbyrk6JfWKwlFn6A==", + "dev": true, + "hasInstallScript": true, + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/node": ">=13.7.0", + "long": "^5.0.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, "node_modules/google-proto-files": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/google-proto-files/-/google-proto-files-4.1.0.tgz", @@ -5479,9 +5503,9 @@ } }, "node_modules/protobufjs": { - "version": "7.2.5", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.5.tgz", - "integrity": "sha512-gGXRSXvxQ7UiPgfw8gevrfRWcTlSbOFg+p/N+JVJEK5VhueL2miT6qTymqAmjr1Q5WbOCyJbyrk6JfWKwlFn6A==", + "version": "7.2.6", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.6.tgz", + "integrity": "sha512-dgJaEDDL6x8ASUZ1YqWciTRrdOuYNzoOf27oHNfdyvKqHr5i0FV7FSLU+aIeFjyFgVxrpTOtQUi0BLLBymZaBw==", "hasInstallScript": true, "dependencies": { "@protobufjs/aspromise": "^1.1.2", diff --git a/package.json b/package.json index cce3c9d8b..eb27fa63c 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "nunjucks": "^3.2.4", "object-hash": "^3.0.0", "proto3-json-serializer": "^2.0.0", - "protobufjs": "7.2.5", + "protobufjs": "7.2.6", "protobufjs-cli": "^1.1.2", "yargs": "^17.7.2" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index fcb662c89..690809fc1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -24,11 +24,11 @@ dependencies: specifier: ^2.0.0 version: 2.0.0 protobufjs: - specifier: 7.2.5 - version: 7.2.5 + specifier: 7.2.6 + version: 7.2.6 protobufjs-cli: specifier: ^1.1.2 - version: 1.1.2(protobufjs@7.2.5) + version: 1.1.2(protobufjs@7.2.6) yargs: specifier: ^17.7.2 version: 17.7.2 @@ -60,7 +60,7 @@ devDependencies: version: 10.0.1(@types/node@18.13.0)(typescript@5.1.6) gapic-tools: specifier: ^0.3.0 - version: 0.3.0(protobufjs@7.2.5) + version: 0.3.0(protobufjs@7.2.6) google-gax: specifier: ^4.1.0 version: 4.1.0 @@ -341,7 +341,7 @@ packages: '@types/long': 4.0.2 lodash.camelcase: 4.3.0 long: 4.0.0 - protobufjs: 7.2.5 + protobufjs: 7.2.6 yargs: 17.7.2 dev: true @@ -1814,7 +1814,7 @@ packages: resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==} dev: true - /gapic-tools@0.3.0(protobufjs@7.2.5): + /gapic-tools@0.3.0(protobufjs@7.2.6): resolution: {integrity: sha512-tjEmfxoUAZpPQEe6YznOZmu0EK3RIPW9Tl0T/dgkgYQsmdX+ilEElawlgv7l50yBth5gHLVoKog2KODQu87X0Q==} engines: {node: '>=14'} hasBin: true @@ -1823,7 +1823,7 @@ packages: '@babel/traverse': 7.22.20 google-gax: 4.1.0 google-proto-files: 4.1.0 - protobufjs-cli: 1.1.2(protobufjs@7.2.5) + protobufjs-cli: 1.1.2(protobufjs@7.2.6) rimraf: 5.0.1 uglify-js: 3.17.4 walkdir: 0.4.1 @@ -2000,7 +2000,7 @@ packages: resolution: {integrity: sha512-tqygU9QaPknc+YqnSFYvpGZQ4dy72ovUgUjUTXborBKdMJvg9uq+oJg+qp1jTvyXQii5foHdNpNr5ELU5tTfew==} engines: {node: '>=14.0.0'} dependencies: - protobufjs: 7.2.5 + protobufjs: 7.2.6 walkdir: 0.4.1 dev: true @@ -3010,9 +3010,9 @@ packages: resolution: {integrity: sha512-FB/YaNrpiPkyQNSNPilpn8qn0KdEfkgmJ9JP93PQyF/U4bAiXY5BiUdDhiDO4S48uSQ6AesklgVlrKiqZPzegw==} engines: {node: '>=14.0.0'} dependencies: - protobufjs: 7.2.5 + protobufjs: 7.2.6 - /protobufjs-cli@1.1.2(protobufjs@7.2.5): + /protobufjs-cli@1.1.2(protobufjs@7.2.6): resolution: {integrity: sha512-8ivXWxT39gZN4mm4ArQyJrRgnIwZqffBWoLDsE21TmMcKI3XwJMV4lEF2WU02C4JAtgYYc2SfJIltelD8to35g==} engines: {node: '>=12.0.0'} hasBin: true @@ -3026,7 +3026,7 @@ packages: glob: 8.1.0 jsdoc: 4.0.0 minimist: 1.2.8 - protobufjs: 7.2.5 + protobufjs: 7.2.6 semver: 7.3.8 tmp: 0.2.1 uglify-js: 3.17.4 @@ -3048,6 +3048,25 @@ packages: '@protobufjs/utf8': 1.1.0 '@types/node': 18.13.0 long: 5.2.3 + dev: true + + /protobufjs@7.2.6: + resolution: {integrity: sha512-dgJaEDDL6x8ASUZ1YqWciTRrdOuYNzoOf27oHNfdyvKqHr5i0FV7FSLU+aIeFjyFgVxrpTOtQUi0BLLBymZaBw==} + engines: {node: '>=12.0.0'} + requiresBuild: true + dependencies: + '@protobufjs/aspromise': 1.1.2 + '@protobufjs/base64': 1.1.2 + '@protobufjs/codegen': 2.0.4 + '@protobufjs/eventemitter': 1.1.0 + '@protobufjs/fetch': 1.1.0 + '@protobufjs/float': 1.0.2 + '@protobufjs/inquire': 1.1.0 + '@protobufjs/path': 1.1.2 + '@protobufjs/pool': 1.1.0 + '@protobufjs/utf8': 1.1.0 + '@types/node': 18.13.0 + long: 5.2.3 /punycode@2.3.0: resolution: {integrity: sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==} diff --git a/yarn.lock b/yarn.lock index fa9e73747..c2c1e3680 100644 --- a/yarn.lock +++ b/yarn.lock @@ -28,7 +28,7 @@ resolved "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.22.20.tgz" integrity sha512-BQYjKbpXjoXwFW5jGqiizJQQT/aC7pFm9Ok1OWssonuguICi264lbgMzRp2ZMmRSlfkX6DsWDDcsrctK8Rwfiw== -"@babel/core@^7.0.0", "@babel/core@^7.22.5": +"@babel/core@^7.22.5": version "7.23.0" resolved "https://registry.npmjs.org/@babel/core/-/core-7.23.0.tgz" integrity sha512-97z/ju/Jy1rZmDxybphrBuI+jtJjFVoz7Mr9yUQVVVi+DNZE333uFQeMOqcCIy1x3WYBIbWftUSLmbNXNT7qFQ== @@ -311,14 +311,6 @@ resolved "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz" integrity sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg== -"@jridgewell/trace-mapping@^0.3.17", "@jridgewell/trace-mapping@^0.3.9": - version "0.3.19" - resolved "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.19.tgz" - integrity sha512-kf37QtfW+Hwx/buWGMPcR60iF9ziHa6r/CZJIHbmcm4+0qrXiVdxegAH0F6yddEVQ7zdkjcGCgCzUu+BcbhQxw== - dependencies: - "@jridgewell/resolve-uri" "^3.1.0" - "@jridgewell/sourcemap-codec" "^1.4.14" - "@jridgewell/trace-mapping@0.3.9": version "0.3.9" resolved "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz" @@ -327,6 +319,14 @@ "@jridgewell/resolve-uri" "^3.0.3" "@jridgewell/sourcemap-codec" "^1.4.10" +"@jridgewell/trace-mapping@^0.3.17", "@jridgewell/trace-mapping@^0.3.9": + version "0.3.19" + resolved "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.19.tgz" + integrity sha512-kf37QtfW+Hwx/buWGMPcR60iF9ziHa6r/CZJIHbmcm4+0qrXiVdxegAH0F6yddEVQ7zdkjcGCgCzUu+BcbhQxw== + dependencies: + "@jridgewell/resolve-uri" "^3.1.0" + "@jridgewell/sourcemap-codec" "^1.4.14" + "@jsdoc/salty@^0.2.1": version "0.2.5" resolved "https://registry.npmjs.org/@jsdoc/salty/-/salty-0.2.5.tgz" @@ -342,7 +342,7 @@ "@nodelib/fs.stat" "2.0.5" run-parallel "^1.1.9" -"@nodelib/fs.stat@^2.0.2", "@nodelib/fs.stat@2.0.5": +"@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2": version "2.0.5" resolved "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz" integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== @@ -475,7 +475,7 @@ resolved "https://registry.npmjs.org/@types/long/-/long-4.0.2.tgz" integrity sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA== -"@types/markdown-it@*", "@types/markdown-it@^12.2.3": +"@types/markdown-it@^12.2.3": version "12.2.3" resolved "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-12.2.3.tgz" integrity sha512-GKMHFfv3458yYy+v/N8gjufHO6MSZKCOXpZc5GXIWWy8uldwfmPn98vp81gZ5f9SVw8YYBctgfJ22a2d7AOMeQ== @@ -503,7 +503,7 @@ resolved "https://registry.npmjs.org/@types/module-alias/-/module-alias-2.0.4.tgz" integrity sha512-5+G/QXO/DvHZw60FjvbDzO4JmlD/nG5m2/vVGt25VN1eeP3w2bCoks1Wa7VuptMPM1TxJdx6RjO70N9Fw0nZPA== -"@types/node@*", "@types/node@^18.11.18", "@types/node@>=12.12.47", "@types/node@>=13.7.0": +"@types/node@*", "@types/node@>=12.12.47", "@types/node@>=13.7.0", "@types/node@^18.11.18": version "18.17.14" resolved "https://registry.npmjs.org/@types/node/-/node-18.17.14.tgz" integrity sha512-ZE/5aB73CyGqgQULkLG87N9GnyGe5TcQjv34pwS8tfBs1IkCh0ASM69mydb2znqd6v0eX+9Ytvk6oQRqu8T1Vw== @@ -571,7 +571,7 @@ semver "^7.3.7" tsutils "^3.21.0" -"@typescript-eslint/parser@^5.0.0", "@typescript-eslint/parser@5.62.0": +"@typescript-eslint/parser@5.62.0": version "5.62.0" resolved "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.62.0.tgz" integrity sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA== @@ -671,15 +671,17 @@ acorn@^5.0.0: resolved "https://registry.npmjs.org/acorn/-/acorn-5.7.4.tgz" integrity sha512-1D++VG7BhrtvQpNbBzovKNc1FLGGEE/oGe7b9xJm/RFHMBeUaUGpluV9RLjZa47YFdPcDAenEYuq9pQPcMdLJg== -"acorn@^6.0.0 || ^7.0.0 || ^8.0.0", acorn@^8.9.0: +acorn@^8.4.1, acorn@^8.9.0: version "8.10.0" resolved "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz" integrity sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw== -acorn@^8.4.1: - version "8.10.0" - resolved "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz" - integrity sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw== +agent-base@6: + version "6.0.2" + resolved "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz" + integrity sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ== + dependencies: + debug "4" agent-base@^7.0.2: version "7.1.0" @@ -688,13 +690,6 @@ agent-base@^7.0.2: dependencies: debug "^4.3.4" -agent-base@6: - version "6.0.2" - resolved "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz" - integrity sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ== - dependencies: - debug "4" - ajv@^6.12.4: version "6.12.6" resolved "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz" @@ -739,14 +734,7 @@ ansi-styles@^3.2.1: dependencies: color-convert "^1.9.0" -ansi-styles@^4.0.0: - version "4.3.0" - resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz" - integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== - dependencies: - color-convert "^2.0.1" - -ansi-styles@^4.1.0: +ansi-styles@^4.0.0, ansi-styles@^4.1.0: version "4.3.0" resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz" integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== @@ -865,7 +853,7 @@ browser-stdout@1.3.1: resolved "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz" integrity sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw== -browserslist@^4.21.9, "browserslist@>= 4.21.0": +browserslist@^4.21.9: version "4.22.1" resolved "https://registry.npmjs.org/browserslist/-/browserslist-4.22.1.tgz" integrity sha512-FEVc202+2iuClEhZhrWy6ZiAcRLvNMyYcxZ8raemul1DYVOVdFsbqckWLdsixQZCpJlwe77Z3UTalE7jsjnKfQ== @@ -955,23 +943,7 @@ chalk@^2.4.2: escape-string-regexp "^1.0.5" supports-color "^5.3.0" -chalk@^4.0.0: - version "4.1.2" - resolved "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz" - integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== - dependencies: - ansi-styles "^4.1.0" - supports-color "^7.1.0" - -chalk@^4.1.0: - version "4.1.2" - resolved "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz" - integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== - dependencies: - ansi-styles "^4.1.0" - supports-color "^7.1.0" - -chalk@^4.1.2: +chalk@^4.0.0, chalk@^4.1.0, chalk@^4.1.2: version "4.1.2" resolved "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz" integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== @@ -984,7 +956,7 @@ chardet@^0.7.0: resolved "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz" integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA== -chokidar@^3.3.0, chokidar@3.5.3: +chokidar@3.5.3: version "3.5.3" resolved "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz" integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw== @@ -1043,16 +1015,16 @@ color-convert@^2.0.1: dependencies: color-name "~1.1.4" -color-name@~1.1.4: - version "1.1.4" - resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz" - integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== - color-name@1.1.3: version "1.1.3" resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz" integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw== +color-name@~1.1.4: + version "1.1.4" + resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz" + integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== + combined-stream@^1.0.6: version "1.0.8" resolved "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz" @@ -1099,7 +1071,7 @@ cross-spawn@^7.0.0, cross-spawn@^7.0.2, cross-spawn@^7.0.3: shebang-command "^2.0.0" which "^2.0.1" -d@^1.0.1, d@1: +d@1, d@^1.0.1: version "1.0.1" resolved "https://registry.npmjs.org/d/-/d-1.0.1.tgz" integrity sha512-m62ShEObQ39CfralilEQRjH6oAMtNCV1xJyEx5LpRYUVN+EviphDgUc/F3hnYbADmkiNs67Y+3ylmlG7Lnu+FA== @@ -1107,7 +1079,7 @@ d@^1.0.1, d@1: es5-ext "^0.10.50" type "^1.0.1" -debug@^4.1.0, debug@^4.1.1, debug@^4.3.2, debug@^4.3.4, debug@4, debug@4.3.4: +debug@4, debug@4.3.4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.2, debug@^4.3.4: version "4.3.4" resolved "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz" integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== @@ -1185,16 +1157,16 @@ delayed-stream@~1.0.0: resolved "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz" integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== -diff@^4.0.1: - version "4.0.2" - resolved "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz" - integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== - diff@5.0.0: version "5.0.0" resolved "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz" integrity sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w== +diff@^4.0.1: + version "4.0.2" + resolved "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz" + integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== + dir-glob@^3.0.1: version "3.0.1" resolved "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz" @@ -1224,7 +1196,7 @@ eastasianwidth@^0.2.0: resolved "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz" integrity sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA== -ecdsa-sig-formatter@^1.0.11, ecdsa-sig-formatter@1.0.11: +ecdsa-sig-formatter@1.0.11, ecdsa-sig-formatter@^1.0.11: version "1.0.11" resolved "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz" integrity sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ== @@ -1345,6 +1317,11 @@ escallmatch@^1.5.0: call-matcher "^1.0.0" esprima "^2.0.0" +escape-string-regexp@4.0.0, escape-string-regexp@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz" + integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== + escape-string-regexp@^1.0.5: version "1.0.5" resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz" @@ -1355,16 +1332,6 @@ escape-string-regexp@^2.0.0: resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz" integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w== -escape-string-regexp@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz" - integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== - -escape-string-regexp@4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz" - integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== - escodegen@^1.10.0, escodegen@^1.13.0, escodegen@^1.7.0: version "1.14.3" resolved "https://registry.npmjs.org/escodegen/-/escodegen-1.14.3.tgz" @@ -1453,7 +1420,7 @@ eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1, eslint-visitor-keys@^3.4 resolved "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz" integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag== -eslint@*, "eslint@^6.0.0 || ^7.0.0 || ^8.0.0", "eslint@^6.0.0 || ^7.0.0 || >=8.0.0", eslint@>=4.19.1, eslint@>=5.16.0, eslint@>=7.0.0, eslint@>=8.0.0, eslint@8.50.0: +eslint@8.50.0: version "8.50.0" resolved "https://registry.npmjs.org/eslint/-/eslint-8.50.0.tgz" integrity sha512-FOnOGSuFuFLv/Sa+FDVRZl4GGVAAFFi8LecRsI5a1tMO5HIE8nCm4ivAlzt4dT3ol/PaaGC0rJEEXQmHJBGoOg== @@ -1593,12 +1560,7 @@ estraverse@^4.0.0, estraverse@^4.1.0, estraverse@^4.1.1, estraverse@^4.2.0: resolved "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz" integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw== -estraverse@^5.1.0: - version "5.3.0" - resolved "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz" - integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== - -estraverse@^5.2.0: +estraverse@^5.1.0, estraverse@^5.2.0: version "5.3.0" resolved "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz" integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== @@ -1731,6 +1693,14 @@ fill-range@^7.0.1: dependencies: to-regex-range "^5.0.1" +find-up@5.0.0, find-up@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz" + integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== + dependencies: + locate-path "^6.0.0" + path-exists "^4.0.0" + find-up@^4.1.0: version "4.1.0" resolved "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz" @@ -1739,14 +1709,6 @@ find-up@^4.1.0: locate-path "^5.0.0" path-exists "^4.0.0" -find-up@^5.0.0, find-up@5.0.0: - version "5.0.0" - resolved "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz" - integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== - dependencies: - locate-path "^6.0.0" - path-exists "^4.0.0" - flat-cache@^3.0.4: version "3.1.0" resolved "https://registry.npmjs.org/flat-cache/-/flat-cache-3.1.0.tgz" @@ -1788,6 +1750,11 @@ fs.realpath@^1.0.0: resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz" integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== +fsevents@~2.3.2: + version "2.3.3" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6" + integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== + function-bind@^1.1.1: version "1.1.1" resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz" @@ -1855,7 +1822,7 @@ get-stream@^6.0.0, get-stream@^6.0.1: resolved "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz" integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== -glob-parent@^5.1.2: +glob-parent@^5.1.2, glob-parent@~5.1.2: version "5.1.2" resolved "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz" integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== @@ -1869,12 +1836,17 @@ glob-parent@^6.0.2: dependencies: is-glob "^4.0.3" -glob-parent@~5.1.2: - version "5.1.2" - resolved "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz" - integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== +glob@7.2.0, glob@^7.1.3: + version "7.2.0" + resolved "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz" + integrity sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q== dependencies: - is-glob "^4.0.1" + 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@^10.2.5: version "10.3.4" @@ -1887,18 +1859,6 @@ glob@^10.2.5: minipass "^5.0.0 || ^6.0.2 || ^7.0.0" path-scurry "^1.10.1" -glob@^7.1.3, glob@7.2.0: - version "7.2.0" - resolved "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz" - integrity sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q== - dependencies: - 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@^8.0.0: version "8.1.0" resolved "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz" @@ -2147,7 +2107,7 @@ inflight@^1.0.4: once "^1.3.0" wrappy "1" -inherits@^2.0.3, inherits@2: +inherits@2, inherits@^2.0.3: version "2.0.4" resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== @@ -2313,7 +2273,7 @@ js-tokens@^4.0.0: resolved "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz" integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== -js-yaml@^4.1.0, js-yaml@4.1.0: +js-yaml@4.1.0, js-yaml@^4.1.0: version "4.1.0" resolved "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz" integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== @@ -2530,7 +2490,7 @@ markdown-it-anchor@^8.4.1: resolved "https://registry.npmjs.org/markdown-it-anchor/-/markdown-it-anchor-8.6.7.tgz" integrity sha512-FlCHFwNnutLgVTflOYHPW2pPcl2AACqVzExlkGQNsi4CJgqOHN7YTgDd4LuhgN1BFO3TS0vLAruV1Td6dwWPJA== -markdown-it@*, markdown-it@^12.3.2: +markdown-it@^12.3.2: version "12.3.2" resolved "https://registry.npmjs.org/markdown-it/-/markdown-it-12.3.2.tgz" integrity sha512-TchMembfxfNVpHkbtriWltGWc+m3xszaRD0CZup7GFFhzIgQqxIfn3eGj1yZpfuflzPvfkt611B2Q/Bsk1YnGg== @@ -2621,21 +2581,14 @@ min-indent@^1.0.0: resolved "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz" integrity sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg== -minimatch@^3.0.4: - version "3.1.2" - resolved "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz" - integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== - dependencies: - brace-expansion "^1.1.7" - -minimatch@^3.0.5: - version "3.1.2" - resolved "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz" - integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== +minimatch@5.0.1: + version "5.0.1" + resolved "https://registry.npmjs.org/minimatch/-/minimatch-5.0.1.tgz" + integrity sha512-nLDxIFRyhDblz3qMuq+SoRZED4+miJ/G+tdDrjkkkRnjAsBexeGpgjLEQ0blJy7rHhR2b93rhQY4SvyWu9v03g== dependencies: - brace-expansion "^1.1.7" + brace-expansion "^2.0.1" -minimatch@^3.1.2: +minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.2: version "3.1.2" resolved "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz" integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== @@ -2656,13 +2609,6 @@ minimatch@^9.0.1: dependencies: brace-expansion "^2.0.1" -minimatch@5.0.1: - version "5.0.1" - resolved "https://registry.npmjs.org/minimatch/-/minimatch-5.0.1.tgz" - integrity sha512-nLDxIFRyhDblz3qMuq+SoRZED4+miJ/G+tdDrjkkkRnjAsBexeGpgjLEQ0blJy7rHhR2b93rhQY4SvyWu9v03g== - dependencies: - brace-expansion "^2.0.1" - minimist-options@4.1.0: version "4.1.0" resolved "https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz" @@ -3014,7 +2960,7 @@ prettier-linter-helpers@^1.0.0: dependencies: fast-diff "^1.1.2" -prettier@>=3.0.0, prettier@3.0.3: +prettier@3.0.3: version "3.0.3" resolved "https://registry.npmjs.org/prettier/-/prettier-3.0.3.tgz" integrity sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg== @@ -3026,7 +2972,7 @@ proto3-json-serializer@^2.0.0: dependencies: protobufjs "^7.0.0" -protobufjs-cli@^1.1.2, protobufjs-cli@1.1.2: +protobufjs-cli@1.1.2, protobufjs-cli@^1.1.2: version "1.1.2" resolved "https://registry.npmjs.org/protobufjs-cli/-/protobufjs-cli-1.1.2.tgz" integrity sha512-8ivXWxT39gZN4mm4ArQyJrRgnIwZqffBWoLDsE21TmMcKI3XwJMV4lEF2WU02C4JAtgYYc2SfJIltelD8to35g== @@ -3042,7 +2988,7 @@ protobufjs-cli@^1.1.2, protobufjs-cli@1.1.2: tmp "^0.2.1" uglify-js "^3.7.7" -protobufjs@^7.0.0, protobufjs@^7.2.4, protobufjs@7.2.5: +protobufjs@7.2.5: version "7.2.5" resolved "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.5.tgz" integrity sha512-gGXRSXvxQ7UiPgfw8gevrfRWcTlSbOFg+p/N+JVJEK5VhueL2miT6qTymqAmjr1Q5WbOCyJbyrk6JfWKwlFn6A== @@ -3060,6 +3006,24 @@ protobufjs@^7.0.0, protobufjs@^7.2.4, protobufjs@7.2.5: "@types/node" ">=13.7.0" long "^5.0.0" +protobufjs@7.2.6, protobufjs@^7.0.0, protobufjs@^7.2.4: + version "7.2.6" + resolved "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.6.tgz" + integrity sha512-dgJaEDDL6x8ASUZ1YqWciTRrdOuYNzoOf27oHNfdyvKqHr5i0FV7FSLU+aIeFjyFgVxrpTOtQUi0BLLBymZaBw== + dependencies: + "@protobufjs/aspromise" "^1.1.2" + "@protobufjs/base64" "^1.1.2" + "@protobufjs/codegen" "^2.0.4" + "@protobufjs/eventemitter" "^1.1.0" + "@protobufjs/fetch" "^1.1.0" + "@protobufjs/float" "^1.0.2" + "@protobufjs/inquire" "^1.1.0" + "@protobufjs/path" "^1.1.2" + "@protobufjs/pool" "^1.1.0" + "@protobufjs/utf8" "^1.1.0" + "@types/node" ">=13.7.0" + long "^5.0.0" + punycode@^2.1.0: version "2.3.0" resolved "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz" @@ -3188,14 +3152,7 @@ reusify@^1.0.4: resolved "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz" integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== -rimraf@^3.0.0: - version "3.0.2" - resolved "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz" - integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== - dependencies: - glob "^7.1.3" - -rimraf@^3.0.2: +rimraf@3.0.2, rimraf@^3.0.0, rimraf@^3.0.2: version "3.0.2" resolved "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz" integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== @@ -3209,13 +3166,6 @@ rimraf@^5.0.1: dependencies: glob "^10.2.5" -rimraf@3.0.2: - version "3.0.2" - resolved "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz" - integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== - dependencies: - glob "^7.1.3" - run-applescript@^5.0.0: version "5.0.0" resolved "https://registry.npmjs.org/run-applescript/-/run-applescript-5.0.0.tgz" @@ -3252,37 +3202,23 @@ safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@~5.2.0: resolved "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz" integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== +"semver@2 || 3 || 4 || 5": + version "5.7.2" + resolved "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz" + integrity sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g== + semver@^6.1.0, semver@^6.3.1: version "6.3.1" resolved "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz" integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== -semver@^7.1.2: - version "7.5.4" - resolved "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz" - integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA== - dependencies: - lru-cache "^6.0.0" - -semver@^7.3.4: - version "7.5.4" - resolved "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz" - integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA== - dependencies: - lru-cache "^6.0.0" - -semver@^7.3.7: +semver@^7.1.2, semver@^7.3.4, semver@^7.3.7: version "7.5.4" resolved "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz" integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA== dependencies: lru-cache "^6.0.0" -"semver@2 || 3 || 4 || 5": - version "5.7.2" - resolved "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz" - integrity sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g== - serialize-javascript@6.0.0: version "6.0.0" resolved "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz" @@ -3380,23 +3316,7 @@ stream-shift@^1.0.0: resolved "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.1.tgz" integrity sha512-AiisoFqQ0vbGcZgQPY1cdP2I76glaVA/RauYR4G4thNFgkTqr90yXTo4LYX60Jl+sIlPNHHdGSwo01AvbKUSVQ== -string_decoder@^1.1.1: - version "1.3.0" - resolved "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz" - integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA== - dependencies: - safe-buffer "~5.2.0" - -"string-width-cjs@npm:string-width@^4.2.0": - version "4.2.3" - resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz" - integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.1" - -string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: +"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: version "4.2.3" resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz" integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== @@ -3414,14 +3334,14 @@ string-width@^5.0.1, string-width@^5.1.2: emoji-regex "^9.2.2" strip-ansi "^7.0.1" -"strip-ansi-cjs@npm:strip-ansi@^6.0.1": - version "6.0.1" - resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz" - integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== +string_decoder@^1.1.1: + version "1.3.0" + resolved "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz" + integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA== dependencies: - ansi-regex "^5.0.1" + safe-buffer "~5.2.0" -strip-ansi@^6.0.0, strip-ansi@^6.0.1: +"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1: version "6.0.1" resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz" integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== @@ -3452,7 +3372,7 @@ strip-indent@^3.0.0: dependencies: min-indent "^1.0.0" -strip-json-comments@^3.1.0, strip-json-comments@^3.1.1, strip-json-comments@3.1.1: +strip-json-comments@3.1.1, strip-json-comments@^3.1.0, strip-json-comments@^3.1.1: 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== @@ -3462,6 +3382,13 @@ stubs@^3.0.0: resolved "https://registry.npmjs.org/stubs/-/stubs-3.0.0.tgz" integrity sha512-PdHt7hHUJKxvTCgbKX9C1V/ftOcjJQgz8BZwNfV5c4B6dcGqlpelTbJ999jBGZ2jYiPAwcX5dP6oBwVlBlUbxw== +supports-color@8.1.1: + version "8.1.1" + resolved "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz" + integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q== + dependencies: + has-flag "^4.0.0" + supports-color@^5.3.0: version "5.5.0" resolved "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz" @@ -3476,13 +3403,6 @@ supports-color@^7.1.0: dependencies: has-flag "^4.0.0" -supports-color@8.1.1: - version "8.1.1" - resolved "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz" - integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q== - dependencies: - has-flag "^4.0.0" - supports-preserve-symlinks-flag@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz" @@ -3582,12 +3502,7 @@ tslib@^1.8.1, tslib@^1.9.0: resolved "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== -tslib@^2.5.0: - version "2.6.2" - resolved "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz" - integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q== - -tslib@^2.6.0: +tslib@^2.5.0, tslib@^2.6.0: version "2.6.2" resolved "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz" integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q== @@ -3653,7 +3568,7 @@ type@^2.7.2: resolved "https://registry.npmjs.org/type/-/type-2.7.2.tgz" integrity sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw== -"typescript@>= 2.7", typescript@>=2.7, "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta", typescript@>=3, typescript@5.1.6: +typescript@5.1.6: version "5.1.6" resolved "https://registry.npmjs.org/typescript/-/typescript-5.1.6.tgz" integrity sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA== @@ -3751,16 +3666,7 @@ workerpool@6.2.1: resolved "https://registry.npmjs.org/workerpool/-/workerpool-6.2.1.tgz" integrity sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw== -"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0": - version "7.0.0" - resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz" - integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - -wrap-ansi@^7.0.0: +"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0: version "7.0.0" resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz" integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== @@ -3816,7 +3722,7 @@ yallist@^4.0.0: resolved "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz" integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== -yargs-parser@^20.2.2, yargs-parser@20.2.4: +yargs-parser@20.2.4, yargs-parser@^20.2.2: version "20.2.4" resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz" integrity sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA== @@ -3841,19 +3747,6 @@ yargs-unparser@2.0.0: flat "^5.0.2" is-plain-obj "^2.1.0" -yargs@^17.7.2: - version "17.7.2" - resolved "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz" - integrity sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w== - dependencies: - cliui "^8.0.1" - escalade "^3.1.1" - get-caller-file "^2.0.5" - require-directory "^2.1.1" - string-width "^4.2.3" - y18n "^5.0.5" - yargs-parser "^21.1.1" - yargs@16.2.0: version "16.2.0" resolved "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz" @@ -3867,6 +3760,19 @@ yargs@16.2.0: y18n "^5.0.5" yargs-parser "^20.2.2" +yargs@^17.7.2: + version "17.7.2" + resolved "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz" + integrity sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w== + dependencies: + cliui "^8.0.1" + escalade "^3.1.1" + get-caller-file "^2.0.5" + require-directory "^2.1.1" + string-width "^4.2.3" + y18n "^5.0.5" + yargs-parser "^21.1.1" + yn@3.1.1: version "3.1.1" resolved "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz" From d081968914af4cf22727add99406c0148cff211f Mon Sep 17 00:00:00 2001 From: sofisl <55454395+sofisl@users.noreply.github.com> Date: Thu, 18 Jan 2024 13:01:45 -0800 Subject: [PATCH 03/35] Revert "chore: do not require up to date branch (#1435)" (#1479) This reverts commit 44b496861e99715b6d9c93b807adee031791bd4f. --- .github/sync-repo-settings.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index 155a5d511..8119112e2 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -25,7 +25,7 @@ branchProtectionRules: # Defaults to `false` requiresCodeOwnerReviews: true # Require up to date branches - requiresStrictStatusChecks: false + requiresStrictStatusChecks: true # List of required status check contexts that must pass for commits to be accepted to matching branches. requiredStatusCheckContexts: - "cla/google" From f68039b8932e4489f08e529661eee1d5348755ae Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 19 Jan 2024 02:46:16 +0100 Subject: [PATCH 04/35] fix(deps): update dependency proto3-json-serializer to ^2.0.1 (#1521) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [proto3-json-serializer](https://togithub.com/googleapis/proto3-json-serializer-nodejs) | [`^2.0.0` -> `^2.0.1`](https://renovatebot.com/diffs/npm/proto3-json-serializer/2.0.0/2.0.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/proto3-json-serializer/2.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/proto3-json-serializer/2.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/proto3-json-serializer/2.0.0/2.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/proto3-json-serializer/2.0.0/2.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/proto3-json-serializer-nodejs (proto3-json-serializer) ### [`v2.0.1`](https://togithub.com/googleapis/proto3-json-serializer-nodejs/blob/HEAD/CHANGELOG.md#201-2024-01-16) [Compare Source](https://togithub.com/googleapis/proto3-json-serializer-nodejs/compare/v2.0.0...v2.0.1) ##### Bug Fixes - **deps:** Update dependency google-proto-files to v4 ([#​82](https://togithub.com/googleapis/proto3-json-serializer-nodejs/issues/82)) ([72623e0](https://togithub.com/googleapis/proto3-json-serializer-nodejs/commit/72623e04e1043353ef952178714ced733001a06d)) - **deps:** Update protobufjs to 7.2.5 ([a0f5c83](https://togithub.com/googleapis/proto3-json-serializer-nodejs/commit/a0f5c833cba654949ec5e624fad1849020cf899d))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/gapic-generator-typescript). --- package-lock.json | 10 +++++----- package.json | 2 +- pnpm-lock.yaml | 10 +++++----- yarn.lock | 12 ++++++------ 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/package-lock.json b/package-lock.json index f87a3574e..177957015 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,7 @@ "long": "^5.2.3", "nunjucks": "^3.2.4", "object-hash": "^3.0.0", - "proto3-json-serializer": "^2.0.0", + "proto3-json-serializer": "^2.0.1", "protobufjs": "7.2.6", "protobufjs-cli": "^1.1.2", "yargs": "^17.7.2" @@ -5492,11 +5492,11 @@ } }, "node_modules/proto3-json-serializer": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/proto3-json-serializer/-/proto3-json-serializer-2.0.0.tgz", - "integrity": "sha512-FB/YaNrpiPkyQNSNPilpn8qn0KdEfkgmJ9JP93PQyF/U4bAiXY5BiUdDhiDO4S48uSQ6AesklgVlrKiqZPzegw==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/proto3-json-serializer/-/proto3-json-serializer-2.0.1.tgz", + "integrity": "sha512-8awBvjO+FwkMd6gNoGFZyqkHZXCFd54CIYTb6De7dPaufGJ2XNW+QUNqbMr8MaAocMdb+KpsD4rxEOaTBDCffA==", "dependencies": { - "protobufjs": "^7.0.0" + "protobufjs": "^7.2.5" }, "engines": { "node": ">=14.0.0" diff --git a/package.json b/package.json index eb27fa63c..0402304e0 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "long": "^5.2.3", "nunjucks": "^3.2.4", "object-hash": "^3.0.0", - "proto3-json-serializer": "^2.0.0", + "proto3-json-serializer": "^2.0.1", "protobufjs": "7.2.6", "protobufjs-cli": "^1.1.2", "yargs": "^17.7.2" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 690809fc1..10e34caa7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -21,8 +21,8 @@ dependencies: specifier: ^3.0.0 version: 3.0.0 proto3-json-serializer: - specifier: ^2.0.0 - version: 2.0.0 + specifier: ^2.0.1 + version: 2.0.1 protobufjs: specifier: 7.2.6 version: 7.2.6 @@ -1988,7 +1988,7 @@ packages: google-auth-library: 9.0.0 node-fetch: 2.6.12 object-hash: 3.0.0 - proto3-json-serializer: 2.0.0 + proto3-json-serializer: 2.0.1 protobufjs: 7.2.5 retry-request: 7.0.1 transitivePeerDependencies: @@ -3006,8 +3006,8 @@ packages: hasBin: true dev: true - /proto3-json-serializer@2.0.0: - resolution: {integrity: sha512-FB/YaNrpiPkyQNSNPilpn8qn0KdEfkgmJ9JP93PQyF/U4bAiXY5BiUdDhiDO4S48uSQ6AesklgVlrKiqZPzegw==} + /proto3-json-serializer@2.0.1: + resolution: {integrity: sha512-8awBvjO+FwkMd6gNoGFZyqkHZXCFd54CIYTb6De7dPaufGJ2XNW+QUNqbMr8MaAocMdb+KpsD4rxEOaTBDCffA==} engines: {node: '>=14.0.0'} dependencies: protobufjs: 7.2.6 diff --git a/yarn.lock b/yarn.lock index c2c1e3680..d8f9a5d6a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2965,12 +2965,12 @@ prettier@3.0.3: resolved "https://registry.npmjs.org/prettier/-/prettier-3.0.3.tgz" integrity sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg== -proto3-json-serializer@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/proto3-json-serializer/-/proto3-json-serializer-2.0.0.tgz" - integrity sha512-FB/YaNrpiPkyQNSNPilpn8qn0KdEfkgmJ9JP93PQyF/U4bAiXY5BiUdDhiDO4S48uSQ6AesklgVlrKiqZPzegw== +proto3-json-serializer@^2.0.0, proto3-json-serializer@^2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/proto3-json-serializer/-/proto3-json-serializer-2.0.1.tgz" + integrity sha512-8awBvjO+FwkMd6gNoGFZyqkHZXCFd54CIYTb6De7dPaufGJ2XNW+QUNqbMr8MaAocMdb+KpsD4rxEOaTBDCffA== dependencies: - protobufjs "^7.0.0" + protobufjs "^7.2.5" protobufjs-cli@1.1.2, protobufjs-cli@^1.1.2: version "1.1.2" @@ -3006,7 +3006,7 @@ protobufjs@7.2.5: "@types/node" ">=13.7.0" long "^5.0.0" -protobufjs@7.2.6, protobufjs@^7.0.0, protobufjs@^7.2.4: +protobufjs@7.2.6, protobufjs@^7.0.0, protobufjs@^7.2.4, protobufjs@^7.2.5: version "7.2.6" resolved "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.6.tgz" integrity sha512-dgJaEDDL6x8ASUZ1YqWciTRrdOuYNzoOf27oHNfdyvKqHr5i0FV7FSLU+aIeFjyFgVxrpTOtQUi0BLLBymZaBw== From 9879c745b3acbb79bc0f820561866bfc1e528ed1 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Sat, 20 Jan 2024 03:20:15 +0100 Subject: [PATCH 05/35] chore(deps): update dependency aspect_rules_js to v1.36.0 (#1523) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [aspect_rules_js](https://togithub.com/aspect-build/rules_js) | http_archive | minor | `v1.35.0` -> `v1.36.0` | --- ### Release Notes
aspect-build/rules_js (aspect_rules_js) ### [`v1.36.0`](https://togithub.com/aspect-build/rules_js/compare/v1.35.0...v1.36.0) [Compare Source](https://togithub.com/aspect-build/rules_js/compare/v1.35.0...v1.36.0)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/gapic-generator-typescript). --- repositories.bzl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/repositories.bzl b/repositories.bzl index d1f8e2bb2..f0debd8c0 100644 --- a/repositories.bzl +++ b/repositories.bzl @@ -5,9 +5,9 @@ def gapic_generator_typescript_repositories(): maybe( http_archive, name = "aspect_rules_js", - sha256 = "bd011d708613005e9d7cfd76b05fcebc3cec9ac7ea5cee4fc4086bc3d4cf43c2", - strip_prefix = "rules_js-1.35.0", - url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v1.35.0.tar.gz", + sha256 = "e65c30bd75274e8aaa60f96b0342f87503ad13e4a9f684bcfe999c35e029993a", + strip_prefix = "rules_js-1.36.0", + url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v1.36.0.tar.gz", ) maybe( From ddcc0ba3a863a557b7d171345865e6bc8ea0e9eb Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 23 Jan 2024 02:10:26 +0100 Subject: [PATCH 06/35] chore(deps): update dependency aspect_rules_js to v1.36.1 (#1524) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [aspect_rules_js](https://togithub.com/aspect-build/rules_js) | http_archive | patch | `v1.36.0` -> `v1.36.1` | --- ### Release Notes
aspect-build/rules_js (aspect_rules_js) ### [`v1.36.1`](https://togithub.com/aspect-build/rules_js/releases/tag/v1.36.1) [Compare Source](https://togithub.com/aspect-build/rules_js/compare/v1.36.0...v1.36.1) Many companies are successfully building with rules_js. If you're getting value from the project, please let us know! Just comment on our [Adoption Discussion](https://togithub.com/aspect-build/rules_js/discussions/1000). #### Using Bzlmod with Bazel 6: Add to your `MODULE.bazel` file: ```starlark bazel_dep(name = "aspect_rules_js", version = "1.36.1") ####### Node.js version ######### ### By default you get the node version from DEFAULT_NODE_VERSION in @​rules_nodejs//nodejs:repositories.bzl ### Optionally you can pin a different node version: bazel_dep(name = "rules_nodejs", version = "5.8.2") node = use_extension("@​rules_nodejs//nodejs:extensions.bzl", "node") node.toolchain(node_version = "16.14.2") ################################# npm = use_extension("@​aspect_rules_js//npm:extensions.bzl", "npm", dev_dependency = True) npm.npm_translate_lock( name = "npm", pnpm_lock = "//:pnpm-lock.yaml", verify_node_modules_ignored = "//:.bazelignore", ) use_repo(npm, "npm") ``` #### Using WORKSPACE Paste this snippet into your `WORKSPACE` file: ```starlark load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "aspect_rules_js", sha256 = "0988cc4baa95254d5c96c2db54019df566f78f357a98272f0ee3a4a5fc9e46f1", strip_prefix = "rules_js-1.36.1", url = "https://togithub.com/aspect-build/rules_js/releases/download/v1.36.1/rules_js-v1.36.1.tar.gz", ) load("@​aspect_rules_js//js:repositories.bzl", "rules_js_dependencies") rules_js_dependencies() load("@​rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains") nodejs_register_toolchains( name = "nodejs", node_version = DEFAULT_NODE_VERSION, ) ### For convenience, npm_translate_lock does this call automatically. ### Uncomment if you don't call npm_translate_lock at all. #load("@​bazel_features//:deps.bzl", "bazel_features_deps") #bazel_features_deps() load("@​aspect_rules_js//npm:repositories.bzl", "npm_translate_lock") npm_translate_lock( name = "npm", pnpm_lock = "//:pnpm-lock.yaml", verify_node_modules_ignored = "//:.bazelignore", ) load("@​npm//:repositories.bzl", "npm_repositories") npm_repositories() ``` To use rules_js with bazel-lib 2.x, you must additionally register the coreutils toolchain. ```starlark load("@​aspect_bazel_lib//lib:repositories.bzl", "register_coreutils_toolchains") register_coreutils_toolchains() ``` #### What's Changed - chore(deps): update dependency aspect_rules_lint to v0.9.1 by [@​renovate](https://togithub.com/renovate) in [https://togithub.com/aspect-build/rules_js/pull/1451](https://togithub.com/aspect-build/rules_js/pull/1451) - docs: add note about npm_translate_lock\_ merge conflict resolution by [@​jbedard](https://togithub.com/jbedard) in [https://togithub.com/aspect-build/rules_js/pull/1455](https://togithub.com/aspect-build/rules_js/pull/1455) **Full Changelog**: https://togithub.com/aspect-build/rules_js/compare/v1.36.0...v1.36.1
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/gapic-generator-typescript). --- repositories.bzl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/repositories.bzl b/repositories.bzl index f0debd8c0..52fb9b86d 100644 --- a/repositories.bzl +++ b/repositories.bzl @@ -5,9 +5,9 @@ def gapic_generator_typescript_repositories(): maybe( http_archive, name = "aspect_rules_js", - sha256 = "e65c30bd75274e8aaa60f96b0342f87503ad13e4a9f684bcfe999c35e029993a", - strip_prefix = "rules_js-1.36.0", - url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v1.36.0.tar.gz", + sha256 = "e8299379df860bafe83e4c4372b00ffe5d8273bb84aae3a232251345dca4ecd0", + strip_prefix = "rules_js-1.36.1", + url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v1.36.1.tar.gz", ) maybe( From 2a61552f77d302f15bccabfaded698f1e2b07e12 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 25 Jan 2024 02:24:18 +0100 Subject: [PATCH 07/35] chore(deps): update dependency aspect_rules_js to v1.37.0 (#1525) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [aspect_rules_js](https://togithub.com/aspect-build/rules_js) | http_archive | minor | `v1.36.1` -> `v1.37.0` | --- ### Release Notes
aspect-build/rules_js (aspect_rules_js) ### [`v1.37.0`](https://togithub.com/aspect-build/rules_js/releases/tag/v1.37.0) [Compare Source](https://togithub.com/aspect-build/rules_js/compare/v1.36.1...v1.37.0) Many companies are successfully building with rules_js. If you're getting value from the project, please let us know! Just comment on our [Adoption Discussion](https://togithub.com/aspect-build/rules_js/discussions/1000). #### Using Bzlmod with Bazel 6: Add to your `MODULE.bazel` file: ```starlark bazel_dep(name = "aspect_rules_js", version = "1.37.0") ####### Node.js version ######### ### By default you get the node version from DEFAULT_NODE_VERSION in @​rules_nodejs//nodejs:repositories.bzl ### Optionally you can pin a different node version: bazel_dep(name = "rules_nodejs", version = "5.8.2") node = use_extension("@​rules_nodejs//nodejs:extensions.bzl", "node") node.toolchain(node_version = "16.14.2") ################################# npm = use_extension("@​aspect_rules_js//npm:extensions.bzl", "npm", dev_dependency = True) npm.npm_translate_lock( name = "npm", pnpm_lock = "//:pnpm-lock.yaml", verify_node_modules_ignored = "//:.bazelignore", ) use_repo(npm, "npm") ``` #### Using WORKSPACE Paste this snippet into your `WORKSPACE` file: ```starlark load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "aspect_rules_js", sha256 = "7130820ce72d11489501479accc0072d45e53a916e4abc5e91b680b7374b3dad", strip_prefix = "rules_js-1.37.0", url = "https://togithub.com/aspect-build/rules_js/releases/download/v1.37.0/rules_js-v1.37.0.tar.gz", ) load("@​aspect_rules_js//js:repositories.bzl", "rules_js_dependencies") rules_js_dependencies() load("@​rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains") nodejs_register_toolchains( name = "nodejs", node_version = DEFAULT_NODE_VERSION, ) ### For convenience, npm_translate_lock does this call automatically. ### Uncomment if you don't call npm_translate_lock at all. #load("@​bazel_features//:deps.bzl", "bazel_features_deps") #bazel_features_deps() load("@​aspect_rules_js//npm:repositories.bzl", "npm_translate_lock") npm_translate_lock( name = "npm", pnpm_lock = "//:pnpm-lock.yaml", verify_node_modules_ignored = "//:.bazelignore", ) load("@​npm//:repositories.bzl", "npm_repositories") npm_repositories() ``` To use rules_js with bazel-lib 2.x, you must additionally register the coreutils toolchain. ```starlark load("@​aspect_bazel_lib//lib:repositories.bzl", "register_coreutils_toolchains") register_coreutils_toolchains() ``` #### What's Changed - chore: upgrade to Aspect Workflows 5.9.0-rc.16 by [@​gregmagolan](https://togithub.com/gregmagolan) in [https://togithub.com/aspect-build/rules_js/pull/1456](https://togithub.com/aspect-build/rules_js/pull/1456) - chore: switch to a gitpkg.vercel.app that doens't trip [https://togithub.com/pnpm/pnpm/issues/5414](https://togithub.com/pnpm/pnpm/issues/5414) by [@​gregmagolan](https://togithub.com/gregmagolan) in [https://togithub.com/aspect-build/rules_js/pull/1459](https://togithub.com/aspect-build/rules_js/pull/1459) - chore: sort node toolchains in MODULE.bazel files by [@​gregmagolan](https://togithub.com/gregmagolan) in [https://togithub.com/aspect-build/rules_js/pull/1461](https://togithub.com/aspect-build/rules_js/pull/1461) - chore: improve error messages on rctx.execute calls by [@​gregmagolan](https://togithub.com/gregmagolan) in [https://togithub.com/aspect-build/rules_js/pull/1460](https://togithub.com/aspect-build/rules_js/pull/1460) - fix: only output warnings on lockfile parsing when regenerating lockfile by [@​jbedard](https://togithub.com/jbedard) in [https://togithub.com/aspect-build/rules_js/pull/1454](https://togithub.com/aspect-build/rules_js/pull/1454) - feat: use yq to parse yaml file by [@​gregmagolan](https://togithub.com/gregmagolan) in [https://togithub.com/aspect-build/rules_js/pull/1458](https://togithub.com/aspect-build/rules_js/pull/1458) **Full Changelog**: https://togithub.com/aspect-build/rules_js/compare/v1.36.1...v1.37.0
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/gapic-generator-typescript). --- repositories.bzl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/repositories.bzl b/repositories.bzl index 52fb9b86d..1b6473073 100644 --- a/repositories.bzl +++ b/repositories.bzl @@ -5,9 +5,9 @@ def gapic_generator_typescript_repositories(): maybe( http_archive, name = "aspect_rules_js", - sha256 = "e8299379df860bafe83e4c4372b00ffe5d8273bb84aae3a232251345dca4ecd0", - strip_prefix = "rules_js-1.36.1", - url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v1.36.1.tar.gz", + sha256 = "09c731699367dd2e2d20957ffa8d76b65053c1dc08df54f3046b41eae10b1d5f", + strip_prefix = "rules_js-1.37.0", + url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v1.37.0.tar.gz", ) maybe( From 6201f97812b87cf37490d85f3ee3efd101df5f25 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 26 Jan 2024 03:36:18 +0100 Subject: [PATCH 08/35] chore(deps): update dependency aspect_rules_js to v1.37.1 (#1526) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [aspect_rules_js](https://togithub.com/aspect-build/rules_js) | http_archive | patch | `v1.37.0` -> `v1.37.1` | --- ### Release Notes
aspect-build/rules_js (aspect_rules_js) ### [`v1.37.1`](https://togithub.com/aspect-build/rules_js/releases/tag/v1.37.1) [Compare Source](https://togithub.com/aspect-build/rules_js/compare/v1.37.0...v1.37.1) Many companies are successfully building with rules_js. If you're getting value from the project, please let us know! Just comment on our [Adoption Discussion](https://togithub.com/aspect-build/rules_js/discussions/1000). ##### Using Bzlmod with Bazel 6: Add to your `MODULE.bazel` file: ```starlark bazel_dep(name = "aspect_rules_js", version = "1.37.1") ####### Node.js version ######### ##### By default you get the node version from DEFAULT_NODE_VERSION in @​rules_nodejs//nodejs:repositories.bzl ##### Optionally you can pin a different node version: bazel_dep(name = "rules_nodejs", version = "5.8.2") node = use_extension("@​rules_nodejs//nodejs:extensions.bzl", "node") node.toolchain(node_version = "16.14.2") ################################# npm = use_extension("@​aspect_rules_js//npm:extensions.bzl", "npm", dev_dependency = True) npm.npm_translate_lock( name = "npm", pnpm_lock = "//:pnpm-lock.yaml", verify_node_modules_ignored = "//:.bazelignore", ) use_repo(npm, "npm") ``` ##### Using WORKSPACE Paste this snippet into your `WORKSPACE` file: ```starlark load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "aspect_rules_js", sha256 = "630a71aba66c4023a5b16ab3efafaeed8b1a2865ccd168a34611eb73876b3fc4", strip_prefix = "rules_js-1.37.1", url = "https://togithub.com/aspect-build/rules_js/releases/download/v1.37.1/rules_js-v1.37.1.tar.gz", ) load("@​aspect_rules_js//js:repositories.bzl", "rules_js_dependencies") rules_js_dependencies() load("@​rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains") nodejs_register_toolchains( name = "nodejs", node_version = DEFAULT_NODE_VERSION, ) ##### For convenience, npm_translate_lock does this call automatically. ##### Uncomment if you don't call npm_translate_lock at all. #load("@​bazel_features//:deps.bzl", "bazel_features_deps") #bazel_features_deps() load("@​aspect_rules_js//npm:repositories.bzl", "npm_translate_lock") npm_translate_lock( name = "npm", pnpm_lock = "//:pnpm-lock.yaml", verify_node_modules_ignored = "//:.bazelignore", ) load("@​npm//:repositories.bzl", "npm_repositories") npm_repositories() ``` To use rules_js with bazel-lib 2.x, you must additionally register the coreutils toolchain. ```starlark load("@​aspect_bazel_lib//lib:repositories.bzl", "register_coreutils_toolchains") register_coreutils_toolchains() ``` ##### What's Changed - fix: vendor in is_bazel\_7\_or_greater so we maintain compat with aspect_bazel_lib >=2.0.0 <2.2.0 by [@​gregmagolan](https://togithub.com/gregmagolan) in [https://togithub.com/aspect-build/rules_js/pull/1463](https://togithub.com/aspect-build/rules_js/pull/1463) **Full Changelog**: https://togithub.com/aspect-build/rules_js/compare/v1.37.0...v1.37.1
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/gapic-generator-typescript). --- repositories.bzl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/repositories.bzl b/repositories.bzl index 1b6473073..14a5da23c 100644 --- a/repositories.bzl +++ b/repositories.bzl @@ -5,9 +5,9 @@ def gapic_generator_typescript_repositories(): maybe( http_archive, name = "aspect_rules_js", - sha256 = "09c731699367dd2e2d20957ffa8d76b65053c1dc08df54f3046b41eae10b1d5f", - strip_prefix = "rules_js-1.37.0", - url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v1.37.0.tar.gz", + sha256 = "ab56f5e8b001926bef9a23261ff97e70b82b9cc1117a1e4cdc4231c6b8b43568", + strip_prefix = "rules_js-1.37.1", + url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v1.37.1.tar.gz", ) maybe( From 0bdb74243c6eef89200b35abc0486fd897145d9e Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Fri, 26 Jan 2024 11:34:50 -0800 Subject: [PATCH 09/35] fix(samples): remove useless await in async iteration sample (#1527) --- MODULE.bazel.lock | 36 +++++++++++++++---- .../v1/addresses.aggregated_list.js.baseline | 2 +- .../generated/v1/addresses.list.js.baseline | 2 +- .../v1/addresses.aggregated_list.js.baseline | 2 +- .../generated/v1/addresses.list.js.baseline | 2 +- ...vice.list_deidentify_templates.js.baseline | 2 +- .../v2/dlp_service.list_dlp_jobs.js.baseline | 2 +- ...service.list_inspect_templates.js.baseline | 2 +- .../dlp_service.list_job_triggers.js.baseline | 2 +- ...service.list_stored_info_types.js.baseline | 2 +- ...vice.list_deidentify_templates.js.baseline | 2 +- .../v2/dlp_service.list_dlp_jobs.js.baseline | 2 +- ...service.list_inspect_templates.js.baseline | 2 +- .../dlp_service.list_job_triggers.js.baseline | 2 +- ...service.list_stored_info_types.js.baseline | 2 +- ...rvice.list_crypto_key_versions.js.baseline | 2 +- ...ement_service.list_crypto_keys.js.baseline | 2 +- ...ement_service.list_import_jobs.js.baseline | 2 +- ...agement_service.list_key_rings.js.baseline | 2 +- ...rvice.list_crypto_key_versions.js.baseline | 2 +- ...ement_service.list_crypto_keys.js.baseline | 2 +- ...ement_service.list_import_jobs.js.baseline | 2 +- ...agement_service.list_key_rings.js.baseline | 2 +- ...config_service_v2.list_buckets.js.baseline | 2 +- ...fig_service_v2.list_exclusions.js.baseline | 2 +- .../config_service_v2.list_sinks.js.baseline | 2 +- .../config_service_v2.list_views.js.baseline | 2 +- ...ng_service_v2.list_log_entries.js.baseline | 2 +- .../logging_service_v2.list_logs.js.baseline | 2 +- ...monitored_resource_descriptors.js.baseline | 2 +- ...ng_service_v2.tail_log_entries.js.baseline | 2 +- ...cs_service_v2.list_log_metrics.js.baseline | 2 +- ...config_service_v2.list_buckets.js.baseline | 2 +- ...fig_service_v2.list_exclusions.js.baseline | 2 +- .../config_service_v2.list_sinks.js.baseline | 2 +- .../config_service_v2.list_views.js.baseline | 2 +- ...ng_service_v2.list_log_entries.js.baseline | 2 +- .../logging_service_v2.list_logs.js.baseline | 2 +- ...monitored_resource_descriptors.js.baseline | 2 +- ...ng_service_v2.tail_log_entries.js.baseline | 2 +- ...cs_service_v2.list_log_metrics.js.baseline | 2 +- ...cy_service.list_alert_policies.js.baseline | 2 +- ...oup_service.list_group_members.js.baseline | 2 +- .../v3/group_service.list_groups.js.baseline | 2 +- ...ervice.list_metric_descriptors.js.baseline | 2 +- ...monitored_resource_descriptors.js.baseline | 2 +- ...etric_service.list_time_series.js.baseline | 2 +- ...tification_channel_descriptors.js.baseline | 2 +- ...ice.list_notification_channels.js.baseline | 2 +- ....list_service_level_objectives.js.baseline | 2 +- ...nitoring_service.list_services.js.baseline | 2 +- ...vice.list_uptime_check_configs.js.baseline | 2 +- ..._service.list_uptime_check_ips.js.baseline | 2 +- ...cy_service.list_alert_policies.js.baseline | 2 +- ...oup_service.list_group_members.js.baseline | 2 +- .../v3/group_service.list_groups.js.baseline | 2 +- ...ervice.list_metric_descriptors.js.baseline | 2 +- ...monitored_resource_descriptors.js.baseline | 2 +- ...etric_service.list_time_series.js.baseline | 2 +- ...tification_channel_descriptors.js.baseline | 2 +- ...ice.list_notification_channels.js.baseline | 2 +- ....list_service_level_objectives.js.baseline | 2 +- ...nitoring_service.list_services.js.baseline | 2 +- ...vice.list_uptime_check_configs.js.baseline | 2 +- ..._service.list_uptime_check_ips.js.baseline | 2 +- .../naming.paginated_method.js.baseline | 2 +- .../naming.paginated_method.js.baseline | 2 +- .../cloud_redis.list_instances.js.baseline | 2 +- .../cloud_redis.list_instances.js.baseline | 2 +- .../generated/v1beta1/echo.chat.js.baseline | 2 +- .../v1beta1/echo.paged_expand.js.baseline | 2 +- ...cho.paged_expand_legacy_mapped.js.baseline | 2 +- .../generated/v1beta1/echo.chat.js.baseline | 2 +- .../v1beta1/echo.paged_expand.js.baseline | 2 +- ...cho.paged_expand_legacy_mapped.js.baseline | 2 +- .../v2/cloud_tasks.list_queues.js.baseline | 2 +- .../v2/cloud_tasks.list_tasks.js.baseline | 2 +- .../v2/cloud_tasks.list_queues.js.baseline | 2 +- .../v2/cloud_tasks.list_tasks.js.baseline | 2 +- ...lation_service.list_glossaries.js.baseline | 2 +- ...lation_service.list_glossaries.js.baseline | 2 +- .../$version/$service.$method.js.njk | 6 ++-- .../$version/$service.$method.js.njk | 6 ++-- 83 files changed, 115 insertions(+), 93 deletions(-) diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index 964faf91b..0e3a8c4dc 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -641,12 +641,13 @@ "name": "apple_support~1.5.0~apple_cc_configure_extension~local_config_apple_cc_toolchains" } } - } + }, + "recordedRepoMappingEntries": [] } }, "@@bazel_tools//tools/cpp:cc_configure.bzl%cc_configure_extension": { "general": { - "bzlTransitiveDigest": "O9sf6ilKWU9Veed02jG9o2HM/xgV/UAyciuFBuxrFRY=", + "bzlTransitiveDigest": "mcsWHq3xORJexV5/4eCvNOLxFOQKV6eli3fkr+tEaqE=", "accumulatedFileDigests": {}, "envVariables": {}, "generatedRepoSpecs": { @@ -664,7 +665,14 @@ "name": "bazel_tools~cc_configure_extension~local_config_cc_toolchains" } } - } + }, + "recordedRepoMappingEntries": [ + [ + "bazel_tools", + "bazel_tools", + "bazel_tools" + ] + ] } }, "@@bazel_tools//tools/osx:xcode_configure.bzl%xcode_configure_extension": { @@ -682,7 +690,8 @@ "remote_xcode": "" } } - } + }, + "recordedRepoMappingEntries": [] } }, "@@bazel_tools//tools/sh:sh_configure.bzl%sh_configure_extension": { @@ -698,12 +707,13 @@ "name": "bazel_tools~sh_configure_extension~local_config_sh" } } - } + }, + "recordedRepoMappingEntries": [] } }, "@@rules_java~7.1.0//java:extensions.bzl%toolchains": { "general": { - "bzlTransitiveDigest": "iUIRqCK7tkhvcDJCAfPPqSd06IHG0a8HQD0xeQyVAqw=", + "bzlTransitiveDigest": "D02GmifxnV/IhYgspsJMDZ/aE8HxAjXgek5gi6FSto4=", "accumulatedFileDigests": {}, "envVariables": {}, "generatedRepoSpecs": { @@ -1238,7 +1248,19 @@ "build_file": "\nconfig_setting(\n name = \"prefix_version_setting\",\n values = {\"java_runtime_version\": \"remotejdk_21\"},\n visibility = [\"//visibility:private\"],\n)\nconfig_setting(\n name = \"version_setting\",\n values = {\"java_runtime_version\": \"21\"},\n visibility = [\"//visibility:private\"],\n)\nalias(\n name = \"version_or_prefix_version_setting\",\n actual = select({\n \":version_setting\": \":version_setting\",\n \"//conditions:default\": \":prefix_version_setting\",\n }),\n visibility = [\"//visibility:private\"],\n)\ntoolchain(\n name = \"toolchain\",\n target_compatible_with = [\"@platforms//os:windows\", \"@platforms//cpu:x86_64\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:runtime_toolchain_type\",\n toolchain = \"@remotejdk21_win//:jdk\",\n)\ntoolchain(\n name = \"bootstrap_runtime_toolchain\",\n # These constraints are not required for correctness, but prevent fetches of remote JDK for\n # different architectures. As every Java compilation toolchain depends on a bootstrap runtime in\n # the same configuration, this constraint will not result in toolchain resolution failures.\n exec_compatible_with = [\"@platforms//os:windows\", \"@platforms//cpu:x86_64\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:bootstrap_runtime_toolchain_type\",\n toolchain = \"@remotejdk21_win//:jdk\",\n)\n" } } - } + }, + "recordedRepoMappingEntries": [ + [ + "rules_java~7.1.0", + "bazel_tools", + "bazel_tools" + ], + [ + "rules_java~7.1.0", + "remote_java_tools", + "rules_java~7.1.0~toolchains~remote_java_tools" + ] + ] } } } diff --git a/baselines/compute-esm/samples/generated/v1/addresses.aggregated_list.js.baseline b/baselines/compute-esm/samples/generated/v1/addresses.aggregated_list.js.baseline index ddd77903a..90a68c05b 100644 --- a/baselines/compute-esm/samples/generated/v1/addresses.aggregated_list.js.baseline +++ b/baselines/compute-esm/samples/generated/v1/addresses.aggregated_list.js.baseline @@ -71,7 +71,7 @@ function main(project) { }; // Run request - const iterable = await computeClient.aggregatedListAsync(request); + const iterable = computeClient.aggregatedListAsync(request); for await (const [key, value] of iterable) { console.log(response); } diff --git a/baselines/compute-esm/samples/generated/v1/addresses.list.js.baseline b/baselines/compute-esm/samples/generated/v1/addresses.list.js.baseline index c4a9f8c8a..16b62e3db 100644 --- a/baselines/compute-esm/samples/generated/v1/addresses.list.js.baseline +++ b/baselines/compute-esm/samples/generated/v1/addresses.list.js.baseline @@ -73,7 +73,7 @@ function main(orderBy, project, region) { }; // Run request - const iterable = await computeClient.listAsync(request); + const iterable = computeClient.listAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/compute/samples/generated/v1/addresses.aggregated_list.js.baseline b/baselines/compute/samples/generated/v1/addresses.aggregated_list.js.baseline index ddd77903a..90a68c05b 100644 --- a/baselines/compute/samples/generated/v1/addresses.aggregated_list.js.baseline +++ b/baselines/compute/samples/generated/v1/addresses.aggregated_list.js.baseline @@ -71,7 +71,7 @@ function main(project) { }; // Run request - const iterable = await computeClient.aggregatedListAsync(request); + const iterable = computeClient.aggregatedListAsync(request); for await (const [key, value] of iterable) { console.log(response); } diff --git a/baselines/compute/samples/generated/v1/addresses.list.js.baseline b/baselines/compute/samples/generated/v1/addresses.list.js.baseline index c4a9f8c8a..16b62e3db 100644 --- a/baselines/compute/samples/generated/v1/addresses.list.js.baseline +++ b/baselines/compute/samples/generated/v1/addresses.list.js.baseline @@ -73,7 +73,7 @@ function main(orderBy, project, region) { }; // Run request - const iterable = await computeClient.listAsync(request); + const iterable = computeClient.listAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/dlp-esm/samples/generated/v2/dlp_service.list_deidentify_templates.js.baseline b/baselines/dlp-esm/samples/generated/v2/dlp_service.list_deidentify_templates.js.baseline index d0bf9ed1d..515bc4b29 100644 --- a/baselines/dlp-esm/samples/generated/v2/dlp_service.list_deidentify_templates.js.baseline +++ b/baselines/dlp-esm/samples/generated/v2/dlp_service.list_deidentify_templates.js.baseline @@ -75,7 +75,7 @@ function main(parent) { }; // Run request - const iterable = await dlpClient.listDeidentifyTemplatesAsync(request); + const iterable = dlpClient.listDeidentifyTemplatesAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/dlp-esm/samples/generated/v2/dlp_service.list_dlp_jobs.js.baseline b/baselines/dlp-esm/samples/generated/v2/dlp_service.list_dlp_jobs.js.baseline index 4d93a4f6e..a3e7b14ed 100644 --- a/baselines/dlp-esm/samples/generated/v2/dlp_service.list_dlp_jobs.js.baseline +++ b/baselines/dlp-esm/samples/generated/v2/dlp_service.list_dlp_jobs.js.baseline @@ -102,7 +102,7 @@ function main(parent) { }; // Run request - const iterable = await dlpClient.listDlpJobsAsync(request); + const iterable = dlpClient.listDlpJobsAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/dlp-esm/samples/generated/v2/dlp_service.list_inspect_templates.js.baseline b/baselines/dlp-esm/samples/generated/v2/dlp_service.list_inspect_templates.js.baseline index f25c2f926..683e561cd 100644 --- a/baselines/dlp-esm/samples/generated/v2/dlp_service.list_inspect_templates.js.baseline +++ b/baselines/dlp-esm/samples/generated/v2/dlp_service.list_inspect_templates.js.baseline @@ -75,7 +75,7 @@ function main(parent) { }; // Run request - const iterable = await dlpClient.listInspectTemplatesAsync(request); + const iterable = dlpClient.listInspectTemplatesAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/dlp-esm/samples/generated/v2/dlp_service.list_job_triggers.js.baseline b/baselines/dlp-esm/samples/generated/v2/dlp_service.list_job_triggers.js.baseline index fda5bd5ba..ccbd4fa22 100644 --- a/baselines/dlp-esm/samples/generated/v2/dlp_service.list_job_triggers.js.baseline +++ b/baselines/dlp-esm/samples/generated/v2/dlp_service.list_job_triggers.js.baseline @@ -98,7 +98,7 @@ function main(parent) { }; // Run request - const iterable = await dlpClient.listJobTriggersAsync(request); + const iterable = dlpClient.listJobTriggersAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/dlp-esm/samples/generated/v2/dlp_service.list_stored_info_types.js.baseline b/baselines/dlp-esm/samples/generated/v2/dlp_service.list_stored_info_types.js.baseline index 6cb9ab458..9bd37a536 100644 --- a/baselines/dlp-esm/samples/generated/v2/dlp_service.list_stored_info_types.js.baseline +++ b/baselines/dlp-esm/samples/generated/v2/dlp_service.list_stored_info_types.js.baseline @@ -76,7 +76,7 @@ function main(parent) { }; // Run request - const iterable = await dlpClient.listStoredInfoTypesAsync(request); + const iterable = dlpClient.listStoredInfoTypesAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/dlp/samples/generated/v2/dlp_service.list_deidentify_templates.js.baseline b/baselines/dlp/samples/generated/v2/dlp_service.list_deidentify_templates.js.baseline index d0bf9ed1d..515bc4b29 100644 --- a/baselines/dlp/samples/generated/v2/dlp_service.list_deidentify_templates.js.baseline +++ b/baselines/dlp/samples/generated/v2/dlp_service.list_deidentify_templates.js.baseline @@ -75,7 +75,7 @@ function main(parent) { }; // Run request - const iterable = await dlpClient.listDeidentifyTemplatesAsync(request); + const iterable = dlpClient.listDeidentifyTemplatesAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/dlp/samples/generated/v2/dlp_service.list_dlp_jobs.js.baseline b/baselines/dlp/samples/generated/v2/dlp_service.list_dlp_jobs.js.baseline index 4d93a4f6e..a3e7b14ed 100644 --- a/baselines/dlp/samples/generated/v2/dlp_service.list_dlp_jobs.js.baseline +++ b/baselines/dlp/samples/generated/v2/dlp_service.list_dlp_jobs.js.baseline @@ -102,7 +102,7 @@ function main(parent) { }; // Run request - const iterable = await dlpClient.listDlpJobsAsync(request); + const iterable = dlpClient.listDlpJobsAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/dlp/samples/generated/v2/dlp_service.list_inspect_templates.js.baseline b/baselines/dlp/samples/generated/v2/dlp_service.list_inspect_templates.js.baseline index f25c2f926..683e561cd 100644 --- a/baselines/dlp/samples/generated/v2/dlp_service.list_inspect_templates.js.baseline +++ b/baselines/dlp/samples/generated/v2/dlp_service.list_inspect_templates.js.baseline @@ -75,7 +75,7 @@ function main(parent) { }; // Run request - const iterable = await dlpClient.listInspectTemplatesAsync(request); + const iterable = dlpClient.listInspectTemplatesAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/dlp/samples/generated/v2/dlp_service.list_job_triggers.js.baseline b/baselines/dlp/samples/generated/v2/dlp_service.list_job_triggers.js.baseline index fda5bd5ba..ccbd4fa22 100644 --- a/baselines/dlp/samples/generated/v2/dlp_service.list_job_triggers.js.baseline +++ b/baselines/dlp/samples/generated/v2/dlp_service.list_job_triggers.js.baseline @@ -98,7 +98,7 @@ function main(parent) { }; // Run request - const iterable = await dlpClient.listJobTriggersAsync(request); + const iterable = dlpClient.listJobTriggersAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/dlp/samples/generated/v2/dlp_service.list_stored_info_types.js.baseline b/baselines/dlp/samples/generated/v2/dlp_service.list_stored_info_types.js.baseline index 6cb9ab458..9bd37a536 100644 --- a/baselines/dlp/samples/generated/v2/dlp_service.list_stored_info_types.js.baseline +++ b/baselines/dlp/samples/generated/v2/dlp_service.list_stored_info_types.js.baseline @@ -76,7 +76,7 @@ function main(parent) { }; // Run request - const iterable = await dlpClient.listStoredInfoTypesAsync(request); + const iterable = dlpClient.listStoredInfoTypesAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/kms-esm/samples/generated/v1/key_management_service.list_crypto_key_versions.js.baseline b/baselines/kms-esm/samples/generated/v1/key_management_service.list_crypto_key_versions.js.baseline index a8edf7d90..54111598f 100644 --- a/baselines/kms-esm/samples/generated/v1/key_management_service.list_crypto_key_versions.js.baseline +++ b/baselines/kms-esm/samples/generated/v1/key_management_service.list_crypto_key_versions.js.baseline @@ -72,7 +72,7 @@ function main() { }; // Run request - const iterable = await kmsClient.listCryptoKeyVersionsAsync(request); + const iterable = kmsClient.listCryptoKeyVersionsAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/kms-esm/samples/generated/v1/key_management_service.list_crypto_keys.js.baseline b/baselines/kms-esm/samples/generated/v1/key_management_service.list_crypto_keys.js.baseline index 408bbab31..44e76f156 100644 --- a/baselines/kms-esm/samples/generated/v1/key_management_service.list_crypto_keys.js.baseline +++ b/baselines/kms-esm/samples/generated/v1/key_management_service.list_crypto_keys.js.baseline @@ -71,7 +71,7 @@ function main() { }; // Run request - const iterable = await kmsClient.listCryptoKeysAsync(request); + const iterable = kmsClient.listCryptoKeysAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/kms-esm/samples/generated/v1/key_management_service.list_import_jobs.js.baseline b/baselines/kms-esm/samples/generated/v1/key_management_service.list_import_jobs.js.baseline index 3945e4b76..61526f5a4 100644 --- a/baselines/kms-esm/samples/generated/v1/key_management_service.list_import_jobs.js.baseline +++ b/baselines/kms-esm/samples/generated/v1/key_management_service.list_import_jobs.js.baseline @@ -67,7 +67,7 @@ function main() { }; // Run request - const iterable = await kmsClient.listImportJobsAsync(request); + const iterable = kmsClient.listImportJobsAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/kms-esm/samples/generated/v1/key_management_service.list_key_rings.js.baseline b/baselines/kms-esm/samples/generated/v1/key_management_service.list_key_rings.js.baseline index 466c63a71..a0308d860 100644 --- a/baselines/kms-esm/samples/generated/v1/key_management_service.list_key_rings.js.baseline +++ b/baselines/kms-esm/samples/generated/v1/key_management_service.list_key_rings.js.baseline @@ -67,7 +67,7 @@ function main() { }; // Run request - const iterable = await kmsClient.listKeyRingsAsync(request); + const iterable = kmsClient.listKeyRingsAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/kms/samples/generated/v1/key_management_service.list_crypto_key_versions.js.baseline b/baselines/kms/samples/generated/v1/key_management_service.list_crypto_key_versions.js.baseline index a8edf7d90..54111598f 100644 --- a/baselines/kms/samples/generated/v1/key_management_service.list_crypto_key_versions.js.baseline +++ b/baselines/kms/samples/generated/v1/key_management_service.list_crypto_key_versions.js.baseline @@ -72,7 +72,7 @@ function main() { }; // Run request - const iterable = await kmsClient.listCryptoKeyVersionsAsync(request); + const iterable = kmsClient.listCryptoKeyVersionsAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/kms/samples/generated/v1/key_management_service.list_crypto_keys.js.baseline b/baselines/kms/samples/generated/v1/key_management_service.list_crypto_keys.js.baseline index 408bbab31..44e76f156 100644 --- a/baselines/kms/samples/generated/v1/key_management_service.list_crypto_keys.js.baseline +++ b/baselines/kms/samples/generated/v1/key_management_service.list_crypto_keys.js.baseline @@ -71,7 +71,7 @@ function main() { }; // Run request - const iterable = await kmsClient.listCryptoKeysAsync(request); + const iterable = kmsClient.listCryptoKeysAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/kms/samples/generated/v1/key_management_service.list_import_jobs.js.baseline b/baselines/kms/samples/generated/v1/key_management_service.list_import_jobs.js.baseline index 3945e4b76..61526f5a4 100644 --- a/baselines/kms/samples/generated/v1/key_management_service.list_import_jobs.js.baseline +++ b/baselines/kms/samples/generated/v1/key_management_service.list_import_jobs.js.baseline @@ -67,7 +67,7 @@ function main() { }; // Run request - const iterable = await kmsClient.listImportJobsAsync(request); + const iterable = kmsClient.listImportJobsAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/kms/samples/generated/v1/key_management_service.list_key_rings.js.baseline b/baselines/kms/samples/generated/v1/key_management_service.list_key_rings.js.baseline index 466c63a71..a0308d860 100644 --- a/baselines/kms/samples/generated/v1/key_management_service.list_key_rings.js.baseline +++ b/baselines/kms/samples/generated/v1/key_management_service.list_key_rings.js.baseline @@ -67,7 +67,7 @@ function main() { }; // Run request - const iterable = await kmsClient.listKeyRingsAsync(request); + const iterable = kmsClient.listKeyRingsAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/logging-esm/samples/generated/v2/config_service_v2.list_buckets.js.baseline b/baselines/logging-esm/samples/generated/v2/config_service_v2.list_buckets.js.baseline index 4a1345b14..eef2c2eff 100644 --- a/baselines/logging-esm/samples/generated/v2/config_service_v2.list_buckets.js.baseline +++ b/baselines/logging-esm/samples/generated/v2/config_service_v2.list_buckets.js.baseline @@ -66,7 +66,7 @@ function main(parent) { }; // Run request - const iterable = await loggingClient.listBucketsAsync(request); + const iterable = loggingClient.listBucketsAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/logging-esm/samples/generated/v2/config_service_v2.list_exclusions.js.baseline b/baselines/logging-esm/samples/generated/v2/config_service_v2.list_exclusions.js.baseline index c3cadc98b..3b3b0bbc9 100644 --- a/baselines/logging-esm/samples/generated/v2/config_service_v2.list_exclusions.js.baseline +++ b/baselines/logging-esm/samples/generated/v2/config_service_v2.list_exclusions.js.baseline @@ -63,7 +63,7 @@ function main(parent) { }; // Run request - const iterable = await loggingClient.listExclusionsAsync(request); + const iterable = loggingClient.listExclusionsAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/logging-esm/samples/generated/v2/config_service_v2.list_sinks.js.baseline b/baselines/logging-esm/samples/generated/v2/config_service_v2.list_sinks.js.baseline index d5ba9f2ef..b4863ea21 100644 --- a/baselines/logging-esm/samples/generated/v2/config_service_v2.list_sinks.js.baseline +++ b/baselines/logging-esm/samples/generated/v2/config_service_v2.list_sinks.js.baseline @@ -63,7 +63,7 @@ function main(parent) { }; // Run request - const iterable = await loggingClient.listSinksAsync(request); + const iterable = loggingClient.listSinksAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/logging-esm/samples/generated/v2/config_service_v2.list_views.js.baseline b/baselines/logging-esm/samples/generated/v2/config_service_v2.list_views.js.baseline index a5b4d9684..78317ace4 100644 --- a/baselines/logging-esm/samples/generated/v2/config_service_v2.list_views.js.baseline +++ b/baselines/logging-esm/samples/generated/v2/config_service_v2.list_views.js.baseline @@ -60,7 +60,7 @@ function main(parent) { }; // Run request - const iterable = await loggingClient.listViewsAsync(request); + const iterable = loggingClient.listViewsAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/logging-esm/samples/generated/v2/logging_service_v2.list_log_entries.js.baseline b/baselines/logging-esm/samples/generated/v2/logging_service_v2.list_log_entries.js.baseline index c705284ef..2ea096470 100644 --- a/baselines/logging-esm/samples/generated/v2/logging_service_v2.list_log_entries.js.baseline +++ b/baselines/logging-esm/samples/generated/v2/logging_service_v2.list_log_entries.js.baseline @@ -90,7 +90,7 @@ function main(resourceNames) { }; // Run request - const iterable = await loggingClient.listLogEntriesAsync(request); + const iterable = loggingClient.listLogEntriesAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/logging-esm/samples/generated/v2/logging_service_v2.list_logs.js.baseline b/baselines/logging-esm/samples/generated/v2/logging_service_v2.list_logs.js.baseline index 12783ef0e..225930ff9 100644 --- a/baselines/logging-esm/samples/generated/v2/logging_service_v2.list_logs.js.baseline +++ b/baselines/logging-esm/samples/generated/v2/logging_service_v2.list_logs.js.baseline @@ -76,7 +76,7 @@ function main(parent) { }; // Run request - const iterable = await loggingClient.listLogsAsync(request); + const iterable = loggingClient.listLogsAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/logging-esm/samples/generated/v2/logging_service_v2.list_monitored_resource_descriptors.js.baseline b/baselines/logging-esm/samples/generated/v2/logging_service_v2.list_monitored_resource_descriptors.js.baseline index 98df8a076..34da2c1fc 100644 --- a/baselines/logging-esm/samples/generated/v2/logging_service_v2.list_monitored_resource_descriptors.js.baseline +++ b/baselines/logging-esm/samples/generated/v2/logging_service_v2.list_monitored_resource_descriptors.js.baseline @@ -54,7 +54,7 @@ function main() { }; // Run request - const iterable = await loggingClient.listMonitoredResourceDescriptorsAsync(request); + const iterable = loggingClient.listMonitoredResourceDescriptorsAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/logging-esm/samples/generated/v2/logging_service_v2.tail_log_entries.js.baseline b/baselines/logging-esm/samples/generated/v2/logging_service_v2.tail_log_entries.js.baseline index 72377ac7d..bac29c926 100644 --- a/baselines/logging-esm/samples/generated/v2/logging_service_v2.tail_log_entries.js.baseline +++ b/baselines/logging-esm/samples/generated/v2/logging_service_v2.tail_log_entries.js.baseline @@ -77,7 +77,7 @@ function main(resourceNames) { stream.on('error', (err) => { throw(err) }); stream.on('end', () => { /* API call completed */ }); stream.write(request); - stream.end(); + stream.end(); } callTailLogEntries(); diff --git a/baselines/logging-esm/samples/generated/v2/metrics_service_v2.list_log_metrics.js.baseline b/baselines/logging-esm/samples/generated/v2/metrics_service_v2.list_log_metrics.js.baseline index b2fd96ade..9fb0569ce 100644 --- a/baselines/logging-esm/samples/generated/v2/metrics_service_v2.list_log_metrics.js.baseline +++ b/baselines/logging-esm/samples/generated/v2/metrics_service_v2.list_log_metrics.js.baseline @@ -60,7 +60,7 @@ function main(parent) { }; // Run request - const iterable = await loggingClient.listLogMetricsAsync(request); + const iterable = loggingClient.listLogMetricsAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/logging/samples/generated/v2/config_service_v2.list_buckets.js.baseline b/baselines/logging/samples/generated/v2/config_service_v2.list_buckets.js.baseline index 4a1345b14..eef2c2eff 100644 --- a/baselines/logging/samples/generated/v2/config_service_v2.list_buckets.js.baseline +++ b/baselines/logging/samples/generated/v2/config_service_v2.list_buckets.js.baseline @@ -66,7 +66,7 @@ function main(parent) { }; // Run request - const iterable = await loggingClient.listBucketsAsync(request); + const iterable = loggingClient.listBucketsAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/logging/samples/generated/v2/config_service_v2.list_exclusions.js.baseline b/baselines/logging/samples/generated/v2/config_service_v2.list_exclusions.js.baseline index c3cadc98b..3b3b0bbc9 100644 --- a/baselines/logging/samples/generated/v2/config_service_v2.list_exclusions.js.baseline +++ b/baselines/logging/samples/generated/v2/config_service_v2.list_exclusions.js.baseline @@ -63,7 +63,7 @@ function main(parent) { }; // Run request - const iterable = await loggingClient.listExclusionsAsync(request); + const iterable = loggingClient.listExclusionsAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/logging/samples/generated/v2/config_service_v2.list_sinks.js.baseline b/baselines/logging/samples/generated/v2/config_service_v2.list_sinks.js.baseline index d5ba9f2ef..b4863ea21 100644 --- a/baselines/logging/samples/generated/v2/config_service_v2.list_sinks.js.baseline +++ b/baselines/logging/samples/generated/v2/config_service_v2.list_sinks.js.baseline @@ -63,7 +63,7 @@ function main(parent) { }; // Run request - const iterable = await loggingClient.listSinksAsync(request); + const iterable = loggingClient.listSinksAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/logging/samples/generated/v2/config_service_v2.list_views.js.baseline b/baselines/logging/samples/generated/v2/config_service_v2.list_views.js.baseline index a5b4d9684..78317ace4 100644 --- a/baselines/logging/samples/generated/v2/config_service_v2.list_views.js.baseline +++ b/baselines/logging/samples/generated/v2/config_service_v2.list_views.js.baseline @@ -60,7 +60,7 @@ function main(parent) { }; // Run request - const iterable = await loggingClient.listViewsAsync(request); + const iterable = loggingClient.listViewsAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/logging/samples/generated/v2/logging_service_v2.list_log_entries.js.baseline b/baselines/logging/samples/generated/v2/logging_service_v2.list_log_entries.js.baseline index c705284ef..2ea096470 100644 --- a/baselines/logging/samples/generated/v2/logging_service_v2.list_log_entries.js.baseline +++ b/baselines/logging/samples/generated/v2/logging_service_v2.list_log_entries.js.baseline @@ -90,7 +90,7 @@ function main(resourceNames) { }; // Run request - const iterable = await loggingClient.listLogEntriesAsync(request); + const iterable = loggingClient.listLogEntriesAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/logging/samples/generated/v2/logging_service_v2.list_logs.js.baseline b/baselines/logging/samples/generated/v2/logging_service_v2.list_logs.js.baseline index 12783ef0e..225930ff9 100644 --- a/baselines/logging/samples/generated/v2/logging_service_v2.list_logs.js.baseline +++ b/baselines/logging/samples/generated/v2/logging_service_v2.list_logs.js.baseline @@ -76,7 +76,7 @@ function main(parent) { }; // Run request - const iterable = await loggingClient.listLogsAsync(request); + const iterable = loggingClient.listLogsAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/logging/samples/generated/v2/logging_service_v2.list_monitored_resource_descriptors.js.baseline b/baselines/logging/samples/generated/v2/logging_service_v2.list_monitored_resource_descriptors.js.baseline index 98df8a076..34da2c1fc 100644 --- a/baselines/logging/samples/generated/v2/logging_service_v2.list_monitored_resource_descriptors.js.baseline +++ b/baselines/logging/samples/generated/v2/logging_service_v2.list_monitored_resource_descriptors.js.baseline @@ -54,7 +54,7 @@ function main() { }; // Run request - const iterable = await loggingClient.listMonitoredResourceDescriptorsAsync(request); + const iterable = loggingClient.listMonitoredResourceDescriptorsAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/logging/samples/generated/v2/logging_service_v2.tail_log_entries.js.baseline b/baselines/logging/samples/generated/v2/logging_service_v2.tail_log_entries.js.baseline index 72377ac7d..bac29c926 100644 --- a/baselines/logging/samples/generated/v2/logging_service_v2.tail_log_entries.js.baseline +++ b/baselines/logging/samples/generated/v2/logging_service_v2.tail_log_entries.js.baseline @@ -77,7 +77,7 @@ function main(resourceNames) { stream.on('error', (err) => { throw(err) }); stream.on('end', () => { /* API call completed */ }); stream.write(request); - stream.end(); + stream.end(); } callTailLogEntries(); diff --git a/baselines/logging/samples/generated/v2/metrics_service_v2.list_log_metrics.js.baseline b/baselines/logging/samples/generated/v2/metrics_service_v2.list_log_metrics.js.baseline index b2fd96ade..9fb0569ce 100644 --- a/baselines/logging/samples/generated/v2/metrics_service_v2.list_log_metrics.js.baseline +++ b/baselines/logging/samples/generated/v2/metrics_service_v2.list_log_metrics.js.baseline @@ -60,7 +60,7 @@ function main(parent) { }; // Run request - const iterable = await loggingClient.listLogMetricsAsync(request); + const iterable = loggingClient.listLogMetricsAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/monitoring-esm/samples/generated/v3/alert_policy_service.list_alert_policies.js.baseline b/baselines/monitoring-esm/samples/generated/v3/alert_policy_service.list_alert_policies.js.baseline index fa7bfbe69..f30b34a68 100644 --- a/baselines/monitoring-esm/samples/generated/v3/alert_policy_service.list_alert_policies.js.baseline +++ b/baselines/monitoring-esm/samples/generated/v3/alert_policy_service.list_alert_policies.js.baseline @@ -77,7 +77,7 @@ function main(name) { }; // Run request - const iterable = await monitoringClient.listAlertPoliciesAsync(request); + const iterable = monitoringClient.listAlertPoliciesAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/monitoring-esm/samples/generated/v3/group_service.list_group_members.js.baseline b/baselines/monitoring-esm/samples/generated/v3/group_service.list_group_members.js.baseline index f34414941..2ed9c642c 100644 --- a/baselines/monitoring-esm/samples/generated/v3/group_service.list_group_members.js.baseline +++ b/baselines/monitoring-esm/samples/generated/v3/group_service.list_group_members.js.baseline @@ -73,7 +73,7 @@ function main(name) { }; // Run request - const iterable = await monitoringClient.listGroupMembersAsync(request); + const iterable = monitoringClient.listGroupMembersAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/monitoring-esm/samples/generated/v3/group_service.list_groups.js.baseline b/baselines/monitoring-esm/samples/generated/v3/group_service.list_groups.js.baseline index 2aa67c80a..b5e797793 100644 --- a/baselines/monitoring-esm/samples/generated/v3/group_service.list_groups.js.baseline +++ b/baselines/monitoring-esm/samples/generated/v3/group_service.list_groups.js.baseline @@ -78,7 +78,7 @@ function main(name) { }; // Run request - const iterable = await monitoringClient.listGroupsAsync(request); + const iterable = monitoringClient.listGroupsAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/monitoring-esm/samples/generated/v3/metric_service.list_metric_descriptors.js.baseline b/baselines/monitoring-esm/samples/generated/v3/metric_service.list_metric_descriptors.js.baseline index 3187abba9..88d1f1bbb 100644 --- a/baselines/monitoring-esm/samples/generated/v3/metric_service.list_metric_descriptors.js.baseline +++ b/baselines/monitoring-esm/samples/generated/v3/metric_service.list_metric_descriptors.js.baseline @@ -67,7 +67,7 @@ function main(name) { }; // Run request - const iterable = await monitoringClient.listMetricDescriptorsAsync(request); + const iterable = monitoringClient.listMetricDescriptorsAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/monitoring-esm/samples/generated/v3/metric_service.list_monitored_resource_descriptors.js.baseline b/baselines/monitoring-esm/samples/generated/v3/metric_service.list_monitored_resource_descriptors.js.baseline index c5463f6d9..6e891175b 100644 --- a/baselines/monitoring-esm/samples/generated/v3/metric_service.list_monitored_resource_descriptors.js.baseline +++ b/baselines/monitoring-esm/samples/generated/v3/metric_service.list_monitored_resource_descriptors.js.baseline @@ -66,7 +66,7 @@ function main(name) { }; // Run request - const iterable = await monitoringClient.listMonitoredResourceDescriptorsAsync(request); + const iterable = monitoringClient.listMonitoredResourceDescriptorsAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/monitoring-esm/samples/generated/v3/metric_service.list_time_series.js.baseline b/baselines/monitoring-esm/samples/generated/v3/metric_service.list_time_series.js.baseline index 1f2c7bf4e..9210354cb 100644 --- a/baselines/monitoring-esm/samples/generated/v3/metric_service.list_time_series.js.baseline +++ b/baselines/monitoring-esm/samples/generated/v3/metric_service.list_time_series.js.baseline @@ -95,7 +95,7 @@ function main(name, filter, interval, view) { }; // Run request - const iterable = await monitoringClient.listTimeSeriesAsync(request); + const iterable = monitoringClient.listTimeSeriesAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/monitoring-esm/samples/generated/v3/notification_channel_service.list_notification_channel_descriptors.js.baseline b/baselines/monitoring-esm/samples/generated/v3/notification_channel_service.list_notification_channel_descriptors.js.baseline index a7d7b2c96..c037667d6 100644 --- a/baselines/monitoring-esm/samples/generated/v3/notification_channel_service.list_notification_channel_descriptors.js.baseline +++ b/baselines/monitoring-esm/samples/generated/v3/notification_channel_service.list_notification_channel_descriptors.js.baseline @@ -64,7 +64,7 @@ function main(name) { }; // Run request - const iterable = await monitoringClient.listNotificationChannelDescriptorsAsync(request); + const iterable = monitoringClient.listNotificationChannelDescriptorsAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/monitoring-esm/samples/generated/v3/notification_channel_service.list_notification_channels.js.baseline b/baselines/monitoring-esm/samples/generated/v3/notification_channel_service.list_notification_channels.js.baseline index 905fd6d95..06ce09f80 100644 --- a/baselines/monitoring-esm/samples/generated/v3/notification_channel_service.list_notification_channels.js.baseline +++ b/baselines/monitoring-esm/samples/generated/v3/notification_channel_service.list_notification_channels.js.baseline @@ -79,7 +79,7 @@ function main(name) { }; // Run request - const iterable = await monitoringClient.listNotificationChannelsAsync(request); + const iterable = monitoringClient.listNotificationChannelsAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/monitoring-esm/samples/generated/v3/service_monitoring_service.list_service_level_objectives.js.baseline b/baselines/monitoring-esm/samples/generated/v3/service_monitoring_service.list_service_level_objectives.js.baseline index 3c2ed4563..3cd8537df 100644 --- a/baselines/monitoring-esm/samples/generated/v3/service_monitoring_service.list_service_level_objectives.js.baseline +++ b/baselines/monitoring-esm/samples/generated/v3/service_monitoring_service.list_service_level_objectives.js.baseline @@ -69,7 +69,7 @@ function main(parent) { }; // Run request - const iterable = await monitoringClient.listServiceLevelObjectivesAsync(request); + const iterable = monitoringClient.listServiceLevelObjectivesAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/monitoring-esm/samples/generated/v3/service_monitoring_service.list_services.js.baseline b/baselines/monitoring-esm/samples/generated/v3/service_monitoring_service.list_services.js.baseline index b6d85c1ee..7234dd096 100644 --- a/baselines/monitoring-esm/samples/generated/v3/service_monitoring_service.list_services.js.baseline +++ b/baselines/monitoring-esm/samples/generated/v3/service_monitoring_service.list_services.js.baseline @@ -74,7 +74,7 @@ function main(parent) { }; // Run request - const iterable = await monitoringClient.listServicesAsync(request); + const iterable = monitoringClient.listServicesAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/monitoring-esm/samples/generated/v3/uptime_check_service.list_uptime_check_configs.js.baseline b/baselines/monitoring-esm/samples/generated/v3/uptime_check_service.list_uptime_check_configs.js.baseline index b02722159..4590f149f 100644 --- a/baselines/monitoring-esm/samples/generated/v3/uptime_check_service.list_uptime_check_configs.js.baseline +++ b/baselines/monitoring-esm/samples/generated/v3/uptime_check_service.list_uptime_check_configs.js.baseline @@ -60,7 +60,7 @@ function main(parent) { }; // Run request - const iterable = await monitoringClient.listUptimeCheckConfigsAsync(request); + const iterable = monitoringClient.listUptimeCheckConfigsAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/monitoring-esm/samples/generated/v3/uptime_check_service.list_uptime_check_ips.js.baseline b/baselines/monitoring-esm/samples/generated/v3/uptime_check_service.list_uptime_check_ips.js.baseline index 66d884d22..862d9e973 100644 --- a/baselines/monitoring-esm/samples/generated/v3/uptime_check_service.list_uptime_check_ips.js.baseline +++ b/baselines/monitoring-esm/samples/generated/v3/uptime_check_service.list_uptime_check_ips.js.baseline @@ -56,7 +56,7 @@ function main() { }; // Run request - const iterable = await monitoringClient.listUptimeCheckIpsAsync(request); + const iterable = monitoringClient.listUptimeCheckIpsAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/monitoring/samples/generated/v3/alert_policy_service.list_alert_policies.js.baseline b/baselines/monitoring/samples/generated/v3/alert_policy_service.list_alert_policies.js.baseline index fa7bfbe69..f30b34a68 100644 --- a/baselines/monitoring/samples/generated/v3/alert_policy_service.list_alert_policies.js.baseline +++ b/baselines/monitoring/samples/generated/v3/alert_policy_service.list_alert_policies.js.baseline @@ -77,7 +77,7 @@ function main(name) { }; // Run request - const iterable = await monitoringClient.listAlertPoliciesAsync(request); + const iterable = monitoringClient.listAlertPoliciesAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/monitoring/samples/generated/v3/group_service.list_group_members.js.baseline b/baselines/monitoring/samples/generated/v3/group_service.list_group_members.js.baseline index f34414941..2ed9c642c 100644 --- a/baselines/monitoring/samples/generated/v3/group_service.list_group_members.js.baseline +++ b/baselines/monitoring/samples/generated/v3/group_service.list_group_members.js.baseline @@ -73,7 +73,7 @@ function main(name) { }; // Run request - const iterable = await monitoringClient.listGroupMembersAsync(request); + const iterable = monitoringClient.listGroupMembersAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/monitoring/samples/generated/v3/group_service.list_groups.js.baseline b/baselines/monitoring/samples/generated/v3/group_service.list_groups.js.baseline index 2aa67c80a..b5e797793 100644 --- a/baselines/monitoring/samples/generated/v3/group_service.list_groups.js.baseline +++ b/baselines/monitoring/samples/generated/v3/group_service.list_groups.js.baseline @@ -78,7 +78,7 @@ function main(name) { }; // Run request - const iterable = await monitoringClient.listGroupsAsync(request); + const iterable = monitoringClient.listGroupsAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/monitoring/samples/generated/v3/metric_service.list_metric_descriptors.js.baseline b/baselines/monitoring/samples/generated/v3/metric_service.list_metric_descriptors.js.baseline index 3187abba9..88d1f1bbb 100644 --- a/baselines/monitoring/samples/generated/v3/metric_service.list_metric_descriptors.js.baseline +++ b/baselines/monitoring/samples/generated/v3/metric_service.list_metric_descriptors.js.baseline @@ -67,7 +67,7 @@ function main(name) { }; // Run request - const iterable = await monitoringClient.listMetricDescriptorsAsync(request); + const iterable = monitoringClient.listMetricDescriptorsAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/monitoring/samples/generated/v3/metric_service.list_monitored_resource_descriptors.js.baseline b/baselines/monitoring/samples/generated/v3/metric_service.list_monitored_resource_descriptors.js.baseline index c5463f6d9..6e891175b 100644 --- a/baselines/monitoring/samples/generated/v3/metric_service.list_monitored_resource_descriptors.js.baseline +++ b/baselines/monitoring/samples/generated/v3/metric_service.list_monitored_resource_descriptors.js.baseline @@ -66,7 +66,7 @@ function main(name) { }; // Run request - const iterable = await monitoringClient.listMonitoredResourceDescriptorsAsync(request); + const iterable = monitoringClient.listMonitoredResourceDescriptorsAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/monitoring/samples/generated/v3/metric_service.list_time_series.js.baseline b/baselines/monitoring/samples/generated/v3/metric_service.list_time_series.js.baseline index 1f2c7bf4e..9210354cb 100644 --- a/baselines/monitoring/samples/generated/v3/metric_service.list_time_series.js.baseline +++ b/baselines/monitoring/samples/generated/v3/metric_service.list_time_series.js.baseline @@ -95,7 +95,7 @@ function main(name, filter, interval, view) { }; // Run request - const iterable = await monitoringClient.listTimeSeriesAsync(request); + const iterable = monitoringClient.listTimeSeriesAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/monitoring/samples/generated/v3/notification_channel_service.list_notification_channel_descriptors.js.baseline b/baselines/monitoring/samples/generated/v3/notification_channel_service.list_notification_channel_descriptors.js.baseline index a7d7b2c96..c037667d6 100644 --- a/baselines/monitoring/samples/generated/v3/notification_channel_service.list_notification_channel_descriptors.js.baseline +++ b/baselines/monitoring/samples/generated/v3/notification_channel_service.list_notification_channel_descriptors.js.baseline @@ -64,7 +64,7 @@ function main(name) { }; // Run request - const iterable = await monitoringClient.listNotificationChannelDescriptorsAsync(request); + const iterable = monitoringClient.listNotificationChannelDescriptorsAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/monitoring/samples/generated/v3/notification_channel_service.list_notification_channels.js.baseline b/baselines/monitoring/samples/generated/v3/notification_channel_service.list_notification_channels.js.baseline index 905fd6d95..06ce09f80 100644 --- a/baselines/monitoring/samples/generated/v3/notification_channel_service.list_notification_channels.js.baseline +++ b/baselines/monitoring/samples/generated/v3/notification_channel_service.list_notification_channels.js.baseline @@ -79,7 +79,7 @@ function main(name) { }; // Run request - const iterable = await monitoringClient.listNotificationChannelsAsync(request); + const iterable = monitoringClient.listNotificationChannelsAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/monitoring/samples/generated/v3/service_monitoring_service.list_service_level_objectives.js.baseline b/baselines/monitoring/samples/generated/v3/service_monitoring_service.list_service_level_objectives.js.baseline index 3c2ed4563..3cd8537df 100644 --- a/baselines/monitoring/samples/generated/v3/service_monitoring_service.list_service_level_objectives.js.baseline +++ b/baselines/monitoring/samples/generated/v3/service_monitoring_service.list_service_level_objectives.js.baseline @@ -69,7 +69,7 @@ function main(parent) { }; // Run request - const iterable = await monitoringClient.listServiceLevelObjectivesAsync(request); + const iterable = monitoringClient.listServiceLevelObjectivesAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/monitoring/samples/generated/v3/service_monitoring_service.list_services.js.baseline b/baselines/monitoring/samples/generated/v3/service_monitoring_service.list_services.js.baseline index b6d85c1ee..7234dd096 100644 --- a/baselines/monitoring/samples/generated/v3/service_monitoring_service.list_services.js.baseline +++ b/baselines/monitoring/samples/generated/v3/service_monitoring_service.list_services.js.baseline @@ -74,7 +74,7 @@ function main(parent) { }; // Run request - const iterable = await monitoringClient.listServicesAsync(request); + const iterable = monitoringClient.listServicesAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/monitoring/samples/generated/v3/uptime_check_service.list_uptime_check_configs.js.baseline b/baselines/monitoring/samples/generated/v3/uptime_check_service.list_uptime_check_configs.js.baseline index b02722159..4590f149f 100644 --- a/baselines/monitoring/samples/generated/v3/uptime_check_service.list_uptime_check_configs.js.baseline +++ b/baselines/monitoring/samples/generated/v3/uptime_check_service.list_uptime_check_configs.js.baseline @@ -60,7 +60,7 @@ function main(parent) { }; // Run request - const iterable = await monitoringClient.listUptimeCheckConfigsAsync(request); + const iterable = monitoringClient.listUptimeCheckConfigsAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/monitoring/samples/generated/v3/uptime_check_service.list_uptime_check_ips.js.baseline b/baselines/monitoring/samples/generated/v3/uptime_check_service.list_uptime_check_ips.js.baseline index 66d884d22..862d9e973 100644 --- a/baselines/monitoring/samples/generated/v3/uptime_check_service.list_uptime_check_ips.js.baseline +++ b/baselines/monitoring/samples/generated/v3/uptime_check_service.list_uptime_check_ips.js.baseline @@ -56,7 +56,7 @@ function main() { }; // Run request - const iterable = await monitoringClient.listUptimeCheckIpsAsync(request); + const iterable = monitoringClient.listUptimeCheckIpsAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/naming-esm/samples/generated/v1beta1/naming.paginated_method.js.baseline b/baselines/naming-esm/samples/generated/v1beta1/naming.paginated_method.js.baseline index 423df9873..048c2edf4 100644 --- a/baselines/naming-esm/samples/generated/v1beta1/naming.paginated_method.js.baseline +++ b/baselines/naming-esm/samples/generated/v1beta1/naming.paginated_method.js.baseline @@ -51,7 +51,7 @@ function main(content) { }; // Run request - const iterable = await namingClient.paginatedMethodAsync(request); + const iterable = namingClient.paginatedMethodAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/naming/samples/generated/v1beta1/naming.paginated_method.js.baseline b/baselines/naming/samples/generated/v1beta1/naming.paginated_method.js.baseline index 423df9873..048c2edf4 100644 --- a/baselines/naming/samples/generated/v1beta1/naming.paginated_method.js.baseline +++ b/baselines/naming/samples/generated/v1beta1/naming.paginated_method.js.baseline @@ -51,7 +51,7 @@ function main(content) { }; // Run request - const iterable = await namingClient.paginatedMethodAsync(request); + const iterable = namingClient.paginatedMethodAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/redis-esm/samples/generated/v1beta1/cloud_redis.list_instances.js.baseline b/baselines/redis-esm/samples/generated/v1beta1/cloud_redis.list_instances.js.baseline index 6a9176c44..80b19d554 100644 --- a/baselines/redis-esm/samples/generated/v1beta1/cloud_redis.list_instances.js.baseline +++ b/baselines/redis-esm/samples/generated/v1beta1/cloud_redis.list_instances.js.baseline @@ -62,7 +62,7 @@ function main(parent) { }; // Run request - const iterable = await redisClient.listInstancesAsync(request); + const iterable = redisClient.listInstancesAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/redis/samples/generated/v1beta1/cloud_redis.list_instances.js.baseline b/baselines/redis/samples/generated/v1beta1/cloud_redis.list_instances.js.baseline index 6a9176c44..80b19d554 100644 --- a/baselines/redis/samples/generated/v1beta1/cloud_redis.list_instances.js.baseline +++ b/baselines/redis/samples/generated/v1beta1/cloud_redis.list_instances.js.baseline @@ -62,7 +62,7 @@ function main(parent) { }; // Run request - const iterable = await redisClient.listInstancesAsync(request); + const iterable = redisClient.listInstancesAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/showcase-legacy-esm/samples/generated/v1beta1/echo.chat.js.baseline b/baselines/showcase-legacy-esm/samples/generated/v1beta1/echo.chat.js.baseline index 5cff5549d..67a029a28 100644 --- a/baselines/showcase-legacy-esm/samples/generated/v1beta1/echo.chat.js.baseline +++ b/baselines/showcase-legacy-esm/samples/generated/v1beta1/echo.chat.js.baseline @@ -66,7 +66,7 @@ function main() { stream.on('error', (err) => { throw(err) }); stream.on('end', () => { /* API call completed */ }); stream.write(request); - stream.end(); + stream.end(); } callChat(); diff --git a/baselines/showcase-legacy-esm/samples/generated/v1beta1/echo.paged_expand.js.baseline b/baselines/showcase-legacy-esm/samples/generated/v1beta1/echo.paged_expand.js.baseline index 6a87b9026..62a7e9a1c 100644 --- a/baselines/showcase-legacy-esm/samples/generated/v1beta1/echo.paged_expand.js.baseline +++ b/baselines/showcase-legacy-esm/samples/generated/v1beta1/echo.paged_expand.js.baseline @@ -54,7 +54,7 @@ function main(content) { }; // Run request - const iterable = await showcaseClient.pagedExpandAsync(request); + const iterable = showcaseClient.pagedExpandAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/showcase-legacy-esm/samples/generated/v1beta1/echo.paged_expand_legacy_mapped.js.baseline b/baselines/showcase-legacy-esm/samples/generated/v1beta1/echo.paged_expand_legacy_mapped.js.baseline index e957aa0a3..ac1fc5b21 100644 --- a/baselines/showcase-legacy-esm/samples/generated/v1beta1/echo.paged_expand_legacy_mapped.js.baseline +++ b/baselines/showcase-legacy-esm/samples/generated/v1beta1/echo.paged_expand_legacy_mapped.js.baseline @@ -54,7 +54,7 @@ function main(content) { }; // Run request - const iterable = await showcaseClient.pagedExpandLegacyMappedAsync(request); + const iterable = showcaseClient.pagedExpandLegacyMappedAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/showcase-legacy/samples/generated/v1beta1/echo.chat.js.baseline b/baselines/showcase-legacy/samples/generated/v1beta1/echo.chat.js.baseline index 5cff5549d..67a029a28 100644 --- a/baselines/showcase-legacy/samples/generated/v1beta1/echo.chat.js.baseline +++ b/baselines/showcase-legacy/samples/generated/v1beta1/echo.chat.js.baseline @@ -66,7 +66,7 @@ function main() { stream.on('error', (err) => { throw(err) }); stream.on('end', () => { /* API call completed */ }); stream.write(request); - stream.end(); + stream.end(); } callChat(); diff --git a/baselines/showcase-legacy/samples/generated/v1beta1/echo.paged_expand.js.baseline b/baselines/showcase-legacy/samples/generated/v1beta1/echo.paged_expand.js.baseline index 6a87b9026..62a7e9a1c 100644 --- a/baselines/showcase-legacy/samples/generated/v1beta1/echo.paged_expand.js.baseline +++ b/baselines/showcase-legacy/samples/generated/v1beta1/echo.paged_expand.js.baseline @@ -54,7 +54,7 @@ function main(content) { }; // Run request - const iterable = await showcaseClient.pagedExpandAsync(request); + const iterable = showcaseClient.pagedExpandAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/showcase-legacy/samples/generated/v1beta1/echo.paged_expand_legacy_mapped.js.baseline b/baselines/showcase-legacy/samples/generated/v1beta1/echo.paged_expand_legacy_mapped.js.baseline index e957aa0a3..ac1fc5b21 100644 --- a/baselines/showcase-legacy/samples/generated/v1beta1/echo.paged_expand_legacy_mapped.js.baseline +++ b/baselines/showcase-legacy/samples/generated/v1beta1/echo.paged_expand_legacy_mapped.js.baseline @@ -54,7 +54,7 @@ function main(content) { }; // Run request - const iterable = await showcaseClient.pagedExpandLegacyMappedAsync(request); + const iterable = showcaseClient.pagedExpandLegacyMappedAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/tasks-esm/samples/generated/v2/cloud_tasks.list_queues.js.baseline b/baselines/tasks-esm/samples/generated/v2/cloud_tasks.list_queues.js.baseline index dcbc8476f..bab9d8774 100644 --- a/baselines/tasks-esm/samples/generated/v2/cloud_tasks.list_queues.js.baseline +++ b/baselines/tasks-esm/samples/generated/v2/cloud_tasks.list_queues.js.baseline @@ -78,7 +78,7 @@ function main(parent) { }; // Run request - const iterable = await tasksClient.listQueuesAsync(request); + const iterable = tasksClient.listQueuesAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/tasks-esm/samples/generated/v2/cloud_tasks.list_tasks.js.baseline b/baselines/tasks-esm/samples/generated/v2/cloud_tasks.list_tasks.js.baseline index f7806be5e..568f5c530 100644 --- a/baselines/tasks-esm/samples/generated/v2/cloud_tasks.list_tasks.js.baseline +++ b/baselines/tasks-esm/samples/generated/v2/cloud_tasks.list_tasks.js.baseline @@ -79,7 +79,7 @@ function main(parent) { }; // Run request - const iterable = await tasksClient.listTasksAsync(request); + const iterable = tasksClient.listTasksAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/tasks/samples/generated/v2/cloud_tasks.list_queues.js.baseline b/baselines/tasks/samples/generated/v2/cloud_tasks.list_queues.js.baseline index dcbc8476f..bab9d8774 100644 --- a/baselines/tasks/samples/generated/v2/cloud_tasks.list_queues.js.baseline +++ b/baselines/tasks/samples/generated/v2/cloud_tasks.list_queues.js.baseline @@ -78,7 +78,7 @@ function main(parent) { }; // Run request - const iterable = await tasksClient.listQueuesAsync(request); + const iterable = tasksClient.listQueuesAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/tasks/samples/generated/v2/cloud_tasks.list_tasks.js.baseline b/baselines/tasks/samples/generated/v2/cloud_tasks.list_tasks.js.baseline index f7806be5e..568f5c530 100644 --- a/baselines/tasks/samples/generated/v2/cloud_tasks.list_tasks.js.baseline +++ b/baselines/tasks/samples/generated/v2/cloud_tasks.list_tasks.js.baseline @@ -79,7 +79,7 @@ function main(parent) { }; // Run request - const iterable = await tasksClient.listTasksAsync(request); + const iterable = tasksClient.listTasksAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/translate-esm/samples/generated/v3beta1/translation_service.list_glossaries.js.baseline b/baselines/translate-esm/samples/generated/v3beta1/translation_service.list_glossaries.js.baseline index 81c5fd7d8..4710a3de7 100644 --- a/baselines/translate-esm/samples/generated/v3beta1/translation_service.list_glossaries.js.baseline +++ b/baselines/translate-esm/samples/generated/v3beta1/translation_service.list_glossaries.js.baseline @@ -64,7 +64,7 @@ function main(parent) { }; // Run request - const iterable = await translationClient.listGlossariesAsync(request); + const iterable = translationClient.listGlossariesAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/baselines/translate/samples/generated/v3beta1/translation_service.list_glossaries.js.baseline b/baselines/translate/samples/generated/v3beta1/translation_service.list_glossaries.js.baseline index 81c5fd7d8..4710a3de7 100644 --- a/baselines/translate/samples/generated/v3beta1/translation_service.list_glossaries.js.baseline +++ b/baselines/translate/samples/generated/v3beta1/translation_service.list_glossaries.js.baseline @@ -64,7 +64,7 @@ function main(parent) { }; // Run request - const iterable = await translationClient.listGlossariesAsync(request); + const iterable = translationClient.listGlossariesAsync(request); for await (const response of iterable) { console.log(response); } diff --git a/templates/cjs/typescript_samples/samples/generated/$version/$service.$method.js.njk b/templates/cjs/typescript_samples/samples/generated/$version/$service.$method.js.njk index a78f539e0..6d0301838 100644 --- a/templates/cjs/typescript_samples/samples/generated/$version/$service.$method.js.njk +++ b/templates/cjs/typescript_samples/samples/generated/$version/$service.$method.js.njk @@ -5,7 +5,7 @@ * NOTE: This sample is autogenerated, but this library contains handwritten * samples that are the recommended way to use this library. Please refer to * samples outside of the generated/ folder for these recommendations. - */ {% endif -%} + */ {% endif -%} {% import "./_util.njk" as util%} {% import "./_namer.njk" as namer -%} @@ -68,11 +68,11 @@ function main({%- for comment in filteredComments -%} stream.on('error', (err) => { throw(err) }); stream.on('end', () => { /* API call completed */ }); stream.write(request); - stream.end(); + stream.end(); } {% elif method in service.paging %} // Run request - const iterable = await {{ (api.naming.productName).toCamelCase() }}Client.{{ method.name.toCamelCase() }}Async(request); + const iterable = {{ (api.naming.productName).toCamelCase() }}Client.{{ method.name.toCamelCase() }}Async(request); {%- if method.pagingMapResponseType %} for await (const [key, value] of iterable) { {%- else %} diff --git a/templates/esm/typescript_samples/samples/generated/$version/$service.$method.js.njk b/templates/esm/typescript_samples/samples/generated/$version/$service.$method.js.njk index a78f539e0..6d0301838 100644 --- a/templates/esm/typescript_samples/samples/generated/$version/$service.$method.js.njk +++ b/templates/esm/typescript_samples/samples/generated/$version/$service.$method.js.njk @@ -5,7 +5,7 @@ * NOTE: This sample is autogenerated, but this library contains handwritten * samples that are the recommended way to use this library. Please refer to * samples outside of the generated/ folder for these recommendations. - */ {% endif -%} + */ {% endif -%} {% import "./_util.njk" as util%} {% import "./_namer.njk" as namer -%} @@ -68,11 +68,11 @@ function main({%- for comment in filteredComments -%} stream.on('error', (err) => { throw(err) }); stream.on('end', () => { /* API call completed */ }); stream.write(request); - stream.end(); + stream.end(); } {% elif method in service.paging %} // Run request - const iterable = await {{ (api.naming.productName).toCamelCase() }}Client.{{ method.name.toCamelCase() }}Async(request); + const iterable = {{ (api.naming.productName).toCamelCase() }}Client.{{ method.name.toCamelCase() }}Async(request); {%- if method.pagingMapResponseType %} for await (const [key, value] of iterable) { {%- else %} From e731e912537599540c9efbe158409ab0f78c8882 Mon Sep 17 00:00:00 2001 From: sofisl <55454395+sofisl@users.noreply.github.com> Date: Wed, 31 Jan 2024 11:21:02 -0800 Subject: [PATCH 10/35] feat: add UUID autogeneration for fields listed as autoPopulate in service.yaml (#1511) * feat: add UUID autogeneration for fields listed as autoPopulate in service.yaml --- baselines/asset-esm/package.json | 2 +- baselines/asset/package.json | 2 +- .../src/v1/asset_service_client.ts.baseline | 1 + baselines/bigquery-storage-esm/package.json | 2 +- baselines/bigquery-storage/package.json | 2 +- .../big_query_storage_client.ts.baseline | 1 + baselines/compute-esm/package.json | 2 +- baselines/compute/package.json | 2 +- .../src/v1/addresses_client.ts.baseline | 1 + .../v1/region_operations_client.ts.baseline | 1 + baselines/deprecatedtest-esm/package.json | 2 +- baselines/deprecatedtest/package.json | 2 +- .../v1/deprecated_service_client.ts.baseline | 1 + .../esm/src/v1beta1/echo_client.ts.baseline | 2 + .../disable-packing-test-esm/package.json | 2 +- .../showcase/v1beta1/echo.proto.baseline | 12 +- baselines/disable-packing-test/package.json | 2 +- .../showcase/v1beta1/echo.proto.baseline | 12 +- .../src/v1beta1/compliance_client.ts.baseline | 1 + .../src/v1beta1/echo_client.ts.baseline | 3 + .../src/v1beta1/identity_client.ts.baseline | 1 + .../src/v1beta1/messaging_client.ts.baseline | 1 + .../sequence_service_client.ts.baseline | 1 + .../src/v1beta1/testing_client.ts.baseline | 1 + baselines/dlp-esm/package.json | 2 +- baselines/dlp/package.json | 2 +- .../dlp/src/v2/dlp_service_client.ts.baseline | 1 + baselines/kms-esm/package.json | 2 +- baselines/kms/package.json | 2 +- .../key_management_service_client.ts.baseline | 1 + baselines/logging-esm/package.json | 2 +- baselines/logging/package.json | 2 +- .../v2/config_service_v2_client.ts.baseline | 1 + .../v2/logging_service_v2_client.ts.baseline | 1 + .../v2/metrics_service_v2_client.ts.baseline | 1 + baselines/monitoring-esm/package.json | 2 +- baselines/monitoring/package.json | 2 +- .../alert_policy_service_client.ts.baseline | 1 + .../src/v3/group_service_client.ts.baseline | 1 + .../src/v3/metric_service_client.ts.baseline | 1 + ...ication_channel_service_client.ts.baseline | 1 + ...vice_monitoring_service_client.ts.baseline | 1 + .../uptime_check_service_client.ts.baseline | 1 + baselines/naming-esm/package.json | 2 +- baselines/naming/package.json | 2 +- .../src/v1beta1/naming_client.ts.baseline | 1 + .../pubsub-api-dump-esm/api.json.baseline | 63 + baselines/pubsub-api-dump/api.json.baseline | 63 + baselines/redis-esm/package.json | 2 +- baselines/redis/package.json | 2 +- .../v1beta1/cloud_redis_client.ts.baseline | 1 + baselines/routingtest-esm/package.json | 2 +- baselines/routingtest/package.json | 2 +- .../src/v1/test_service_client.ts.baseline | 1 + baselines/showcase-api-dump/api.json.baseline | 31592 ++++++++++++++++ .../cloud/common_resources.proto.baseline | 52 + .../v1beta1/compliance.proto.baseline | 269 + .../showcase/v1beta1/echo.proto.baseline | 322 + .../showcase/v1beta1/identity.proto.baseline | 186 + .../showcase/v1beta1/messaging.proto.baseline | 520 + .../showcase/v1beta1/sequence.proto.baseline | 136 + .../showcase/v1beta1/testing.proto.baseline | 386 + .../esm/src/v1beta1/echo_client.ts.baseline | 5 + .../esm/test/gapic_echo_v1beta1.ts.baseline | 12 +- baselines/showcase-esm/package.json | 2 +- .../showcase/v1beta1/echo.proto.baseline | 12 +- .../esm/src/v1beta1/echo_client.ts.baseline | 2 + baselines/showcase-legacy-esm/package.json | 2 +- .../showcase/v1beta1/echo.proto.baseline | 12 +- .../generated/v1beta1/echo.chat.js.baseline | 4 + .../v1beta1/echo.collect.js.baseline | 4 + .../generated/v1beta1/echo.echo.js.baseline | 4 + ...data_google.showcase.v1beta1.json.baseline | 18 +- baselines/showcase-legacy/package.json | 2 +- .../showcase/v1beta1/echo.proto.baseline | 12 +- .../generated/v1beta1/echo.chat.js.baseline | 4 + .../v1beta1/echo.collect.js.baseline | 4 + .../generated/v1beta1/echo.echo.js.baseline | 4 + ...data_google.showcase.v1beta1.json.baseline | 18 +- .../src/v1beta1/echo_client.ts.baseline | 3 + baselines/showcase/package.json | 2 +- .../showcase/v1beta1/echo.proto.baseline | 12 +- .../src/v1beta1/compliance_client.ts.baseline | 1 + .../src/v1beta1/echo_client.ts.baseline | 10 +- .../src/v1beta1/identity_client.ts.baseline | 1 + .../src/v1beta1/messaging_client.ts.baseline | 1 + .../sequence_service_client.ts.baseline | 1 + .../src/v1beta1/testing_client.ts.baseline | 1 + .../test/gapic_echo_v1beta1.ts.baseline | 12 +- baselines/tasks-esm/package.json | 2 +- baselines/tasks/package.json | 2 +- .../src/v2/cloud_tasks_client.ts.baseline | 1 + baselines/texttospeech-esm/package.json | 2 +- baselines/texttospeech/package.json | 2 +- .../src/v1/text_to_speech_client.ts.baseline | 1 + baselines/translate-esm/package.json | 2 +- baselines/translate/package.json | 2 +- .../translation_service_client.ts.baseline | 1 + baselines/videointelligence-esm/package.json | 2 +- baselines/videointelligence/package.json | 2 +- ...eo_intelligence_service_client.ts.baseline | 1 + package-lock.json | 37 +- package.json | 6 +- pnpm-lock.yaml | 894 +- protos/index.d.ts | 919 +- protos/index.js | 4063 +- protos/protos.json | 406 +- templates/cjs/typescript_gapic/_util.njk | 7 + templates/cjs/typescript_gapic/package.json | 2 +- .../src/$version/$service_client.ts.njk | 31 +- .../test/gapic_$service_$version.ts.njk | 18 + templates/esm/typescript_gapic/_util.njk | 7 + .../esm/src/$version/$service_client.ts.njk | 20 + .../esm/test/gapic_$service_$version.ts.njk | 18 + templates/esm/typescript_gapic/package.json | 2 +- .../protos/google/showcase/v1beta1/echo.proto | 12 +- .../showcase/v1beta1/showcase_v1beta1.yaml | 6 + typescript/src/schema/comments.ts | 10 + typescript/src/schema/proto.ts | 57 +- typescript/src/serviceyaml.ts | 8 + typescript/test/unit/proto.ts | 417 +- yarn.lock | 381 +- 122 files changed, 39896 insertions(+), 1300 deletions(-) create mode 100644 baselines/showcase-api-dump/api.json.baseline create mode 100755 baselines/showcase-api-dump/protos/google/cloud/common_resources.proto.baseline create mode 100755 baselines/showcase-api-dump/protos/google/showcase/v1beta1/compliance.proto.baseline create mode 100755 baselines/showcase-api-dump/protos/google/showcase/v1beta1/echo.proto.baseline create mode 100755 baselines/showcase-api-dump/protos/google/showcase/v1beta1/identity.proto.baseline create mode 100755 baselines/showcase-api-dump/protos/google/showcase/v1beta1/messaging.proto.baseline create mode 100755 baselines/showcase-api-dump/protos/google/showcase/v1beta1/sequence.proto.baseline create mode 100755 baselines/showcase-api-dump/protos/google/showcase/v1beta1/testing.proto.baseline diff --git a/baselines/asset-esm/package.json b/baselines/asset-esm/package.json index 078d0709f..b9c727d64 100644 --- a/baselines/asset-esm/package.json +++ b/baselines/asset-esm/package.json @@ -63,7 +63,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.1.0" + "google-gax": "^4.2.1" }, "devDependencies": { "@babel/cli": "^7.23.0", diff --git a/baselines/asset/package.json b/baselines/asset/package.json index dbac01af0..6cc474e54 100644 --- a/baselines/asset/package.json +++ b/baselines/asset/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.1.0" + "google-gax": "^4.2.1" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/asset/src/v1/asset_service_client.ts.baseline b/baselines/asset/src/v1/asset_service_client.ts.baseline index 0a30daf0d..2bf6230ee 100644 --- a/baselines/asset/src/v1/asset_service_client.ts.baseline +++ b/baselines/asset/src/v1/asset_service_client.ts.baseline @@ -22,6 +22,7 @@ import type {Callback, CallOptions, Descriptors, ClientOptions, GrpcClientOption import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); + /** * Client JSON configuration object, loaded from * `src/v1/asset_service_client_config.json`. diff --git a/baselines/bigquery-storage-esm/package.json b/baselines/bigquery-storage-esm/package.json index 15ffff714..2d37d4c5d 100644 --- a/baselines/bigquery-storage-esm/package.json +++ b/baselines/bigquery-storage-esm/package.json @@ -63,7 +63,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.1.0" + "google-gax": "^4.2.1" }, "devDependencies": { "@babel/cli": "^7.23.0", diff --git a/baselines/bigquery-storage/package.json b/baselines/bigquery-storage/package.json index cd683ee9a..84cead742 100644 --- a/baselines/bigquery-storage/package.json +++ b/baselines/bigquery-storage/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.1.0" + "google-gax": "^4.2.1" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/bigquery-storage/src/v1beta1/big_query_storage_client.ts.baseline b/baselines/bigquery-storage/src/v1beta1/big_query_storage_client.ts.baseline index 836989259..55570d828 100644 --- a/baselines/bigquery-storage/src/v1beta1/big_query_storage_client.ts.baseline +++ b/baselines/bigquery-storage/src/v1beta1/big_query_storage_client.ts.baseline @@ -22,6 +22,7 @@ import type {Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax import {PassThrough} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); + /** * Client JSON configuration object, loaded from * `src/v1beta1/big_query_storage_client_config.json`. diff --git a/baselines/compute-esm/package.json b/baselines/compute-esm/package.json index 063083e10..b760f5f6b 100644 --- a/baselines/compute-esm/package.json +++ b/baselines/compute-esm/package.json @@ -64,7 +64,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.1.0" + "google-gax": "^4.2.1" }, "devDependencies": { "@babel/cli": "^7.23.0", diff --git a/baselines/compute/package.json b/baselines/compute/package.json index 52446b649..c1e3293f2 100644 --- a/baselines/compute/package.json +++ b/baselines/compute/package.json @@ -36,7 +36,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.1.0" + "google-gax": "^4.2.1" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/compute/src/v1/addresses_client.ts.baseline b/baselines/compute/src/v1/addresses_client.ts.baseline index 0d811e876..9298a1f77 100644 --- a/baselines/compute/src/v1/addresses_client.ts.baseline +++ b/baselines/compute/src/v1/addresses_client.ts.baseline @@ -22,6 +22,7 @@ import type {Callback, CallOptions, Descriptors, ClientOptions, LROperation, Pag import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); + /** * Client JSON configuration object, loaded from * `src/v1/addresses_client_config.json`. diff --git a/baselines/compute/src/v1/region_operations_client.ts.baseline b/baselines/compute/src/v1/region_operations_client.ts.baseline index b2d8bc829..72ae8c599 100644 --- a/baselines/compute/src/v1/region_operations_client.ts.baseline +++ b/baselines/compute/src/v1/region_operations_client.ts.baseline @@ -22,6 +22,7 @@ import type {Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); + /** * Client JSON configuration object, loaded from * `src/v1/region_operations_client_config.json`. diff --git a/baselines/deprecatedtest-esm/package.json b/baselines/deprecatedtest-esm/package.json index 54611c8c0..bec5a5188 100644 --- a/baselines/deprecatedtest-esm/package.json +++ b/baselines/deprecatedtest-esm/package.json @@ -63,7 +63,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.1.0" + "google-gax": "^4.2.1" }, "devDependencies": { "@babel/cli": "^7.23.0", diff --git a/baselines/deprecatedtest/package.json b/baselines/deprecatedtest/package.json index b356a53e0..8a194c192 100644 --- a/baselines/deprecatedtest/package.json +++ b/baselines/deprecatedtest/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.1.0" + "google-gax": "^4.2.1" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/deprecatedtest/src/v1/deprecated_service_client.ts.baseline b/baselines/deprecatedtest/src/v1/deprecated_service_client.ts.baseline index 28ba8d236..2839912ba 100644 --- a/baselines/deprecatedtest/src/v1/deprecated_service_client.ts.baseline +++ b/baselines/deprecatedtest/src/v1/deprecated_service_client.ts.baseline @@ -22,6 +22,7 @@ import type {Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); + /** * Client JSON configuration object, loaded from * `src/v1/deprecated_service_client_config.json`. diff --git a/baselines/disable-packing-test-esm/esm/src/v1beta1/echo_client.ts.baseline b/baselines/disable-packing-test-esm/esm/src/v1beta1/echo_client.ts.baseline index 206c32b8a..d1a373526 100644 --- a/baselines/disable-packing-test-esm/esm/src/v1beta1/echo_client.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/src/v1beta1/echo_client.ts.baseline @@ -401,6 +401,8 @@ export class EchoClient { * The request object that will be sent. * @param {string} request.content * The content to be echoed by the server. + * @param {string} request.requestId + * A random request_id to test autopopulation * @param {google.rpc.Status} request.error * The error to be thrown by the server. * @param {google.showcase.v1beta1.Severity} request.severity diff --git a/baselines/disable-packing-test-esm/package.json b/baselines/disable-packing-test-esm/package.json index 1a8f8de72..bac611d06 100644 --- a/baselines/disable-packing-test-esm/package.json +++ b/baselines/disable-packing-test-esm/package.json @@ -68,7 +68,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.1.0" + "google-gax": "^4.2.1" }, "devDependencies": { "@babel/cli": "^7.23.0", diff --git a/baselines/disable-packing-test-esm/protos/google/showcase/v1beta1/echo.proto.baseline b/baselines/disable-packing-test-esm/protos/google/showcase/v1beta1/echo.proto.baseline index 1b1b160f0..5e2ba2765 100755 --- a/baselines/disable-packing-test-esm/protos/google/showcase/v1beta1/echo.proto.baseline +++ b/baselines/disable-packing-test-esm/protos/google/showcase/v1beta1/echo.proto.baseline @@ -17,6 +17,7 @@ syntax = "proto3"; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; import "google/api/routing.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/duration.proto"; @@ -183,18 +184,21 @@ message EchoRequest { // The content to be echoed by the server. string content = 1; + // A random request_id to test autopopulation + string request_id = 2 [(google.api.field_info).format = UUID4]; + // The error to be thrown by the server. - google.rpc.Status error = 2; + google.rpc.Status error = 3; } // The severity to be echoed by the server. - Severity severity = 3; + Severity severity = 4; // Optional. This field can be set to test the routing annotation on the Echo method. - string header = 4; + string header = 5; // Optional. This field can be set to test the routing annotation on the Echo method. - string other_header = 5; + string other_header = 6; } // The response message for the Echo methods. diff --git a/baselines/disable-packing-test/package.json b/baselines/disable-packing-test/package.json index 408c99bde..dfcb52082 100644 --- a/baselines/disable-packing-test/package.json +++ b/baselines/disable-packing-test/package.json @@ -40,7 +40,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.1.0" + "google-gax": "^4.2.1" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/disable-packing-test/protos/google/showcase/v1beta1/echo.proto.baseline b/baselines/disable-packing-test/protos/google/showcase/v1beta1/echo.proto.baseline index 1b1b160f0..5e2ba2765 100755 --- a/baselines/disable-packing-test/protos/google/showcase/v1beta1/echo.proto.baseline +++ b/baselines/disable-packing-test/protos/google/showcase/v1beta1/echo.proto.baseline @@ -17,6 +17,7 @@ syntax = "proto3"; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; import "google/api/routing.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/duration.proto"; @@ -183,18 +184,21 @@ message EchoRequest { // The content to be echoed by the server. string content = 1; + // A random request_id to test autopopulation + string request_id = 2 [(google.api.field_info).format = UUID4]; + // The error to be thrown by the server. - google.rpc.Status error = 2; + google.rpc.Status error = 3; } // The severity to be echoed by the server. - Severity severity = 3; + Severity severity = 4; // Optional. This field can be set to test the routing annotation on the Echo method. - string header = 4; + string header = 5; // Optional. This field can be set to test the routing annotation on the Echo method. - string other_header = 5; + string other_header = 6; } // The response message for the Echo methods. diff --git a/baselines/disable-packing-test/src/v1beta1/compliance_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/compliance_client.ts.baseline index e0884efd2..c61648dd0 100644 --- a/baselines/disable-packing-test/src/v1beta1/compliance_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/compliance_client.ts.baseline @@ -22,6 +22,7 @@ import type {Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); + /** * Client JSON configuration object, loaded from * `src/v1beta1/compliance_client_config.json`. diff --git a/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline index 35128ce1f..d6101be14 100644 --- a/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline @@ -22,6 +22,7 @@ import type {Callback, CallOptions, Descriptors, ClientOptions, GrpcClientOption import {Transform, PassThrough} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); + /** * Client JSON configuration object, loaded from * `src/v1beta1/echo_client_config.json`. @@ -384,6 +385,8 @@ export class EchoClient { * The request object that will be sent. * @param {string} request.content * The content to be echoed by the server. + * @param {string} request.requestId + * A random request_id to test autopopulation * @param {google.rpc.Status} request.error * The error to be thrown by the server. * @param {google.showcase.v1beta1.Severity} request.severity diff --git a/baselines/disable-packing-test/src/v1beta1/identity_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/identity_client.ts.baseline index 54b1cbc27..a1e63d69f 100644 --- a/baselines/disable-packing-test/src/v1beta1/identity_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/identity_client.ts.baseline @@ -22,6 +22,7 @@ import type {Callback, CallOptions, Descriptors, ClientOptions, PaginationCallba import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); + /** * Client JSON configuration object, loaded from * `src/v1beta1/identity_client_config.json`. diff --git a/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline index e04589af4..7d88f41d9 100644 --- a/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline @@ -22,6 +22,7 @@ import type {Callback, CallOptions, Descriptors, ClientOptions, GrpcClientOption import {Transform, PassThrough} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); + /** * Client JSON configuration object, loaded from * `src/v1beta1/messaging_client_config.json`. diff --git a/baselines/disable-packing-test/src/v1beta1/sequence_service_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/sequence_service_client.ts.baseline index a689a3eeb..4299c9276 100644 --- a/baselines/disable-packing-test/src/v1beta1/sequence_service_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/sequence_service_client.ts.baseline @@ -22,6 +22,7 @@ import type {Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); + /** * Client JSON configuration object, loaded from * `src/v1beta1/sequence_service_client_config.json`. diff --git a/baselines/disable-packing-test/src/v1beta1/testing_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/testing_client.ts.baseline index e5b33db08..4cc838f36 100644 --- a/baselines/disable-packing-test/src/v1beta1/testing_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/testing_client.ts.baseline @@ -22,6 +22,7 @@ import type {Callback, CallOptions, Descriptors, ClientOptions, PaginationCallba import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); + /** * Client JSON configuration object, loaded from * `src/v1beta1/testing_client_config.json`. diff --git a/baselines/dlp-esm/package.json b/baselines/dlp-esm/package.json index c3f82c72d..8062a0f76 100644 --- a/baselines/dlp-esm/package.json +++ b/baselines/dlp-esm/package.json @@ -63,7 +63,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.1.0" + "google-gax": "^4.2.1" }, "devDependencies": { "@babel/cli": "^7.23.0", diff --git a/baselines/dlp/package.json b/baselines/dlp/package.json index a2af373f5..a87f5ba1c 100644 --- a/baselines/dlp/package.json +++ b/baselines/dlp/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.1.0" + "google-gax": "^4.2.1" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/dlp/src/v2/dlp_service_client.ts.baseline b/baselines/dlp/src/v2/dlp_service_client.ts.baseline index 149860fb3..8d3ebb824 100644 --- a/baselines/dlp/src/v2/dlp_service_client.ts.baseline +++ b/baselines/dlp/src/v2/dlp_service_client.ts.baseline @@ -22,6 +22,7 @@ import type {Callback, CallOptions, Descriptors, ClientOptions, PaginationCallba import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); + /** * Client JSON configuration object, loaded from * `src/v2/dlp_service_client_config.json`. diff --git a/baselines/kms-esm/package.json b/baselines/kms-esm/package.json index b53baf2b2..29040e384 100644 --- a/baselines/kms-esm/package.json +++ b/baselines/kms-esm/package.json @@ -63,7 +63,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.1.0" + "google-gax": "^4.2.1" }, "devDependencies": { "@babel/cli": "^7.23.0", diff --git a/baselines/kms/package.json b/baselines/kms/package.json index e31ea23a1..c580a89ee 100644 --- a/baselines/kms/package.json +++ b/baselines/kms/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.1.0" + "google-gax": "^4.2.1" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/kms/src/v1/key_management_service_client.ts.baseline b/baselines/kms/src/v1/key_management_service_client.ts.baseline index 27c90cae6..ccb5915d2 100644 --- a/baselines/kms/src/v1/key_management_service_client.ts.baseline +++ b/baselines/kms/src/v1/key_management_service_client.ts.baseline @@ -22,6 +22,7 @@ import type {Callback, CallOptions, Descriptors, ClientOptions, PaginationCallba import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); + /** * Client JSON configuration object, loaded from * `src/v1/key_management_service_client_config.json`. diff --git a/baselines/logging-esm/package.json b/baselines/logging-esm/package.json index c8f4088fa..5d54e494a 100644 --- a/baselines/logging-esm/package.json +++ b/baselines/logging-esm/package.json @@ -65,7 +65,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.1.0" + "google-gax": "^4.2.1" }, "devDependencies": { "@babel/cli": "^7.23.0", diff --git a/baselines/logging/package.json b/baselines/logging/package.json index 83b550807..381c62a1b 100644 --- a/baselines/logging/package.json +++ b/baselines/logging/package.json @@ -37,7 +37,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.1.0" + "google-gax": "^4.2.1" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/logging/src/v2/config_service_v2_client.ts.baseline b/baselines/logging/src/v2/config_service_v2_client.ts.baseline index 8251999ba..bd2805a42 100644 --- a/baselines/logging/src/v2/config_service_v2_client.ts.baseline +++ b/baselines/logging/src/v2/config_service_v2_client.ts.baseline @@ -22,6 +22,7 @@ import type {Callback, CallOptions, Descriptors, ClientOptions, GrpcClientOption import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); + /** * Client JSON configuration object, loaded from * `src/v2/config_service_v2_client_config.json`. diff --git a/baselines/logging/src/v2/logging_service_v2_client.ts.baseline b/baselines/logging/src/v2/logging_service_v2_client.ts.baseline index 176a89fd4..5193741be 100644 --- a/baselines/logging/src/v2/logging_service_v2_client.ts.baseline +++ b/baselines/logging/src/v2/logging_service_v2_client.ts.baseline @@ -22,6 +22,7 @@ import type {Callback, CallOptions, Descriptors, ClientOptions, PaginationCallba import {Transform, PassThrough} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); + /** * Client JSON configuration object, loaded from * `src/v2/logging_service_v2_client_config.json`. diff --git a/baselines/logging/src/v2/metrics_service_v2_client.ts.baseline b/baselines/logging/src/v2/metrics_service_v2_client.ts.baseline index 2860426e0..246faa3a6 100644 --- a/baselines/logging/src/v2/metrics_service_v2_client.ts.baseline +++ b/baselines/logging/src/v2/metrics_service_v2_client.ts.baseline @@ -22,6 +22,7 @@ import type {Callback, CallOptions, Descriptors, ClientOptions, PaginationCallba import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); + /** * Client JSON configuration object, loaded from * `src/v2/metrics_service_v2_client_config.json`. diff --git a/baselines/monitoring-esm/package.json b/baselines/monitoring-esm/package.json index c23a0f338..ed40506d1 100644 --- a/baselines/monitoring-esm/package.json +++ b/baselines/monitoring-esm/package.json @@ -68,7 +68,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.1.0" + "google-gax": "^4.2.1" }, "devDependencies": { "@babel/cli": "^7.23.0", diff --git a/baselines/monitoring/package.json b/baselines/monitoring/package.json index c4ce87451..8828476e4 100644 --- a/baselines/monitoring/package.json +++ b/baselines/monitoring/package.json @@ -40,7 +40,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.1.0" + "google-gax": "^4.2.1" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/monitoring/src/v3/alert_policy_service_client.ts.baseline b/baselines/monitoring/src/v3/alert_policy_service_client.ts.baseline index 68184ad41..39642f4f5 100644 --- a/baselines/monitoring/src/v3/alert_policy_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/alert_policy_service_client.ts.baseline @@ -22,6 +22,7 @@ import type {Callback, CallOptions, Descriptors, ClientOptions, PaginationCallba import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); + /** * Client JSON configuration object, loaded from * `src/v3/alert_policy_service_client_config.json`. diff --git a/baselines/monitoring/src/v3/group_service_client.ts.baseline b/baselines/monitoring/src/v3/group_service_client.ts.baseline index 196eaf73b..6d99fd227 100644 --- a/baselines/monitoring/src/v3/group_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/group_service_client.ts.baseline @@ -22,6 +22,7 @@ import type {Callback, CallOptions, Descriptors, ClientOptions, PaginationCallba import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); + /** * Client JSON configuration object, loaded from * `src/v3/group_service_client_config.json`. diff --git a/baselines/monitoring/src/v3/metric_service_client.ts.baseline b/baselines/monitoring/src/v3/metric_service_client.ts.baseline index 5abe0f971..9520b0c26 100644 --- a/baselines/monitoring/src/v3/metric_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/metric_service_client.ts.baseline @@ -22,6 +22,7 @@ import type {Callback, CallOptions, Descriptors, ClientOptions, PaginationCallba import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); + /** * Client JSON configuration object, loaded from * `src/v3/metric_service_client_config.json`. diff --git a/baselines/monitoring/src/v3/notification_channel_service_client.ts.baseline b/baselines/monitoring/src/v3/notification_channel_service_client.ts.baseline index 8c07bc93e..4efcdb8ae 100644 --- a/baselines/monitoring/src/v3/notification_channel_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/notification_channel_service_client.ts.baseline @@ -22,6 +22,7 @@ import type {Callback, CallOptions, Descriptors, ClientOptions, PaginationCallba import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); + /** * Client JSON configuration object, loaded from * `src/v3/notification_channel_service_client_config.json`. diff --git a/baselines/monitoring/src/v3/service_monitoring_service_client.ts.baseline b/baselines/monitoring/src/v3/service_monitoring_service_client.ts.baseline index ffedd2b79..6f97fc87f 100644 --- a/baselines/monitoring/src/v3/service_monitoring_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/service_monitoring_service_client.ts.baseline @@ -22,6 +22,7 @@ import type {Callback, CallOptions, Descriptors, ClientOptions, PaginationCallba import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); + /** * Client JSON configuration object, loaded from * `src/v3/service_monitoring_service_client_config.json`. diff --git a/baselines/monitoring/src/v3/uptime_check_service_client.ts.baseline b/baselines/monitoring/src/v3/uptime_check_service_client.ts.baseline index 15632c9e9..952e71da1 100644 --- a/baselines/monitoring/src/v3/uptime_check_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/uptime_check_service_client.ts.baseline @@ -22,6 +22,7 @@ import type {Callback, CallOptions, Descriptors, ClientOptions, PaginationCallba import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); + /** * Client JSON configuration object, loaded from * `src/v3/uptime_check_service_client_config.json`. diff --git a/baselines/naming-esm/package.json b/baselines/naming-esm/package.json index 52da159f5..388d6e2e8 100644 --- a/baselines/naming-esm/package.json +++ b/baselines/naming-esm/package.json @@ -63,7 +63,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.1.0" + "google-gax": "^4.2.1" }, "devDependencies": { "@babel/cli": "^7.23.0", diff --git a/baselines/naming/package.json b/baselines/naming/package.json index ad5d89c5c..75a9387aa 100644 --- a/baselines/naming/package.json +++ b/baselines/naming/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.1.0" + "google-gax": "^4.2.1" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/naming/src/v1beta1/naming_client.ts.baseline b/baselines/naming/src/v1beta1/naming_client.ts.baseline index 04e22c981..ee4491062 100644 --- a/baselines/naming/src/v1beta1/naming_client.ts.baseline +++ b/baselines/naming/src/v1beta1/naming_client.ts.baseline @@ -22,6 +22,7 @@ import type {Callback, CallOptions, Descriptors, ClientOptions, GrpcClientOption import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); + /** * Client JSON configuration object, loaded from * `src/v1beta1/naming_client_config.json`. diff --git a/baselines/pubsub-api-dump-esm/api.json.baseline b/baselines/pubsub-api-dump-esm/api.json.baseline index eabfe63c7..145bb7c89 100644 --- a/baselines/pubsub-api-dump-esm/api.json.baseline +++ b/baselines/pubsub-api-dump-esm/api.json.baseline @@ -17,6 +17,7 @@ "name": "Publisher", "method": [ { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.Topic", "outputInterface": ".google.pubsub.v1.Topic", "comments": [ @@ -104,6 +105,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.UpdateTopicRequest", "outputInterface": ".google.pubsub.v1.Topic", "comments": [ @@ -154,6 +156,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.PublishRequest", "outputInterface": ".google.pubsub.v1.PublishResponse", "comments": [ @@ -203,6 +206,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.GetTopicRequest", "outputInterface": ".google.pubsub.v1.Topic", "comments": [ @@ -242,6 +246,7 @@ ] }, { + "autoPopulatedFields": [], "pagingFieldName": "topics", "pagingResponseType": ".google.pubsub.v1.Topic", "inputInterface": ".google.pubsub.v1.ListTopicsRequest", @@ -299,6 +304,7 @@ ] }, { + "autoPopulatedFields": [], "pagingFieldName": "subscriptions", "pagingResponseType": ".google.protobuf.FieldDescriptorProto.Type.TYPE_STRING", "inputInterface": ".google.pubsub.v1.ListTopicSubscriptionsRequest", @@ -356,6 +362,7 @@ ] }, { + "autoPopulatedFields": [], "pagingFieldName": "snapshots", "pagingResponseType": ".google.protobuf.FieldDescriptorProto.Type.TYPE_STRING", "inputInterface": ".google.pubsub.v1.ListTopicSnapshotsRequest", @@ -417,6 +424,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.DeleteTopicRequest", "outputInterface": ".google.protobuf.Empty", "comments": [ @@ -460,6 +468,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.DetachSubscriptionRequest", "outputInterface": ".google.pubsub.v1.DetachSubscriptionResponse", "comments": [ @@ -4471,6 +4480,7 @@ "bundleConfigsMethods": [], "simpleMethods": [ { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.Topic", "outputInterface": ".google.pubsub.v1.Topic", "comments": [ @@ -4558,6 +4568,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.UpdateTopicRequest", "outputInterface": ".google.pubsub.v1.Topic", "comments": [ @@ -4608,6 +4619,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.PublishRequest", "outputInterface": ".google.pubsub.v1.PublishResponse", "comments": [ @@ -4657,6 +4669,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.GetTopicRequest", "outputInterface": ".google.pubsub.v1.Topic", "comments": [ @@ -4696,6 +4709,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.DeleteTopicRequest", "outputInterface": ".google.protobuf.Empty", "comments": [ @@ -4739,6 +4753,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.DetachSubscriptionRequest", "outputInterface": ".google.pubsub.v1.DetachSubscriptionResponse", "comments": [ @@ -4786,6 +4801,7 @@ "bidiStreaming": [], "paging": [ { + "autoPopulatedFields": [], "pagingFieldName": "topics", "pagingResponseType": ".google.pubsub.v1.Topic", "inputInterface": ".google.pubsub.v1.ListTopicsRequest", @@ -4843,6 +4859,7 @@ ] }, { + "autoPopulatedFields": [], "pagingFieldName": "subscriptions", "pagingResponseType": ".google.protobuf.FieldDescriptorProto.Type.TYPE_STRING", "inputInterface": ".google.pubsub.v1.ListTopicSubscriptionsRequest", @@ -4900,6 +4917,7 @@ ] }, { + "autoPopulatedFields": [], "pagingFieldName": "snapshots", "pagingResponseType": ".google.protobuf.FieldDescriptorProto.Type.TYPE_STRING", "inputInterface": ".google.pubsub.v1.ListTopicSnapshotsRequest", @@ -5028,6 +5046,7 @@ "name": "SchemaService", "method": [ { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.CreateSchemaRequest", "outputInterface": ".google.pubsub.v1.Schema", "comments": [ @@ -5091,6 +5110,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.GetSchemaRequest", "outputInterface": ".google.pubsub.v1.Schema", "comments": [ @@ -5139,6 +5159,7 @@ ] }, { + "autoPopulatedFields": [], "pagingFieldName": "schemas", "pagingResponseType": ".google.pubsub.v1.Schema", "inputInterface": ".google.pubsub.v1.ListSchemasRequest", @@ -5205,6 +5226,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.DeleteSchemaRequest", "outputInterface": ".google.protobuf.Empty", "comments": [ @@ -5244,6 +5266,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.ValidateSchemaRequest", "outputInterface": ".google.pubsub.v1.ValidateSchemaResponse", "comments": [ @@ -5292,6 +5315,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.ValidateMessageRequest", "outputInterface": ".google.pubsub.v1.ValidateMessageResponse", "comments": [ @@ -9330,6 +9354,7 @@ "bundleConfigsMethods": [], "simpleMethods": [ { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.CreateSchemaRequest", "outputInterface": ".google.pubsub.v1.Schema", "comments": [ @@ -9393,6 +9418,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.GetSchemaRequest", "outputInterface": ".google.pubsub.v1.Schema", "comments": [ @@ -9441,6 +9467,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.DeleteSchemaRequest", "outputInterface": ".google.protobuf.Empty", "comments": [ @@ -9480,6 +9507,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.ValidateSchemaRequest", "outputInterface": ".google.pubsub.v1.ValidateSchemaResponse", "comments": [ @@ -9528,6 +9556,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.ValidateMessageRequest", "outputInterface": ".google.pubsub.v1.ValidateMessageResponse", "comments": [ @@ -9603,6 +9632,7 @@ "bidiStreaming": [], "paging": [ { + "autoPopulatedFields": [], "pagingFieldName": "schemas", "pagingResponseType": ".google.pubsub.v1.Schema", "inputInterface": ".google.pubsub.v1.ListSchemasRequest", @@ -9736,6 +9766,7 @@ "name": "Subscriber", "method": [ { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.Subscription", "outputInterface": ".google.pubsub.v1.Subscription", "comments": [ @@ -9937,6 +9968,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.GetSubscriptionRequest", "outputInterface": ".google.pubsub.v1.Subscription", "comments": [ @@ -9976,6 +10008,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.UpdateSubscriptionRequest", "outputInterface": ".google.pubsub.v1.Subscription", "comments": [ @@ -10023,6 +10056,7 @@ ] }, { + "autoPopulatedFields": [], "pagingFieldName": "subscriptions", "pagingResponseType": ".google.pubsub.v1.Subscription", "inputInterface": ".google.pubsub.v1.ListSubscriptionsRequest", @@ -10080,6 +10114,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.DeleteSubscriptionRequest", "outputInterface": ".google.protobuf.Empty", "comments": [ @@ -10123,6 +10158,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.ModifyAckDeadlineRequest", "outputInterface": ".google.protobuf.Empty", "comments": [ @@ -10190,6 +10226,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.AcknowledgeRequest", "outputInterface": ".google.protobuf.Empty", "comments": [ @@ -10246,6 +10283,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.PullRequest", "outputInterface": ".google.pubsub.v1.PullResponse", "comments": [ @@ -10312,6 +10350,7 @@ ] }, { + "autoPopulatedFields": [], "streaming": "BIDI_STREAMING", "inputInterface": ".google.pubsub.v1.StreamingPullRequest", "outputInterface": ".google.pubsub.v1.StreamingPullResponse", @@ -10442,6 +10481,7 @@ "headerRequestParams": [] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.ModifyPushConfigRequest", "outputInterface": ".google.protobuf.Empty", "comments": [ @@ -10500,6 +10540,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.GetSnapshotRequest", "outputInterface": ".google.pubsub.v1.Snapshot", "comments": [ @@ -10543,6 +10584,7 @@ ] }, { + "autoPopulatedFields": [], "pagingFieldName": "snapshots", "pagingResponseType": ".google.pubsub.v1.Snapshot", "inputInterface": ".google.pubsub.v1.ListSnapshotsRequest", @@ -10604,6 +10646,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.CreateSnapshotRequest", "outputInterface": ".google.pubsub.v1.Snapshot", "comments": [ @@ -10687,6 +10730,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.UpdateSnapshotRequest", "outputInterface": ".google.pubsub.v1.Snapshot", "comments": [ @@ -10738,6 +10782,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.DeleteSnapshotRequest", "outputInterface": ".google.protobuf.Empty", "comments": [ @@ -10785,6 +10830,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.SeekRequest", "outputInterface": ".google.pubsub.v1.SeekResponse", "comments": [ @@ -14826,6 +14872,7 @@ "bundleConfigsMethods": [], "simpleMethods": [ { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.Subscription", "outputInterface": ".google.pubsub.v1.Subscription", "comments": [ @@ -15027,6 +15074,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.GetSubscriptionRequest", "outputInterface": ".google.pubsub.v1.Subscription", "comments": [ @@ -15066,6 +15114,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.UpdateSubscriptionRequest", "outputInterface": ".google.pubsub.v1.Subscription", "comments": [ @@ -15113,6 +15162,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.DeleteSubscriptionRequest", "outputInterface": ".google.protobuf.Empty", "comments": [ @@ -15156,6 +15206,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.ModifyAckDeadlineRequest", "outputInterface": ".google.protobuf.Empty", "comments": [ @@ -15223,6 +15274,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.AcknowledgeRequest", "outputInterface": ".google.protobuf.Empty", "comments": [ @@ -15279,6 +15331,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.PullRequest", "outputInterface": ".google.pubsub.v1.PullResponse", "comments": [ @@ -15345,6 +15398,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.ModifyPushConfigRequest", "outputInterface": ".google.protobuf.Empty", "comments": [ @@ -15403,6 +15457,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.GetSnapshotRequest", "outputInterface": ".google.pubsub.v1.Snapshot", "comments": [ @@ -15446,6 +15501,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.CreateSnapshotRequest", "outputInterface": ".google.pubsub.v1.Snapshot", "comments": [ @@ -15529,6 +15585,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.UpdateSnapshotRequest", "outputInterface": ".google.pubsub.v1.Snapshot", "comments": [ @@ -15580,6 +15637,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.DeleteSnapshotRequest", "outputInterface": ".google.protobuf.Empty", "comments": [ @@ -15627,6 +15685,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.SeekRequest", "outputInterface": ".google.pubsub.v1.SeekResponse", "comments": [ @@ -15699,6 +15758,7 @@ "diregapicLRO": [], "streaming": [ { + "autoPopulatedFields": [], "streaming": "BIDI_STREAMING", "inputInterface": ".google.pubsub.v1.StreamingPullRequest", "outputInterface": ".google.pubsub.v1.StreamingPullResponse", @@ -15833,6 +15893,7 @@ "serverStreaming": [], "bidiStreaming": [ { + "autoPopulatedFields": [], "streaming": "BIDI_STREAMING", "inputInterface": ".google.pubsub.v1.StreamingPullRequest", "outputInterface": ".google.pubsub.v1.StreamingPullResponse", @@ -15965,6 +16026,7 @@ ], "paging": [ { + "autoPopulatedFields": [], "pagingFieldName": "subscriptions", "pagingResponseType": ".google.pubsub.v1.Subscription", "inputInterface": ".google.pubsub.v1.ListSubscriptionsRequest", @@ -16022,6 +16084,7 @@ ] }, { + "autoPopulatedFields": [], "pagingFieldName": "snapshots", "pagingResponseType": ".google.pubsub.v1.Snapshot", "inputInterface": ".google.pubsub.v1.ListSnapshotsRequest", diff --git a/baselines/pubsub-api-dump/api.json.baseline b/baselines/pubsub-api-dump/api.json.baseline index eabfe63c7..145bb7c89 100644 --- a/baselines/pubsub-api-dump/api.json.baseline +++ b/baselines/pubsub-api-dump/api.json.baseline @@ -17,6 +17,7 @@ "name": "Publisher", "method": [ { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.Topic", "outputInterface": ".google.pubsub.v1.Topic", "comments": [ @@ -104,6 +105,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.UpdateTopicRequest", "outputInterface": ".google.pubsub.v1.Topic", "comments": [ @@ -154,6 +156,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.PublishRequest", "outputInterface": ".google.pubsub.v1.PublishResponse", "comments": [ @@ -203,6 +206,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.GetTopicRequest", "outputInterface": ".google.pubsub.v1.Topic", "comments": [ @@ -242,6 +246,7 @@ ] }, { + "autoPopulatedFields": [], "pagingFieldName": "topics", "pagingResponseType": ".google.pubsub.v1.Topic", "inputInterface": ".google.pubsub.v1.ListTopicsRequest", @@ -299,6 +304,7 @@ ] }, { + "autoPopulatedFields": [], "pagingFieldName": "subscriptions", "pagingResponseType": ".google.protobuf.FieldDescriptorProto.Type.TYPE_STRING", "inputInterface": ".google.pubsub.v1.ListTopicSubscriptionsRequest", @@ -356,6 +362,7 @@ ] }, { + "autoPopulatedFields": [], "pagingFieldName": "snapshots", "pagingResponseType": ".google.protobuf.FieldDescriptorProto.Type.TYPE_STRING", "inputInterface": ".google.pubsub.v1.ListTopicSnapshotsRequest", @@ -417,6 +424,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.DeleteTopicRequest", "outputInterface": ".google.protobuf.Empty", "comments": [ @@ -460,6 +468,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.DetachSubscriptionRequest", "outputInterface": ".google.pubsub.v1.DetachSubscriptionResponse", "comments": [ @@ -4471,6 +4480,7 @@ "bundleConfigsMethods": [], "simpleMethods": [ { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.Topic", "outputInterface": ".google.pubsub.v1.Topic", "comments": [ @@ -4558,6 +4568,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.UpdateTopicRequest", "outputInterface": ".google.pubsub.v1.Topic", "comments": [ @@ -4608,6 +4619,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.PublishRequest", "outputInterface": ".google.pubsub.v1.PublishResponse", "comments": [ @@ -4657,6 +4669,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.GetTopicRequest", "outputInterface": ".google.pubsub.v1.Topic", "comments": [ @@ -4696,6 +4709,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.DeleteTopicRequest", "outputInterface": ".google.protobuf.Empty", "comments": [ @@ -4739,6 +4753,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.DetachSubscriptionRequest", "outputInterface": ".google.pubsub.v1.DetachSubscriptionResponse", "comments": [ @@ -4786,6 +4801,7 @@ "bidiStreaming": [], "paging": [ { + "autoPopulatedFields": [], "pagingFieldName": "topics", "pagingResponseType": ".google.pubsub.v1.Topic", "inputInterface": ".google.pubsub.v1.ListTopicsRequest", @@ -4843,6 +4859,7 @@ ] }, { + "autoPopulatedFields": [], "pagingFieldName": "subscriptions", "pagingResponseType": ".google.protobuf.FieldDescriptorProto.Type.TYPE_STRING", "inputInterface": ".google.pubsub.v1.ListTopicSubscriptionsRequest", @@ -4900,6 +4917,7 @@ ] }, { + "autoPopulatedFields": [], "pagingFieldName": "snapshots", "pagingResponseType": ".google.protobuf.FieldDescriptorProto.Type.TYPE_STRING", "inputInterface": ".google.pubsub.v1.ListTopicSnapshotsRequest", @@ -5028,6 +5046,7 @@ "name": "SchemaService", "method": [ { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.CreateSchemaRequest", "outputInterface": ".google.pubsub.v1.Schema", "comments": [ @@ -5091,6 +5110,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.GetSchemaRequest", "outputInterface": ".google.pubsub.v1.Schema", "comments": [ @@ -5139,6 +5159,7 @@ ] }, { + "autoPopulatedFields": [], "pagingFieldName": "schemas", "pagingResponseType": ".google.pubsub.v1.Schema", "inputInterface": ".google.pubsub.v1.ListSchemasRequest", @@ -5205,6 +5226,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.DeleteSchemaRequest", "outputInterface": ".google.protobuf.Empty", "comments": [ @@ -5244,6 +5266,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.ValidateSchemaRequest", "outputInterface": ".google.pubsub.v1.ValidateSchemaResponse", "comments": [ @@ -5292,6 +5315,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.ValidateMessageRequest", "outputInterface": ".google.pubsub.v1.ValidateMessageResponse", "comments": [ @@ -9330,6 +9354,7 @@ "bundleConfigsMethods": [], "simpleMethods": [ { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.CreateSchemaRequest", "outputInterface": ".google.pubsub.v1.Schema", "comments": [ @@ -9393,6 +9418,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.GetSchemaRequest", "outputInterface": ".google.pubsub.v1.Schema", "comments": [ @@ -9441,6 +9467,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.DeleteSchemaRequest", "outputInterface": ".google.protobuf.Empty", "comments": [ @@ -9480,6 +9507,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.ValidateSchemaRequest", "outputInterface": ".google.pubsub.v1.ValidateSchemaResponse", "comments": [ @@ -9528,6 +9556,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.ValidateMessageRequest", "outputInterface": ".google.pubsub.v1.ValidateMessageResponse", "comments": [ @@ -9603,6 +9632,7 @@ "bidiStreaming": [], "paging": [ { + "autoPopulatedFields": [], "pagingFieldName": "schemas", "pagingResponseType": ".google.pubsub.v1.Schema", "inputInterface": ".google.pubsub.v1.ListSchemasRequest", @@ -9736,6 +9766,7 @@ "name": "Subscriber", "method": [ { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.Subscription", "outputInterface": ".google.pubsub.v1.Subscription", "comments": [ @@ -9937,6 +9968,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.GetSubscriptionRequest", "outputInterface": ".google.pubsub.v1.Subscription", "comments": [ @@ -9976,6 +10008,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.UpdateSubscriptionRequest", "outputInterface": ".google.pubsub.v1.Subscription", "comments": [ @@ -10023,6 +10056,7 @@ ] }, { + "autoPopulatedFields": [], "pagingFieldName": "subscriptions", "pagingResponseType": ".google.pubsub.v1.Subscription", "inputInterface": ".google.pubsub.v1.ListSubscriptionsRequest", @@ -10080,6 +10114,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.DeleteSubscriptionRequest", "outputInterface": ".google.protobuf.Empty", "comments": [ @@ -10123,6 +10158,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.ModifyAckDeadlineRequest", "outputInterface": ".google.protobuf.Empty", "comments": [ @@ -10190,6 +10226,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.AcknowledgeRequest", "outputInterface": ".google.protobuf.Empty", "comments": [ @@ -10246,6 +10283,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.PullRequest", "outputInterface": ".google.pubsub.v1.PullResponse", "comments": [ @@ -10312,6 +10350,7 @@ ] }, { + "autoPopulatedFields": [], "streaming": "BIDI_STREAMING", "inputInterface": ".google.pubsub.v1.StreamingPullRequest", "outputInterface": ".google.pubsub.v1.StreamingPullResponse", @@ -10442,6 +10481,7 @@ "headerRequestParams": [] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.ModifyPushConfigRequest", "outputInterface": ".google.protobuf.Empty", "comments": [ @@ -10500,6 +10540,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.GetSnapshotRequest", "outputInterface": ".google.pubsub.v1.Snapshot", "comments": [ @@ -10543,6 +10584,7 @@ ] }, { + "autoPopulatedFields": [], "pagingFieldName": "snapshots", "pagingResponseType": ".google.pubsub.v1.Snapshot", "inputInterface": ".google.pubsub.v1.ListSnapshotsRequest", @@ -10604,6 +10646,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.CreateSnapshotRequest", "outputInterface": ".google.pubsub.v1.Snapshot", "comments": [ @@ -10687,6 +10730,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.UpdateSnapshotRequest", "outputInterface": ".google.pubsub.v1.Snapshot", "comments": [ @@ -10738,6 +10782,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.DeleteSnapshotRequest", "outputInterface": ".google.protobuf.Empty", "comments": [ @@ -10785,6 +10830,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.SeekRequest", "outputInterface": ".google.pubsub.v1.SeekResponse", "comments": [ @@ -14826,6 +14872,7 @@ "bundleConfigsMethods": [], "simpleMethods": [ { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.Subscription", "outputInterface": ".google.pubsub.v1.Subscription", "comments": [ @@ -15027,6 +15074,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.GetSubscriptionRequest", "outputInterface": ".google.pubsub.v1.Subscription", "comments": [ @@ -15066,6 +15114,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.UpdateSubscriptionRequest", "outputInterface": ".google.pubsub.v1.Subscription", "comments": [ @@ -15113,6 +15162,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.DeleteSubscriptionRequest", "outputInterface": ".google.protobuf.Empty", "comments": [ @@ -15156,6 +15206,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.ModifyAckDeadlineRequest", "outputInterface": ".google.protobuf.Empty", "comments": [ @@ -15223,6 +15274,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.AcknowledgeRequest", "outputInterface": ".google.protobuf.Empty", "comments": [ @@ -15279,6 +15331,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.PullRequest", "outputInterface": ".google.pubsub.v1.PullResponse", "comments": [ @@ -15345,6 +15398,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.ModifyPushConfigRequest", "outputInterface": ".google.protobuf.Empty", "comments": [ @@ -15403,6 +15457,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.GetSnapshotRequest", "outputInterface": ".google.pubsub.v1.Snapshot", "comments": [ @@ -15446,6 +15501,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.CreateSnapshotRequest", "outputInterface": ".google.pubsub.v1.Snapshot", "comments": [ @@ -15529,6 +15585,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.UpdateSnapshotRequest", "outputInterface": ".google.pubsub.v1.Snapshot", "comments": [ @@ -15580,6 +15637,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.DeleteSnapshotRequest", "outputInterface": ".google.protobuf.Empty", "comments": [ @@ -15627,6 +15685,7 @@ ] }, { + "autoPopulatedFields": [], "inputInterface": ".google.pubsub.v1.SeekRequest", "outputInterface": ".google.pubsub.v1.SeekResponse", "comments": [ @@ -15699,6 +15758,7 @@ "diregapicLRO": [], "streaming": [ { + "autoPopulatedFields": [], "streaming": "BIDI_STREAMING", "inputInterface": ".google.pubsub.v1.StreamingPullRequest", "outputInterface": ".google.pubsub.v1.StreamingPullResponse", @@ -15833,6 +15893,7 @@ "serverStreaming": [], "bidiStreaming": [ { + "autoPopulatedFields": [], "streaming": "BIDI_STREAMING", "inputInterface": ".google.pubsub.v1.StreamingPullRequest", "outputInterface": ".google.pubsub.v1.StreamingPullResponse", @@ -15965,6 +16026,7 @@ ], "paging": [ { + "autoPopulatedFields": [], "pagingFieldName": "subscriptions", "pagingResponseType": ".google.pubsub.v1.Subscription", "inputInterface": ".google.pubsub.v1.ListSubscriptionsRequest", @@ -16022,6 +16084,7 @@ ] }, { + "autoPopulatedFields": [], "pagingFieldName": "snapshots", "pagingResponseType": ".google.pubsub.v1.Snapshot", "inputInterface": ".google.pubsub.v1.ListSnapshotsRequest", diff --git a/baselines/redis-esm/package.json b/baselines/redis-esm/package.json index 49b936d53..eeeb2c405 100644 --- a/baselines/redis-esm/package.json +++ b/baselines/redis-esm/package.json @@ -63,7 +63,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.1.0" + "google-gax": "^4.2.1" }, "devDependencies": { "@babel/cli": "^7.23.0", diff --git a/baselines/redis/package.json b/baselines/redis/package.json index 1a34927fe..50961b02d 100644 --- a/baselines/redis/package.json +++ b/baselines/redis/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.1.0" + "google-gax": "^4.2.1" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/redis/src/v1beta1/cloud_redis_client.ts.baseline b/baselines/redis/src/v1beta1/cloud_redis_client.ts.baseline index ed1c0bb60..5140b0939 100644 --- a/baselines/redis/src/v1beta1/cloud_redis_client.ts.baseline +++ b/baselines/redis/src/v1beta1/cloud_redis_client.ts.baseline @@ -22,6 +22,7 @@ import type {Callback, CallOptions, Descriptors, ClientOptions, GrpcClientOption import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); + /** * Client JSON configuration object, loaded from * `src/v1beta1/cloud_redis_client_config.json`. diff --git a/baselines/routingtest-esm/package.json b/baselines/routingtest-esm/package.json index 6b32fc3c6..5dc6312b7 100644 --- a/baselines/routingtest-esm/package.json +++ b/baselines/routingtest-esm/package.json @@ -63,7 +63,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.1.0" + "google-gax": "^4.2.1" }, "devDependencies": { "@babel/cli": "^7.23.0", diff --git a/baselines/routingtest/package.json b/baselines/routingtest/package.json index 32306db05..869624b4a 100644 --- a/baselines/routingtest/package.json +++ b/baselines/routingtest/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.1.0" + "google-gax": "^4.2.1" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/routingtest/src/v1/test_service_client.ts.baseline b/baselines/routingtest/src/v1/test_service_client.ts.baseline index bbf9e2d7a..0aea93721 100644 --- a/baselines/routingtest/src/v1/test_service_client.ts.baseline +++ b/baselines/routingtest/src/v1/test_service_client.ts.baseline @@ -22,6 +22,7 @@ import type {Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); + /** * Client JSON configuration object, loaded from * `src/v1/test_service_client_config.json`. diff --git a/baselines/showcase-api-dump/api.json.baseline b/baselines/showcase-api-dump/api.json.baseline new file mode 100644 index 000000000..a3aed78fe --- /dev/null +++ b/baselines/showcase-api-dump/api.json.baseline @@ -0,0 +1,31592 @@ +{ + "packageName": "google.showcase.v1beta1", + "publishName": "showcase", + "naming": { + "name": "Showcase", + "namespace": [ + "google" + ], + "version": "v1beta1", + "productName": "Showcase", + "protoPackage": "google.showcase.v1beta1" + }, + "hostname": "localhost", + "port": "7469", + "services": [ + { + "name": "Compliance", + "method": [ + { + "inputInterface": ".google.showcase.v1beta1.RepeatRequest", + "outputInterface": ".google.showcase.v1beta1.RepeatResponse", + "comments": [ + " This method echoes the ComplianceData request. This method exercises", + " sending the entire request object in the REST body.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "RepeatDataBody", + "inputType": ".google.showcase.v1beta1.RepeatRequest", + "outputType": ".google.showcase.v1beta1.RepeatResponse", + "options": { + ".google.api.http": { + "post": "/v1beta1/repeat:body", + "body": "*", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + { + "paramName": "info", + "paramType": ".google.showcase.v1beta1.ComplianceData", + "comments": [] + }, + { + "paramName": "server_verify", + "paramType": "TYPE_BOOL", + "comments": [ + " If true, the server will verify that the received request matches", + " the request with the same name in the compliance test suite." + ] + }, + { + "paramName": "intended_binding_uri", + "paramType": "TYPE_STRING", + "comments": [ + " The URI template this request is expected to be bound to server-side." + ] + }, + { + "paramName": "f_int32", + "paramType": "TYPE_INT32", + "comments": [ + " Some top level fields, to test that these are encoded correctly", + " in query params." + ] + }, + { + "paramName": "f_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + { + "paramName": "p_int32", + "paramType": "TYPE_INT32", + "comments": [] + }, + { + "paramName": "p_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + { + "paramName": "p_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + } + ], + "headerRequestParams": [] + }, + { + "inputInterface": ".google.showcase.v1beta1.RepeatRequest", + "outputInterface": ".google.showcase.v1beta1.RepeatResponse", + "comments": [ + " This method echoes the ComplianceData request. This method exercises", + " sending the a message-type field in the REST body. Per AIP-127, only", + " top-level, non-repeated fields can be sent this way.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "RepeatDataBodyInfo", + "inputType": ".google.showcase.v1beta1.RepeatRequest", + "outputType": ".google.showcase.v1beta1.RepeatResponse", + "options": { + ".google.api.http": { + "post": "/v1beta1/repeat:bodyinfo", + "body": "info", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + { + "paramName": "info", + "paramType": ".google.showcase.v1beta1.ComplianceData", + "comments": [] + }, + { + "paramName": "server_verify", + "paramType": "TYPE_BOOL", + "comments": [ + " If true, the server will verify that the received request matches", + " the request with the same name in the compliance test suite." + ] + }, + { + "paramName": "intended_binding_uri", + "paramType": "TYPE_STRING", + "comments": [ + " The URI template this request is expected to be bound to server-side." + ] + }, + { + "paramName": "f_int32", + "paramType": "TYPE_INT32", + "comments": [ + " Some top level fields, to test that these are encoded correctly", + " in query params." + ] + }, + { + "paramName": "f_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + { + "paramName": "p_int32", + "paramType": "TYPE_INT32", + "comments": [] + }, + { + "paramName": "p_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + { + "paramName": "p_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + } + ], + "headerRequestParams": [] + }, + { + "inputInterface": ".google.showcase.v1beta1.RepeatRequest", + "outputInterface": ".google.showcase.v1beta1.RepeatResponse", + "comments": [ + " This method echoes the ComplianceData request. This method exercises", + " sending all request fields as query parameters.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "RepeatDataQuery", + "inputType": ".google.showcase.v1beta1.RepeatRequest", + "outputType": ".google.showcase.v1beta1.RepeatResponse", + "options": { + ".google.api.http": { + "get": "/v1beta1/repeat:query", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + { + "paramName": "info", + "paramType": ".google.showcase.v1beta1.ComplianceData", + "comments": [] + }, + { + "paramName": "server_verify", + "paramType": "TYPE_BOOL", + "comments": [ + " If true, the server will verify that the received request matches", + " the request with the same name in the compliance test suite." + ] + }, + { + "paramName": "intended_binding_uri", + "paramType": "TYPE_STRING", + "comments": [ + " The URI template this request is expected to be bound to server-side." + ] + }, + { + "paramName": "f_int32", + "paramType": "TYPE_INT32", + "comments": [ + " Some top level fields, to test that these are encoded correctly", + " in query params." + ] + }, + { + "paramName": "f_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + { + "paramName": "p_int32", + "paramType": "TYPE_INT32", + "comments": [] + }, + { + "paramName": "p_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + { + "paramName": "p_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + } + ], + "headerRequestParams": [] + }, + { + "inputInterface": ".google.showcase.v1beta1.RepeatRequest", + "outputInterface": ".google.showcase.v1beta1.RepeatResponse", + "comments": [ + " This method echoes the ComplianceData request. This method exercises", + " sending some parameters as \"simple\" path variables (i.e., of the form", + " \"/bar/{foo}\" rather than \"/{foo=bar/*}\"), and the rest as query parameters.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "RepeatDataSimplePath", + "inputType": ".google.showcase.v1beta1.RepeatRequest", + "outputType": ".google.showcase.v1beta1.RepeatResponse", + "options": { + ".google.api.http": { + "get": "/v1beta1/repeat/{info.f_string}/{info.f_int32}/{info.f_double}/{info.f_bool}/{info.f_kingdom}:simplepath", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + { + "paramName": "info", + "paramType": ".google.showcase.v1beta1.ComplianceData", + "comments": [] + }, + { + "paramName": "server_verify", + "paramType": "TYPE_BOOL", + "comments": [ + " If true, the server will verify that the received request matches", + " the request with the same name in the compliance test suite." + ] + }, + { + "paramName": "intended_binding_uri", + "paramType": "TYPE_STRING", + "comments": [ + " The URI template this request is expected to be bound to server-side." + ] + }, + { + "paramName": "f_int32", + "paramType": "TYPE_INT32", + "comments": [ + " Some top level fields, to test that these are encoded correctly", + " in query params." + ] + }, + { + "paramName": "f_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + { + "paramName": "p_int32", + "paramType": "TYPE_INT32", + "comments": [] + }, + { + "paramName": "p_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + { + "paramName": "p_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + } + ], + "headerRequestParams": [ + [ + "info", + "f_string" + ], + [ + "info", + "f_int32" + ], + [ + "info", + "f_double" + ], + [ + "info", + "f_bool" + ], + [ + "info", + "f_kingdom" + ] + ] + }, + { + "inputInterface": ".google.showcase.v1beta1.RepeatRequest", + "outputInterface": ".google.showcase.v1beta1.RepeatResponse", + "comments": [ + " Same as RepeatDataSimplePath, but with a path resource.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "RepeatDataPathResource", + "inputType": ".google.showcase.v1beta1.RepeatRequest", + "outputType": ".google.showcase.v1beta1.RepeatResponse", + "options": { + ".google.api.http": { + "get": "/v1beta1/repeat/{info.f_string=first/*}/{info.f_child.f_string=second/*}/bool/{info.f_bool}:pathresource", + "additionalBindings": [ + { + "get": "/v1beta1/repeat/{info.f_child.f_string=first/*}/{info.f_string=second/*}/bool/{info.f_bool}:childfirstpathresource" + } + ] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + { + "paramName": "info", + "paramType": ".google.showcase.v1beta1.ComplianceData", + "comments": [] + }, + { + "paramName": "server_verify", + "paramType": "TYPE_BOOL", + "comments": [ + " If true, the server will verify that the received request matches", + " the request with the same name in the compliance test suite." + ] + }, + { + "paramName": "intended_binding_uri", + "paramType": "TYPE_STRING", + "comments": [ + " The URI template this request is expected to be bound to server-side." + ] + }, + { + "paramName": "f_int32", + "paramType": "TYPE_INT32", + "comments": [ + " Some top level fields, to test that these are encoded correctly", + " in query params." + ] + }, + { + "paramName": "f_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + { + "paramName": "p_int32", + "paramType": "TYPE_INT32", + "comments": [] + }, + { + "paramName": "p_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + { + "paramName": "p_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + } + ], + "headerRequestParams": [ + [ + "info", + "f_string" + ], + [ + "info", + "f_child", + "f_string" + ], + [ + "info", + "f_bool" + ] + ] + }, + { + "inputInterface": ".google.showcase.v1beta1.RepeatRequest", + "outputInterface": ".google.showcase.v1beta1.RepeatResponse", + "comments": [ + " Same as RepeatDataSimplePath, but with a trailing resource.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "RepeatDataPathTrailingResource", + "inputType": ".google.showcase.v1beta1.RepeatRequest", + "outputType": ".google.showcase.v1beta1.RepeatResponse", + "options": { + ".google.api.http": { + "get": "/v1beta1/repeat/{info.f_string=first/*}/{info.f_child.f_string=second/**}:pathtrailingresource", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + { + "paramName": "info", + "paramType": ".google.showcase.v1beta1.ComplianceData", + "comments": [] + }, + { + "paramName": "server_verify", + "paramType": "TYPE_BOOL", + "comments": [ + " If true, the server will verify that the received request matches", + " the request with the same name in the compliance test suite." + ] + }, + { + "paramName": "intended_binding_uri", + "paramType": "TYPE_STRING", + "comments": [ + " The URI template this request is expected to be bound to server-side." + ] + }, + { + "paramName": "f_int32", + "paramType": "TYPE_INT32", + "comments": [ + " Some top level fields, to test that these are encoded correctly", + " in query params." + ] + }, + { + "paramName": "f_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + { + "paramName": "p_int32", + "paramType": "TYPE_INT32", + "comments": [] + }, + { + "paramName": "p_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + { + "paramName": "p_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + } + ], + "headerRequestParams": [ + [ + "info", + "f_string" + ], + [ + "info", + "f_child", + "f_string" + ] + ] + }, + { + "inputInterface": ".google.showcase.v1beta1.RepeatRequest", + "outputInterface": ".google.showcase.v1beta1.RepeatResponse", + "comments": [ + " This method echoes the ComplianceData request, using the HTTP PUT method.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "RepeatDataBodyPut", + "inputType": ".google.showcase.v1beta1.RepeatRequest", + "outputType": ".google.showcase.v1beta1.RepeatResponse", + "options": { + ".google.api.http": { + "put": "/v1beta1/repeat:bodyput", + "body": "*", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + { + "paramName": "info", + "paramType": ".google.showcase.v1beta1.ComplianceData", + "comments": [] + }, + { + "paramName": "server_verify", + "paramType": "TYPE_BOOL", + "comments": [ + " If true, the server will verify that the received request matches", + " the request with the same name in the compliance test suite." + ] + }, + { + "paramName": "intended_binding_uri", + "paramType": "TYPE_STRING", + "comments": [ + " The URI template this request is expected to be bound to server-side." + ] + }, + { + "paramName": "f_int32", + "paramType": "TYPE_INT32", + "comments": [ + " Some top level fields, to test that these are encoded correctly", + " in query params." + ] + }, + { + "paramName": "f_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + { + "paramName": "p_int32", + "paramType": "TYPE_INT32", + "comments": [] + }, + { + "paramName": "p_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + { + "paramName": "p_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + } + ], + "headerRequestParams": [] + }, + { + "inputInterface": ".google.showcase.v1beta1.RepeatRequest", + "outputInterface": ".google.showcase.v1beta1.RepeatResponse", + "comments": [ + " This method echoes the ComplianceData request, using the HTTP PATCH method.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "RepeatDataBodyPatch", + "inputType": ".google.showcase.v1beta1.RepeatRequest", + "outputType": ".google.showcase.v1beta1.RepeatResponse", + "options": { + ".google.api.http": { + "patch": "/v1beta1/repeat:bodypatch", + "body": "*", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + { + "paramName": "info", + "paramType": ".google.showcase.v1beta1.ComplianceData", + "comments": [] + }, + { + "paramName": "server_verify", + "paramType": "TYPE_BOOL", + "comments": [ + " If true, the server will verify that the received request matches", + " the request with the same name in the compliance test suite." + ] + }, + { + "paramName": "intended_binding_uri", + "paramType": "TYPE_STRING", + "comments": [ + " The URI template this request is expected to be bound to server-side." + ] + }, + { + "paramName": "f_int32", + "paramType": "TYPE_INT32", + "comments": [ + " Some top level fields, to test that these are encoded correctly", + " in query params." + ] + }, + { + "paramName": "f_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + { + "paramName": "p_int32", + "paramType": "TYPE_INT32", + "comments": [] + }, + { + "paramName": "p_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + { + "paramName": "p_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + } + ], + "headerRequestParams": [] + }, + { + "inputInterface": ".google.showcase.v1beta1.EnumRequest", + "outputInterface": ".google.showcase.v1beta1.EnumResponse", + "comments": [ + " This method requests an enum value from the server. Depending on the contents of EnumRequest, the enum value returned will be a known enum declared in the", + " .proto file, or a made-up enum value the is unknown to the client. To verify that clients can round-trip unknown enum vaues they receive, use the", + " response from this RPC as the request to VerifyEnum()", + "", + " The values of enums sent by the server when a known or unknown value is requested will be the same within a single Showcase server run (this is needed for", + " VerifyEnum() to work) but are not guaranteed to be the same across separate Showcase server runs.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "GetEnum", + "inputType": ".google.showcase.v1beta1.EnumRequest", + "outputType": ".google.showcase.v1beta1.EnumResponse", + "options": { + ".google.api.http": { + "get": "/v1beta1/compliance/enum", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "unknown_enum", + "paramType": "TYPE_BOOL", + "comments": [ + " Whether the client is requesting a new, unknown enum value or a known enum value already declard in this proto file." + ] + } + ], + "headerRequestParams": [] + }, + { + "inputInterface": ".google.showcase.v1beta1.EnumResponse", + "outputInterface": ".google.showcase.v1beta1.EnumResponse", + "comments": [ + " This method is used to verify that clients can round-trip enum values, which is particularly important for unknown enum values over REST. VerifyEnum()", + " verifies that its request, which is presumably the response that the client previously got to a GetEnum(), contains the correct data. If so, it responds", + " with the same EnumResponse; otherwise, the RPC errors.", + "", + " This works because the values of enums sent by the server when a known or unknown value is requested will be the same within a single Showcase server run,", + " although they are not guaranteed to be the same across separate Showcase server runs.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "VerifyEnum", + "inputType": ".google.showcase.v1beta1.EnumResponse", + "outputType": ".google.showcase.v1beta1.EnumResponse", + "options": { + ".google.api.http": { + "post": "/v1beta1/compliance/enum", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "request", + "paramType": ".google.showcase.v1beta1.EnumRequest", + "comments": [ + " The original request for a known or unknown enum from the server." + ] + }, + { + "paramName": "continent", + "paramType": ".google.showcase.v1beta1.Continent", + "comments": [ + " The actual enum the server provided." + ] + } + ], + "headerRequestParams": [] + } + ], + "options": { + ".google.api.defaultHost": "localhost:7469" + }, + "packageName": "google.showcase.v1beta1", + "protoFile": "google/showcase/v1beta1/compliance.proto", + "IAMPolicyMixin": 0, + "LocationMixin": 0, + "comments": [ + " This service is used to test that GAPICs implement various REST-related features correctly. This mostly means transcoding proto3 requests to REST format", + " correctly for various types of HTTP annotations, but it also includes verifying that unknown (numeric) enums received by clients can be round-tripped", + " correctly." + ], + "commentsMap": { + "comments": { + "Http:rules": { + "paramName": "rules", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " A list of HTTP configuration rules that apply to individual API methods.", + "", + " **NOTE:** All service configuration rules follow \"last one wins\" order." + ] + }, + "Http:fully_decode_reserved_expansion": { + "paramName": "fully_decode_reserved_expansion", + "paramType": "TYPE_BOOL", + "comments": [ + " When set to true, URL path parameters will be fully URI-decoded except in", + " cases of single segment matches in reserved expansion, where \"%2F\" will be", + " left encoded.", + "", + " The default behavior is to not decode RFC 6570 reserved characters in multi", + " segment matches." + ] + }, + "HttpRule:selector": { + "paramName": "selector", + "paramType": "TYPE_STRING", + "comments": [ + " Selects a method to which this rule applies.", + "", + " Refer to [selector][google.api.DocumentationRule.selector] for syntax", + " details." + ] + }, + "HttpRule:get": { + "paramName": "get", + "paramType": "TYPE_STRING", + "comments": [ + " Maps to HTTP GET. Used for listing and getting information about", + " resources." + ] + }, + "HttpRule:put": { + "paramName": "put", + "paramType": "TYPE_STRING", + "comments": [ + " Maps to HTTP PUT. Used for replacing a resource." + ] + }, + "HttpRule:post": { + "paramName": "post", + "paramType": "TYPE_STRING", + "comments": [ + " Maps to HTTP POST. Used for creating a resource or performing an action." + ] + }, + "HttpRule:delete": { + "paramName": "delete", + "paramType": "TYPE_STRING", + "comments": [ + " Maps to HTTP DELETE. Used for deleting a resource." + ] + }, + "HttpRule:patch": { + "paramName": "patch", + "paramType": "TYPE_STRING", + "comments": [ + " Maps to HTTP PATCH. Used for updating a resource." + ] + }, + "HttpRule:custom": { + "paramName": "custom", + "paramType": ".google.api.CustomHttpPattern", + "comments": [ + " The custom pattern is used for specifying an HTTP method that is not", + " included in the `pattern` field, such as HEAD, or \"*\" to leave the", + " HTTP method unspecified for this rule. The wild-card rule is useful", + " for services that provide content to Web (HTML) clients." + ] + }, + "HttpRule:body": { + "paramName": "body", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the request field whose value is mapped to the HTTP request", + " body, or `*` for mapping all request fields not captured by the path", + " pattern to the HTTP body, or omitted for not having any HTTP request body.", + "", + " NOTE: the referred field must be present at the top-level of the request", + " message type." + ] + }, + "HttpRule:response_body": { + "paramName": "response_body", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. The name of the response field whose value is mapped to the HTTP", + " response body. When omitted, the entire response message will be used", + " as the HTTP response body.", + "", + " NOTE: The referred field must be present at the top-level of the response", + " message type." + ] + }, + "HttpRule:additional_bindings": { + "paramName": "additional_bindings", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Additional HTTP bindings for the selector. Nested bindings must", + " not contain an `additional_bindings` field themselves (that is,", + " the nesting may only be one level deep)." + ] + }, + "CustomHttpPattern:kind": { + "paramName": "kind", + "paramType": "TYPE_STRING", + "comments": [ + " The name of this custom HTTP verb." + ] + }, + "CustomHttpPattern:path": { + "paramName": "path", + "paramType": "TYPE_STRING", + "comments": [ + " The path matched by this custom verb." + ] + }, + "FileDescriptorSet:file": { + "paramName": "file", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "FileDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "FileDescriptorProto:package": { + "paramName": "package", + "paramType": "TYPE_STRING", + "comments": [] + }, + "FileDescriptorProto:dependency": { + "paramName": "dependency", + "paramType": "TYPE_STRING[]", + "comments": [ + " Names of files imported by this file." + ] + }, + "FileDescriptorProto:public_dependency": { + "paramName": "public_dependency", + "paramType": "TYPE_INT32[]", + "comments": [ + " Indexes of the public imported files in the dependency list above." + ] + }, + "FileDescriptorProto:weak_dependency": { + "paramName": "weak_dependency", + "paramType": "TYPE_INT32[]", + "comments": [ + " Indexes of the weak imported files in the dependency list.", + " For Google-internal migration only. Do not use." + ] + }, + "FileDescriptorProto:message_type": { + "paramName": "message_type", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " All top-level definitions in this file." + ] + }, + "FileDescriptorProto:enum_type": { + "paramName": "enum_type", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "FileDescriptorProto:service": { + "paramName": "service", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "FileDescriptorProto:extension": { + "paramName": "extension", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "FileDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.FileOptions", + "comments": [] + }, + "FileDescriptorProto:source_code_info": { + "paramName": "source_code_info", + "paramType": ".google.protobuf.SourceCodeInfo", + "comments": [ + " This field contains optional information about the original source code.", + " You may safely remove this entire field without harming runtime", + " functionality of the descriptors -- the information is needed only by", + " development tools." + ] + }, + "FileDescriptorProto:syntax": { + "paramName": "syntax", + "paramType": "TYPE_STRING", + "comments": [ + " The syntax of the proto file.", + " The supported values are \"proto2\", \"proto3\", and \"editions\".", + "", + " If `edition` is present, this value must be \"editions\"." + ] + }, + "FileDescriptorProto:edition": { + "paramName": "edition", + "paramType": "TYPE_STRING", + "comments": [ + " The edition of the proto file, which is an opaque string." + ] + }, + "DescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "DescriptorProto:field": { + "paramName": "field", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:extension": { + "paramName": "extension", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:nested_type": { + "paramName": "nested_type", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:enum_type": { + "paramName": "enum_type", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:extension_range": { + "paramName": "extension_range", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:oneof_decl": { + "paramName": "oneof_decl", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.MessageOptions", + "comments": [] + }, + "DescriptorProto:reserved_range": { + "paramName": "reserved_range", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:reserved_name": { + "paramName": "reserved_name", + "paramType": "TYPE_STRING[]", + "comments": [ + " Reserved field names, which may not be used by fields in the same message.", + " A given name may only be reserved once." + ] + }, + "ExtensionRangeOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "ExtensionRangeOptions:declaration": { + "paramName": "declaration", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " For external users: DO NOT USE. We are in the process of open sourcing", + " extension declaration and executing internal cleanups before it can be", + " used externally." + ] + }, + "ExtensionRangeOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "ExtensionRangeOptions:verification": { + "paramName": "verification", + "paramType": ".google.protobuf.ExtensionRangeOptions.VerificationState", + "comments": [ + " The verification state of the range.", + " TODO(b/278783756): flip the default to DECLARATION once all empty ranges", + " are marked as UNVERIFIED." + ] + }, + "FieldDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "FieldDescriptorProto:number": { + "paramName": "number", + "paramType": "TYPE_INT32", + "comments": [] + }, + "FieldDescriptorProto:label": { + "paramName": "label", + "paramType": ".google.protobuf.FieldDescriptorProto.Label", + "comments": [] + }, + "FieldDescriptorProto:type": { + "paramName": "type", + "paramType": ".google.protobuf.FieldDescriptorProto.Type", + "comments": [ + " If type_name is set, this need not be set. If both this and type_name", + " are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP." + ] + }, + "FieldDescriptorProto:type_name": { + "paramName": "type_name", + "paramType": "TYPE_STRING", + "comments": [ + " For message and enum types, this is the name of the type. If the name", + " starts with a '.', it is fully-qualified. Otherwise, C++-like scoping", + " rules are used to find the type (i.e. first the nested types within this", + " message are searched, then within the parent, on up to the root", + " namespace)." + ] + }, + "FieldDescriptorProto:extendee": { + "paramName": "extendee", + "paramType": "TYPE_STRING", + "comments": [ + " For extensions, this is the name of the type being extended. It is", + " resolved in the same manner as type_name." + ] + }, + "FieldDescriptorProto:default_value": { + "paramName": "default_value", + "paramType": "TYPE_STRING", + "comments": [ + " For numeric types, contains the original text representation of the value.", + " For booleans, \"true\" or \"false\".", + " For strings, contains the default text contents (not escaped in any way).", + " For bytes, contains the C escaped value. All bytes >= 128 are escaped." + ] + }, + "FieldDescriptorProto:oneof_index": { + "paramName": "oneof_index", + "paramType": "TYPE_INT32", + "comments": [ + " If set, gives the index of a oneof in the containing type's oneof_decl", + " list. This field is a member of that oneof." + ] + }, + "FieldDescriptorProto:json_name": { + "paramName": "json_name", + "paramType": "TYPE_STRING", + "comments": [ + " JSON name of this field. The value is set by protocol compiler. If the", + " user has set a \"json_name\" option on this field, that option's value", + " will be used. Otherwise, it's deduced from the field's name by converting", + " it to camelCase." + ] + }, + "FieldDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.FieldOptions", + "comments": [] + }, + "FieldDescriptorProto:proto3_optional": { + "paramName": "proto3_optional", + "paramType": "TYPE_BOOL", + "comments": [ + " If true, this is a proto3 \"optional\". When a proto3 field is optional, it", + " tracks presence regardless of field type.", + "", + " When proto3_optional is true, this field must be belong to a oneof to", + " signal to old proto3 clients that presence is tracked for this field. This", + " oneof is known as a \"synthetic\" oneof, and this field must be its sole", + " member (each proto3 optional field gets its own synthetic oneof). Synthetic", + " oneofs exist in the descriptor only, and do not generate any API. Synthetic", + " oneofs must be ordered after all \"real\" oneofs.", + "", + " For message fields, proto3_optional doesn't create any semantic change,", + " since non-repeated message fields always track presence. However it still", + " indicates the semantic detail of whether the user wrote \"optional\" or not.", + " This can be useful for round-tripping the .proto file. For consistency we", + " give message fields a synthetic oneof also, even though it is not required", + " to track presence. This is especially important because the parser can't", + " tell if a field is a message or an enum, so it must always create a", + " synthetic oneof.", + "", + " Proto2 optional fields do not set this flag, because they already indicate", + " optional with `LABEL_OPTIONAL`." + ] + }, + "OneofDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "OneofDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.OneofOptions", + "comments": [] + }, + "EnumDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "EnumDescriptorProto:value": { + "paramName": "value", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "EnumDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.EnumOptions", + "comments": [] + }, + "EnumDescriptorProto:reserved_range": { + "paramName": "reserved_range", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Range of reserved numeric values. Reserved numeric values may not be used", + " by enum values in the same enum declaration. Reserved ranges may not", + " overlap." + ] + }, + "EnumDescriptorProto:reserved_name": { + "paramName": "reserved_name", + "paramType": "TYPE_STRING[]", + "comments": [ + " Reserved enum value names, which may not be reused. A given name may only", + " be reserved once." + ] + }, + "EnumValueDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "EnumValueDescriptorProto:number": { + "paramName": "number", + "paramType": "TYPE_INT32", + "comments": [] + }, + "EnumValueDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.EnumValueOptions", + "comments": [] + }, + "ServiceDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ServiceDescriptorProto:method": { + "paramName": "method", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "ServiceDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.ServiceOptions", + "comments": [] + }, + "MethodDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "MethodDescriptorProto:input_type": { + "paramName": "input_type", + "paramType": "TYPE_STRING", + "comments": [ + " Input and output type names. These are resolved in the same way as", + " FieldDescriptorProto.type_name, but must refer to a message type." + ] + }, + "MethodDescriptorProto:output_type": { + "paramName": "output_type", + "paramType": "TYPE_STRING", + "comments": [] + }, + "MethodDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.MethodOptions", + "comments": [] + }, + "MethodDescriptorProto:client_streaming": { + "paramName": "client_streaming", + "paramType": "TYPE_BOOL", + "comments": [ + " Identifies if client streams multiple client messages" + ] + }, + "MethodDescriptorProto:server_streaming": { + "paramName": "server_streaming", + "paramType": "TYPE_BOOL", + "comments": [ + " Identifies if server streams multiple server messages" + ] + }, + "FileOptions:java_package": { + "paramName": "java_package", + "paramType": "TYPE_STRING", + "comments": [ + " Sets the Java package where classes generated from this .proto will be", + " placed. By default, the proto package is used, but this is often", + " inappropriate because proto packages do not normally start with backwards", + " domain names." + ] + }, + "FileOptions:java_outer_classname": { + "paramName": "java_outer_classname", + "paramType": "TYPE_STRING", + "comments": [ + " Controls the name of the wrapper Java class generated for the .proto file.", + " That class will always contain the .proto file's getDescriptor() method as", + " well as any top-level extensions defined in the .proto file.", + " If java_multiple_files is disabled, then all the other classes from the", + " .proto file will be nested inside the single wrapper outer class." + ] + }, + "FileOptions:java_multiple_files": { + "paramName": "java_multiple_files", + "paramType": "TYPE_BOOL", + "comments": [ + " If enabled, then the Java code generator will generate a separate .java", + " file for each top-level message, enum, and service defined in the .proto", + " file. Thus, these types will *not* be nested inside the wrapper class", + " named by java_outer_classname. However, the wrapper class will still be", + " generated to contain the file's getDescriptor() method as well as any", + " top-level extensions defined in the file." + ] + }, + "FileOptions:java_generate_equals_and_hash": { + "paramName": "java_generate_equals_and_hash", + "paramType": "TYPE_BOOL", + "comments": [ + " This option does nothing." + ] + }, + "FileOptions:java_string_check_utf8": { + "paramName": "java_string_check_utf8", + "paramType": "TYPE_BOOL", + "comments": [ + " If set true, then the Java2 code generator will generate code that", + " throws an exception whenever an attempt is made to assign a non-UTF-8", + " byte sequence to a string field.", + " Message reflection will do the same.", + " However, an extension field still accepts non-UTF-8 byte sequences.", + " This option has no effect on when used with the lite runtime." + ] + }, + "FileOptions:optimize_for": { + "paramName": "optimize_for", + "paramType": ".google.protobuf.FileOptions.OptimizeMode", + "comments": [] + }, + "FileOptions:go_package": { + "paramName": "go_package", + "paramType": "TYPE_STRING", + "comments": [ + " Sets the Go package where structs generated from this .proto will be", + " placed. If omitted, the Go package will be derived from the following:", + " - The basename of the package import path, if provided.", + " - Otherwise, the package statement in the .proto file, if present.", + " - Otherwise, the basename of the .proto file, without extension." + ] + }, + "FileOptions:cc_generic_services": { + "paramName": "cc_generic_services", + "paramType": "TYPE_BOOL", + "comments": [ + " Should generic services be generated in each language? \"Generic\" services", + " are not specific to any particular RPC system. They are generated by the", + " main code generators in each language (without additional plugins).", + " Generic services were the only kind of service generation supported by", + " early versions of google.protobuf.", + "", + " Generic services are now considered deprecated in favor of using plugins", + " that generate code specific to your particular RPC system. Therefore,", + " these default to false. Old code which depends on generic services should", + " explicitly set them to true." + ] + }, + "FileOptions:java_generic_services": { + "paramName": "java_generic_services", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "FileOptions:py_generic_services": { + "paramName": "py_generic_services", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "FileOptions:php_generic_services": { + "paramName": "php_generic_services", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "FileOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this file deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for everything in the file, or it will be completely ignored; in the very", + " least, this is a formalization for deprecating files." + ] + }, + "FileOptions:cc_enable_arenas": { + "paramName": "cc_enable_arenas", + "paramType": "TYPE_BOOL", + "comments": [ + " Enables the use of arenas for the proto messages in this file. This applies", + " only to generated classes for C++." + ] + }, + "FileOptions:objc_class_prefix": { + "paramName": "objc_class_prefix", + "paramType": "TYPE_STRING", + "comments": [ + " Sets the objective c class prefix which is prepended to all objective c", + " generated classes from this .proto. There is no default." + ] + }, + "FileOptions:csharp_namespace": { + "paramName": "csharp_namespace", + "paramType": "TYPE_STRING", + "comments": [ + " Namespace for generated classes; defaults to the package." + ] + }, + "FileOptions:swift_prefix": { + "paramName": "swift_prefix", + "paramType": "TYPE_STRING", + "comments": [ + " By default Swift generators will take the proto package and CamelCase it", + " replacing '.' with underscore and use that to prefix the types/symbols", + " defined. When this options is provided, they will use this value instead", + " to prefix the types/symbols defined." + ] + }, + "FileOptions:php_class_prefix": { + "paramName": "php_class_prefix", + "paramType": "TYPE_STRING", + "comments": [ + " Sets the php class prefix which is prepended to all php generated classes", + " from this .proto. Default is empty." + ] + }, + "FileOptions:php_namespace": { + "paramName": "php_namespace", + "paramType": "TYPE_STRING", + "comments": [ + " Use this option to change the namespace of php generated classes. Default", + " is empty. When this option is empty, the package name will be used for", + " determining the namespace." + ] + }, + "FileOptions:php_metadata_namespace": { + "paramName": "php_metadata_namespace", + "paramType": "TYPE_STRING", + "comments": [ + " Use this option to change the namespace of php generated metadata classes.", + " Default is empty. When this option is empty, the proto file name will be", + " used for determining the namespace." + ] + }, + "FileOptions:ruby_package": { + "paramName": "ruby_package", + "paramType": "TYPE_STRING", + "comments": [ + " Use this option to change the package of ruby generated classes. Default", + " is empty. When this option is not set, the package name will be used for", + " determining the ruby package." + ] + }, + "FileOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "FileOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here.", + " See the documentation for the \"Options\" section above." + ] + }, + "MessageOptions:message_set_wire_format": { + "paramName": "message_set_wire_format", + "paramType": "TYPE_BOOL", + "comments": [ + " Set true to use the old proto1 MessageSet wire format for extensions.", + " This is provided for backwards-compatibility with the MessageSet wire", + " format. You should not use this for any other reason: It's less", + " efficient, has fewer features, and is more complicated.", + "", + " The message must be defined exactly as follows:", + " message Foo {", + " option message_set_wire_format = true;", + " extensions 4 to max;", + " }", + " Note that the message cannot have any defined fields; MessageSets only", + " have extensions.", + "", + " All extensions of your type must be singular messages; e.g. they cannot", + " be int32s, enums, or repeated messages.", + "", + " Because this is an option, the above two restrictions are not enforced by", + " the protocol compiler." + ] + }, + "MessageOptions:no_standard_descriptor_accessor": { + "paramName": "no_standard_descriptor_accessor", + "paramType": "TYPE_BOOL", + "comments": [ + " Disables the generation of the standard \"descriptor()\" accessor, which can", + " conflict with a field of the same name. This is meant to make migration", + " from proto1 easier; new code should avoid fields named \"descriptor\"." + ] + }, + "MessageOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this message deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for the message, or it will be completely ignored; in the very least,", + " this is a formalization for deprecating messages." + ] + }, + "MessageOptions:map_entry": { + "paramName": "map_entry", + "paramType": "TYPE_BOOL", + "comments": [ + " NOTE: Do not set the option in .proto files. Always use the maps syntax", + " instead. The option should only be implicitly set by the proto compiler", + " parser.", + "", + " Whether the message is an automatically generated map entry type for the", + " maps field.", + "", + " For maps fields:", + " map map_field = 1;", + " The parsed descriptor looks like:", + " message MapFieldEntry {", + " option map_entry = true;", + " optional KeyType key = 1;", + " optional ValueType value = 2;", + " }", + " repeated MapFieldEntry map_field = 1;", + "", + " Implementations may choose not to generate the map_entry=true message, but", + " use a native map in the target language to hold the keys and values.", + " The reflection APIs in such implementations still need to work as", + " if the field is a repeated message field." + ] + }, + "MessageOptions:deprecated_legacy_json_field_conflicts": { + "paramName": "deprecated_legacy_json_field_conflicts", + "paramType": "TYPE_BOOL", + "comments": [ + " Enable the legacy handling of JSON field name conflicts. This lowercases", + " and strips underscored from the fields before comparison in proto3 only.", + " The new behavior takes `json_name` into account and applies to proto2 as", + " well.", + "", + " This should only be used as a temporary measure against broken builds due", + " to the change in behavior for JSON field name conflicts.", + "", + " TODO(b/261750190) This is legacy behavior we plan to remove once downstream", + " teams have had time to migrate." + ] + }, + "MessageOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "MessageOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "FieldOptions:ctype": { + "paramName": "ctype", + "paramType": ".google.protobuf.FieldOptions.CType", + "comments": [ + " The ctype option instructs the C++ code generator to use a different", + " representation of the field than it normally would. See the specific", + " options below. This option is only implemented to support use of", + " [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of", + " type \"bytes\" in the open source release -- sorry, we'll try to include", + " other types in a future version!" + ] + }, + "FieldOptions:packed": { + "paramName": "packed", + "paramType": "TYPE_BOOL", + "comments": [ + " The packed option can be enabled for repeated primitive fields to enable", + " a more efficient representation on the wire. Rather than repeatedly", + " writing the tag and type for each element, the entire array is encoded as", + " a single length-delimited blob. In proto3, only explicit setting it to", + " false will avoid using packed encoding." + ] + }, + "FieldOptions:jstype": { + "paramName": "jstype", + "paramType": ".google.protobuf.FieldOptions.JSType", + "comments": [ + " The jstype option determines the JavaScript type used for values of the", + " field. The option is permitted only for 64 bit integral and fixed types", + " (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING", + " is represented as JavaScript string, which avoids loss of precision that", + " can happen when a large value is converted to a floating point JavaScript.", + " Specifying JS_NUMBER for the jstype causes the generated JavaScript code to", + " use the JavaScript \"number\" type. The behavior of the default option", + " JS_NORMAL is implementation dependent.", + "", + " This option is an enum to permit additional types to be added, e.g.", + " goog.math.Integer." + ] + }, + "FieldOptions:lazy": { + "paramName": "lazy", + "paramType": "TYPE_BOOL", + "comments": [ + " Should this field be parsed lazily? Lazy applies only to message-type", + " fields. It means that when the outer message is initially parsed, the", + " inner message's contents will not be parsed but instead stored in encoded", + " form. The inner message will actually be parsed when it is first accessed.", + "", + " This is only a hint. Implementations are free to choose whether to use", + " eager or lazy parsing regardless of the value of this option. However,", + " setting this option true suggests that the protocol author believes that", + " using lazy parsing on this field is worth the additional bookkeeping", + " overhead typically needed to implement it.", + "", + " This option does not affect the public interface of any generated code;", + " all method signatures remain the same. Furthermore, thread-safety of the", + " interface is not affected by this option; const methods remain safe to", + " call from multiple threads concurrently, while non-const methods continue", + " to require exclusive access.", + "", + " Note that implementations may choose not to check required fields within", + " a lazy sub-message. That is, calling IsInitialized() on the outer message", + " may return true even if the inner message has missing required fields.", + " This is necessary because otherwise the inner message would have to be", + " parsed in order to perform the check, defeating the purpose of lazy", + " parsing. An implementation which chooses not to check required fields", + " must be consistent about it. That is, for any particular sub-message, the", + " implementation must either *always* check its required fields, or *never*", + " check its required fields, regardless of whether or not the message has", + " been parsed.", + "", + " As of May 2022, lazy verifies the contents of the byte stream during", + " parsing. An invalid byte stream will cause the overall parsing to fail." + ] + }, + "FieldOptions:unverified_lazy": { + "paramName": "unverified_lazy", + "paramType": "TYPE_BOOL", + "comments": [ + " unverified_lazy does no correctness checks on the byte stream. This should", + " only be used where lazy with verification is prohibitive for performance", + " reasons." + ] + }, + "FieldOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this field deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for accessors, or it will be completely ignored; in the very least, this", + " is a formalization for deprecating fields." + ] + }, + "FieldOptions:weak": { + "paramName": "weak", + "paramType": "TYPE_BOOL", + "comments": [ + " For Google-internal migration only. Do not use." + ] + }, + "FieldOptions:debug_redact": { + "paramName": "debug_redact", + "paramType": "TYPE_BOOL", + "comments": [ + " Indicate that the field value should not be printed out when using debug", + " formats, e.g. when the field contains sensitive credentials." + ] + }, + "FieldOptions:retention": { + "paramName": "retention", + "paramType": ".google.protobuf.FieldOptions.OptionRetention", + "comments": [] + }, + "FieldOptions:targets": { + "paramName": "targets", + "paramType": "TYPE_ENUM[]", + "comments": [] + }, + "FieldOptions:edition_defaults": { + "paramName": "edition_defaults", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "FieldOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "FieldOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "OneofOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "OneofOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "EnumOptions:allow_alias": { + "paramName": "allow_alias", + "paramType": "TYPE_BOOL", + "comments": [ + " Set this option to true to allow mapping different tag names to the same", + " value." + ] + }, + "EnumOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this enum deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for the enum, or it will be completely ignored; in the very least, this", + " is a formalization for deprecating enums." + ] + }, + "EnumOptions:deprecated_legacy_json_field_conflicts": { + "paramName": "deprecated_legacy_json_field_conflicts", + "paramType": "TYPE_BOOL", + "comments": [ + " Enable the legacy handling of JSON field name conflicts. This lowercases", + " and strips underscored from the fields before comparison in proto3 only.", + " The new behavior takes `json_name` into account and applies to proto2 as", + " well.", + " TODO(b/261750190) Remove this legacy behavior once downstream teams have", + " had time to migrate." + ] + }, + "EnumOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "EnumOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "EnumValueOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this enum value deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for the enum value, or it will be completely ignored; in the very least,", + " this is a formalization for deprecating enum values." + ] + }, + "EnumValueOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "EnumValueOptions:debug_redact": { + "paramName": "debug_redact", + "paramType": "TYPE_BOOL", + "comments": [ + " Indicate that fields annotated with this enum value should not be printed", + " out when using debug formats, e.g. when the field contains sensitive", + " credentials." + ] + }, + "EnumValueOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "ServiceOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "ServiceOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this service deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for the service, or it will be completely ignored; in the very least,", + " this is a formalization for deprecating services." + ] + }, + "ServiceOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "MethodOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this method deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for the method, or it will be completely ignored; in the very least,", + " this is a formalization for deprecating methods." + ] + }, + "MethodOptions:idempotency_level": { + "paramName": "idempotency_level", + "paramType": ".google.protobuf.MethodOptions.IdempotencyLevel", + "comments": [] + }, + "MethodOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "MethodOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "UninterpretedOption:name": { + "paramName": "name", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "UninterpretedOption:identifier_value": { + "paramName": "identifier_value", + "paramType": "TYPE_STRING", + "comments": [ + " The value of the uninterpreted option, in whatever type the tokenizer", + " identified it as during parsing. Exactly one of these should be set." + ] + }, + "UninterpretedOption:positive_int_value": { + "paramName": "positive_int_value", + "paramType": "TYPE_UINT64", + "comments": [] + }, + "UninterpretedOption:negative_int_value": { + "paramName": "negative_int_value", + "paramType": "TYPE_INT64", + "comments": [] + }, + "UninterpretedOption:double_value": { + "paramName": "double_value", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "UninterpretedOption:string_value": { + "paramName": "string_value", + "paramType": "TYPE_BYTES", + "comments": [] + }, + "UninterpretedOption:aggregate_value": { + "paramName": "aggregate_value", + "paramType": "TYPE_STRING", + "comments": [] + }, + "FeatureSet:field_presence": { + "paramName": "field_presence", + "paramType": ".google.protobuf.FeatureSet.FieldPresence", + "comments": [] + }, + "FeatureSet:enum_type": { + "paramName": "enum_type", + "paramType": ".google.protobuf.FeatureSet.EnumType", + "comments": [] + }, + "FeatureSet:repeated_field_encoding": { + "paramName": "repeated_field_encoding", + "paramType": ".google.protobuf.FeatureSet.RepeatedFieldEncoding", + "comments": [] + }, + "FeatureSet:string_field_validation": { + "paramName": "string_field_validation", + "paramType": ".google.protobuf.FeatureSet.StringFieldValidation", + "comments": [] + }, + "FeatureSet:message_encoding": { + "paramName": "message_encoding", + "paramType": ".google.protobuf.FeatureSet.MessageEncoding", + "comments": [] + }, + "FeatureSet:json_format": { + "paramName": "json_format", + "paramType": ".google.protobuf.FeatureSet.JsonFormat", + "comments": [] + }, + "FeatureSet:raw_features": { + "paramName": "raw_features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [] + }, + "SourceCodeInfo:location": { + "paramName": "location", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " A Location identifies a piece of source code in a .proto file which", + " corresponds to a particular definition. This information is intended", + " to be useful to IDEs, code indexers, documentation generators, and similar", + " tools.", + "", + " For example, say we have a file like:", + " message Foo {", + " optional string foo = 1;", + " }", + " Let's look at just the field definition:", + " optional string foo = 1;", + " ^ ^^ ^^ ^ ^^^", + " a bc de f ghi", + " We have the following locations:", + " span path represents", + " [a,i) [ 4, 0, 2, 0 ] The whole field definition.", + " [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).", + " [c,d) [ 4, 0, 2, 0, 5 ] The type (string).", + " [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).", + " [g,h) [ 4, 0, 2, 0, 3 ] The number (1).", + "", + " Notes:", + " - A location may refer to a repeated field itself (i.e. not to any", + " particular index within it). This is used whenever a set of elements are", + " logically enclosed in a single code segment. For example, an entire", + " extend block (possibly containing multiple extension definitions) will", + " have an outer location whose path refers to the \"extensions\" repeated", + " field without an index.", + " - Multiple locations may have the same path. This happens when a single", + " logical declaration is spread out across multiple places. The most", + " obvious example is the \"extend\" block again -- there may be multiple", + " extend blocks in the same scope, each of which will have the same path.", + " - A location's span is not always a subset of its parent's span. For", + " example, the \"extendee\" of an extension declaration appears at the", + " beginning of the \"extend\" block and is shared by all extensions within", + " the block.", + " - Just because a location's span is a subset of some other location's span", + " does not mean that it is a descendant. For example, a \"group\" defines", + " both a type and a field in a single declaration. Thus, the locations", + " corresponding to the type and field and their components will overlap.", + " - Code which tries to interpret locations should probably be designed to", + " ignore those that it doesn't understand, as more types of locations could", + " be recorded in the future." + ] + }, + "GeneratedCodeInfo:annotation": { + "paramName": "annotation", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " An Annotation connects some span of text in generated code to an element", + " of its generating .proto file." + ] + }, + "Duration:seconds": { + "paramName": "seconds", + "paramType": "TYPE_INT64", + "comments": [ + " Signed seconds of the span of time. Must be from -315,576,000,000", + " to +315,576,000,000 inclusive. Note: these bounds are computed from:", + " 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years" + ] + }, + "Duration:nanos": { + "paramName": "nanos", + "paramType": "TYPE_INT32", + "comments": [ + " Signed fractions of a second at nanosecond resolution of the span", + " of time. Durations less than one second are represented with a 0", + " `seconds` field and a positive or negative `nanos` field. For durations", + " of one second or more, a non-zero value for the `nanos` field must be", + " of the same sign as the `seconds` field. Must be from -999,999,999", + " to +999,999,999 inclusive." + ] + }, + "CommonLanguageSettings:reference_docs_uri": { + "paramName": "reference_docs_uri", + "paramType": "TYPE_STRING", + "comments": [ + " Link to automatically generated reference documentation. Example:", + " https://cloud.google.com/nodejs/docs/reference/asset/latest" + ] + }, + "CommonLanguageSettings:destinations": { + "paramName": "destinations", + "paramType": "TYPE_ENUM[]", + "comments": [ + " The destination where API teams want this client library to be published." + ] + }, + "ClientLibrarySettings:version": { + "paramName": "version", + "paramType": "TYPE_STRING", + "comments": [ + " Version of the API to apply these settings to. This is the full protobuf", + " package for the API, ending in the version element.", + " Examples: \"google.cloud.speech.v1\" and \"google.spanner.admin.database.v1\"." + ] + }, + "ClientLibrarySettings:launch_stage": { + "paramName": "launch_stage", + "paramType": ".google.api.LaunchStage", + "comments": [ + " Launch stage of this version of the API." + ] + }, + "ClientLibrarySettings:rest_numeric_enums": { + "paramName": "rest_numeric_enums", + "paramType": "TYPE_BOOL", + "comments": [ + " When using transport=rest, the client request will encode enums as", + " numbers rather than strings." + ] + }, + "ClientLibrarySettings:java_settings": { + "paramName": "java_settings", + "paramType": ".google.api.JavaSettings", + "comments": [ + " Settings for legacy Java features, supported in the Service YAML." + ] + }, + "ClientLibrarySettings:cpp_settings": { + "paramName": "cpp_settings", + "paramType": ".google.api.CppSettings", + "comments": [ + " Settings for C++ client libraries." + ] + }, + "ClientLibrarySettings:php_settings": { + "paramName": "php_settings", + "paramType": ".google.api.PhpSettings", + "comments": [ + " Settings for PHP client libraries." + ] + }, + "ClientLibrarySettings:python_settings": { + "paramName": "python_settings", + "paramType": ".google.api.PythonSettings", + "comments": [ + " Settings for Python client libraries." + ] + }, + "ClientLibrarySettings:node_settings": { + "paramName": "node_settings", + "paramType": ".google.api.NodeSettings", + "comments": [ + " Settings for Node client libraries." + ] + }, + "ClientLibrarySettings:dotnet_settings": { + "paramName": "dotnet_settings", + "paramType": ".google.api.DotnetSettings", + "comments": [ + " Settings for .NET client libraries." + ] + }, + "ClientLibrarySettings:ruby_settings": { + "paramName": "ruby_settings", + "paramType": ".google.api.RubySettings", + "comments": [ + " Settings for Ruby client libraries." + ] + }, + "ClientLibrarySettings:go_settings": { + "paramName": "go_settings", + "paramType": ".google.api.GoSettings", + "comments": [ + " Settings for Go client libraries." + ] + }, + "Publishing:method_settings": { + "paramName": "method_settings", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " A list of API method settings, e.g. the behavior for methods that use the", + " long-running operation pattern." + ] + }, + "Publishing:new_issue_uri": { + "paramName": "new_issue_uri", + "paramType": "TYPE_STRING", + "comments": [ + " Link to a *public* URI where users can report issues. Example:", + " https://issuetracker.google.com/issues/new?component=190865&template=1161103" + ] + }, + "Publishing:documentation_uri": { + "paramName": "documentation_uri", + "paramType": "TYPE_STRING", + "comments": [ + " Link to product home page. Example:", + " https://cloud.google.com/asset-inventory/docs/overview" + ] + }, + "Publishing:api_short_name": { + "paramName": "api_short_name", + "paramType": "TYPE_STRING", + "comments": [ + " Used as a tracking tag when collecting data about the APIs developer", + " relations artifacts like docs, packages delivered to package managers,", + " etc. Example: \"speech\"." + ] + }, + "Publishing:github_label": { + "paramName": "github_label", + "paramType": "TYPE_STRING", + "comments": [ + " GitHub label to apply to issues and pull requests opened for this API." + ] + }, + "Publishing:codeowner_github_teams": { + "paramName": "codeowner_github_teams", + "paramType": "TYPE_STRING[]", + "comments": [ + " GitHub teams to be added to CODEOWNERS in the directory in GitHub", + " containing source code for the client libraries for this API." + ] + }, + "Publishing:doc_tag_prefix": { + "paramName": "doc_tag_prefix", + "paramType": "TYPE_STRING", + "comments": [ + " A prefix used in sample code when demarking regions to be included in", + " documentation." + ] + }, + "Publishing:organization": { + "paramName": "organization", + "paramType": ".google.api.ClientLibraryOrganization", + "comments": [ + " For whom the client library is being published." + ] + }, + "Publishing:library_settings": { + "paramName": "library_settings", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Client library settings. If the same version string appears multiple", + " times in this list, then the last one wins. Settings from earlier", + " settings with the same version string are discarded." + ] + }, + "Publishing:proto_reference_documentation_uri": { + "paramName": "proto_reference_documentation_uri", + "paramType": "TYPE_STRING", + "comments": [ + " Optional link to proto reference documentation. Example:", + " https://cloud.google.com/pubsub/lite/docs/reference/rpc" + ] + }, + "JavaSettings:library_package": { + "paramName": "library_package", + "paramType": "TYPE_STRING", + "comments": [ + " The package name to use in Java. Clobbers the java_package option", + " set in the protobuf. This should be used **only** by APIs", + " who have already set the language_settings.java.package_name\" field", + " in gapic.yaml. API teams should use the protobuf java_package option", + " where possible.", + "", + " Example of a YAML configuration::", + "", + " publishing:", + " java_settings:", + " library_package: com.google.cloud.pubsub.v1" + ] + }, + "JavaSettings:service_class_names": { + "paramName": "service_class_names", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Configure the Java class name to use instead of the service's for its", + " corresponding generated GAPIC client. Keys are fully-qualified", + " service names as they appear in the protobuf (including the full", + " the language_settings.java.interface_names\" field in gapic.yaml. API", + " teams should otherwise use the service name as it appears in the", + " protobuf.", + "", + " Example of a YAML configuration::", + "", + " publishing:", + " java_settings:", + " service_class_names:", + " - google.pubsub.v1.Publisher: TopicAdmin", + " - google.pubsub.v1.Subscriber: SubscriptionAdmin" + ] + }, + "JavaSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "CppSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "PhpSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "PythonSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "NodeSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "DotnetSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "DotnetSettings:renamed_services": { + "paramName": "renamed_services", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Map from original service names to renamed versions.", + " This is used when the default generated types", + " would cause a naming conflict. (Neither name is", + " fully-qualified.)", + " Example: Subscriber to SubscriberServiceApi." + ] + }, + "DotnetSettings:renamed_resources": { + "paramName": "renamed_resources", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Map from full resource types to the effective short name", + " for the resource. This is used when otherwise resource", + " named from different services would cause naming collisions.", + " Example entry:", + " \"datalabeling.googleapis.com/Dataset\": \"DataLabelingDataset\"" + ] + }, + "DotnetSettings:ignored_resources": { + "paramName": "ignored_resources", + "paramType": "TYPE_STRING[]", + "comments": [ + " List of full resource types to ignore during generation.", + " This is typically used for API-specific Location resources,", + " which should be handled by the generator as if they were actually", + " the common Location resources.", + " Example entry: \"documentai.googleapis.com/Location\"" + ] + }, + "DotnetSettings:forced_namespace_aliases": { + "paramName": "forced_namespace_aliases", + "paramType": "TYPE_STRING[]", + "comments": [ + " Namespaces which must be aliased in snippets due to", + " a known (but non-generator-predictable) naming collision" + ] + }, + "DotnetSettings:handwritten_signatures": { + "paramName": "handwritten_signatures", + "paramType": "TYPE_STRING[]", + "comments": [ + " Method signatures (in the form \"service.method(signature)\")", + " which are provided separately, so shouldn't be generated.", + " Snippets *calling* these methods are still generated, however." + ] + }, + "RubySettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "GoSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "MethodSettings:selector": { + "paramName": "selector", + "paramType": "TYPE_STRING", + "comments": [ + " The fully qualified name of the method, for which the options below apply.", + " This is used to find the method to apply the options." + ] + }, + "MethodSettings:long_running": { + "paramName": "long_running", + "paramType": ".google.api.MethodSettings.LongRunning", + "comments": [ + " Describes settings to use for long-running operations when generating", + " API methods for RPCs. Complements RPCs that use the annotations in", + " google/longrunning/operations.proto.", + "", + " Example of a YAML configuration::", + "", + " publishing:", + " method_settings:", + " - selector: google.cloud.speech.v2.Speech.BatchRecognize", + " long_running:", + " initial_poll_delay:", + " seconds: 60 # 1 minute", + " poll_delay_multiplier: 1.5", + " max_poll_delay:", + " seconds: 360 # 6 minutes", + " total_poll_timeout:", + " seconds: 54000 # 90 minutes" + ] + }, + "Compliance": { + "paramName": "", + "paramType": "", + "comments": [ + " This service is used to test that GAPICs implement various REST-related features correctly. This mostly means transcoding proto3 requests to REST format", + " correctly for various types of HTTP annotations, but it also includes verifying that unknown (numeric) enums received by clients can be round-tripped", + " correctly." + ] + }, + "Compliance:RepeatDataBody": { + "paramName": "", + "paramType": "", + "comments": [ + " This method echoes the ComplianceData request. This method exercises", + " sending the entire request object in the REST body.", + "" + ] + }, + "Compliance:RepeatDataBodyInfo": { + "paramName": "", + "paramType": "", + "comments": [ + " This method echoes the ComplianceData request. This method exercises", + " sending the a message-type field in the REST body. Per AIP-127, only", + " top-level, non-repeated fields can be sent this way.", + "" + ] + }, + "Compliance:RepeatDataQuery": { + "paramName": "", + "paramType": "", + "comments": [ + " This method echoes the ComplianceData request. This method exercises", + " sending all request fields as query parameters.", + "" + ] + }, + "Compliance:RepeatDataSimplePath": { + "paramName": "", + "paramType": "", + "comments": [ + " This method echoes the ComplianceData request. This method exercises", + " sending some parameters as \"simple\" path variables (i.e., of the form", + " \"/bar/{foo}\" rather than \"/{foo=bar/*}\"), and the rest as query parameters.", + "" + ] + }, + "Compliance:RepeatDataPathResource": { + "paramName": "", + "paramType": "", + "comments": [ + " Same as RepeatDataSimplePath, but with a path resource.", + "" + ] + }, + "Compliance:RepeatDataPathTrailingResource": { + "paramName": "", + "paramType": "", + "comments": [ + " Same as RepeatDataSimplePath, but with a trailing resource.", + "" + ] + }, + "Compliance:RepeatDataBodyPut": { + "paramName": "", + "paramType": "", + "comments": [ + " This method echoes the ComplianceData request, using the HTTP PUT method.", + "" + ] + }, + "Compliance:RepeatDataBodyPatch": { + "paramName": "", + "paramType": "", + "comments": [ + " This method echoes the ComplianceData request, using the HTTP PATCH method.", + "" + ] + }, + "Compliance:GetEnum": { + "paramName": "", + "paramType": "", + "comments": [ + " This method requests an enum value from the server. Depending on the contents of EnumRequest, the enum value returned will be a known enum declared in the", + " .proto file, or a made-up enum value the is unknown to the client. To verify that clients can round-trip unknown enum vaues they receive, use the", + " response from this RPC as the request to VerifyEnum()", + "", + " The values of enums sent by the server when a known or unknown value is requested will be the same within a single Showcase server run (this is needed for", + " VerifyEnum() to work) but are not guaranteed to be the same across separate Showcase server runs.", + "" + ] + }, + "Compliance:VerifyEnum": { + "paramName": "", + "paramType": "", + "comments": [ + " This method is used to verify that clients can round-trip enum values, which is particularly important for unknown enum values over REST. VerifyEnum()", + " verifies that its request, which is presumably the response that the client previously got to a GetEnum(), contains the correct data. If so, it responds", + " with the same EnumResponse; otherwise, the RPC errors.", + "", + " This works because the values of enums sent by the server when a known or unknown value is requested will be the same within a single Showcase server run,", + " although they are not guaranteed to be the same across separate Showcase server runs.", + "" + ] + }, + "RepeatRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "RepeatRequest:info": { + "paramName": "info", + "paramType": ".google.showcase.v1beta1.ComplianceData", + "comments": [] + }, + "RepeatRequest:server_verify": { + "paramName": "server_verify", + "paramType": "TYPE_BOOL", + "comments": [ + " If true, the server will verify that the received request matches", + " the request with the same name in the compliance test suite." + ] + }, + "RepeatRequest:intended_binding_uri": { + "paramName": "intended_binding_uri", + "paramType": "TYPE_STRING", + "comments": [ + " The URI template this request is expected to be bound to server-side." + ] + }, + "RepeatRequest:f_int32": { + "paramName": "f_int32", + "paramType": "TYPE_INT32", + "comments": [ + " Some top level fields, to test that these are encoded correctly", + " in query params." + ] + }, + "RepeatRequest:f_int64": { + "paramName": "f_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + "RepeatRequest:f_double": { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "RepeatRequest:p_int32": { + "paramName": "p_int32", + "paramType": "TYPE_INT32", + "comments": [] + }, + "RepeatRequest:p_int64": { + "paramName": "p_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + "RepeatRequest:p_double": { + "paramName": "p_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "RepeatResponse:request": { + "paramName": "request", + "paramType": ".google.showcase.v1beta1.RepeatRequest", + "comments": [] + }, + "RepeatResponse:binding_uri": { + "paramName": "binding_uri", + "paramType": "TYPE_STRING", + "comments": [ + " The URI template the request was bound to server-side." + ] + }, + "ComplianceSuite:group": { + "paramName": "group", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "ComplianceGroup:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ComplianceGroup:rpcs": { + "paramName": "rpcs", + "paramType": "TYPE_STRING[]", + "comments": [] + }, + "ComplianceGroup:requests": { + "paramName": "requests", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "ComplianceData:f_string": { + "paramName": "f_string", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ComplianceData:f_int32": { + "paramName": "f_int32", + "paramType": "TYPE_INT32", + "comments": [] + }, + "ComplianceData:f_sint32": { + "paramName": "f_sint32", + "paramType": "TYPE_SINT32", + "comments": [] + }, + "ComplianceData:f_sfixed32": { + "paramName": "f_sfixed32", + "paramType": "TYPE_SFIXED32", + "comments": [] + }, + "ComplianceData:f_uint32": { + "paramName": "f_uint32", + "paramType": "TYPE_UINT32", + "comments": [] + }, + "ComplianceData:f_fixed32": { + "paramName": "f_fixed32", + "paramType": "TYPE_FIXED32", + "comments": [] + }, + "ComplianceData:f_int64": { + "paramName": "f_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + "ComplianceData:f_sint64": { + "paramName": "f_sint64", + "paramType": "TYPE_SINT64", + "comments": [] + }, + "ComplianceData:f_sfixed64": { + "paramName": "f_sfixed64", + "paramType": "TYPE_SFIXED64", + "comments": [] + }, + "ComplianceData:f_uint64": { + "paramName": "f_uint64", + "paramType": "TYPE_UINT64", + "comments": [] + }, + "ComplianceData:f_fixed64": { + "paramName": "f_fixed64", + "paramType": "TYPE_FIXED64", + "comments": [] + }, + "ComplianceData:f_double": { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "ComplianceData:f_float": { + "paramName": "f_float", + "paramType": "TYPE_FLOAT", + "comments": [] + }, + "ComplianceData:f_bool": { + "paramName": "f_bool", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "ComplianceData:f_bytes": { + "paramName": "f_bytes", + "paramType": "TYPE_BYTES", + "comments": [] + }, + "ComplianceData:f_kingdom": { + "paramName": "f_kingdom", + "paramType": ".google.showcase.v1beta1.ComplianceData.LifeKingdom", + "comments": [] + }, + "ComplianceData:f_child": { + "paramName": "f_child", + "paramType": ".google.showcase.v1beta1.ComplianceDataChild", + "comments": [] + }, + "ComplianceData:p_string": { + "paramName": "p_string", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ComplianceData:p_int32": { + "paramName": "p_int32", + "paramType": "TYPE_INT32", + "comments": [] + }, + "ComplianceData:p_double": { + "paramName": "p_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "ComplianceData:p_bool": { + "paramName": "p_bool", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "ComplianceData:p_kingdom": { + "paramName": "p_kingdom", + "paramType": ".google.showcase.v1beta1.ComplianceData.LifeKingdom", + "comments": [] + }, + "ComplianceData:p_child": { + "paramName": "p_child", + "paramType": ".google.showcase.v1beta1.ComplianceDataChild", + "comments": [] + }, + "ComplianceDataChild:f_string": { + "paramName": "f_string", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ComplianceDataChild:f_float": { + "paramName": "f_float", + "paramType": "TYPE_FLOAT", + "comments": [] + }, + "ComplianceDataChild:f_double": { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "ComplianceDataChild:f_bool": { + "paramName": "f_bool", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "ComplianceDataChild:f_continent": { + "paramName": "f_continent", + "paramType": ".google.showcase.v1beta1.Continent", + "comments": [] + }, + "ComplianceDataChild:f_child": { + "paramName": "f_child", + "paramType": ".google.showcase.v1beta1.ComplianceDataGrandchild", + "comments": [] + }, + "ComplianceDataChild:p_string": { + "paramName": "p_string", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ComplianceDataChild:p_float": { + "paramName": "p_float", + "paramType": "TYPE_FLOAT", + "comments": [] + }, + "ComplianceDataChild:p_double": { + "paramName": "p_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "ComplianceDataChild:p_bool": { + "paramName": "p_bool", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "ComplianceDataChild:p_continent": { + "paramName": "p_continent", + "paramType": ".google.showcase.v1beta1.Continent", + "comments": [] + }, + "ComplianceDataChild:p_child": { + "paramName": "p_child", + "paramType": ".google.showcase.v1beta1.ComplianceDataGrandchild", + "comments": [] + }, + "ComplianceDataGrandchild:f_string": { + "paramName": "f_string", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ComplianceDataGrandchild:f_double": { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "ComplianceDataGrandchild:f_bool": { + "paramName": "f_bool", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "EnumRequest:unknown_enum": { + "paramName": "unknown_enum", + "paramType": "TYPE_BOOL", + "comments": [ + " Whether the client is requesting a new, unknown enum value or a known enum value already declard in this proto file." + ] + }, + "EnumResponse:request": { + "paramName": "request", + "paramType": ".google.showcase.v1beta1.EnumRequest", + "comments": [ + " The original request for a known or unknown enum from the server." + ] + }, + "EnumResponse:continent": { + "paramName": "continent", + "paramType": ".google.showcase.v1beta1.Continent", + "comments": [ + " The actual enum the server provided." + ] + }, + "RoutingRule:routing_parameters": { + "paramName": "routing_parameters", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " A collection of Routing Parameter specifications.", + " **NOTE:** If multiple Routing Parameters describe the same key", + " (via the `path_template` field or via the `field` field when", + " `path_template` is not provided), \"last one wins\" rule", + " determines which Parameter gets used.", + " See the examples for more details." + ] + }, + "RoutingParameter:field": { + "paramName": "field", + "paramType": "TYPE_STRING", + "comments": [ + " A request field to extract the header key-value pair from." + ] + }, + "RoutingParameter:path_template": { + "paramName": "path_template", + "paramType": "TYPE_STRING", + "comments": [ + " A pattern matching the key-value field. Optional.", + " If not specified, the whole field specified in the `field` field will be", + " taken as value, and its name used as key. If specified, it MUST contain", + " exactly one named segment (along with any number of unnamed segments) The", + " pattern will be matched over the field specified in the `field` field, then", + " if the match is successful:", + " - the name of the single named segment will be used as a header name,", + " - the match value of the segment will be used as a header value;", + " if the match is NOT successful, nothing will be sent.", + "", + " Example:", + "", + " -- This is a field in the request message", + " | that the header value will be extracted from.", + " |", + " | -- This is the key name in the", + " | | routing header.", + " V |", + " field: \"table_name\" v", + " path_template: \"projects/*/{table_location=instances/*}/tables/*\"", + " ^ ^", + " | |", + " In the {} brackets is the pattern that -- |", + " specifies what to extract from the |", + " field as a value to be sent. |", + " |", + " The string in the field must match the whole pattern --", + " before brackets, inside brackets, after brackets.", + "", + " When looking at this specific example, we can see that:", + " - A key-value pair with the key `table_location`", + " and the value matching `instances/*` should be added", + " to the x-goog-request-params routing header.", + " - The value is extracted from the request message's `table_name` field", + " if it matches the full pattern specified:", + " `projects/*/instances/*/tables/*`.", + "", + " **NB:** If the `path_template` field is not provided, the key name is", + " equal to the field name, and the whole field should be sent as a value.", + " This makes the pattern for the field and the value functionally equivalent", + " to `**`, and the configuration", + "", + " {", + " field: \"table_name\"", + " }", + "", + " is a functionally equivalent shorthand to:", + "", + " {", + " field: \"table_name\"", + " path_template: \"{table_name=**}\"", + " }", + "", + " See Example 1 for more details." + ] + }, + "Any:type_url": { + "paramName": "type_url", + "paramType": "TYPE_STRING", + "comments": [ + " A URL/resource name that uniquely identifies the type of the serialized", + " protocol buffer message. This string must contain at least", + " one \"/\" character. The last segment of the URL's path must represent", + " the fully qualified name of the type (as in", + " `path/google.protobuf.Duration`). The name should be in a canonical form", + " (e.g., leading \".\" is not accepted).", + "", + " In practice, teams usually precompile into the binary all types that they", + " expect it to use in the context of Any. However, for URLs which use the", + " scheme `http`, `https`, or no scheme, one can optionally set up a type", + " server that maps type URLs to message definitions as follows:", + "", + " * If no scheme is provided, `https` is assumed.", + " * An HTTP GET on the URL must yield a [google.protobuf.Type][]", + " value in binary format, or produce an error.", + " * Applications are allowed to cache lookup results based on the", + " URL, or have them precompiled into a binary to avoid any", + " lookup. Therefore, binary compatibility needs to be preserved", + " on changes to types. (Use versioned type names to manage", + " breaking changes.)", + "", + " Note: this functionality is not currently available in the official", + " protobuf release, and it is not used for type URLs beginning with", + " type.googleapis.com. As of May 2023, there are no widely used type server", + " implementations and no plans to implement one.", + "", + " Schemes other than `http`, `https` (or the empty scheme) might be", + " used with implementation specific semantics.", + "" + ] + }, + "Any:value": { + "paramName": "value", + "paramType": "TYPE_BYTES", + "comments": [ + " Must be a valid serialized protocol buffer of the above specified type." + ] + }, + "Status:code": { + "paramName": "code", + "paramType": "TYPE_INT32", + "comments": [ + " The status code, which should be an enum value of", + " [google.rpc.Code][google.rpc.Code]." + ] + }, + "Status:message": { + "paramName": "message", + "paramType": "TYPE_STRING", + "comments": [ + " A developer-facing error message, which should be in English. Any", + " user-facing error message should be localized and sent in the", + " [google.rpc.Status.details][google.rpc.Status.details] field, or localized", + " by the client." + ] + }, + "Status:details": { + "paramName": "details", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " A list of messages that carry the error details. There is a common set of", + " message types for APIs to use." + ] + }, + "Operations": { + "paramName": "", + "paramType": "", + "comments": [ + " Manages long-running operations with an API service.", + "", + " When an API method normally takes long time to complete, it can be designed", + " to return [Operation][google.longrunning.Operation] to the client, and the client can use this", + " interface to receive the real response asynchronously by polling the", + " operation resource, or pass the operation resource to another API (such as", + " Google Cloud Pub/Sub API) to receive the response. Any API service that", + " returns long-running operations should implement the `Operations` interface", + " so developers can have a consistent client experience." + ] + }, + "Operations:ListOperations": { + "paramName": "", + "paramType": "", + "comments": [ + " Lists operations that match the specified filter in the request. If the", + " server doesn't support this method, it returns `UNIMPLEMENTED`.", + "", + " NOTE: the `name` binding allows API services to override the binding", + " to use different resource name schemes, such as `users/*/operations`. To", + " override the binding, API services can add a binding such as", + " `\"/v1/{name=users/*}/operations\"` to their service configuration.", + " For backwards compatibility, the default name includes the operations", + " collection id, however overriding users must ensure the name binding", + " is the parent resource, without the operations collection id.", + "" + ] + }, + "Operations:GetOperation": { + "paramName": "", + "paramType": "", + "comments": [ + " Gets the latest state of a long-running operation. Clients can use this", + " method to poll the operation result at intervals as recommended by the API", + " service.", + "" + ] + }, + "Operations:DeleteOperation": { + "paramName": "", + "paramType": "", + "comments": [ + " Deletes a long-running operation. This method indicates that the client is", + " no longer interested in the operation result. It does not cancel the", + " operation. If the server doesn't support this method, it returns", + " `google.rpc.Code.UNIMPLEMENTED`.", + "" + ] + }, + "Operations:CancelOperation": { + "paramName": "", + "paramType": "", + "comments": [ + " Starts asynchronous cancellation on a long-running operation. The server", + " makes a best effort to cancel the operation, but success is not", + " guaranteed. If the server doesn't support this method, it returns", + " `google.rpc.Code.UNIMPLEMENTED`. Clients can use", + " [Operations.GetOperation][google.longrunning.Operations.GetOperation] or", + " other methods to check whether the cancellation succeeded or whether the", + " operation completed despite cancellation. On successful cancellation,", + " the operation is not deleted; instead, it becomes an operation with", + " an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,", + " corresponding to `Code.CANCELLED`.", + "" + ] + }, + "Operations:WaitOperation": { + "paramName": "", + "paramType": "", + "comments": [ + " Waits until the specified long-running operation is done or reaches at most", + " a specified timeout, returning the latest state. If the operation is", + " already done, the latest state is immediately returned. If the timeout", + " specified is greater than the default HTTP/RPC timeout, the HTTP/RPC", + " timeout is used. If the server does not support this method, it returns", + " `google.rpc.Code.UNIMPLEMENTED`.", + " Note that this method is on a best-effort basis. It may return the latest", + " state before the specified timeout (including immediately), meaning even an", + " immediate response is no guarantee that the operation is done.", + "" + ] + }, + "Operation:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The server-assigned name, which is only unique within the same service that", + " originally returns it. If you use the default HTTP mapping, the", + " `name` should be a resource name ending with `operations/{unique_id}`." + ] + }, + "Operation:metadata": { + "paramName": "metadata", + "paramType": ".google.protobuf.Any", + "comments": [ + " Service-specific metadata associated with the operation. It typically", + " contains progress information and common metadata such as create time.", + " Some services might not provide such metadata. Any method that returns a", + " long-running operation should document the metadata type, if any." + ] + }, + "Operation:done": { + "paramName": "done", + "paramType": "TYPE_BOOL", + "comments": [ + " If the value is `false`, it means the operation is still in progress.", + " If `true`, the operation is completed, and either `error` or `response` is", + " available." + ] + }, + "Operation:error": { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error result of the operation in case of failure or cancellation." + ] + }, + "Operation:response": { + "paramName": "response", + "paramType": ".google.protobuf.Any", + "comments": [ + " The normal response of the operation in case of success. If the original", + " method returns no data on success, such as `Delete`, the response is", + " `google.protobuf.Empty`. If the original method is standard", + " `Get`/`Create`/`Update`, the response should be the resource. For other", + " methods, the response should have the type `XxxResponse`, where `Xxx`", + " is the original method name. For example, if the original method name", + " is `TakeSnapshot()`, the inferred response type is", + " `TakeSnapshotResponse`." + ] + }, + "GetOperationRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the operation resource." + ] + }, + "ListOperationsRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the operation's parent resource." + ] + }, + "ListOperationsRequest:filter": { + "paramName": "filter", + "paramType": "TYPE_STRING", + "comments": [ + " The standard list filter." + ] + }, + "ListOperationsRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The standard list page size." + ] + }, + "ListOperationsRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The standard list page token." + ] + }, + "ListOperationsResponse:operations": { + "paramName": "operations", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " A list of operations that matches the specified filter in the request." + ] + }, + "ListOperationsResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The standard List next-page token." + ] + }, + "CancelOperationRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the operation resource to be cancelled." + ] + }, + "DeleteOperationRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the operation resource to be deleted." + ] + }, + "WaitOperationRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the operation resource to wait on." + ] + }, + "WaitOperationRequest:timeout": { + "paramName": "timeout", + "paramType": ".google.protobuf.Duration", + "comments": [ + " The maximum duration to wait before timing out. If left blank, the wait", + " will be at most the time permitted by the underlying HTTP/RPC protocol.", + " If RPC context deadline is also specified, the shorter one will be used." + ] + }, + "OperationInfo:response_type": { + "paramName": "response_type", + "paramType": "TYPE_STRING", + "comments": [ + " Required. The message name of the primary return type for this", + " long-running operation.", + " This type will be used to deserialize the LRO's response.", + "", + " If the response is in a different package from the rpc, a fully-qualified", + " message name must be used (e.g. `google.protobuf.Struct`).", + "", + " Note: Altering this value constitutes a breaking change." + ] + }, + "OperationInfo:metadata_type": { + "paramName": "metadata_type", + "paramType": "TYPE_STRING", + "comments": [ + " Required. The message name of the metadata type for this long-running", + " operation.", + "", + " If the response is in a different package from the rpc, a fully-qualified", + " message name must be used (e.g. `google.protobuf.Struct`).", + "", + " Note: Altering this value constitutes a breaking change." + ] + }, + "Timestamp:seconds": { + "paramName": "seconds", + "paramType": "TYPE_INT64", + "comments": [ + " Represents seconds of UTC time since Unix epoch", + " 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to", + " 9999-12-31T23:59:59Z inclusive." + ] + }, + "Timestamp:nanos": { + "paramName": "nanos", + "paramType": "TYPE_INT32", + "comments": [ + " Non-negative fractions of a second at nanosecond resolution. Negative", + " second values with fractions must still have non-negative nanos values", + " that count forward in time. Must be from 0 to 999,999,999", + " inclusive." + ] + }, + "Echo": { + "paramName": "", + "paramType": "", + "comments": [ + " This service is used showcase the four main types of rpcs - unary, server", + " side streaming, client side streaming, and bidirectional streaming. This", + " service also exposes methods that explicitly implement server delay, and", + " paginated calls. Set the 'showcase-trailer' metadata key on any method", + " to have the values echoed in the response trailers. Set the ", + " 'x-goog-request-params' metadata key on any method to have the values", + " echoed in the response headers." + ] + }, + "Echo:Expand": { + "paramName": "", + "paramType": "", + "comments": [ + " This method splits the given content into words and will pass each word back", + " through the stream. This method showcases server-side streaming RPCs.", + "" + ] + }, + "Echo:Collect": { + "paramName": "", + "paramType": "", + "comments": [ + " This method will collect the words given to it. When the stream is closed", + " by the client, this method will return the a concatenation of the strings", + " passed to it. This method showcases client-side streaming RPCs.", + "" + ] + }, + "Echo:Chat": { + "paramName": "", + "paramType": "", + "comments": [ + " This method, upon receiving a request on the stream, will pass the same", + " content back on the stream. This method showcases bidirectional", + " streaming RPCs.", + "" + ] + }, + "Echo:PagedExpand": { + "paramName": "", + "paramType": "", + "comments": [ + " This is similar to the Expand method but instead of returning a stream of", + " expanded words, this method returns a paged list of expanded words.", + "" + ] + }, + "Echo:PagedExpandLegacy": { + "paramName": "", + "paramType": "", + "comments": [ + " This is similar to the PagedExpand except that it uses", + " max_results instead of page_size, as some legacy APIs still", + " do. New APIs should NOT use this pattern.", + "" + ] + }, + "Echo:PagedExpandLegacyMapped": { + "paramName": "", + "paramType": "", + "comments": [ + " This method returns a map containing lists of words that appear in the input, keyed by their", + " initial character. The only words returned are the ones included in the current page,", + " as determined by page_token and page_size, which both refer to the word indices in the", + " input. This paging result consisting of a map of lists is a pattern used by some legacy", + " APIs. New APIs should NOT use this pattern.", + "" + ] + }, + "Echo:Wait": { + "paramName": "", + "paramType": "", + "comments": [ + " This method will wait for the requested amount of time and then return.", + " This method showcases how a client handles a request timeout.", + "" + ] + }, + "Echo:Block": { + "paramName": "", + "paramType": "", + "comments": [ + " This method will block (wait) for the requested amount of time", + " and then return the response or error.", + " This method showcases how a client handles delays or retries.", + "" + ] + }, + "EchoRequest:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The content to be echoed by the server." + ] + }, + "EchoRequest:error": { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error to be thrown by the server." + ] + }, + "EchoRequest:severity": { + "paramName": "severity", + "paramType": ".google.showcase.v1beta1.Severity", + "comments": [ + " The severity to be echoed by the server." + ] + }, + "EchoRequest:header": { + "paramName": "header", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. This field can be set to test the routing annotation on the Echo method." + ] + }, + "EchoRequest:other_header": { + "paramName": "other_header", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. This field can be set to test the routing annotation on the Echo method." + ] + }, + "EchoResponse:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The content specified in the request." + ] + }, + "EchoResponse:severity": { + "paramName": "severity", + "paramType": ".google.showcase.v1beta1.Severity", + "comments": [ + " The severity specified in the request." + ] + }, + "ExpandRequest:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The content that will be split into words and returned on the stream." + ] + }, + "ExpandRequest:error": { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error that is thrown after all words are sent on the stream." + ] + }, + "PagedExpandRequest:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The string to expand." + ], + "fieldBehavior": 2 + }, + "PagedExpandRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The number of words to returned in each page." + ] + }, + "PagedExpandRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The position of the page to be returned." + ] + }, + "PagedExpandLegacyRequest:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The string to expand." + ], + "fieldBehavior": 2 + }, + "PagedExpandLegacyRequest:max_results": { + "paramName": "max_results", + "paramType": "TYPE_INT32", + "comments": [ + " The number of words to returned in each page.", + " (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that", + " violates aip.dev/158. Ordinarily, this should be page_size. --)" + ] + }, + "PagedExpandLegacyRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The position of the page to be returned." + ] + }, + "PagedExpandResponse:responses": { + "paramName": "responses", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The words that were expanded." + ] + }, + "PagedExpandResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The next page token." + ] + }, + "PagedExpandResponseList:words": { + "paramName": "words", + "paramType": "TYPE_STRING[]", + "comments": [] + }, + "PagedExpandLegacyMappedResponse:alphabetized": { + "paramName": "alphabetized", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The words that were expanded, indexed by their initial character.", + " (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates", + " aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --)" + ] + }, + "PagedExpandLegacyMappedResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The next page token." + ] + }, + "WaitRequest:end_time": { + "paramName": "end_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The time that this operation will complete." + ] + }, + "WaitRequest:ttl": { + "paramName": "ttl", + "paramType": ".google.protobuf.Duration", + "comments": [ + " The duration of this operation." + ] + }, + "WaitRequest:error": { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error that will be returned by the server. If this code is specified", + " to be the OK rpc code, an empty response will be returned." + ] + }, + "WaitRequest:success": { + "paramName": "success", + "paramType": ".google.showcase.v1beta1.WaitResponse", + "comments": [ + " The response to be returned on operation completion." + ] + }, + "WaitResponse:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " This content of the result." + ] + }, + "WaitMetadata:end_time": { + "paramName": "end_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The time that this operation will complete." + ] + }, + "BlockRequest:response_delay": { + "paramName": "response_delay", + "paramType": ".google.protobuf.Duration", + "comments": [ + " The amount of time to block before returning a response." + ] + }, + "BlockRequest:error": { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error that will be returned by the server. If this code is specified", + " to be the OK rpc code, an empty response will be returned." + ] + }, + "BlockRequest:success": { + "paramName": "success", + "paramType": ".google.showcase.v1beta1.BlockResponse", + "comments": [ + " The response to be returned that will signify successful method call." + ] + }, + "BlockResponse:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " This content can contain anything, the server will not depend on a value", + " here." + ] + }, + "ResourceDescriptor:type": { + "paramName": "type", + "paramType": "TYPE_STRING", + "comments": [ + " The resource type. It must be in the format of", + " {service_name}/{resource_type_kind}. The `resource_type_kind` must be", + " singular and must not include version numbers.", + "", + " Example: `storage.googleapis.com/Bucket`", + "", + " The value of the resource_type_kind must follow the regular expression", + " /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and", + " should use PascalCase (UpperCamelCase). The maximum number of", + " characters allowed for the `resource_type_kind` is 100." + ] + }, + "ResourceDescriptor:pattern": { + "paramName": "pattern", + "paramType": "TYPE_STRING[]", + "comments": [ + " Optional. The relative resource name pattern associated with this resource", + " type. The DNS prefix of the full resource name shouldn't be specified here.", + "", + " The path pattern must follow the syntax, which aligns with HTTP binding", + " syntax:", + "", + " Template = Segment { \"/\" Segment } ;", + " Segment = LITERAL | Variable ;", + " Variable = \"{\" LITERAL \"}\" ;", + "", + " Examples:", + "", + " - \"projects/{project}/topics/{topic}\"", + " - \"projects/{project}/knowledgeBases/{knowledge_base}\"", + "", + " The components in braces correspond to the IDs for each resource in the", + " hierarchy. It is expected that, if multiple patterns are provided,", + " the same component name (e.g. \"project\") refers to IDs of the same", + " type of resource." + ] + }, + "ResourceDescriptor:name_field": { + "paramName": "name_field", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. The field on the resource that designates the resource name", + " field. If omitted, this is assumed to be \"name\"." + ] + }, + "ResourceDescriptor:history": { + "paramName": "history", + "paramType": ".google.api.ResourceDescriptor.History", + "comments": [ + " Optional. The historical or future-looking state of the resource pattern.", + "", + " Example:", + "", + " // The InspectTemplate message originally only supported resource", + " // names with organization, and project was added later.", + " message InspectTemplate {", + " option (google.api.resource) = {", + " type: \"dlp.googleapis.com/InspectTemplate\"", + " pattern:", + " \"organizations/{organization}/inspectTemplates/{inspect_template}\"", + " pattern: \"projects/{project}/inspectTemplates/{inspect_template}\"", + " history: ORIGINALLY_SINGLE_PATTERN", + " };", + " }" + ] + }, + "ResourceDescriptor:plural": { + "paramName": "plural", + "paramType": "TYPE_STRING", + "comments": [ + " The plural name used in the resource name and permission names, such as", + " 'projects' for the resource name of 'projects/{project}' and the permission", + " name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same", + " concept of the `plural` field in k8s CRD spec", + " https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/", + "", + " Note: The plural form is required even for singleton resources. See", + " https://aip.dev/156" + ] + }, + "ResourceDescriptor:singular": { + "paramName": "singular", + "paramType": "TYPE_STRING", + "comments": [ + " The same concept of the `singular` field in k8s CRD spec", + " https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/", + " Such as \"project\" for the `resourcemanager.googleapis.com/Project` type." + ] + }, + "ResourceDescriptor:style": { + "paramName": "style", + "paramType": "TYPE_ENUM[]", + "comments": [ + " Style flag(s) for this resource.", + " These indicate that a resource is expected to conform to a given", + " style. See the specific style flags for additional information." + ] + }, + "ResourceReference:type": { + "paramName": "type", + "paramType": "TYPE_STRING", + "comments": [ + " The resource type that the annotated field references.", + "", + " Example:", + "", + " message Subscription {", + " string topic = 2 [(google.api.resource_reference) = {", + " type: \"pubsub.googleapis.com/Topic\"", + " }];", + " }", + "", + " Occasionally, a field may reference an arbitrary resource. In this case,", + " APIs use the special value * in their resource reference.", + "", + " Example:", + "", + " message GetIamPolicyRequest {", + " string resource = 2 [(google.api.resource_reference) = {", + " type: \"*\"", + " }];", + " }" + ] + }, + "ResourceReference:child_type": { + "paramName": "child_type", + "paramType": "TYPE_STRING", + "comments": [ + " The resource type of a child collection that the annotated field", + " references. This is useful for annotating the `parent` field that", + " doesn't have a fixed resource type.", + "", + " Example:", + "", + " message ListLogEntriesRequest {", + " string parent = 1 [(google.api.resource_reference) = {", + " child_type: \"logging.googleapis.com/LogEntry\"", + " };", + " }" + ] + }, + "FieldMask:paths": { + "paramName": "paths", + "paramType": "TYPE_STRING[]", + "comments": [ + " The set of field mask paths." + ] + }, + "Identity": { + "paramName": "", + "paramType": "", + "comments": [ + " A simple identity service." + ] + }, + "Identity:CreateUser": { + "paramName": "", + "paramType": "", + "comments": [ + " Creates a user.", + "" + ] + }, + "Identity:GetUser": { + "paramName": "", + "paramType": "", + "comments": [ + " Retrieves the User with the given uri.", + "" + ] + }, + "Identity:UpdateUser": { + "paramName": "", + "paramType": "", + "comments": [ + " Updates a user.", + "" + ] + }, + "Identity:DeleteUser": { + "paramName": "", + "paramType": "", + "comments": [ + " Deletes a user, their profile, and all of their authored messages.", + "" + ] + }, + "Identity:ListUsers": { + "paramName": "", + "paramType": "", + "comments": [ + " Lists all users.", + "" + ] + }, + "User:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the user." + ] + }, + "User:display_name": { + "paramName": "display_name", + "paramType": "TYPE_STRING", + "comments": [ + " The display_name of the user." + ], + "fieldBehavior": 2 + }, + "User:email": { + "paramName": "email", + "paramType": "TYPE_STRING", + "comments": [ + " The email address of the user." + ], + "fieldBehavior": 2 + }, + "User:create_time": { + "paramName": "create_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The timestamp at which the user was created." + ], + "fieldBehavior": 3 + }, + "User:update_time": { + "paramName": "update_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The latest timestamp at which the user was updated." + ], + "fieldBehavior": 3 + }, + "User:age": { + "paramName": "age", + "paramType": "TYPE_INT32", + "comments": [ + " The age of the user in years." + ] + }, + "User:height_feet": { + "paramName": "height_feet", + "paramType": "TYPE_DOUBLE", + "comments": [ + " The height of the user in feet." + ] + }, + "User:nickname": { + "paramName": "nickname", + "paramType": "TYPE_STRING", + "comments": [ + " The nickname of the user.", + "", + " (-- aip.dev/not-precedent: An empty string is a valid nickname.", + " Ordinarily, proto3_optional should not be used on a `string` field. --)" + ] + }, + "User:enable_notifications": { + "paramName": "enable_notifications", + "paramType": "TYPE_BOOL", + "comments": [ + " Enables the receiving of notifications. The default is true if unset.", + "", + " (-- aip.dev/not-precedent: The default for the feature is true.", + " Ordinarily, the default for a `bool` field should be false. --)" + ] + }, + "CreateUserRequest:user": { + "paramName": "user", + "paramType": ".google.showcase.v1beta1.User", + "comments": [ + " The user to create." + ] + }, + "GetUserRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested user." + ], + "fieldBehavior": 2 + }, + "UpdateUserRequest:user": { + "paramName": "user", + "paramType": ".google.showcase.v1beta1.User", + "comments": [ + " The user to update." + ] + }, + "UpdateUserRequest:update_mask": { + "paramName": "update_mask", + "paramType": ".google.protobuf.FieldMask", + "comments": [ + " The field mask to determine which fields are to be updated. If empty, the", + " server will assume all fields are to be updated." + ] + }, + "DeleteUserRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the user to delete." + ], + "fieldBehavior": 2 + }, + "ListUsersRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of users to return. Server may return fewer users", + " than requested. If unspecified, server will pick an appropriate default." + ] + }, + "ListUsersRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The value of google.showcase.v1beta1.ListUsersResponse.next_page_token", + " returned from the previous call to", + " `google.showcase.v1beta1.Identity\\ListUsers` method." + ] + }, + "ListUsersResponse:users": { + "paramName": "users", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The list of users." + ] + }, + "ListUsersResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " A token to retrieve next page of results.", + " Pass this value in ListUsersRequest.page_token field in the subsequent", + " call to `google.showcase.v1beta1.Message\\ListUsers` method to retrieve the", + " next page of results." + ] + }, + "ErrorInfo:reason": { + "paramName": "reason", + "paramType": "TYPE_STRING", + "comments": [ + " The reason of the error. This is a constant value that identifies the", + " proximate cause of the error. Error reasons are unique within a particular", + " domain of errors. This should be at most 63 characters and match a", + " regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents", + " UPPER_SNAKE_CASE." + ] + }, + "ErrorInfo:domain": { + "paramName": "domain", + "paramType": "TYPE_STRING", + "comments": [ + " The logical grouping to which the \"reason\" belongs. The error domain", + " is typically the registered service name of the tool or product that", + " generates the error. Example: \"pubsub.googleapis.com\". If the error is", + " generated by some common infrastructure, the error domain must be a", + " globally unique value that identifies the infrastructure. For Google API", + " infrastructure, the error domain is \"googleapis.com\"." + ] + }, + "ErrorInfo:metadata": { + "paramName": "metadata", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Additional structured details about this error.", + "", + " Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in", + " length. When identifying the current value of an exceeded limit, the units", + " should be contained in the key, not the value. For example, rather than", + " {\"instanceLimit\": \"100/request\"}, should be returned as,", + " {\"instanceLimitPerRequest\": \"100\"}, if the client exceeds the number of", + " instances that can be created in a single (batch) request." + ] + }, + "RetryInfo:retry_delay": { + "paramName": "retry_delay", + "paramType": ".google.protobuf.Duration", + "comments": [ + " Clients should wait at least this long between retrying the same request." + ] + }, + "DebugInfo:stack_entries": { + "paramName": "stack_entries", + "paramType": "TYPE_STRING[]", + "comments": [ + " The stack trace entries indicating where the error occurred." + ] + }, + "DebugInfo:detail": { + "paramName": "detail", + "paramType": "TYPE_STRING", + "comments": [ + " Additional debugging information provided by the server." + ] + }, + "QuotaFailure:violations": { + "paramName": "violations", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Describes all quota violations." + ] + }, + "PreconditionFailure:violations": { + "paramName": "violations", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Describes all precondition violations." + ] + }, + "BadRequest:field_violations": { + "paramName": "field_violations", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Describes all violations in a client request." + ] + }, + "RequestInfo:request_id": { + "paramName": "request_id", + "paramType": "TYPE_STRING", + "comments": [ + " An opaque string that should only be interpreted by the service generating", + " it. For example, it can be used to identify requests in the service's logs." + ] + }, + "RequestInfo:serving_data": { + "paramName": "serving_data", + "paramType": "TYPE_STRING", + "comments": [ + " Any data that was used to serve this request. For example, an encrypted", + " stack trace that can be sent back to the service provider for debugging." + ] + }, + "ResourceInfo:resource_type": { + "paramName": "resource_type", + "paramType": "TYPE_STRING", + "comments": [ + " A name for the type of resource being accessed, e.g. \"sql table\",", + " \"cloud storage bucket\", \"file\", \"Google calendar\"; or the type URL", + " of the resource: e.g. \"type.googleapis.com/google.pubsub.v1.Topic\"." + ] + }, + "ResourceInfo:resource_name": { + "paramName": "resource_name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the resource being accessed. For example, a shared calendar", + " name: \"example.com_4fghdhgsrgh@group.calendar.google.com\", if the current", + " error is", + " [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED]." + ] + }, + "ResourceInfo:owner": { + "paramName": "owner", + "paramType": "TYPE_STRING", + "comments": [ + " The owner of the resource (optional).", + " For example, \"user:\" or \"project:\"." + ] + }, + "ResourceInfo:description": { + "paramName": "description", + "paramType": "TYPE_STRING", + "comments": [ + " Describes what error is encountered when accessing this resource.", + " For example, updating a cloud project may require the `writer` permission", + " on the developer console project." + ] + }, + "Help:links": { + "paramName": "links", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " URL(s) pointing to additional information on handling the current error." + ] + }, + "LocalizedMessage:locale": { + "paramName": "locale", + "paramType": "TYPE_STRING", + "comments": [ + " The locale used following the specification defined at", + " https://www.rfc-editor.org/rfc/bcp/bcp47.txt.", + " Examples are: \"en-US\", \"fr-CH\", \"es-MX\"" + ] + }, + "LocalizedMessage:message": { + "paramName": "message", + "paramType": "TYPE_STRING", + "comments": [ + " The localized error message in the above locale." + ] + }, + "Messaging": { + "paramName": "", + "paramType": "", + "comments": [ + " A simple messaging service that implements chat rooms and profile posts.", + "", + " This messaging service showcases the features that API clients", + " generated by gapic-generators implement." + ] + }, + "Messaging:CreateRoom": { + "paramName": "", + "paramType": "", + "comments": [ + " Creates a room.", + "" + ] + }, + "Messaging:GetRoom": { + "paramName": "", + "paramType": "", + "comments": [ + " Retrieves the Room with the given resource name.", + "" + ] + }, + "Messaging:UpdateRoom": { + "paramName": "", + "paramType": "", + "comments": [ + " Updates a room.", + "" + ] + }, + "Messaging:DeleteRoom": { + "paramName": "", + "paramType": "", + "comments": [ + " Deletes a room and all of its blurbs.", + "" + ] + }, + "Messaging:ListRooms": { + "paramName": "", + "paramType": "", + "comments": [ + " Lists all chat rooms.", + "" + ] + }, + "Messaging:CreateBlurb": { + "paramName": "", + "paramType": "", + "comments": [ + " Creates a blurb. If the parent is a room, the blurb is understood to be a", + " message in that room. If the parent is a profile, the blurb is understood", + " to be a post on the profile.", + "" + ] + }, + "Messaging:GetBlurb": { + "paramName": "", + "paramType": "", + "comments": [ + " Retrieves the Blurb with the given resource name.", + "" + ] + }, + "Messaging:UpdateBlurb": { + "paramName": "", + "paramType": "", + "comments": [ + " Updates a blurb.", + "" + ] + }, + "Messaging:DeleteBlurb": { + "paramName": "", + "paramType": "", + "comments": [ + " Deletes a blurb.", + "" + ] + }, + "Messaging:ListBlurbs": { + "paramName": "", + "paramType": "", + "comments": [ + " Lists blurbs for a specific chat room or user profile depending on the", + " parent resource name.", + "" + ] + }, + "Messaging:SearchBlurbs": { + "paramName": "", + "paramType": "", + "comments": [ + " This method searches through all blurbs across all rooms and profiles", + " for blurbs containing to words found in the query. Only posts that", + " contain an exact match of a queried word will be returned.", + "" + ] + }, + "Messaging:StreamBlurbs": { + "paramName": "", + "paramType": "", + "comments": [ + " This returns a stream that emits the blurbs that are created for a", + " particular chat room or user profile.", + "" + ] + }, + "Messaging:SendBlurbs": { + "paramName": "", + "paramType": "", + "comments": [ + " This is a stream to create multiple blurbs. If an invalid blurb is", + " requested to be created, the stream will close with an error.", + "" + ] + }, + "Messaging:Connect": { + "paramName": "", + "paramType": "", + "comments": [ + " This method starts a bidirectional stream that receives all blurbs that", + " are being created after the stream has started and sends requests to create", + " blurbs. If an invalid blurb is requested to be created, the stream will", + " close with an error.", + "" + ] + }, + "Room:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the chat room." + ] + }, + "Room:display_name": { + "paramName": "display_name", + "paramType": "TYPE_STRING", + "comments": [ + " The human readable name of the chat room." + ], + "fieldBehavior": 2 + }, + "Room:description": { + "paramName": "description", + "paramType": "TYPE_STRING", + "comments": [ + " The description of the chat room." + ] + }, + "Room:create_time": { + "paramName": "create_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The timestamp at which the room was created." + ], + "fieldBehavior": 3 + }, + "Room:update_time": { + "paramName": "update_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The latest timestamp at which the room was updated." + ], + "fieldBehavior": 3 + }, + "CreateRoomRequest:room": { + "paramName": "room", + "paramType": ".google.showcase.v1beta1.Room", + "comments": [ + " The room to create." + ] + }, + "GetRoomRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested room." + ], + "fieldBehavior": 2 + }, + "UpdateRoomRequest:room": { + "paramName": "room", + "paramType": ".google.showcase.v1beta1.Room", + "comments": [ + " The room to update." + ] + }, + "UpdateRoomRequest:update_mask": { + "paramName": "update_mask", + "paramType": ".google.protobuf.FieldMask", + "comments": [ + " The field mask to determine which fields are to be updated. If empty, the", + " server will assume all fields are to be updated." + ] + }, + "DeleteRoomRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested room." + ], + "fieldBehavior": 2 + }, + "ListRoomsRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of rooms return. Server may return fewer rooms", + " than requested. If unspecified, server will pick an appropriate default." + ] + }, + "ListRoomsRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The value of google.showcase.v1beta1.ListRoomsResponse.next_page_token", + " returned from the previous call to", + " `google.showcase.v1beta1.Messaging\\ListRooms` method." + ] + }, + "ListRoomsResponse:rooms": { + "paramName": "rooms", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The list of rooms." + ] + }, + "ListRoomsResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " A token to retrieve next page of results.", + " Pass this value in ListRoomsRequest.page_token field in the subsequent", + " call to `google.showcase.v1beta1.Messaging\\ListRooms` method to retrieve", + " the next page of results." + ] + }, + "Blurb:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the chat room." + ] + }, + "Blurb:user": { + "paramName": "user", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the blurb's author." + ], + "fieldBehavior": 2 + }, + "Blurb:text": { + "paramName": "text", + "paramType": "TYPE_STRING", + "comments": [ + " The textual content of this blurb." + ] + }, + "Blurb:image": { + "paramName": "image", + "paramType": "TYPE_BYTES", + "comments": [ + " The image content of this blurb." + ] + }, + "Blurb:create_time": { + "paramName": "create_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The timestamp at which the blurb was created." + ], + "fieldBehavior": 3 + }, + "Blurb:update_time": { + "paramName": "update_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The latest timestamp at which the blurb was updated." + ], + "fieldBehavior": 3 + }, + "Blurb:legacy_room_id": { + "paramName": "legacy_room_id", + "paramType": "TYPE_STRING", + "comments": [ + " The legacy id of the room. This field is used to signal", + " the use of the compound resource pattern", + " `rooms/{room}/blurbs/legacy/{legacy_room}.{blurb}`" + ] + }, + "Blurb:legacy_user_id": { + "paramName": "legacy_user_id", + "paramType": "TYPE_STRING", + "comments": [ + " The legacy id of the user. This field is used to signal", + " the use of the compound resource pattern", + " `users/{user}/profile/blurbs/legacy/{legacy_user}~{blurb}`" + ] + }, + "CreateBlurbRequest:parent": { + "paramName": "parent", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the chat room or user profile that this blurb will", + " be tied to." + ], + "fieldBehavior": 2 + }, + "CreateBlurbRequest:blurb": { + "paramName": "blurb", + "paramType": ".google.showcase.v1beta1.Blurb", + "comments": [ + " The blurb to create." + ] + }, + "GetBlurbRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested blurb." + ], + "fieldBehavior": 2 + }, + "UpdateBlurbRequest:blurb": { + "paramName": "blurb", + "paramType": ".google.showcase.v1beta1.Blurb", + "comments": [ + " The blurb to update." + ] + }, + "UpdateBlurbRequest:update_mask": { + "paramName": "update_mask", + "paramType": ".google.protobuf.FieldMask", + "comments": [ + " The field mask to determine wich fields are to be updated. If empty, the", + " server will assume all fields are to be updated." + ] + }, + "DeleteBlurbRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested blurb." + ], + "fieldBehavior": 2 + }, + "ListBlurbsRequest:parent": { + "paramName": "parent", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested room or profile whos blurbs to list." + ], + "fieldBehavior": 2 + }, + "ListBlurbsRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of blurbs to return. Server may return fewer", + " blurbs than requested. If unspecified, server will pick an appropriate", + " default." + ] + }, + "ListBlurbsRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The value of google.showcase.v1beta1.ListBlurbsResponse.next_page_token", + " returned from the previous call to", + " `google.showcase.v1beta1.Messaging\\ListBlurbs` method." + ] + }, + "ListBlurbsResponse:blurbs": { + "paramName": "blurbs", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The list of blurbs." + ] + }, + "ListBlurbsResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " A token to retrieve next page of results.", + " Pass this value in ListBlurbsRequest.page_token field in the subsequent", + " call to `google.showcase.v1beta1.Blurb\\ListBlurbs` method to retrieve", + " the next page of results." + ] + }, + "SearchBlurbsRequest:query": { + "paramName": "query", + "paramType": "TYPE_STRING", + "comments": [ + " The query used to search for blurbs containing to words of this string.", + " Only posts that contain an exact match of a queried word will be returned." + ], + "fieldBehavior": 2 + }, + "SearchBlurbsRequest:parent": { + "paramName": "parent", + "paramType": "TYPE_STRING", + "comments": [ + " The rooms or profiles to search. If unset, `SearchBlurbs` will search all", + " rooms and all profiles." + ] + }, + "SearchBlurbsRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of blurbs return. Server may return fewer", + " blurbs than requested. If unspecified, server will pick an appropriate", + " default." + ] + }, + "SearchBlurbsRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The value of", + " google.showcase.v1beta1.SearchBlurbsResponse.next_page_token", + " returned from the previous call to", + " `google.showcase.v1beta1.Messaging\\SearchBlurbs` method." + ] + }, + "SearchBlurbsMetadata:retry_info": { + "paramName": "retry_info", + "paramType": ".google.rpc.RetryInfo", + "comments": [ + " This signals to the client when to next poll for response." + ] + }, + "SearchBlurbsResponse:blurbs": { + "paramName": "blurbs", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Blurbs that matched the search query." + ] + }, + "SearchBlurbsResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " A token to retrieve next page of results.", + " Pass this value in SearchBlurbsRequest.page_token field in the subsequent", + " call to `google.showcase.v1beta1.Blurb\\SearchBlurbs` method to", + " retrieve the next page of results." + ] + }, + "StreamBlurbsRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of a chat room or user profile whose blurbs to stream." + ], + "fieldBehavior": 2 + }, + "StreamBlurbsRequest:expire_time": { + "paramName": "expire_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The time at which this stream will close." + ], + "fieldBehavior": 2 + }, + "StreamBlurbsResponse:blurb": { + "paramName": "blurb", + "paramType": ".google.showcase.v1beta1.Blurb", + "comments": [ + " The blurb that was either created, updated, or deleted." + ] + }, + "StreamBlurbsResponse:action": { + "paramName": "action", + "paramType": ".google.showcase.v1beta1.StreamBlurbsResponse.Action", + "comments": [ + " The action that triggered the blurb to be returned." + ] + }, + "SendBlurbsResponse:names": { + "paramName": "names", + "paramType": "TYPE_STRING[]", + "comments": [ + " The names of successful blurb creations." + ] + }, + "ConnectRequest:config": { + "paramName": "config", + "paramType": ".google.showcase.v1beta1.ConnectRequest.ConnectConfig", + "comments": [ + " Provides information that specifies how to process subsequent requests.", + " The first `ConnectRequest` message must contain a `config` message." + ] + }, + "ConnectRequest:blurb": { + "paramName": "blurb", + "paramType": ".google.showcase.v1beta1.Blurb", + "comments": [ + " The blurb to be created." + ] + }, + "SequenceService": { + "paramName": "", + "paramType": "", + "comments": [] + }, + "SequenceService:CreateSequence": { + "paramName": "", + "paramType": "", + "comments": [ + " Creates a sequence.", + "" + ] + }, + "SequenceService:GetSequenceReport": { + "paramName": "", + "paramType": "", + "comments": [ + " Retrieves a sequence.", + "" + ] + }, + "SequenceService:AttemptSequence": { + "paramName": "", + "paramType": "", + "comments": [ + " Attempts a sequence.", + "" + ] + }, + "Sequence:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [], + "fieldBehavior": 3 + }, + "Sequence:responses": { + "paramName": "responses", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Sequence of responses to return in order for each attempt. If empty, the", + " default response is an immediate OK." + ] + }, + "SequenceReport:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [], + "fieldBehavior": 3 + }, + "SequenceReport:attempts": { + "paramName": "attempts", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The set of RPC attempts received by the server for a Sequence." + ] + }, + "CreateSequenceRequest:sequence": { + "paramName": "sequence", + "paramType": ".google.showcase.v1beta1.Sequence", + "comments": [] + }, + "AttemptSequenceRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [], + "fieldBehavior": 2 + }, + "GetSequenceReportRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [], + "fieldBehavior": 2 + }, + "Testing": { + "paramName": "", + "paramType": "", + "comments": [ + " A service to facilitate running discrete sets of tests", + " against Showcase." + ] + }, + "Testing:CreateSession": { + "paramName": "", + "paramType": "", + "comments": [ + " Creates a new testing session.", + "" + ] + }, + "Testing:GetSession": { + "paramName": "", + "paramType": "", + "comments": [ + " Gets a testing session.", + "" + ] + }, + "Testing:ListSessions": { + "paramName": "", + "paramType": "", + "comments": [ + " Lists the current test sessions.", + "" + ] + }, + "Testing:DeleteSession": { + "paramName": "", + "paramType": "", + "comments": [ + " Delete a test session.", + "" + ] + }, + "Testing:ReportSession": { + "paramName": "", + "paramType": "", + "comments": [ + " Report on the status of a session.", + " This generates a report detailing which tests have been completed,", + " and an overall rollup.", + "" + ] + }, + "Testing:ListTests": { + "paramName": "", + "paramType": "", + "comments": [ + " List the tests of a sessesion.", + "" + ] + }, + "Testing:DeleteTest": { + "paramName": "", + "paramType": "", + "comments": [ + " Explicitly decline to implement a test.", + "", + " This removes the test from subsequent `ListTests` calls, and", + " attempting to do the test will error.", + "", + " This method will error if attempting to delete a required test.", + "" + ] + }, + "Testing:VerifyTest": { + "paramName": "", + "paramType": "", + "comments": [ + " Register a response to a test.", + "", + " In cases where a test involves registering a final answer at the", + " end of the test, this method provides the means to do so.", + "" + ] + }, + "Session:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the session. The ID must conform to ^[a-z]+$", + " If this is not provided, Showcase chooses one at random." + ] + }, + "Session:version": { + "paramName": "version", + "paramType": ".google.showcase.v1beta1.Session.Version", + "comments": [ + " Required. The version this session is using." + ] + }, + "CreateSessionRequest:session": { + "paramName": "session", + "paramType": ".google.showcase.v1beta1.Session", + "comments": [ + " The session to be created.", + " Sessions are immutable once they are created (although they can", + " be deleted)." + ] + }, + "GetSessionRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The session to be retrieved." + ] + }, + "ListSessionsRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of sessions to return per page." + ] + }, + "ListSessionsRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The page token, for retrieving subsequent pages." + ] + }, + "ListSessionsResponse:sessions": { + "paramName": "sessions", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The sessions being returned." + ] + }, + "ListSessionsResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The next page token, if any.", + " An empty value here means the last page has been reached." + ] + }, + "DeleteSessionRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The session to be deleted." + ] + }, + "ReportSessionRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The session to be reported on." + ] + }, + "ReportSessionResponse:result": { + "paramName": "result", + "paramType": ".google.showcase.v1beta1.ReportSessionResponse.Result", + "comments": [ + " The state of the report." + ] + }, + "ReportSessionResponse:test_runs": { + "paramName": "test_runs", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The test runs of this session." + ] + }, + "Test:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the test.", + " The tests/* portion of the names are hard-coded, and do not change", + " from session to session." + ] + }, + "Test:expectation_level": { + "paramName": "expectation_level", + "paramType": ".google.showcase.v1beta1.Test.ExpectationLevel", + "comments": [ + " The expectation level for this test." + ] + }, + "Test:description": { + "paramName": "description", + "paramType": "TYPE_STRING", + "comments": [ + " A description of the test." + ] + }, + "Test:blueprints": { + "paramName": "blueprints", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The blueprints that will satisfy this test. There may be multiple blueprints", + " that can signal to the server that this test case is being exercised. Although", + " multiple blueprints are specified, only a single blueprint needs to be run to", + " signal that the test case was exercised." + ] + }, + "Issue:type": { + "paramName": "type", + "paramType": ".google.showcase.v1beta1.Issue.Type", + "comments": [ + " The type of the issue." + ] + }, + "Issue:severity": { + "paramName": "severity", + "paramType": ".google.showcase.v1beta1.Issue.Severity", + "comments": [ + " The severity of the issue." + ] + }, + "Issue:description": { + "paramName": "description", + "paramType": "TYPE_STRING", + "comments": [ + " A description of the issue." + ] + }, + "ListTestsRequest:parent": { + "paramName": "parent", + "paramType": "TYPE_STRING", + "comments": [ + " The session." + ] + }, + "ListTestsRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of tests to return per page." + ] + }, + "ListTestsRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The page token, for retrieving subsequent pages." + ] + }, + "ListTestsResponse:tests": { + "paramName": "tests", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The tests being returned." + ] + }, + "ListTestsResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The next page token, if any.", + " An empty value here means the last page has been reached." + ] + }, + "TestRun:test": { + "paramName": "test", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the test.", + " The tests/* portion of the names are hard-coded, and do not change", + " from session to session." + ] + }, + "TestRun:issue": { + "paramName": "issue", + "paramType": ".google.showcase.v1beta1.Issue", + "comments": [ + " An issue found with the test run. If empty, this test run was successful." + ] + }, + "DeleteTestRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The test to be deleted." + ] + }, + "VerifyTestRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The test to have an answer registered to it." + ] + }, + "VerifyTestRequest:answer": { + "paramName": "answer", + "paramType": "TYPE_BYTES", + "comments": [ + " The answer from the test." + ] + }, + "VerifyTestRequest:answers": { + "paramName": "answers", + "paramType": "TYPE_BYTES[]", + "comments": [ + " The answers from the test if multiple are to be checked" + ] + }, + "VerifyTestResponse:issue": { + "paramName": "issue", + "paramType": ".google.showcase.v1beta1.Issue", + "comments": [ + " An issue if check answer was unsuccessful. This will be empty if the check answer succeeded." + ] + } + } + }, + "retryableCodeMap": { + "codeEnumMapping": { + "0": "OK", + "1": "CANCELLED", + "2": "UNKNOWN", + "3": "INVALID_ARGUMENT", + "4": "DEADLINE_EXCEEDED", + "5": "NOT_FOUND", + "6": "ALREADY_EXISTS", + "7": "PERMISSION_DENIED", + "8": "RESOURCE_EXHAUSTED", + "9": "FAILED_PRECONDITION", + "10": "ABORTED", + "11": "OUT_OF_RANGE", + "12": "UNIMPLEMENTED", + "13": "INTERNAL", + "14": "UNAVAILABLE", + "15": "DATA_LOSS", + "16": "UNAUTHENTICATED", + "OK": "0", + "CANCELLED": "1", + "UNKNOWN": "2", + "INVALID_ARGUMENT": "3", + "DEADLINE_EXCEEDED": "4", + "NOT_FOUND": "5", + "ALREADY_EXISTS": "6", + "PERMISSION_DENIED": "7", + "RESOURCE_EXHAUSTED": "8", + "FAILED_PRECONDITION": "9", + "ABORTED": "10", + "OUT_OF_RANGE": "11", + "UNIMPLEMENTED": "12", + "INTERNAL": "13", + "UNAVAILABLE": "14", + "DATA_LOSS": "15", + "UNAUTHENTICATED": "16" + }, + "uniqueCodesNamesMap": { + "": "non_idempotent", + "deadline_exceeded_unavailable": "idempotent" + }, + "prettyCodesNamesMap": { + "non_idempotent": [], + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ] + }, + "uniqueParamsNamesMap": { + "94312e9926796a52a8fcbbedaac41972e07ccd1c": "default" + }, + "prettyParamNamesMap": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + } + } + }, + "grpcServiceConfig": {}, + "bundleConfigs": [], + "bundleConfigsMethods": [], + "simpleMethods": [ + { + "inputInterface": ".google.showcase.v1beta1.RepeatRequest", + "outputInterface": ".google.showcase.v1beta1.RepeatResponse", + "comments": [ + " This method echoes the ComplianceData request. This method exercises", + " sending the entire request object in the REST body.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "RepeatDataBody", + "inputType": ".google.showcase.v1beta1.RepeatRequest", + "outputType": ".google.showcase.v1beta1.RepeatResponse", + "options": { + ".google.api.http": { + "post": "/v1beta1/repeat:body", + "body": "*", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + { + "paramName": "info", + "paramType": ".google.showcase.v1beta1.ComplianceData", + "comments": [] + }, + { + "paramName": "server_verify", + "paramType": "TYPE_BOOL", + "comments": [ + " If true, the server will verify that the received request matches", + " the request with the same name in the compliance test suite." + ] + }, + { + "paramName": "intended_binding_uri", + "paramType": "TYPE_STRING", + "comments": [ + " The URI template this request is expected to be bound to server-side." + ] + }, + { + "paramName": "f_int32", + "paramType": "TYPE_INT32", + "comments": [ + " Some top level fields, to test that these are encoded correctly", + " in query params." + ] + }, + { + "paramName": "f_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + { + "paramName": "p_int32", + "paramType": "TYPE_INT32", + "comments": [] + }, + { + "paramName": "p_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + { + "paramName": "p_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + } + ], + "headerRequestParams": [] + }, + { + "inputInterface": ".google.showcase.v1beta1.RepeatRequest", + "outputInterface": ".google.showcase.v1beta1.RepeatResponse", + "comments": [ + " This method echoes the ComplianceData request. This method exercises", + " sending the a message-type field in the REST body. Per AIP-127, only", + " top-level, non-repeated fields can be sent this way.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "RepeatDataBodyInfo", + "inputType": ".google.showcase.v1beta1.RepeatRequest", + "outputType": ".google.showcase.v1beta1.RepeatResponse", + "options": { + ".google.api.http": { + "post": "/v1beta1/repeat:bodyinfo", + "body": "info", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + { + "paramName": "info", + "paramType": ".google.showcase.v1beta1.ComplianceData", + "comments": [] + }, + { + "paramName": "server_verify", + "paramType": "TYPE_BOOL", + "comments": [ + " If true, the server will verify that the received request matches", + " the request with the same name in the compliance test suite." + ] + }, + { + "paramName": "intended_binding_uri", + "paramType": "TYPE_STRING", + "comments": [ + " The URI template this request is expected to be bound to server-side." + ] + }, + { + "paramName": "f_int32", + "paramType": "TYPE_INT32", + "comments": [ + " Some top level fields, to test that these are encoded correctly", + " in query params." + ] + }, + { + "paramName": "f_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + { + "paramName": "p_int32", + "paramType": "TYPE_INT32", + "comments": [] + }, + { + "paramName": "p_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + { + "paramName": "p_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + } + ], + "headerRequestParams": [] + }, + { + "inputInterface": ".google.showcase.v1beta1.RepeatRequest", + "outputInterface": ".google.showcase.v1beta1.RepeatResponse", + "comments": [ + " This method echoes the ComplianceData request. This method exercises", + " sending all request fields as query parameters.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "RepeatDataQuery", + "inputType": ".google.showcase.v1beta1.RepeatRequest", + "outputType": ".google.showcase.v1beta1.RepeatResponse", + "options": { + ".google.api.http": { + "get": "/v1beta1/repeat:query", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + { + "paramName": "info", + "paramType": ".google.showcase.v1beta1.ComplianceData", + "comments": [] + }, + { + "paramName": "server_verify", + "paramType": "TYPE_BOOL", + "comments": [ + " If true, the server will verify that the received request matches", + " the request with the same name in the compliance test suite." + ] + }, + { + "paramName": "intended_binding_uri", + "paramType": "TYPE_STRING", + "comments": [ + " The URI template this request is expected to be bound to server-side." + ] + }, + { + "paramName": "f_int32", + "paramType": "TYPE_INT32", + "comments": [ + " Some top level fields, to test that these are encoded correctly", + " in query params." + ] + }, + { + "paramName": "f_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + { + "paramName": "p_int32", + "paramType": "TYPE_INT32", + "comments": [] + }, + { + "paramName": "p_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + { + "paramName": "p_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + } + ], + "headerRequestParams": [] + }, + { + "inputInterface": ".google.showcase.v1beta1.RepeatRequest", + "outputInterface": ".google.showcase.v1beta1.RepeatResponse", + "comments": [ + " This method echoes the ComplianceData request. This method exercises", + " sending some parameters as \"simple\" path variables (i.e., of the form", + " \"/bar/{foo}\" rather than \"/{foo=bar/*}\"), and the rest as query parameters.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "RepeatDataSimplePath", + "inputType": ".google.showcase.v1beta1.RepeatRequest", + "outputType": ".google.showcase.v1beta1.RepeatResponse", + "options": { + ".google.api.http": { + "get": "/v1beta1/repeat/{info.f_string}/{info.f_int32}/{info.f_double}/{info.f_bool}/{info.f_kingdom}:simplepath", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + { + "paramName": "info", + "paramType": ".google.showcase.v1beta1.ComplianceData", + "comments": [] + }, + { + "paramName": "server_verify", + "paramType": "TYPE_BOOL", + "comments": [ + " If true, the server will verify that the received request matches", + " the request with the same name in the compliance test suite." + ] + }, + { + "paramName": "intended_binding_uri", + "paramType": "TYPE_STRING", + "comments": [ + " The URI template this request is expected to be bound to server-side." + ] + }, + { + "paramName": "f_int32", + "paramType": "TYPE_INT32", + "comments": [ + " Some top level fields, to test that these are encoded correctly", + " in query params." + ] + }, + { + "paramName": "f_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + { + "paramName": "p_int32", + "paramType": "TYPE_INT32", + "comments": [] + }, + { + "paramName": "p_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + { + "paramName": "p_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + } + ], + "headerRequestParams": [ + [ + "info", + "f_string" + ], + [ + "info", + "f_int32" + ], + [ + "info", + "f_double" + ], + [ + "info", + "f_bool" + ], + [ + "info", + "f_kingdom" + ] + ] + }, + { + "inputInterface": ".google.showcase.v1beta1.RepeatRequest", + "outputInterface": ".google.showcase.v1beta1.RepeatResponse", + "comments": [ + " Same as RepeatDataSimplePath, but with a path resource.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "RepeatDataPathResource", + "inputType": ".google.showcase.v1beta1.RepeatRequest", + "outputType": ".google.showcase.v1beta1.RepeatResponse", + "options": { + ".google.api.http": { + "get": "/v1beta1/repeat/{info.f_string=first/*}/{info.f_child.f_string=second/*}/bool/{info.f_bool}:pathresource", + "additionalBindings": [ + { + "get": "/v1beta1/repeat/{info.f_child.f_string=first/*}/{info.f_string=second/*}/bool/{info.f_bool}:childfirstpathresource" + } + ] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + { + "paramName": "info", + "paramType": ".google.showcase.v1beta1.ComplianceData", + "comments": [] + }, + { + "paramName": "server_verify", + "paramType": "TYPE_BOOL", + "comments": [ + " If true, the server will verify that the received request matches", + " the request with the same name in the compliance test suite." + ] + }, + { + "paramName": "intended_binding_uri", + "paramType": "TYPE_STRING", + "comments": [ + " The URI template this request is expected to be bound to server-side." + ] + }, + { + "paramName": "f_int32", + "paramType": "TYPE_INT32", + "comments": [ + " Some top level fields, to test that these are encoded correctly", + " in query params." + ] + }, + { + "paramName": "f_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + { + "paramName": "p_int32", + "paramType": "TYPE_INT32", + "comments": [] + }, + { + "paramName": "p_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + { + "paramName": "p_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + } + ], + "headerRequestParams": [ + [ + "info", + "f_string" + ], + [ + "info", + "f_child", + "f_string" + ], + [ + "info", + "f_bool" + ] + ] + }, + { + "inputInterface": ".google.showcase.v1beta1.RepeatRequest", + "outputInterface": ".google.showcase.v1beta1.RepeatResponse", + "comments": [ + " Same as RepeatDataSimplePath, but with a trailing resource.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "RepeatDataPathTrailingResource", + "inputType": ".google.showcase.v1beta1.RepeatRequest", + "outputType": ".google.showcase.v1beta1.RepeatResponse", + "options": { + ".google.api.http": { + "get": "/v1beta1/repeat/{info.f_string=first/*}/{info.f_child.f_string=second/**}:pathtrailingresource", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + { + "paramName": "info", + "paramType": ".google.showcase.v1beta1.ComplianceData", + "comments": [] + }, + { + "paramName": "server_verify", + "paramType": "TYPE_BOOL", + "comments": [ + " If true, the server will verify that the received request matches", + " the request with the same name in the compliance test suite." + ] + }, + { + "paramName": "intended_binding_uri", + "paramType": "TYPE_STRING", + "comments": [ + " The URI template this request is expected to be bound to server-side." + ] + }, + { + "paramName": "f_int32", + "paramType": "TYPE_INT32", + "comments": [ + " Some top level fields, to test that these are encoded correctly", + " in query params." + ] + }, + { + "paramName": "f_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + { + "paramName": "p_int32", + "paramType": "TYPE_INT32", + "comments": [] + }, + { + "paramName": "p_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + { + "paramName": "p_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + } + ], + "headerRequestParams": [ + [ + "info", + "f_string" + ], + [ + "info", + "f_child", + "f_string" + ] + ] + }, + { + "inputInterface": ".google.showcase.v1beta1.RepeatRequest", + "outputInterface": ".google.showcase.v1beta1.RepeatResponse", + "comments": [ + " This method echoes the ComplianceData request, using the HTTP PUT method.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "RepeatDataBodyPut", + "inputType": ".google.showcase.v1beta1.RepeatRequest", + "outputType": ".google.showcase.v1beta1.RepeatResponse", + "options": { + ".google.api.http": { + "put": "/v1beta1/repeat:bodyput", + "body": "*", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + { + "paramName": "info", + "paramType": ".google.showcase.v1beta1.ComplianceData", + "comments": [] + }, + { + "paramName": "server_verify", + "paramType": "TYPE_BOOL", + "comments": [ + " If true, the server will verify that the received request matches", + " the request with the same name in the compliance test suite." + ] + }, + { + "paramName": "intended_binding_uri", + "paramType": "TYPE_STRING", + "comments": [ + " The URI template this request is expected to be bound to server-side." + ] + }, + { + "paramName": "f_int32", + "paramType": "TYPE_INT32", + "comments": [ + " Some top level fields, to test that these are encoded correctly", + " in query params." + ] + }, + { + "paramName": "f_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + { + "paramName": "p_int32", + "paramType": "TYPE_INT32", + "comments": [] + }, + { + "paramName": "p_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + { + "paramName": "p_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + } + ], + "headerRequestParams": [] + }, + { + "inputInterface": ".google.showcase.v1beta1.RepeatRequest", + "outputInterface": ".google.showcase.v1beta1.RepeatResponse", + "comments": [ + " This method echoes the ComplianceData request, using the HTTP PATCH method.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "RepeatDataBodyPatch", + "inputType": ".google.showcase.v1beta1.RepeatRequest", + "outputType": ".google.showcase.v1beta1.RepeatResponse", + "options": { + ".google.api.http": { + "patch": "/v1beta1/repeat:bodypatch", + "body": "*", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + { + "paramName": "info", + "paramType": ".google.showcase.v1beta1.ComplianceData", + "comments": [] + }, + { + "paramName": "server_verify", + "paramType": "TYPE_BOOL", + "comments": [ + " If true, the server will verify that the received request matches", + " the request with the same name in the compliance test suite." + ] + }, + { + "paramName": "intended_binding_uri", + "paramType": "TYPE_STRING", + "comments": [ + " The URI template this request is expected to be bound to server-side." + ] + }, + { + "paramName": "f_int32", + "paramType": "TYPE_INT32", + "comments": [ + " Some top level fields, to test that these are encoded correctly", + " in query params." + ] + }, + { + "paramName": "f_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + { + "paramName": "p_int32", + "paramType": "TYPE_INT32", + "comments": [] + }, + { + "paramName": "p_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + { + "paramName": "p_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + } + ], + "headerRequestParams": [] + }, + { + "inputInterface": ".google.showcase.v1beta1.EnumRequest", + "outputInterface": ".google.showcase.v1beta1.EnumResponse", + "comments": [ + " This method requests an enum value from the server. Depending on the contents of EnumRequest, the enum value returned will be a known enum declared in the", + " .proto file, or a made-up enum value the is unknown to the client. To verify that clients can round-trip unknown enum vaues they receive, use the", + " response from this RPC as the request to VerifyEnum()", + "", + " The values of enums sent by the server when a known or unknown value is requested will be the same within a single Showcase server run (this is needed for", + " VerifyEnum() to work) but are not guaranteed to be the same across separate Showcase server runs.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "GetEnum", + "inputType": ".google.showcase.v1beta1.EnumRequest", + "outputType": ".google.showcase.v1beta1.EnumResponse", + "options": { + ".google.api.http": { + "get": "/v1beta1/compliance/enum", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "unknown_enum", + "paramType": "TYPE_BOOL", + "comments": [ + " Whether the client is requesting a new, unknown enum value or a known enum value already declard in this proto file." + ] + } + ], + "headerRequestParams": [] + }, + { + "inputInterface": ".google.showcase.v1beta1.EnumResponse", + "outputInterface": ".google.showcase.v1beta1.EnumResponse", + "comments": [ + " This method is used to verify that clients can round-trip enum values, which is particularly important for unknown enum values over REST. VerifyEnum()", + " verifies that its request, which is presumably the response that the client previously got to a GetEnum(), contains the correct data. If so, it responds", + " with the same EnumResponse; otherwise, the RPC errors.", + "", + " This works because the values of enums sent by the server when a known or unknown value is requested will be the same within a single Showcase server run,", + " although they are not guaranteed to be the same across separate Showcase server runs.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "VerifyEnum", + "inputType": ".google.showcase.v1beta1.EnumResponse", + "outputType": ".google.showcase.v1beta1.EnumResponse", + "options": { + ".google.api.http": { + "post": "/v1beta1/compliance/enum", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "request", + "paramType": ".google.showcase.v1beta1.EnumRequest", + "comments": [ + " The original request for a known or unknown enum from the server." + ] + }, + { + "paramName": "continent", + "paramType": ".google.showcase.v1beta1.Continent", + "comments": [ + " The actual enum the server provided." + ] + } + ], + "headerRequestParams": [] + } + ], + "longRunning": [], + "diregapicLRO": [], + "streaming": [], + "clientStreaming": [], + "serverStreaming": [], + "bidiStreaming": [], + "paging": [], + "hostname": "localhost", + "port": 7469, + "oauthScopes": [], + "pathTemplates": [ + { + "name": "Blueprint", + "params": [ + "session", + "test", + "blueprint" + ], + "type": "showcase.googleapis.com/Blueprint", + "pattern": [ + "sessions/{session}/tests/{test}/blueprints/{blueprint}" + ] + }, + { + "name": "Room", + "params": [ + "room" + ], + "type": "showcase.googleapis.com/Room", + "pattern": [ + "rooms/{room}" + ] + }, + { + "name": "room_blurb", + "params": [ + "room", + "blurb" + ], + "pattern": [ + "rooms/{room}/blurbs/{blurb}" + ], + "type": "showcase.googleapis.com/Blurb" + }, + { + "name": "room_blurbs_legacy_room_blurb", + "params": [ + "room", + "legacy_room", + "blurb" + ], + "pattern": [ + "rooms/{room}/blurbs/legacy/{legacy_room}.{blurb}" + ], + "type": "showcase.googleapis.com/Blurb" + }, + { + "name": "Sequence", + "params": [ + "sequence" + ], + "type": "showcase.googleapis.com/Sequence", + "pattern": [ + "sequences/{sequence}" + ] + }, + { + "name": "SequenceReport", + "params": [ + "sequence" + ], + "type": "showcase.googleapis.com/SequenceReport", + "pattern": [ + "sequences/{sequence}/sequenceReport" + ] + }, + { + "name": "Session", + "params": [ + "session" + ], + "type": "showcase.googleapis.com/Session", + "pattern": [ + "sessions/{session}" + ] + }, + { + "name": "Test", + "params": [ + "session", + "test" + ], + "type": "showcase.googleapis.com/Test", + "pattern": [ + "sessions/{session}/tests/{test}" + ] + }, + { + "name": "User", + "params": [ + "user" + ], + "type": "showcase.googleapis.com/User", + "pattern": [ + "users/{user}" + ] + }, + { + "name": "user_profile_blurb", + "params": [ + "user", + "blurb" + ], + "pattern": [ + "users/{user}/profile/blurbs/{blurb}" + ], + "type": "showcase.googleapis.com/Blurb" + }, + { + "name": "user_profile_blurbs_legacy_user_blurb", + "params": [ + "user", + "legacy_user", + "blurb" + ], + "pattern": [ + "users/{user}/profile/blurbs/legacy/{legacy_user}~{blurb}" + ], + "type": "showcase.googleapis.com/Blurb" + } + ] + }, + { + "name": "Echo", + "method": [ + { + "inputInterface": ".google.showcase.v1beta1.EchoRequest", + "outputInterface": ".google.showcase.v1beta1.EchoResponse", + "comments": [], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "Echo", + "inputType": ".google.showcase.v1beta1.EchoRequest", + "outputType": ".google.showcase.v1beta1.EchoResponse", + "options": { + ".google.api.http": { + "post": "/v1beta1/echo:echo", + "body": "*" + }, + ".google.api.routing": { + "routingParameters": [ + { + "field": "header" + }, + { + "field": "header", + "pathTemplate": "{routing_id=**}" + }, + { + "field": "header", + "pathTemplate": "{table_name=regions/*/zones/*/**}" + }, + { + "field": "header", + "pathTemplate": "{super_id=projects/*}/**" + }, + { + "field": "header", + "pathTemplate": "{table_name=projects/*/instances/*/**}" + }, + { + "field": "header", + "pathTemplate": "projects/*/{instance_id=instances/*}/**" + }, + { + "field": "other_header", + "pathTemplate": "{baz=**}" + }, + { + "field": "other_header", + "pathTemplate": "{qux=projects/*}/**" + } + ] + } + }, + "paramComment": [ + { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The content to be echoed by the server." + ] + }, + { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error to be thrown by the server." + ] + }, + { + "paramName": "severity", + "paramType": ".google.showcase.v1beta1.Severity", + "comments": [ + " The severity to be echoed by the server." + ] + }, + { + "paramName": "header", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. This field can be set to test the routing annotation on the Echo method." + ] + }, + { + "paramName": "other_header", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. This field can be set to test the routing annotation on the Echo method." + ] + } + ], + "dynamicRoutingRequestParams": [ + [ + { + "pathTemplate": "", + "fieldRetrieve": [ + "header" + ], + "fieldSend": "header", + "messageRegex": "(?
.*)" + } + ], + [ + { + "pathTemplate": "{routing_id=**}", + "fieldRetrieve": [ + "header" + ], + "fieldSend": "routing_id", + "messageRegex": "(?(?:.*)?)" + } + ], + [ + { + "pathTemplate": "{table_name=regions/*/zones/*/**}", + "fieldRetrieve": [ + "header" + ], + "fieldSend": "table_name", + "messageRegex": "(?regions/[^/]+/zones/[^/]+(?:/.*)?)" + } + ], + [ + { + "pathTemplate": "{super_id=projects/*}/**", + "fieldRetrieve": [ + "header" + ], + "fieldSend": "super_id", + "messageRegex": "(?projects/[^/]+)(?:/.*)?" + } + ], + [ + { + "pathTemplate": "{table_name=projects/*/instances/*/**}", + "fieldRetrieve": [ + "header" + ], + "fieldSend": "table_name", + "messageRegex": "(?projects/[^/]+/instances/[^/]+(?:/.*)?)" + } + ], + [ + { + "pathTemplate": "projects/*/{instance_id=instances/*}/**", + "fieldRetrieve": [ + "header" + ], + "fieldSend": "instance_id", + "messageRegex": "projects/[^/]+/(?instances/[^/]+)(?:/.*)?" + } + ], + [ + { + "pathTemplate": "{baz=**}", + "fieldRetrieve": [ + "otherHeader" + ], + "fieldSend": "baz", + "messageRegex": "(?(?:.*)?)" + } + ], + [ + { + "pathTemplate": "{qux=projects/*}/**", + "fieldRetrieve": [ + "otherHeader" + ], + "fieldSend": "qux", + "messageRegex": "(?projects/[^/]+)(?:/.*)?" + } + ] + ] + }, + { + "streaming": "SERVER_STREAMING", + "inputInterface": ".google.showcase.v1beta1.ExpandRequest", + "outputInterface": ".google.showcase.v1beta1.EchoResponse", + "comments": [ + " This method splits the given content into words and will pass each word back", + " through the stream. This method showcases server-side streaming RPCs.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "Expand", + "inputType": ".google.showcase.v1beta1.ExpandRequest", + "outputType": ".google.showcase.v1beta1.EchoResponse", + "options": { + ".google.api.methodSignature": [ + "content,error" + ], + ".google.api.http": { + "post": "/v1beta1/echo:expand", + "body": "*", + "additionalBindings": [] + } + }, + "serverStreaming": true, + "paramComment": [ + { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The content that will be split into words and returned on the stream." + ] + }, + { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error that is thrown after all words are sent on the stream." + ] + } + ], + "headerRequestParams": [] + }, + { + "streaming": "CLIENT_STREAMING", + "inputInterface": ".google.showcase.v1beta1.EchoRequest", + "outputInterface": ".google.showcase.v1beta1.EchoResponse", + "comments": [ + " This method will collect the words given to it. When the stream is closed", + " by the client, this method will return the a concatenation of the strings", + " passed to it. This method showcases client-side streaming RPCs.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "Collect", + "inputType": ".google.showcase.v1beta1.EchoRequest", + "outputType": ".google.showcase.v1beta1.EchoResponse", + "options": { + ".google.api.http": { + "post": "/v1beta1/echo:collect", + "body": "*", + "additionalBindings": [] + } + }, + "clientStreaming": true, + "paramComment": [ + { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The content to be echoed by the server." + ] + }, + { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error to be thrown by the server." + ] + }, + { + "paramName": "severity", + "paramType": ".google.showcase.v1beta1.Severity", + "comments": [ + " The severity to be echoed by the server." + ] + }, + { + "paramName": "header", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. This field can be set to test the routing annotation on the Echo method." + ] + }, + { + "paramName": "other_header", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. This field can be set to test the routing annotation on the Echo method." + ] + } + ], + "headerRequestParams": [] + }, + { + "streaming": "BIDI_STREAMING", + "inputInterface": ".google.showcase.v1beta1.EchoRequest", + "outputInterface": ".google.showcase.v1beta1.EchoResponse", + "comments": [ + " This method, upon receiving a request on the stream, will pass the same", + " content back on the stream. This method showcases bidirectional", + " streaming RPCs.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "Chat", + "inputType": ".google.showcase.v1beta1.EchoRequest", + "outputType": ".google.showcase.v1beta1.EchoResponse", + "clientStreaming": true, + "serverStreaming": true, + "paramComment": [ + { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The content to be echoed by the server." + ] + }, + { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error to be thrown by the server." + ] + }, + { + "paramName": "severity", + "paramType": ".google.showcase.v1beta1.Severity", + "comments": [ + " The severity to be echoed by the server." + ] + }, + { + "paramName": "header", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. This field can be set to test the routing annotation on the Echo method." + ] + }, + { + "paramName": "other_header", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. This field can be set to test the routing annotation on the Echo method." + ] + } + ], + "headerRequestParams": [] + }, + { + "pagingFieldName": "responses", + "pagingResponseType": ".google.showcase.v1beta1.EchoResponse", + "inputInterface": ".google.showcase.v1beta1.PagedExpandRequest", + "outputInterface": ".google.showcase.v1beta1.PagedExpandResponse", + "comments": [ + " This is similar to the Expand method but instead of returning a stream of", + " expanded words, this method returns a paged list of expanded words.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "PagedExpand", + "inputType": ".google.showcase.v1beta1.PagedExpandRequest", + "outputType": ".google.showcase.v1beta1.PagedExpandResponse", + "options": { + ".google.api.http": { + "post": "/v1beta1/echo:pagedExpand", + "body": "*", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The string to expand." + ], + "fieldBehavior": 2 + }, + { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The number of words to returned in each page." + ] + }, + { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The position of the page to be returned." + ] + } + ], + "headerRequestParams": [] + }, + { + "inputInterface": ".google.showcase.v1beta1.PagedExpandLegacyRequest", + "outputInterface": ".google.showcase.v1beta1.PagedExpandResponse", + "comments": [ + " This is similar to the PagedExpand except that it uses", + " max_results instead of page_size, as some legacy APIs still", + " do. New APIs should NOT use this pattern.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "PagedExpandLegacy", + "inputType": ".google.showcase.v1beta1.PagedExpandLegacyRequest", + "outputType": ".google.showcase.v1beta1.PagedExpandResponse", + "options": { + ".google.api.http": { + "post": "/v1beta1/echo:pagedExpandLegacy", + "body": "*", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The string to expand." + ], + "fieldBehavior": 2 + }, + { + "paramName": "max_results", + "paramType": "TYPE_INT32", + "comments": [ + " The number of words to returned in each page.", + " (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that", + " violates aip.dev/158. Ordinarily, this should be page_size. --)" + ] + }, + { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The position of the page to be returned." + ] + } + ], + "headerRequestParams": [] + }, + { + "pagingFieldName": "alphabetized", + "pagingResponseType": ".google.showcase.v1beta1.PagedExpandLegacyMappedResponse.AlphabetizedEntry", + "ignoreMapPagingMethod": true, + "inputInterface": ".google.showcase.v1beta1.PagedExpandRequest", + "outputInterface": ".google.showcase.v1beta1.PagedExpandLegacyMappedResponse", + "comments": [ + " This method returns a map containing lists of words that appear in the input, keyed by their", + " initial character. The only words returned are the ones included in the current page,", + " as determined by page_token and page_size, which both refer to the word indices in the", + " input. This paging result consisting of a map of lists is a pattern used by some legacy", + " APIs. New APIs should NOT use this pattern.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "PagedExpandLegacyMapped", + "inputType": ".google.showcase.v1beta1.PagedExpandRequest", + "outputType": ".google.showcase.v1beta1.PagedExpandLegacyMappedResponse", + "options": { + ".google.api.http": { + "post": "/v1beta1/echo:pagedExpandLegacyMapped", + "body": "*", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The string to expand." + ], + "fieldBehavior": 2 + }, + { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The number of words to returned in each page." + ] + }, + { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The position of the page to be returned." + ] + } + ], + "headerRequestParams": [] + }, + { + "longRunning": { + "responseType": "WaitResponse", + "metadataType": "WaitMetadata" + }, + "longRunningResponseType": ".google.showcase.v1beta1.WaitResponse", + "longRunningMetadataType": ".google.showcase.v1beta1.WaitMetadata", + "inputInterface": ".google.showcase.v1beta1.WaitRequest", + "outputInterface": ".google.longrunning.Operation", + "comments": [ + " This method will wait for the requested amount of time and then return.", + " This method showcases how a client handles a request timeout.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "Wait", + "inputType": ".google.showcase.v1beta1.WaitRequest", + "outputType": ".google.longrunning.Operation", + "options": { + ".google.longrunning.operationInfo": { + "responseType": "WaitResponse", + "metadataType": "WaitMetadata" + }, + ".google.api.http": { + "post": "/v1beta1/echo:wait", + "body": "*", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "end_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The time that this operation will complete." + ] + }, + { + "paramName": "ttl", + "paramType": ".google.protobuf.Duration", + "comments": [ + " The duration of this operation." + ] + }, + { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error that will be returned by the server. If this code is specified", + " to be the OK rpc code, an empty response will be returned." + ] + }, + { + "paramName": "success", + "paramType": ".google.showcase.v1beta1.WaitResponse", + "comments": [ + " The response to be returned on operation completion." + ] + } + ], + "headerRequestParams": [] + }, + { + "inputInterface": ".google.showcase.v1beta1.BlockRequest", + "outputInterface": ".google.showcase.v1beta1.BlockResponse", + "comments": [ + " This method will block (wait) for the requested amount of time", + " and then return the response or error.", + " This method showcases how a client handles delays or retries.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "Block", + "inputType": ".google.showcase.v1beta1.BlockRequest", + "outputType": ".google.showcase.v1beta1.BlockResponse", + "options": { + ".google.api.http": { + "post": "/v1beta1/echo:block", + "body": "*", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "response_delay", + "paramType": ".google.protobuf.Duration", + "comments": [ + " The amount of time to block before returning a response." + ] + }, + { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error that will be returned by the server. If this code is specified", + " to be the OK rpc code, an empty response will be returned." + ] + }, + { + "paramName": "success", + "paramType": ".google.showcase.v1beta1.BlockResponse", + "comments": [ + " The response to be returned that will signify successful method call." + ] + } + ], + "headerRequestParams": [] + } + ], + "options": { + ".google.api.defaultHost": "localhost:7469" + }, + "packageName": "google.showcase.v1beta1", + "protoFile": "google/showcase/v1beta1/echo.proto", + "IAMPolicyMixin": 0, + "LocationMixin": 0, + "comments": [ + " This service is used showcase the four main types of rpcs - unary, server", + " side streaming, client side streaming, and bidirectional streaming. This", + " service also exposes methods that explicitly implement server delay, and", + " paginated calls. Set the 'showcase-trailer' metadata key on any method", + " to have the values echoed in the response trailers. Set the ", + " 'x-goog-request-params' metadata key on any method to have the values", + " echoed in the response headers." + ], + "commentsMap": { + "comments": { + "Http:rules": { + "paramName": "rules", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " A list of HTTP configuration rules that apply to individual API methods.", + "", + " **NOTE:** All service configuration rules follow \"last one wins\" order." + ] + }, + "Http:fully_decode_reserved_expansion": { + "paramName": "fully_decode_reserved_expansion", + "paramType": "TYPE_BOOL", + "comments": [ + " When set to true, URL path parameters will be fully URI-decoded except in", + " cases of single segment matches in reserved expansion, where \"%2F\" will be", + " left encoded.", + "", + " The default behavior is to not decode RFC 6570 reserved characters in multi", + " segment matches." + ] + }, + "HttpRule:selector": { + "paramName": "selector", + "paramType": "TYPE_STRING", + "comments": [ + " Selects a method to which this rule applies.", + "", + " Refer to [selector][google.api.DocumentationRule.selector] for syntax", + " details." + ] + }, + "HttpRule:get": { + "paramName": "get", + "paramType": "TYPE_STRING", + "comments": [ + " Maps to HTTP GET. Used for listing and getting information about", + " resources." + ] + }, + "HttpRule:put": { + "paramName": "put", + "paramType": "TYPE_STRING", + "comments": [ + " Maps to HTTP PUT. Used for replacing a resource." + ] + }, + "HttpRule:post": { + "paramName": "post", + "paramType": "TYPE_STRING", + "comments": [ + " Maps to HTTP POST. Used for creating a resource or performing an action." + ] + }, + "HttpRule:delete": { + "paramName": "delete", + "paramType": "TYPE_STRING", + "comments": [ + " Maps to HTTP DELETE. Used for deleting a resource." + ] + }, + "HttpRule:patch": { + "paramName": "patch", + "paramType": "TYPE_STRING", + "comments": [ + " Maps to HTTP PATCH. Used for updating a resource." + ] + }, + "HttpRule:custom": { + "paramName": "custom", + "paramType": ".google.api.CustomHttpPattern", + "comments": [ + " The custom pattern is used for specifying an HTTP method that is not", + " included in the `pattern` field, such as HEAD, or \"*\" to leave the", + " HTTP method unspecified for this rule. The wild-card rule is useful", + " for services that provide content to Web (HTML) clients." + ] + }, + "HttpRule:body": { + "paramName": "body", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the request field whose value is mapped to the HTTP request", + " body, or `*` for mapping all request fields not captured by the path", + " pattern to the HTTP body, or omitted for not having any HTTP request body.", + "", + " NOTE: the referred field must be present at the top-level of the request", + " message type." + ] + }, + "HttpRule:response_body": { + "paramName": "response_body", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. The name of the response field whose value is mapped to the HTTP", + " response body. When omitted, the entire response message will be used", + " as the HTTP response body.", + "", + " NOTE: The referred field must be present at the top-level of the response", + " message type." + ] + }, + "HttpRule:additional_bindings": { + "paramName": "additional_bindings", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Additional HTTP bindings for the selector. Nested bindings must", + " not contain an `additional_bindings` field themselves (that is,", + " the nesting may only be one level deep)." + ] + }, + "CustomHttpPattern:kind": { + "paramName": "kind", + "paramType": "TYPE_STRING", + "comments": [ + " The name of this custom HTTP verb." + ] + }, + "CustomHttpPattern:path": { + "paramName": "path", + "paramType": "TYPE_STRING", + "comments": [ + " The path matched by this custom verb." + ] + }, + "FileDescriptorSet:file": { + "paramName": "file", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "FileDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "FileDescriptorProto:package": { + "paramName": "package", + "paramType": "TYPE_STRING", + "comments": [] + }, + "FileDescriptorProto:dependency": { + "paramName": "dependency", + "paramType": "TYPE_STRING[]", + "comments": [ + " Names of files imported by this file." + ] + }, + "FileDescriptorProto:public_dependency": { + "paramName": "public_dependency", + "paramType": "TYPE_INT32[]", + "comments": [ + " Indexes of the public imported files in the dependency list above." + ] + }, + "FileDescriptorProto:weak_dependency": { + "paramName": "weak_dependency", + "paramType": "TYPE_INT32[]", + "comments": [ + " Indexes of the weak imported files in the dependency list.", + " For Google-internal migration only. Do not use." + ] + }, + "FileDescriptorProto:message_type": { + "paramName": "message_type", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " All top-level definitions in this file." + ] + }, + "FileDescriptorProto:enum_type": { + "paramName": "enum_type", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "FileDescriptorProto:service": { + "paramName": "service", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "FileDescriptorProto:extension": { + "paramName": "extension", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "FileDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.FileOptions", + "comments": [] + }, + "FileDescriptorProto:source_code_info": { + "paramName": "source_code_info", + "paramType": ".google.protobuf.SourceCodeInfo", + "comments": [ + " This field contains optional information about the original source code.", + " You may safely remove this entire field without harming runtime", + " functionality of the descriptors -- the information is needed only by", + " development tools." + ] + }, + "FileDescriptorProto:syntax": { + "paramName": "syntax", + "paramType": "TYPE_STRING", + "comments": [ + " The syntax of the proto file.", + " The supported values are \"proto2\", \"proto3\", and \"editions\".", + "", + " If `edition` is present, this value must be \"editions\"." + ] + }, + "FileDescriptorProto:edition": { + "paramName": "edition", + "paramType": "TYPE_STRING", + "comments": [ + " The edition of the proto file, which is an opaque string." + ] + }, + "DescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "DescriptorProto:field": { + "paramName": "field", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:extension": { + "paramName": "extension", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:nested_type": { + "paramName": "nested_type", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:enum_type": { + "paramName": "enum_type", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:extension_range": { + "paramName": "extension_range", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:oneof_decl": { + "paramName": "oneof_decl", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.MessageOptions", + "comments": [] + }, + "DescriptorProto:reserved_range": { + "paramName": "reserved_range", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:reserved_name": { + "paramName": "reserved_name", + "paramType": "TYPE_STRING[]", + "comments": [ + " Reserved field names, which may not be used by fields in the same message.", + " A given name may only be reserved once." + ] + }, + "ExtensionRangeOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "ExtensionRangeOptions:declaration": { + "paramName": "declaration", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " For external users: DO NOT USE. We are in the process of open sourcing", + " extension declaration and executing internal cleanups before it can be", + " used externally." + ] + }, + "ExtensionRangeOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "ExtensionRangeOptions:verification": { + "paramName": "verification", + "paramType": ".google.protobuf.ExtensionRangeOptions.VerificationState", + "comments": [ + " The verification state of the range.", + " TODO(b/278783756): flip the default to DECLARATION once all empty ranges", + " are marked as UNVERIFIED." + ] + }, + "FieldDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "FieldDescriptorProto:number": { + "paramName": "number", + "paramType": "TYPE_INT32", + "comments": [] + }, + "FieldDescriptorProto:label": { + "paramName": "label", + "paramType": ".google.protobuf.FieldDescriptorProto.Label", + "comments": [] + }, + "FieldDescriptorProto:type": { + "paramName": "type", + "paramType": ".google.protobuf.FieldDescriptorProto.Type", + "comments": [ + " If type_name is set, this need not be set. If both this and type_name", + " are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP." + ] + }, + "FieldDescriptorProto:type_name": { + "paramName": "type_name", + "paramType": "TYPE_STRING", + "comments": [ + " For message and enum types, this is the name of the type. If the name", + " starts with a '.', it is fully-qualified. Otherwise, C++-like scoping", + " rules are used to find the type (i.e. first the nested types within this", + " message are searched, then within the parent, on up to the root", + " namespace)." + ] + }, + "FieldDescriptorProto:extendee": { + "paramName": "extendee", + "paramType": "TYPE_STRING", + "comments": [ + " For extensions, this is the name of the type being extended. It is", + " resolved in the same manner as type_name." + ] + }, + "FieldDescriptorProto:default_value": { + "paramName": "default_value", + "paramType": "TYPE_STRING", + "comments": [ + " For numeric types, contains the original text representation of the value.", + " For booleans, \"true\" or \"false\".", + " For strings, contains the default text contents (not escaped in any way).", + " For bytes, contains the C escaped value. All bytes >= 128 are escaped." + ] + }, + "FieldDescriptorProto:oneof_index": { + "paramName": "oneof_index", + "paramType": "TYPE_INT32", + "comments": [ + " If set, gives the index of a oneof in the containing type's oneof_decl", + " list. This field is a member of that oneof." + ] + }, + "FieldDescriptorProto:json_name": { + "paramName": "json_name", + "paramType": "TYPE_STRING", + "comments": [ + " JSON name of this field. The value is set by protocol compiler. If the", + " user has set a \"json_name\" option on this field, that option's value", + " will be used. Otherwise, it's deduced from the field's name by converting", + " it to camelCase." + ] + }, + "FieldDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.FieldOptions", + "comments": [] + }, + "FieldDescriptorProto:proto3_optional": { + "paramName": "proto3_optional", + "paramType": "TYPE_BOOL", + "comments": [ + " If true, this is a proto3 \"optional\". When a proto3 field is optional, it", + " tracks presence regardless of field type.", + "", + " When proto3_optional is true, this field must be belong to a oneof to", + " signal to old proto3 clients that presence is tracked for this field. This", + " oneof is known as a \"synthetic\" oneof, and this field must be its sole", + " member (each proto3 optional field gets its own synthetic oneof). Synthetic", + " oneofs exist in the descriptor only, and do not generate any API. Synthetic", + " oneofs must be ordered after all \"real\" oneofs.", + "", + " For message fields, proto3_optional doesn't create any semantic change,", + " since non-repeated message fields always track presence. However it still", + " indicates the semantic detail of whether the user wrote \"optional\" or not.", + " This can be useful for round-tripping the .proto file. For consistency we", + " give message fields a synthetic oneof also, even though it is not required", + " to track presence. This is especially important because the parser can't", + " tell if a field is a message or an enum, so it must always create a", + " synthetic oneof.", + "", + " Proto2 optional fields do not set this flag, because they already indicate", + " optional with `LABEL_OPTIONAL`." + ] + }, + "OneofDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "OneofDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.OneofOptions", + "comments": [] + }, + "EnumDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "EnumDescriptorProto:value": { + "paramName": "value", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "EnumDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.EnumOptions", + "comments": [] + }, + "EnumDescriptorProto:reserved_range": { + "paramName": "reserved_range", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Range of reserved numeric values. Reserved numeric values may not be used", + " by enum values in the same enum declaration. Reserved ranges may not", + " overlap." + ] + }, + "EnumDescriptorProto:reserved_name": { + "paramName": "reserved_name", + "paramType": "TYPE_STRING[]", + "comments": [ + " Reserved enum value names, which may not be reused. A given name may only", + " be reserved once." + ] + }, + "EnumValueDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "EnumValueDescriptorProto:number": { + "paramName": "number", + "paramType": "TYPE_INT32", + "comments": [] + }, + "EnumValueDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.EnumValueOptions", + "comments": [] + }, + "ServiceDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ServiceDescriptorProto:method": { + "paramName": "method", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "ServiceDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.ServiceOptions", + "comments": [] + }, + "MethodDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "MethodDescriptorProto:input_type": { + "paramName": "input_type", + "paramType": "TYPE_STRING", + "comments": [ + " Input and output type names. These are resolved in the same way as", + " FieldDescriptorProto.type_name, but must refer to a message type." + ] + }, + "MethodDescriptorProto:output_type": { + "paramName": "output_type", + "paramType": "TYPE_STRING", + "comments": [] + }, + "MethodDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.MethodOptions", + "comments": [] + }, + "MethodDescriptorProto:client_streaming": { + "paramName": "client_streaming", + "paramType": "TYPE_BOOL", + "comments": [ + " Identifies if client streams multiple client messages" + ] + }, + "MethodDescriptorProto:server_streaming": { + "paramName": "server_streaming", + "paramType": "TYPE_BOOL", + "comments": [ + " Identifies if server streams multiple server messages" + ] + }, + "FileOptions:java_package": { + "paramName": "java_package", + "paramType": "TYPE_STRING", + "comments": [ + " Sets the Java package where classes generated from this .proto will be", + " placed. By default, the proto package is used, but this is often", + " inappropriate because proto packages do not normally start with backwards", + " domain names." + ] + }, + "FileOptions:java_outer_classname": { + "paramName": "java_outer_classname", + "paramType": "TYPE_STRING", + "comments": [ + " Controls the name of the wrapper Java class generated for the .proto file.", + " That class will always contain the .proto file's getDescriptor() method as", + " well as any top-level extensions defined in the .proto file.", + " If java_multiple_files is disabled, then all the other classes from the", + " .proto file will be nested inside the single wrapper outer class." + ] + }, + "FileOptions:java_multiple_files": { + "paramName": "java_multiple_files", + "paramType": "TYPE_BOOL", + "comments": [ + " If enabled, then the Java code generator will generate a separate .java", + " file for each top-level message, enum, and service defined in the .proto", + " file. Thus, these types will *not* be nested inside the wrapper class", + " named by java_outer_classname. However, the wrapper class will still be", + " generated to contain the file's getDescriptor() method as well as any", + " top-level extensions defined in the file." + ] + }, + "FileOptions:java_generate_equals_and_hash": { + "paramName": "java_generate_equals_and_hash", + "paramType": "TYPE_BOOL", + "comments": [ + " This option does nothing." + ] + }, + "FileOptions:java_string_check_utf8": { + "paramName": "java_string_check_utf8", + "paramType": "TYPE_BOOL", + "comments": [ + " If set true, then the Java2 code generator will generate code that", + " throws an exception whenever an attempt is made to assign a non-UTF-8", + " byte sequence to a string field.", + " Message reflection will do the same.", + " However, an extension field still accepts non-UTF-8 byte sequences.", + " This option has no effect on when used with the lite runtime." + ] + }, + "FileOptions:optimize_for": { + "paramName": "optimize_for", + "paramType": ".google.protobuf.FileOptions.OptimizeMode", + "comments": [] + }, + "FileOptions:go_package": { + "paramName": "go_package", + "paramType": "TYPE_STRING", + "comments": [ + " Sets the Go package where structs generated from this .proto will be", + " placed. If omitted, the Go package will be derived from the following:", + " - The basename of the package import path, if provided.", + " - Otherwise, the package statement in the .proto file, if present.", + " - Otherwise, the basename of the .proto file, without extension." + ] + }, + "FileOptions:cc_generic_services": { + "paramName": "cc_generic_services", + "paramType": "TYPE_BOOL", + "comments": [ + " Should generic services be generated in each language? \"Generic\" services", + " are not specific to any particular RPC system. They are generated by the", + " main code generators in each language (without additional plugins).", + " Generic services were the only kind of service generation supported by", + " early versions of google.protobuf.", + "", + " Generic services are now considered deprecated in favor of using plugins", + " that generate code specific to your particular RPC system. Therefore,", + " these default to false. Old code which depends on generic services should", + " explicitly set them to true." + ] + }, + "FileOptions:java_generic_services": { + "paramName": "java_generic_services", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "FileOptions:py_generic_services": { + "paramName": "py_generic_services", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "FileOptions:php_generic_services": { + "paramName": "php_generic_services", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "FileOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this file deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for everything in the file, or it will be completely ignored; in the very", + " least, this is a formalization for deprecating files." + ] + }, + "FileOptions:cc_enable_arenas": { + "paramName": "cc_enable_arenas", + "paramType": "TYPE_BOOL", + "comments": [ + " Enables the use of arenas for the proto messages in this file. This applies", + " only to generated classes for C++." + ] + }, + "FileOptions:objc_class_prefix": { + "paramName": "objc_class_prefix", + "paramType": "TYPE_STRING", + "comments": [ + " Sets the objective c class prefix which is prepended to all objective c", + " generated classes from this .proto. There is no default." + ] + }, + "FileOptions:csharp_namespace": { + "paramName": "csharp_namespace", + "paramType": "TYPE_STRING", + "comments": [ + " Namespace for generated classes; defaults to the package." + ] + }, + "FileOptions:swift_prefix": { + "paramName": "swift_prefix", + "paramType": "TYPE_STRING", + "comments": [ + " By default Swift generators will take the proto package and CamelCase it", + " replacing '.' with underscore and use that to prefix the types/symbols", + " defined. When this options is provided, they will use this value instead", + " to prefix the types/symbols defined." + ] + }, + "FileOptions:php_class_prefix": { + "paramName": "php_class_prefix", + "paramType": "TYPE_STRING", + "comments": [ + " Sets the php class prefix which is prepended to all php generated classes", + " from this .proto. Default is empty." + ] + }, + "FileOptions:php_namespace": { + "paramName": "php_namespace", + "paramType": "TYPE_STRING", + "comments": [ + " Use this option to change the namespace of php generated classes. Default", + " is empty. When this option is empty, the package name will be used for", + " determining the namespace." + ] + }, + "FileOptions:php_metadata_namespace": { + "paramName": "php_metadata_namespace", + "paramType": "TYPE_STRING", + "comments": [ + " Use this option to change the namespace of php generated metadata classes.", + " Default is empty. When this option is empty, the proto file name will be", + " used for determining the namespace." + ] + }, + "FileOptions:ruby_package": { + "paramName": "ruby_package", + "paramType": "TYPE_STRING", + "comments": [ + " Use this option to change the package of ruby generated classes. Default", + " is empty. When this option is not set, the package name will be used for", + " determining the ruby package." + ] + }, + "FileOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "FileOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here.", + " See the documentation for the \"Options\" section above." + ] + }, + "MessageOptions:message_set_wire_format": { + "paramName": "message_set_wire_format", + "paramType": "TYPE_BOOL", + "comments": [ + " Set true to use the old proto1 MessageSet wire format for extensions.", + " This is provided for backwards-compatibility with the MessageSet wire", + " format. You should not use this for any other reason: It's less", + " efficient, has fewer features, and is more complicated.", + "", + " The message must be defined exactly as follows:", + " message Foo {", + " option message_set_wire_format = true;", + " extensions 4 to max;", + " }", + " Note that the message cannot have any defined fields; MessageSets only", + " have extensions.", + "", + " All extensions of your type must be singular messages; e.g. they cannot", + " be int32s, enums, or repeated messages.", + "", + " Because this is an option, the above two restrictions are not enforced by", + " the protocol compiler." + ] + }, + "MessageOptions:no_standard_descriptor_accessor": { + "paramName": "no_standard_descriptor_accessor", + "paramType": "TYPE_BOOL", + "comments": [ + " Disables the generation of the standard \"descriptor()\" accessor, which can", + " conflict with a field of the same name. This is meant to make migration", + " from proto1 easier; new code should avoid fields named \"descriptor\"." + ] + }, + "MessageOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this message deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for the message, or it will be completely ignored; in the very least,", + " this is a formalization for deprecating messages." + ] + }, + "MessageOptions:map_entry": { + "paramName": "map_entry", + "paramType": "TYPE_BOOL", + "comments": [ + " NOTE: Do not set the option in .proto files. Always use the maps syntax", + " instead. The option should only be implicitly set by the proto compiler", + " parser.", + "", + " Whether the message is an automatically generated map entry type for the", + " maps field.", + "", + " For maps fields:", + " map map_field = 1;", + " The parsed descriptor looks like:", + " message MapFieldEntry {", + " option map_entry = true;", + " optional KeyType key = 1;", + " optional ValueType value = 2;", + " }", + " repeated MapFieldEntry map_field = 1;", + "", + " Implementations may choose not to generate the map_entry=true message, but", + " use a native map in the target language to hold the keys and values.", + " The reflection APIs in such implementations still need to work as", + " if the field is a repeated message field." + ] + }, + "MessageOptions:deprecated_legacy_json_field_conflicts": { + "paramName": "deprecated_legacy_json_field_conflicts", + "paramType": "TYPE_BOOL", + "comments": [ + " Enable the legacy handling of JSON field name conflicts. This lowercases", + " and strips underscored from the fields before comparison in proto3 only.", + " The new behavior takes `json_name` into account and applies to proto2 as", + " well.", + "", + " This should only be used as a temporary measure against broken builds due", + " to the change in behavior for JSON field name conflicts.", + "", + " TODO(b/261750190) This is legacy behavior we plan to remove once downstream", + " teams have had time to migrate." + ] + }, + "MessageOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "MessageOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "FieldOptions:ctype": { + "paramName": "ctype", + "paramType": ".google.protobuf.FieldOptions.CType", + "comments": [ + " The ctype option instructs the C++ code generator to use a different", + " representation of the field than it normally would. See the specific", + " options below. This option is only implemented to support use of", + " [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of", + " type \"bytes\" in the open source release -- sorry, we'll try to include", + " other types in a future version!" + ] + }, + "FieldOptions:packed": { + "paramName": "packed", + "paramType": "TYPE_BOOL", + "comments": [ + " The packed option can be enabled for repeated primitive fields to enable", + " a more efficient representation on the wire. Rather than repeatedly", + " writing the tag and type for each element, the entire array is encoded as", + " a single length-delimited blob. In proto3, only explicit setting it to", + " false will avoid using packed encoding." + ] + }, + "FieldOptions:jstype": { + "paramName": "jstype", + "paramType": ".google.protobuf.FieldOptions.JSType", + "comments": [ + " The jstype option determines the JavaScript type used for values of the", + " field. The option is permitted only for 64 bit integral and fixed types", + " (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING", + " is represented as JavaScript string, which avoids loss of precision that", + " can happen when a large value is converted to a floating point JavaScript.", + " Specifying JS_NUMBER for the jstype causes the generated JavaScript code to", + " use the JavaScript \"number\" type. The behavior of the default option", + " JS_NORMAL is implementation dependent.", + "", + " This option is an enum to permit additional types to be added, e.g.", + " goog.math.Integer." + ] + }, + "FieldOptions:lazy": { + "paramName": "lazy", + "paramType": "TYPE_BOOL", + "comments": [ + " Should this field be parsed lazily? Lazy applies only to message-type", + " fields. It means that when the outer message is initially parsed, the", + " inner message's contents will not be parsed but instead stored in encoded", + " form. The inner message will actually be parsed when it is first accessed.", + "", + " This is only a hint. Implementations are free to choose whether to use", + " eager or lazy parsing regardless of the value of this option. However,", + " setting this option true suggests that the protocol author believes that", + " using lazy parsing on this field is worth the additional bookkeeping", + " overhead typically needed to implement it.", + "", + " This option does not affect the public interface of any generated code;", + " all method signatures remain the same. Furthermore, thread-safety of the", + " interface is not affected by this option; const methods remain safe to", + " call from multiple threads concurrently, while non-const methods continue", + " to require exclusive access.", + "", + " Note that implementations may choose not to check required fields within", + " a lazy sub-message. That is, calling IsInitialized() on the outer message", + " may return true even if the inner message has missing required fields.", + " This is necessary because otherwise the inner message would have to be", + " parsed in order to perform the check, defeating the purpose of lazy", + " parsing. An implementation which chooses not to check required fields", + " must be consistent about it. That is, for any particular sub-message, the", + " implementation must either *always* check its required fields, or *never*", + " check its required fields, regardless of whether or not the message has", + " been parsed.", + "", + " As of May 2022, lazy verifies the contents of the byte stream during", + " parsing. An invalid byte stream will cause the overall parsing to fail." + ] + }, + "FieldOptions:unverified_lazy": { + "paramName": "unverified_lazy", + "paramType": "TYPE_BOOL", + "comments": [ + " unverified_lazy does no correctness checks on the byte stream. This should", + " only be used where lazy with verification is prohibitive for performance", + " reasons." + ] + }, + "FieldOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this field deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for accessors, or it will be completely ignored; in the very least, this", + " is a formalization for deprecating fields." + ] + }, + "FieldOptions:weak": { + "paramName": "weak", + "paramType": "TYPE_BOOL", + "comments": [ + " For Google-internal migration only. Do not use." + ] + }, + "FieldOptions:debug_redact": { + "paramName": "debug_redact", + "paramType": "TYPE_BOOL", + "comments": [ + " Indicate that the field value should not be printed out when using debug", + " formats, e.g. when the field contains sensitive credentials." + ] + }, + "FieldOptions:retention": { + "paramName": "retention", + "paramType": ".google.protobuf.FieldOptions.OptionRetention", + "comments": [] + }, + "FieldOptions:targets": { + "paramName": "targets", + "paramType": "TYPE_ENUM[]", + "comments": [] + }, + "FieldOptions:edition_defaults": { + "paramName": "edition_defaults", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "FieldOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "FieldOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "OneofOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "OneofOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "EnumOptions:allow_alias": { + "paramName": "allow_alias", + "paramType": "TYPE_BOOL", + "comments": [ + " Set this option to true to allow mapping different tag names to the same", + " value." + ] + }, + "EnumOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this enum deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for the enum, or it will be completely ignored; in the very least, this", + " is a formalization for deprecating enums." + ] + }, + "EnumOptions:deprecated_legacy_json_field_conflicts": { + "paramName": "deprecated_legacy_json_field_conflicts", + "paramType": "TYPE_BOOL", + "comments": [ + " Enable the legacy handling of JSON field name conflicts. This lowercases", + " and strips underscored from the fields before comparison in proto3 only.", + " The new behavior takes `json_name` into account and applies to proto2 as", + " well.", + " TODO(b/261750190) Remove this legacy behavior once downstream teams have", + " had time to migrate." + ] + }, + "EnumOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "EnumOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "EnumValueOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this enum value deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for the enum value, or it will be completely ignored; in the very least,", + " this is a formalization for deprecating enum values." + ] + }, + "EnumValueOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "EnumValueOptions:debug_redact": { + "paramName": "debug_redact", + "paramType": "TYPE_BOOL", + "comments": [ + " Indicate that fields annotated with this enum value should not be printed", + " out when using debug formats, e.g. when the field contains sensitive", + " credentials." + ] + }, + "EnumValueOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "ServiceOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "ServiceOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this service deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for the service, or it will be completely ignored; in the very least,", + " this is a formalization for deprecating services." + ] + }, + "ServiceOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "MethodOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this method deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for the method, or it will be completely ignored; in the very least,", + " this is a formalization for deprecating methods." + ] + }, + "MethodOptions:idempotency_level": { + "paramName": "idempotency_level", + "paramType": ".google.protobuf.MethodOptions.IdempotencyLevel", + "comments": [] + }, + "MethodOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "MethodOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "UninterpretedOption:name": { + "paramName": "name", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "UninterpretedOption:identifier_value": { + "paramName": "identifier_value", + "paramType": "TYPE_STRING", + "comments": [ + " The value of the uninterpreted option, in whatever type the tokenizer", + " identified it as during parsing. Exactly one of these should be set." + ] + }, + "UninterpretedOption:positive_int_value": { + "paramName": "positive_int_value", + "paramType": "TYPE_UINT64", + "comments": [] + }, + "UninterpretedOption:negative_int_value": { + "paramName": "negative_int_value", + "paramType": "TYPE_INT64", + "comments": [] + }, + "UninterpretedOption:double_value": { + "paramName": "double_value", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "UninterpretedOption:string_value": { + "paramName": "string_value", + "paramType": "TYPE_BYTES", + "comments": [] + }, + "UninterpretedOption:aggregate_value": { + "paramName": "aggregate_value", + "paramType": "TYPE_STRING", + "comments": [] + }, + "FeatureSet:field_presence": { + "paramName": "field_presence", + "paramType": ".google.protobuf.FeatureSet.FieldPresence", + "comments": [] + }, + "FeatureSet:enum_type": { + "paramName": "enum_type", + "paramType": ".google.protobuf.FeatureSet.EnumType", + "comments": [] + }, + "FeatureSet:repeated_field_encoding": { + "paramName": "repeated_field_encoding", + "paramType": ".google.protobuf.FeatureSet.RepeatedFieldEncoding", + "comments": [] + }, + "FeatureSet:string_field_validation": { + "paramName": "string_field_validation", + "paramType": ".google.protobuf.FeatureSet.StringFieldValidation", + "comments": [] + }, + "FeatureSet:message_encoding": { + "paramName": "message_encoding", + "paramType": ".google.protobuf.FeatureSet.MessageEncoding", + "comments": [] + }, + "FeatureSet:json_format": { + "paramName": "json_format", + "paramType": ".google.protobuf.FeatureSet.JsonFormat", + "comments": [] + }, + "FeatureSet:raw_features": { + "paramName": "raw_features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [] + }, + "SourceCodeInfo:location": { + "paramName": "location", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " A Location identifies a piece of source code in a .proto file which", + " corresponds to a particular definition. This information is intended", + " to be useful to IDEs, code indexers, documentation generators, and similar", + " tools.", + "", + " For example, say we have a file like:", + " message Foo {", + " optional string foo = 1;", + " }", + " Let's look at just the field definition:", + " optional string foo = 1;", + " ^ ^^ ^^ ^ ^^^", + " a bc de f ghi", + " We have the following locations:", + " span path represents", + " [a,i) [ 4, 0, 2, 0 ] The whole field definition.", + " [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).", + " [c,d) [ 4, 0, 2, 0, 5 ] The type (string).", + " [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).", + " [g,h) [ 4, 0, 2, 0, 3 ] The number (1).", + "", + " Notes:", + " - A location may refer to a repeated field itself (i.e. not to any", + " particular index within it). This is used whenever a set of elements are", + " logically enclosed in a single code segment. For example, an entire", + " extend block (possibly containing multiple extension definitions) will", + " have an outer location whose path refers to the \"extensions\" repeated", + " field without an index.", + " - Multiple locations may have the same path. This happens when a single", + " logical declaration is spread out across multiple places. The most", + " obvious example is the \"extend\" block again -- there may be multiple", + " extend blocks in the same scope, each of which will have the same path.", + " - A location's span is not always a subset of its parent's span. For", + " example, the \"extendee\" of an extension declaration appears at the", + " beginning of the \"extend\" block and is shared by all extensions within", + " the block.", + " - Just because a location's span is a subset of some other location's span", + " does not mean that it is a descendant. For example, a \"group\" defines", + " both a type and a field in a single declaration. Thus, the locations", + " corresponding to the type and field and their components will overlap.", + " - Code which tries to interpret locations should probably be designed to", + " ignore those that it doesn't understand, as more types of locations could", + " be recorded in the future." + ] + }, + "GeneratedCodeInfo:annotation": { + "paramName": "annotation", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " An Annotation connects some span of text in generated code to an element", + " of its generating .proto file." + ] + }, + "Duration:seconds": { + "paramName": "seconds", + "paramType": "TYPE_INT64", + "comments": [ + " Signed seconds of the span of time. Must be from -315,576,000,000", + " to +315,576,000,000 inclusive. Note: these bounds are computed from:", + " 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years" + ] + }, + "Duration:nanos": { + "paramName": "nanos", + "paramType": "TYPE_INT32", + "comments": [ + " Signed fractions of a second at nanosecond resolution of the span", + " of time. Durations less than one second are represented with a 0", + " `seconds` field and a positive or negative `nanos` field. For durations", + " of one second or more, a non-zero value for the `nanos` field must be", + " of the same sign as the `seconds` field. Must be from -999,999,999", + " to +999,999,999 inclusive." + ] + }, + "CommonLanguageSettings:reference_docs_uri": { + "paramName": "reference_docs_uri", + "paramType": "TYPE_STRING", + "comments": [ + " Link to automatically generated reference documentation. Example:", + " https://cloud.google.com/nodejs/docs/reference/asset/latest" + ] + }, + "CommonLanguageSettings:destinations": { + "paramName": "destinations", + "paramType": "TYPE_ENUM[]", + "comments": [ + " The destination where API teams want this client library to be published." + ] + }, + "ClientLibrarySettings:version": { + "paramName": "version", + "paramType": "TYPE_STRING", + "comments": [ + " Version of the API to apply these settings to. This is the full protobuf", + " package for the API, ending in the version element.", + " Examples: \"google.cloud.speech.v1\" and \"google.spanner.admin.database.v1\"." + ] + }, + "ClientLibrarySettings:launch_stage": { + "paramName": "launch_stage", + "paramType": ".google.api.LaunchStage", + "comments": [ + " Launch stage of this version of the API." + ] + }, + "ClientLibrarySettings:rest_numeric_enums": { + "paramName": "rest_numeric_enums", + "paramType": "TYPE_BOOL", + "comments": [ + " When using transport=rest, the client request will encode enums as", + " numbers rather than strings." + ] + }, + "ClientLibrarySettings:java_settings": { + "paramName": "java_settings", + "paramType": ".google.api.JavaSettings", + "comments": [ + " Settings for legacy Java features, supported in the Service YAML." + ] + }, + "ClientLibrarySettings:cpp_settings": { + "paramName": "cpp_settings", + "paramType": ".google.api.CppSettings", + "comments": [ + " Settings for C++ client libraries." + ] + }, + "ClientLibrarySettings:php_settings": { + "paramName": "php_settings", + "paramType": ".google.api.PhpSettings", + "comments": [ + " Settings for PHP client libraries." + ] + }, + "ClientLibrarySettings:python_settings": { + "paramName": "python_settings", + "paramType": ".google.api.PythonSettings", + "comments": [ + " Settings for Python client libraries." + ] + }, + "ClientLibrarySettings:node_settings": { + "paramName": "node_settings", + "paramType": ".google.api.NodeSettings", + "comments": [ + " Settings for Node client libraries." + ] + }, + "ClientLibrarySettings:dotnet_settings": { + "paramName": "dotnet_settings", + "paramType": ".google.api.DotnetSettings", + "comments": [ + " Settings for .NET client libraries." + ] + }, + "ClientLibrarySettings:ruby_settings": { + "paramName": "ruby_settings", + "paramType": ".google.api.RubySettings", + "comments": [ + " Settings for Ruby client libraries." + ] + }, + "ClientLibrarySettings:go_settings": { + "paramName": "go_settings", + "paramType": ".google.api.GoSettings", + "comments": [ + " Settings for Go client libraries." + ] + }, + "Publishing:method_settings": { + "paramName": "method_settings", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " A list of API method settings, e.g. the behavior for methods that use the", + " long-running operation pattern." + ] + }, + "Publishing:new_issue_uri": { + "paramName": "new_issue_uri", + "paramType": "TYPE_STRING", + "comments": [ + " Link to a *public* URI where users can report issues. Example:", + " https://issuetracker.google.com/issues/new?component=190865&template=1161103" + ] + }, + "Publishing:documentation_uri": { + "paramName": "documentation_uri", + "paramType": "TYPE_STRING", + "comments": [ + " Link to product home page. Example:", + " https://cloud.google.com/asset-inventory/docs/overview" + ] + }, + "Publishing:api_short_name": { + "paramName": "api_short_name", + "paramType": "TYPE_STRING", + "comments": [ + " Used as a tracking tag when collecting data about the APIs developer", + " relations artifacts like docs, packages delivered to package managers,", + " etc. Example: \"speech\"." + ] + }, + "Publishing:github_label": { + "paramName": "github_label", + "paramType": "TYPE_STRING", + "comments": [ + " GitHub label to apply to issues and pull requests opened for this API." + ] + }, + "Publishing:codeowner_github_teams": { + "paramName": "codeowner_github_teams", + "paramType": "TYPE_STRING[]", + "comments": [ + " GitHub teams to be added to CODEOWNERS in the directory in GitHub", + " containing source code for the client libraries for this API." + ] + }, + "Publishing:doc_tag_prefix": { + "paramName": "doc_tag_prefix", + "paramType": "TYPE_STRING", + "comments": [ + " A prefix used in sample code when demarking regions to be included in", + " documentation." + ] + }, + "Publishing:organization": { + "paramName": "organization", + "paramType": ".google.api.ClientLibraryOrganization", + "comments": [ + " For whom the client library is being published." + ] + }, + "Publishing:library_settings": { + "paramName": "library_settings", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Client library settings. If the same version string appears multiple", + " times in this list, then the last one wins. Settings from earlier", + " settings with the same version string are discarded." + ] + }, + "Publishing:proto_reference_documentation_uri": { + "paramName": "proto_reference_documentation_uri", + "paramType": "TYPE_STRING", + "comments": [ + " Optional link to proto reference documentation. Example:", + " https://cloud.google.com/pubsub/lite/docs/reference/rpc" + ] + }, + "JavaSettings:library_package": { + "paramName": "library_package", + "paramType": "TYPE_STRING", + "comments": [ + " The package name to use in Java. Clobbers the java_package option", + " set in the protobuf. This should be used **only** by APIs", + " who have already set the language_settings.java.package_name\" field", + " in gapic.yaml. API teams should use the protobuf java_package option", + " where possible.", + "", + " Example of a YAML configuration::", + "", + " publishing:", + " java_settings:", + " library_package: com.google.cloud.pubsub.v1" + ] + }, + "JavaSettings:service_class_names": { + "paramName": "service_class_names", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Configure the Java class name to use instead of the service's for its", + " corresponding generated GAPIC client. Keys are fully-qualified", + " service names as they appear in the protobuf (including the full", + " the language_settings.java.interface_names\" field in gapic.yaml. API", + " teams should otherwise use the service name as it appears in the", + " protobuf.", + "", + " Example of a YAML configuration::", + "", + " publishing:", + " java_settings:", + " service_class_names:", + " - google.pubsub.v1.Publisher: TopicAdmin", + " - google.pubsub.v1.Subscriber: SubscriptionAdmin" + ] + }, + "JavaSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "CppSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "PhpSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "PythonSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "NodeSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "DotnetSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "DotnetSettings:renamed_services": { + "paramName": "renamed_services", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Map from original service names to renamed versions.", + " This is used when the default generated types", + " would cause a naming conflict. (Neither name is", + " fully-qualified.)", + " Example: Subscriber to SubscriberServiceApi." + ] + }, + "DotnetSettings:renamed_resources": { + "paramName": "renamed_resources", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Map from full resource types to the effective short name", + " for the resource. This is used when otherwise resource", + " named from different services would cause naming collisions.", + " Example entry:", + " \"datalabeling.googleapis.com/Dataset\": \"DataLabelingDataset\"" + ] + }, + "DotnetSettings:ignored_resources": { + "paramName": "ignored_resources", + "paramType": "TYPE_STRING[]", + "comments": [ + " List of full resource types to ignore during generation.", + " This is typically used for API-specific Location resources,", + " which should be handled by the generator as if they were actually", + " the common Location resources.", + " Example entry: \"documentai.googleapis.com/Location\"" + ] + }, + "DotnetSettings:forced_namespace_aliases": { + "paramName": "forced_namespace_aliases", + "paramType": "TYPE_STRING[]", + "comments": [ + " Namespaces which must be aliased in snippets due to", + " a known (but non-generator-predictable) naming collision" + ] + }, + "DotnetSettings:handwritten_signatures": { + "paramName": "handwritten_signatures", + "paramType": "TYPE_STRING[]", + "comments": [ + " Method signatures (in the form \"service.method(signature)\")", + " which are provided separately, so shouldn't be generated.", + " Snippets *calling* these methods are still generated, however." + ] + }, + "RubySettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "GoSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "MethodSettings:selector": { + "paramName": "selector", + "paramType": "TYPE_STRING", + "comments": [ + " The fully qualified name of the method, for which the options below apply.", + " This is used to find the method to apply the options." + ] + }, + "MethodSettings:long_running": { + "paramName": "long_running", + "paramType": ".google.api.MethodSettings.LongRunning", + "comments": [ + " Describes settings to use for long-running operations when generating", + " API methods for RPCs. Complements RPCs that use the annotations in", + " google/longrunning/operations.proto.", + "", + " Example of a YAML configuration::", + "", + " publishing:", + " method_settings:", + " - selector: google.cloud.speech.v2.Speech.BatchRecognize", + " long_running:", + " initial_poll_delay:", + " seconds: 60 # 1 minute", + " poll_delay_multiplier: 1.5", + " max_poll_delay:", + " seconds: 360 # 6 minutes", + " total_poll_timeout:", + " seconds: 54000 # 90 minutes" + ] + }, + "Compliance": { + "paramName": "", + "paramType": "", + "comments": [ + " This service is used to test that GAPICs implement various REST-related features correctly. This mostly means transcoding proto3 requests to REST format", + " correctly for various types of HTTP annotations, but it also includes verifying that unknown (numeric) enums received by clients can be round-tripped", + " correctly." + ] + }, + "Compliance:RepeatDataBody": { + "paramName": "", + "paramType": "", + "comments": [ + " This method echoes the ComplianceData request. This method exercises", + " sending the entire request object in the REST body.", + "" + ] + }, + "Compliance:RepeatDataBodyInfo": { + "paramName": "", + "paramType": "", + "comments": [ + " This method echoes the ComplianceData request. This method exercises", + " sending the a message-type field in the REST body. Per AIP-127, only", + " top-level, non-repeated fields can be sent this way.", + "" + ] + }, + "Compliance:RepeatDataQuery": { + "paramName": "", + "paramType": "", + "comments": [ + " This method echoes the ComplianceData request. This method exercises", + " sending all request fields as query parameters.", + "" + ] + }, + "Compliance:RepeatDataSimplePath": { + "paramName": "", + "paramType": "", + "comments": [ + " This method echoes the ComplianceData request. This method exercises", + " sending some parameters as \"simple\" path variables (i.e., of the form", + " \"/bar/{foo}\" rather than \"/{foo=bar/*}\"), and the rest as query parameters.", + "" + ] + }, + "Compliance:RepeatDataPathResource": { + "paramName": "", + "paramType": "", + "comments": [ + " Same as RepeatDataSimplePath, but with a path resource.", + "" + ] + }, + "Compliance:RepeatDataPathTrailingResource": { + "paramName": "", + "paramType": "", + "comments": [ + " Same as RepeatDataSimplePath, but with a trailing resource.", + "" + ] + }, + "Compliance:RepeatDataBodyPut": { + "paramName": "", + "paramType": "", + "comments": [ + " This method echoes the ComplianceData request, using the HTTP PUT method.", + "" + ] + }, + "Compliance:RepeatDataBodyPatch": { + "paramName": "", + "paramType": "", + "comments": [ + " This method echoes the ComplianceData request, using the HTTP PATCH method.", + "" + ] + }, + "Compliance:GetEnum": { + "paramName": "", + "paramType": "", + "comments": [ + " This method requests an enum value from the server. Depending on the contents of EnumRequest, the enum value returned will be a known enum declared in the", + " .proto file, or a made-up enum value the is unknown to the client. To verify that clients can round-trip unknown enum vaues they receive, use the", + " response from this RPC as the request to VerifyEnum()", + "", + " The values of enums sent by the server when a known or unknown value is requested will be the same within a single Showcase server run (this is needed for", + " VerifyEnum() to work) but are not guaranteed to be the same across separate Showcase server runs.", + "" + ] + }, + "Compliance:VerifyEnum": { + "paramName": "", + "paramType": "", + "comments": [ + " This method is used to verify that clients can round-trip enum values, which is particularly important for unknown enum values over REST. VerifyEnum()", + " verifies that its request, which is presumably the response that the client previously got to a GetEnum(), contains the correct data. If so, it responds", + " with the same EnumResponse; otherwise, the RPC errors.", + "", + " This works because the values of enums sent by the server when a known or unknown value is requested will be the same within a single Showcase server run,", + " although they are not guaranteed to be the same across separate Showcase server runs.", + "" + ] + }, + "RepeatRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "RepeatRequest:info": { + "paramName": "info", + "paramType": ".google.showcase.v1beta1.ComplianceData", + "comments": [] + }, + "RepeatRequest:server_verify": { + "paramName": "server_verify", + "paramType": "TYPE_BOOL", + "comments": [ + " If true, the server will verify that the received request matches", + " the request with the same name in the compliance test suite." + ] + }, + "RepeatRequest:intended_binding_uri": { + "paramName": "intended_binding_uri", + "paramType": "TYPE_STRING", + "comments": [ + " The URI template this request is expected to be bound to server-side." + ] + }, + "RepeatRequest:f_int32": { + "paramName": "f_int32", + "paramType": "TYPE_INT32", + "comments": [ + " Some top level fields, to test that these are encoded correctly", + " in query params." + ] + }, + "RepeatRequest:f_int64": { + "paramName": "f_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + "RepeatRequest:f_double": { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "RepeatRequest:p_int32": { + "paramName": "p_int32", + "paramType": "TYPE_INT32", + "comments": [] + }, + "RepeatRequest:p_int64": { + "paramName": "p_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + "RepeatRequest:p_double": { + "paramName": "p_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "RepeatResponse:request": { + "paramName": "request", + "paramType": ".google.showcase.v1beta1.RepeatRequest", + "comments": [] + }, + "RepeatResponse:binding_uri": { + "paramName": "binding_uri", + "paramType": "TYPE_STRING", + "comments": [ + " The URI template the request was bound to server-side." + ] + }, + "ComplianceSuite:group": { + "paramName": "group", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "ComplianceGroup:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ComplianceGroup:rpcs": { + "paramName": "rpcs", + "paramType": "TYPE_STRING[]", + "comments": [] + }, + "ComplianceGroup:requests": { + "paramName": "requests", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "ComplianceData:f_string": { + "paramName": "f_string", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ComplianceData:f_int32": { + "paramName": "f_int32", + "paramType": "TYPE_INT32", + "comments": [] + }, + "ComplianceData:f_sint32": { + "paramName": "f_sint32", + "paramType": "TYPE_SINT32", + "comments": [] + }, + "ComplianceData:f_sfixed32": { + "paramName": "f_sfixed32", + "paramType": "TYPE_SFIXED32", + "comments": [] + }, + "ComplianceData:f_uint32": { + "paramName": "f_uint32", + "paramType": "TYPE_UINT32", + "comments": [] + }, + "ComplianceData:f_fixed32": { + "paramName": "f_fixed32", + "paramType": "TYPE_FIXED32", + "comments": [] + }, + "ComplianceData:f_int64": { + "paramName": "f_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + "ComplianceData:f_sint64": { + "paramName": "f_sint64", + "paramType": "TYPE_SINT64", + "comments": [] + }, + "ComplianceData:f_sfixed64": { + "paramName": "f_sfixed64", + "paramType": "TYPE_SFIXED64", + "comments": [] + }, + "ComplianceData:f_uint64": { + "paramName": "f_uint64", + "paramType": "TYPE_UINT64", + "comments": [] + }, + "ComplianceData:f_fixed64": { + "paramName": "f_fixed64", + "paramType": "TYPE_FIXED64", + "comments": [] + }, + "ComplianceData:f_double": { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "ComplianceData:f_float": { + "paramName": "f_float", + "paramType": "TYPE_FLOAT", + "comments": [] + }, + "ComplianceData:f_bool": { + "paramName": "f_bool", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "ComplianceData:f_bytes": { + "paramName": "f_bytes", + "paramType": "TYPE_BYTES", + "comments": [] + }, + "ComplianceData:f_kingdom": { + "paramName": "f_kingdom", + "paramType": ".google.showcase.v1beta1.ComplianceData.LifeKingdom", + "comments": [] + }, + "ComplianceData:f_child": { + "paramName": "f_child", + "paramType": ".google.showcase.v1beta1.ComplianceDataChild", + "comments": [] + }, + "ComplianceData:p_string": { + "paramName": "p_string", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ComplianceData:p_int32": { + "paramName": "p_int32", + "paramType": "TYPE_INT32", + "comments": [] + }, + "ComplianceData:p_double": { + "paramName": "p_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "ComplianceData:p_bool": { + "paramName": "p_bool", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "ComplianceData:p_kingdom": { + "paramName": "p_kingdom", + "paramType": ".google.showcase.v1beta1.ComplianceData.LifeKingdom", + "comments": [] + }, + "ComplianceData:p_child": { + "paramName": "p_child", + "paramType": ".google.showcase.v1beta1.ComplianceDataChild", + "comments": [] + }, + "ComplianceDataChild:f_string": { + "paramName": "f_string", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ComplianceDataChild:f_float": { + "paramName": "f_float", + "paramType": "TYPE_FLOAT", + "comments": [] + }, + "ComplianceDataChild:f_double": { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "ComplianceDataChild:f_bool": { + "paramName": "f_bool", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "ComplianceDataChild:f_continent": { + "paramName": "f_continent", + "paramType": ".google.showcase.v1beta1.Continent", + "comments": [] + }, + "ComplianceDataChild:f_child": { + "paramName": "f_child", + "paramType": ".google.showcase.v1beta1.ComplianceDataGrandchild", + "comments": [] + }, + "ComplianceDataChild:p_string": { + "paramName": "p_string", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ComplianceDataChild:p_float": { + "paramName": "p_float", + "paramType": "TYPE_FLOAT", + "comments": [] + }, + "ComplianceDataChild:p_double": { + "paramName": "p_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "ComplianceDataChild:p_bool": { + "paramName": "p_bool", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "ComplianceDataChild:p_continent": { + "paramName": "p_continent", + "paramType": ".google.showcase.v1beta1.Continent", + "comments": [] + }, + "ComplianceDataChild:p_child": { + "paramName": "p_child", + "paramType": ".google.showcase.v1beta1.ComplianceDataGrandchild", + "comments": [] + }, + "ComplianceDataGrandchild:f_string": { + "paramName": "f_string", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ComplianceDataGrandchild:f_double": { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "ComplianceDataGrandchild:f_bool": { + "paramName": "f_bool", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "EnumRequest:unknown_enum": { + "paramName": "unknown_enum", + "paramType": "TYPE_BOOL", + "comments": [ + " Whether the client is requesting a new, unknown enum value or a known enum value already declard in this proto file." + ] + }, + "EnumResponse:request": { + "paramName": "request", + "paramType": ".google.showcase.v1beta1.EnumRequest", + "comments": [ + " The original request for a known or unknown enum from the server." + ] + }, + "EnumResponse:continent": { + "paramName": "continent", + "paramType": ".google.showcase.v1beta1.Continent", + "comments": [ + " The actual enum the server provided." + ] + }, + "RoutingRule:routing_parameters": { + "paramName": "routing_parameters", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " A collection of Routing Parameter specifications.", + " **NOTE:** If multiple Routing Parameters describe the same key", + " (via the `path_template` field or via the `field` field when", + " `path_template` is not provided), \"last one wins\" rule", + " determines which Parameter gets used.", + " See the examples for more details." + ] + }, + "RoutingParameter:field": { + "paramName": "field", + "paramType": "TYPE_STRING", + "comments": [ + " A request field to extract the header key-value pair from." + ] + }, + "RoutingParameter:path_template": { + "paramName": "path_template", + "paramType": "TYPE_STRING", + "comments": [ + " A pattern matching the key-value field. Optional.", + " If not specified, the whole field specified in the `field` field will be", + " taken as value, and its name used as key. If specified, it MUST contain", + " exactly one named segment (along with any number of unnamed segments) The", + " pattern will be matched over the field specified in the `field` field, then", + " if the match is successful:", + " - the name of the single named segment will be used as a header name,", + " - the match value of the segment will be used as a header value;", + " if the match is NOT successful, nothing will be sent.", + "", + " Example:", + "", + " -- This is a field in the request message", + " | that the header value will be extracted from.", + " |", + " | -- This is the key name in the", + " | | routing header.", + " V |", + " field: \"table_name\" v", + " path_template: \"projects/*/{table_location=instances/*}/tables/*\"", + " ^ ^", + " | |", + " In the {} brackets is the pattern that -- |", + " specifies what to extract from the |", + " field as a value to be sent. |", + " |", + " The string in the field must match the whole pattern --", + " before brackets, inside brackets, after brackets.", + "", + " When looking at this specific example, we can see that:", + " - A key-value pair with the key `table_location`", + " and the value matching `instances/*` should be added", + " to the x-goog-request-params routing header.", + " - The value is extracted from the request message's `table_name` field", + " if it matches the full pattern specified:", + " `projects/*/instances/*/tables/*`.", + "", + " **NB:** If the `path_template` field is not provided, the key name is", + " equal to the field name, and the whole field should be sent as a value.", + " This makes the pattern for the field and the value functionally equivalent", + " to `**`, and the configuration", + "", + " {", + " field: \"table_name\"", + " }", + "", + " is a functionally equivalent shorthand to:", + "", + " {", + " field: \"table_name\"", + " path_template: \"{table_name=**}\"", + " }", + "", + " See Example 1 for more details." + ] + }, + "Any:type_url": { + "paramName": "type_url", + "paramType": "TYPE_STRING", + "comments": [ + " A URL/resource name that uniquely identifies the type of the serialized", + " protocol buffer message. This string must contain at least", + " one \"/\" character. The last segment of the URL's path must represent", + " the fully qualified name of the type (as in", + " `path/google.protobuf.Duration`). The name should be in a canonical form", + " (e.g., leading \".\" is not accepted).", + "", + " In practice, teams usually precompile into the binary all types that they", + " expect it to use in the context of Any. However, for URLs which use the", + " scheme `http`, `https`, or no scheme, one can optionally set up a type", + " server that maps type URLs to message definitions as follows:", + "", + " * If no scheme is provided, `https` is assumed.", + " * An HTTP GET on the URL must yield a [google.protobuf.Type][]", + " value in binary format, or produce an error.", + " * Applications are allowed to cache lookup results based on the", + " URL, or have them precompiled into a binary to avoid any", + " lookup. Therefore, binary compatibility needs to be preserved", + " on changes to types. (Use versioned type names to manage", + " breaking changes.)", + "", + " Note: this functionality is not currently available in the official", + " protobuf release, and it is not used for type URLs beginning with", + " type.googleapis.com. As of May 2023, there are no widely used type server", + " implementations and no plans to implement one.", + "", + " Schemes other than `http`, `https` (or the empty scheme) might be", + " used with implementation specific semantics.", + "" + ] + }, + "Any:value": { + "paramName": "value", + "paramType": "TYPE_BYTES", + "comments": [ + " Must be a valid serialized protocol buffer of the above specified type." + ] + }, + "Status:code": { + "paramName": "code", + "paramType": "TYPE_INT32", + "comments": [ + " The status code, which should be an enum value of", + " [google.rpc.Code][google.rpc.Code]." + ] + }, + "Status:message": { + "paramName": "message", + "paramType": "TYPE_STRING", + "comments": [ + " A developer-facing error message, which should be in English. Any", + " user-facing error message should be localized and sent in the", + " [google.rpc.Status.details][google.rpc.Status.details] field, or localized", + " by the client." + ] + }, + "Status:details": { + "paramName": "details", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " A list of messages that carry the error details. There is a common set of", + " message types for APIs to use." + ] + }, + "Operations": { + "paramName": "", + "paramType": "", + "comments": [ + " Manages long-running operations with an API service.", + "", + " When an API method normally takes long time to complete, it can be designed", + " to return [Operation][google.longrunning.Operation] to the client, and the client can use this", + " interface to receive the real response asynchronously by polling the", + " operation resource, or pass the operation resource to another API (such as", + " Google Cloud Pub/Sub API) to receive the response. Any API service that", + " returns long-running operations should implement the `Operations` interface", + " so developers can have a consistent client experience." + ] + }, + "Operations:ListOperations": { + "paramName": "", + "paramType": "", + "comments": [ + " Lists operations that match the specified filter in the request. If the", + " server doesn't support this method, it returns `UNIMPLEMENTED`.", + "", + " NOTE: the `name` binding allows API services to override the binding", + " to use different resource name schemes, such as `users/*/operations`. To", + " override the binding, API services can add a binding such as", + " `\"/v1/{name=users/*}/operations\"` to their service configuration.", + " For backwards compatibility, the default name includes the operations", + " collection id, however overriding users must ensure the name binding", + " is the parent resource, without the operations collection id.", + "" + ] + }, + "Operations:GetOperation": { + "paramName": "", + "paramType": "", + "comments": [ + " Gets the latest state of a long-running operation. Clients can use this", + " method to poll the operation result at intervals as recommended by the API", + " service.", + "" + ] + }, + "Operations:DeleteOperation": { + "paramName": "", + "paramType": "", + "comments": [ + " Deletes a long-running operation. This method indicates that the client is", + " no longer interested in the operation result. It does not cancel the", + " operation. If the server doesn't support this method, it returns", + " `google.rpc.Code.UNIMPLEMENTED`.", + "" + ] + }, + "Operations:CancelOperation": { + "paramName": "", + "paramType": "", + "comments": [ + " Starts asynchronous cancellation on a long-running operation. The server", + " makes a best effort to cancel the operation, but success is not", + " guaranteed. If the server doesn't support this method, it returns", + " `google.rpc.Code.UNIMPLEMENTED`. Clients can use", + " [Operations.GetOperation][google.longrunning.Operations.GetOperation] or", + " other methods to check whether the cancellation succeeded or whether the", + " operation completed despite cancellation. On successful cancellation,", + " the operation is not deleted; instead, it becomes an operation with", + " an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,", + " corresponding to `Code.CANCELLED`.", + "" + ] + }, + "Operations:WaitOperation": { + "paramName": "", + "paramType": "", + "comments": [ + " Waits until the specified long-running operation is done or reaches at most", + " a specified timeout, returning the latest state. If the operation is", + " already done, the latest state is immediately returned. If the timeout", + " specified is greater than the default HTTP/RPC timeout, the HTTP/RPC", + " timeout is used. If the server does not support this method, it returns", + " `google.rpc.Code.UNIMPLEMENTED`.", + " Note that this method is on a best-effort basis. It may return the latest", + " state before the specified timeout (including immediately), meaning even an", + " immediate response is no guarantee that the operation is done.", + "" + ] + }, + "Operation:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The server-assigned name, which is only unique within the same service that", + " originally returns it. If you use the default HTTP mapping, the", + " `name` should be a resource name ending with `operations/{unique_id}`." + ] + }, + "Operation:metadata": { + "paramName": "metadata", + "paramType": ".google.protobuf.Any", + "comments": [ + " Service-specific metadata associated with the operation. It typically", + " contains progress information and common metadata such as create time.", + " Some services might not provide such metadata. Any method that returns a", + " long-running operation should document the metadata type, if any." + ] + }, + "Operation:done": { + "paramName": "done", + "paramType": "TYPE_BOOL", + "comments": [ + " If the value is `false`, it means the operation is still in progress.", + " If `true`, the operation is completed, and either `error` or `response` is", + " available." + ] + }, + "Operation:error": { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error result of the operation in case of failure or cancellation." + ] + }, + "Operation:response": { + "paramName": "response", + "paramType": ".google.protobuf.Any", + "comments": [ + " The normal response of the operation in case of success. If the original", + " method returns no data on success, such as `Delete`, the response is", + " `google.protobuf.Empty`. If the original method is standard", + " `Get`/`Create`/`Update`, the response should be the resource. For other", + " methods, the response should have the type `XxxResponse`, where `Xxx`", + " is the original method name. For example, if the original method name", + " is `TakeSnapshot()`, the inferred response type is", + " `TakeSnapshotResponse`." + ] + }, + "GetOperationRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the operation resource." + ] + }, + "ListOperationsRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the operation's parent resource." + ] + }, + "ListOperationsRequest:filter": { + "paramName": "filter", + "paramType": "TYPE_STRING", + "comments": [ + " The standard list filter." + ] + }, + "ListOperationsRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The standard list page size." + ] + }, + "ListOperationsRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The standard list page token." + ] + }, + "ListOperationsResponse:operations": { + "paramName": "operations", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " A list of operations that matches the specified filter in the request." + ] + }, + "ListOperationsResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The standard List next-page token." + ] + }, + "CancelOperationRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the operation resource to be cancelled." + ] + }, + "DeleteOperationRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the operation resource to be deleted." + ] + }, + "WaitOperationRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the operation resource to wait on." + ] + }, + "WaitOperationRequest:timeout": { + "paramName": "timeout", + "paramType": ".google.protobuf.Duration", + "comments": [ + " The maximum duration to wait before timing out. If left blank, the wait", + " will be at most the time permitted by the underlying HTTP/RPC protocol.", + " If RPC context deadline is also specified, the shorter one will be used." + ] + }, + "OperationInfo:response_type": { + "paramName": "response_type", + "paramType": "TYPE_STRING", + "comments": [ + " Required. The message name of the primary return type for this", + " long-running operation.", + " This type will be used to deserialize the LRO's response.", + "", + " If the response is in a different package from the rpc, a fully-qualified", + " message name must be used (e.g. `google.protobuf.Struct`).", + "", + " Note: Altering this value constitutes a breaking change." + ] + }, + "OperationInfo:metadata_type": { + "paramName": "metadata_type", + "paramType": "TYPE_STRING", + "comments": [ + " Required. The message name of the metadata type for this long-running", + " operation.", + "", + " If the response is in a different package from the rpc, a fully-qualified", + " message name must be used (e.g. `google.protobuf.Struct`).", + "", + " Note: Altering this value constitutes a breaking change." + ] + }, + "Timestamp:seconds": { + "paramName": "seconds", + "paramType": "TYPE_INT64", + "comments": [ + " Represents seconds of UTC time since Unix epoch", + " 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to", + " 9999-12-31T23:59:59Z inclusive." + ] + }, + "Timestamp:nanos": { + "paramName": "nanos", + "paramType": "TYPE_INT32", + "comments": [ + " Non-negative fractions of a second at nanosecond resolution. Negative", + " second values with fractions must still have non-negative nanos values", + " that count forward in time. Must be from 0 to 999,999,999", + " inclusive." + ] + }, + "Echo": { + "paramName": "", + "paramType": "", + "comments": [ + " This service is used showcase the four main types of rpcs - unary, server", + " side streaming, client side streaming, and bidirectional streaming. This", + " service also exposes methods that explicitly implement server delay, and", + " paginated calls. Set the 'showcase-trailer' metadata key on any method", + " to have the values echoed in the response trailers. Set the ", + " 'x-goog-request-params' metadata key on any method to have the values", + " echoed in the response headers." + ] + }, + "Echo:Expand": { + "paramName": "", + "paramType": "", + "comments": [ + " This method splits the given content into words and will pass each word back", + " through the stream. This method showcases server-side streaming RPCs.", + "" + ] + }, + "Echo:Collect": { + "paramName": "", + "paramType": "", + "comments": [ + " This method will collect the words given to it. When the stream is closed", + " by the client, this method will return the a concatenation of the strings", + " passed to it. This method showcases client-side streaming RPCs.", + "" + ] + }, + "Echo:Chat": { + "paramName": "", + "paramType": "", + "comments": [ + " This method, upon receiving a request on the stream, will pass the same", + " content back on the stream. This method showcases bidirectional", + " streaming RPCs.", + "" + ] + }, + "Echo:PagedExpand": { + "paramName": "", + "paramType": "", + "comments": [ + " This is similar to the Expand method but instead of returning a stream of", + " expanded words, this method returns a paged list of expanded words.", + "" + ] + }, + "Echo:PagedExpandLegacy": { + "paramName": "", + "paramType": "", + "comments": [ + " This is similar to the PagedExpand except that it uses", + " max_results instead of page_size, as some legacy APIs still", + " do. New APIs should NOT use this pattern.", + "" + ] + }, + "Echo:PagedExpandLegacyMapped": { + "paramName": "", + "paramType": "", + "comments": [ + " This method returns a map containing lists of words that appear in the input, keyed by their", + " initial character. The only words returned are the ones included in the current page,", + " as determined by page_token and page_size, which both refer to the word indices in the", + " input. This paging result consisting of a map of lists is a pattern used by some legacy", + " APIs. New APIs should NOT use this pattern.", + "" + ] + }, + "Echo:Wait": { + "paramName": "", + "paramType": "", + "comments": [ + " This method will wait for the requested amount of time and then return.", + " This method showcases how a client handles a request timeout.", + "" + ] + }, + "Echo:Block": { + "paramName": "", + "paramType": "", + "comments": [ + " This method will block (wait) for the requested amount of time", + " and then return the response or error.", + " This method showcases how a client handles delays or retries.", + "" + ] + }, + "EchoRequest:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The content to be echoed by the server." + ] + }, + "EchoRequest:error": { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error to be thrown by the server." + ] + }, + "EchoRequest:severity": { + "paramName": "severity", + "paramType": ".google.showcase.v1beta1.Severity", + "comments": [ + " The severity to be echoed by the server." + ] + }, + "EchoRequest:header": { + "paramName": "header", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. This field can be set to test the routing annotation on the Echo method." + ] + }, + "EchoRequest:other_header": { + "paramName": "other_header", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. This field can be set to test the routing annotation on the Echo method." + ] + }, + "EchoResponse:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The content specified in the request." + ] + }, + "EchoResponse:severity": { + "paramName": "severity", + "paramType": ".google.showcase.v1beta1.Severity", + "comments": [ + " The severity specified in the request." + ] + }, + "ExpandRequest:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The content that will be split into words and returned on the stream." + ] + }, + "ExpandRequest:error": { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error that is thrown after all words are sent on the stream." + ] + }, + "PagedExpandRequest:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The string to expand." + ], + "fieldBehavior": 2 + }, + "PagedExpandRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The number of words to returned in each page." + ] + }, + "PagedExpandRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The position of the page to be returned." + ] + }, + "PagedExpandLegacyRequest:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The string to expand." + ], + "fieldBehavior": 2 + }, + "PagedExpandLegacyRequest:max_results": { + "paramName": "max_results", + "paramType": "TYPE_INT32", + "comments": [ + " The number of words to returned in each page.", + " (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that", + " violates aip.dev/158. Ordinarily, this should be page_size. --)" + ] + }, + "PagedExpandLegacyRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The position of the page to be returned." + ] + }, + "PagedExpandResponse:responses": { + "paramName": "responses", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The words that were expanded." + ] + }, + "PagedExpandResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The next page token." + ] + }, + "PagedExpandResponseList:words": { + "paramName": "words", + "paramType": "TYPE_STRING[]", + "comments": [] + }, + "PagedExpandLegacyMappedResponse:alphabetized": { + "paramName": "alphabetized", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The words that were expanded, indexed by their initial character.", + " (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates", + " aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --)" + ] + }, + "PagedExpandLegacyMappedResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The next page token." + ] + }, + "WaitRequest:end_time": { + "paramName": "end_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The time that this operation will complete." + ] + }, + "WaitRequest:ttl": { + "paramName": "ttl", + "paramType": ".google.protobuf.Duration", + "comments": [ + " The duration of this operation." + ] + }, + "WaitRequest:error": { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error that will be returned by the server. If this code is specified", + " to be the OK rpc code, an empty response will be returned." + ] + }, + "WaitRequest:success": { + "paramName": "success", + "paramType": ".google.showcase.v1beta1.WaitResponse", + "comments": [ + " The response to be returned on operation completion." + ] + }, + "WaitResponse:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " This content of the result." + ] + }, + "WaitMetadata:end_time": { + "paramName": "end_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The time that this operation will complete." + ] + }, + "BlockRequest:response_delay": { + "paramName": "response_delay", + "paramType": ".google.protobuf.Duration", + "comments": [ + " The amount of time to block before returning a response." + ] + }, + "BlockRequest:error": { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error that will be returned by the server. If this code is specified", + " to be the OK rpc code, an empty response will be returned." + ] + }, + "BlockRequest:success": { + "paramName": "success", + "paramType": ".google.showcase.v1beta1.BlockResponse", + "comments": [ + " The response to be returned that will signify successful method call." + ] + }, + "BlockResponse:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " This content can contain anything, the server will not depend on a value", + " here." + ] + }, + "ResourceDescriptor:type": { + "paramName": "type", + "paramType": "TYPE_STRING", + "comments": [ + " The resource type. It must be in the format of", + " {service_name}/{resource_type_kind}. The `resource_type_kind` must be", + " singular and must not include version numbers.", + "", + " Example: `storage.googleapis.com/Bucket`", + "", + " The value of the resource_type_kind must follow the regular expression", + " /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and", + " should use PascalCase (UpperCamelCase). The maximum number of", + " characters allowed for the `resource_type_kind` is 100." + ] + }, + "ResourceDescriptor:pattern": { + "paramName": "pattern", + "paramType": "TYPE_STRING[]", + "comments": [ + " Optional. The relative resource name pattern associated with this resource", + " type. The DNS prefix of the full resource name shouldn't be specified here.", + "", + " The path pattern must follow the syntax, which aligns with HTTP binding", + " syntax:", + "", + " Template = Segment { \"/\" Segment } ;", + " Segment = LITERAL | Variable ;", + " Variable = \"{\" LITERAL \"}\" ;", + "", + " Examples:", + "", + " - \"projects/{project}/topics/{topic}\"", + " - \"projects/{project}/knowledgeBases/{knowledge_base}\"", + "", + " The components in braces correspond to the IDs for each resource in the", + " hierarchy. It is expected that, if multiple patterns are provided,", + " the same component name (e.g. \"project\") refers to IDs of the same", + " type of resource." + ] + }, + "ResourceDescriptor:name_field": { + "paramName": "name_field", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. The field on the resource that designates the resource name", + " field. If omitted, this is assumed to be \"name\"." + ] + }, + "ResourceDescriptor:history": { + "paramName": "history", + "paramType": ".google.api.ResourceDescriptor.History", + "comments": [ + " Optional. The historical or future-looking state of the resource pattern.", + "", + " Example:", + "", + " // The InspectTemplate message originally only supported resource", + " // names with organization, and project was added later.", + " message InspectTemplate {", + " option (google.api.resource) = {", + " type: \"dlp.googleapis.com/InspectTemplate\"", + " pattern:", + " \"organizations/{organization}/inspectTemplates/{inspect_template}\"", + " pattern: \"projects/{project}/inspectTemplates/{inspect_template}\"", + " history: ORIGINALLY_SINGLE_PATTERN", + " };", + " }" + ] + }, + "ResourceDescriptor:plural": { + "paramName": "plural", + "paramType": "TYPE_STRING", + "comments": [ + " The plural name used in the resource name and permission names, such as", + " 'projects' for the resource name of 'projects/{project}' and the permission", + " name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same", + " concept of the `plural` field in k8s CRD spec", + " https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/", + "", + " Note: The plural form is required even for singleton resources. See", + " https://aip.dev/156" + ] + }, + "ResourceDescriptor:singular": { + "paramName": "singular", + "paramType": "TYPE_STRING", + "comments": [ + " The same concept of the `singular` field in k8s CRD spec", + " https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/", + " Such as \"project\" for the `resourcemanager.googleapis.com/Project` type." + ] + }, + "ResourceDescriptor:style": { + "paramName": "style", + "paramType": "TYPE_ENUM[]", + "comments": [ + " Style flag(s) for this resource.", + " These indicate that a resource is expected to conform to a given", + " style. See the specific style flags for additional information." + ] + }, + "ResourceReference:type": { + "paramName": "type", + "paramType": "TYPE_STRING", + "comments": [ + " The resource type that the annotated field references.", + "", + " Example:", + "", + " message Subscription {", + " string topic = 2 [(google.api.resource_reference) = {", + " type: \"pubsub.googleapis.com/Topic\"", + " }];", + " }", + "", + " Occasionally, a field may reference an arbitrary resource. In this case,", + " APIs use the special value * in their resource reference.", + "", + " Example:", + "", + " message GetIamPolicyRequest {", + " string resource = 2 [(google.api.resource_reference) = {", + " type: \"*\"", + " }];", + " }" + ] + }, + "ResourceReference:child_type": { + "paramName": "child_type", + "paramType": "TYPE_STRING", + "comments": [ + " The resource type of a child collection that the annotated field", + " references. This is useful for annotating the `parent` field that", + " doesn't have a fixed resource type.", + "", + " Example:", + "", + " message ListLogEntriesRequest {", + " string parent = 1 [(google.api.resource_reference) = {", + " child_type: \"logging.googleapis.com/LogEntry\"", + " };", + " }" + ] + }, + "FieldMask:paths": { + "paramName": "paths", + "paramType": "TYPE_STRING[]", + "comments": [ + " The set of field mask paths." + ] + }, + "Identity": { + "paramName": "", + "paramType": "", + "comments": [ + " A simple identity service." + ] + }, + "Identity:CreateUser": { + "paramName": "", + "paramType": "", + "comments": [ + " Creates a user.", + "" + ] + }, + "Identity:GetUser": { + "paramName": "", + "paramType": "", + "comments": [ + " Retrieves the User with the given uri.", + "" + ] + }, + "Identity:UpdateUser": { + "paramName": "", + "paramType": "", + "comments": [ + " Updates a user.", + "" + ] + }, + "Identity:DeleteUser": { + "paramName": "", + "paramType": "", + "comments": [ + " Deletes a user, their profile, and all of their authored messages.", + "" + ] + }, + "Identity:ListUsers": { + "paramName": "", + "paramType": "", + "comments": [ + " Lists all users.", + "" + ] + }, + "User:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the user." + ] + }, + "User:display_name": { + "paramName": "display_name", + "paramType": "TYPE_STRING", + "comments": [ + " The display_name of the user." + ], + "fieldBehavior": 2 + }, + "User:email": { + "paramName": "email", + "paramType": "TYPE_STRING", + "comments": [ + " The email address of the user." + ], + "fieldBehavior": 2 + }, + "User:create_time": { + "paramName": "create_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The timestamp at which the user was created." + ], + "fieldBehavior": 3 + }, + "User:update_time": { + "paramName": "update_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The latest timestamp at which the user was updated." + ], + "fieldBehavior": 3 + }, + "User:age": { + "paramName": "age", + "paramType": "TYPE_INT32", + "comments": [ + " The age of the user in years." + ] + }, + "User:height_feet": { + "paramName": "height_feet", + "paramType": "TYPE_DOUBLE", + "comments": [ + " The height of the user in feet." + ] + }, + "User:nickname": { + "paramName": "nickname", + "paramType": "TYPE_STRING", + "comments": [ + " The nickname of the user.", + "", + " (-- aip.dev/not-precedent: An empty string is a valid nickname.", + " Ordinarily, proto3_optional should not be used on a `string` field. --)" + ] + }, + "User:enable_notifications": { + "paramName": "enable_notifications", + "paramType": "TYPE_BOOL", + "comments": [ + " Enables the receiving of notifications. The default is true if unset.", + "", + " (-- aip.dev/not-precedent: The default for the feature is true.", + " Ordinarily, the default for a `bool` field should be false. --)" + ] + }, + "CreateUserRequest:user": { + "paramName": "user", + "paramType": ".google.showcase.v1beta1.User", + "comments": [ + " The user to create." + ] + }, + "GetUserRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested user." + ], + "fieldBehavior": 2 + }, + "UpdateUserRequest:user": { + "paramName": "user", + "paramType": ".google.showcase.v1beta1.User", + "comments": [ + " The user to update." + ] + }, + "UpdateUserRequest:update_mask": { + "paramName": "update_mask", + "paramType": ".google.protobuf.FieldMask", + "comments": [ + " The field mask to determine which fields are to be updated. If empty, the", + " server will assume all fields are to be updated." + ] + }, + "DeleteUserRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the user to delete." + ], + "fieldBehavior": 2 + }, + "ListUsersRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of users to return. Server may return fewer users", + " than requested. If unspecified, server will pick an appropriate default." + ] + }, + "ListUsersRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The value of google.showcase.v1beta1.ListUsersResponse.next_page_token", + " returned from the previous call to", + " `google.showcase.v1beta1.Identity\\ListUsers` method." + ] + }, + "ListUsersResponse:users": { + "paramName": "users", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The list of users." + ] + }, + "ListUsersResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " A token to retrieve next page of results.", + " Pass this value in ListUsersRequest.page_token field in the subsequent", + " call to `google.showcase.v1beta1.Message\\ListUsers` method to retrieve the", + " next page of results." + ] + }, + "ErrorInfo:reason": { + "paramName": "reason", + "paramType": "TYPE_STRING", + "comments": [ + " The reason of the error. This is a constant value that identifies the", + " proximate cause of the error. Error reasons are unique within a particular", + " domain of errors. This should be at most 63 characters and match a", + " regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents", + " UPPER_SNAKE_CASE." + ] + }, + "ErrorInfo:domain": { + "paramName": "domain", + "paramType": "TYPE_STRING", + "comments": [ + " The logical grouping to which the \"reason\" belongs. The error domain", + " is typically the registered service name of the tool or product that", + " generates the error. Example: \"pubsub.googleapis.com\". If the error is", + " generated by some common infrastructure, the error domain must be a", + " globally unique value that identifies the infrastructure. For Google API", + " infrastructure, the error domain is \"googleapis.com\"." + ] + }, + "ErrorInfo:metadata": { + "paramName": "metadata", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Additional structured details about this error.", + "", + " Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in", + " length. When identifying the current value of an exceeded limit, the units", + " should be contained in the key, not the value. For example, rather than", + " {\"instanceLimit\": \"100/request\"}, should be returned as,", + " {\"instanceLimitPerRequest\": \"100\"}, if the client exceeds the number of", + " instances that can be created in a single (batch) request." + ] + }, + "RetryInfo:retry_delay": { + "paramName": "retry_delay", + "paramType": ".google.protobuf.Duration", + "comments": [ + " Clients should wait at least this long between retrying the same request." + ] + }, + "DebugInfo:stack_entries": { + "paramName": "stack_entries", + "paramType": "TYPE_STRING[]", + "comments": [ + " The stack trace entries indicating where the error occurred." + ] + }, + "DebugInfo:detail": { + "paramName": "detail", + "paramType": "TYPE_STRING", + "comments": [ + " Additional debugging information provided by the server." + ] + }, + "QuotaFailure:violations": { + "paramName": "violations", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Describes all quota violations." + ] + }, + "PreconditionFailure:violations": { + "paramName": "violations", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Describes all precondition violations." + ] + }, + "BadRequest:field_violations": { + "paramName": "field_violations", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Describes all violations in a client request." + ] + }, + "RequestInfo:request_id": { + "paramName": "request_id", + "paramType": "TYPE_STRING", + "comments": [ + " An opaque string that should only be interpreted by the service generating", + " it. For example, it can be used to identify requests in the service's logs." + ] + }, + "RequestInfo:serving_data": { + "paramName": "serving_data", + "paramType": "TYPE_STRING", + "comments": [ + " Any data that was used to serve this request. For example, an encrypted", + " stack trace that can be sent back to the service provider for debugging." + ] + }, + "ResourceInfo:resource_type": { + "paramName": "resource_type", + "paramType": "TYPE_STRING", + "comments": [ + " A name for the type of resource being accessed, e.g. \"sql table\",", + " \"cloud storage bucket\", \"file\", \"Google calendar\"; or the type URL", + " of the resource: e.g. \"type.googleapis.com/google.pubsub.v1.Topic\"." + ] + }, + "ResourceInfo:resource_name": { + "paramName": "resource_name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the resource being accessed. For example, a shared calendar", + " name: \"example.com_4fghdhgsrgh@group.calendar.google.com\", if the current", + " error is", + " [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED]." + ] + }, + "ResourceInfo:owner": { + "paramName": "owner", + "paramType": "TYPE_STRING", + "comments": [ + " The owner of the resource (optional).", + " For example, \"user:\" or \"project:\"." + ] + }, + "ResourceInfo:description": { + "paramName": "description", + "paramType": "TYPE_STRING", + "comments": [ + " Describes what error is encountered when accessing this resource.", + " For example, updating a cloud project may require the `writer` permission", + " on the developer console project." + ] + }, + "Help:links": { + "paramName": "links", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " URL(s) pointing to additional information on handling the current error." + ] + }, + "LocalizedMessage:locale": { + "paramName": "locale", + "paramType": "TYPE_STRING", + "comments": [ + " The locale used following the specification defined at", + " https://www.rfc-editor.org/rfc/bcp/bcp47.txt.", + " Examples are: \"en-US\", \"fr-CH\", \"es-MX\"" + ] + }, + "LocalizedMessage:message": { + "paramName": "message", + "paramType": "TYPE_STRING", + "comments": [ + " The localized error message in the above locale." + ] + }, + "Messaging": { + "paramName": "", + "paramType": "", + "comments": [ + " A simple messaging service that implements chat rooms and profile posts.", + "", + " This messaging service showcases the features that API clients", + " generated by gapic-generators implement." + ] + }, + "Messaging:CreateRoom": { + "paramName": "", + "paramType": "", + "comments": [ + " Creates a room.", + "" + ] + }, + "Messaging:GetRoom": { + "paramName": "", + "paramType": "", + "comments": [ + " Retrieves the Room with the given resource name.", + "" + ] + }, + "Messaging:UpdateRoom": { + "paramName": "", + "paramType": "", + "comments": [ + " Updates a room.", + "" + ] + }, + "Messaging:DeleteRoom": { + "paramName": "", + "paramType": "", + "comments": [ + " Deletes a room and all of its blurbs.", + "" + ] + }, + "Messaging:ListRooms": { + "paramName": "", + "paramType": "", + "comments": [ + " Lists all chat rooms.", + "" + ] + }, + "Messaging:CreateBlurb": { + "paramName": "", + "paramType": "", + "comments": [ + " Creates a blurb. If the parent is a room, the blurb is understood to be a", + " message in that room. If the parent is a profile, the blurb is understood", + " to be a post on the profile.", + "" + ] + }, + "Messaging:GetBlurb": { + "paramName": "", + "paramType": "", + "comments": [ + " Retrieves the Blurb with the given resource name.", + "" + ] + }, + "Messaging:UpdateBlurb": { + "paramName": "", + "paramType": "", + "comments": [ + " Updates a blurb.", + "" + ] + }, + "Messaging:DeleteBlurb": { + "paramName": "", + "paramType": "", + "comments": [ + " Deletes a blurb.", + "" + ] + }, + "Messaging:ListBlurbs": { + "paramName": "", + "paramType": "", + "comments": [ + " Lists blurbs for a specific chat room or user profile depending on the", + " parent resource name.", + "" + ] + }, + "Messaging:SearchBlurbs": { + "paramName": "", + "paramType": "", + "comments": [ + " This method searches through all blurbs across all rooms and profiles", + " for blurbs containing to words found in the query. Only posts that", + " contain an exact match of a queried word will be returned.", + "" + ] + }, + "Messaging:StreamBlurbs": { + "paramName": "", + "paramType": "", + "comments": [ + " This returns a stream that emits the blurbs that are created for a", + " particular chat room or user profile.", + "" + ] + }, + "Messaging:SendBlurbs": { + "paramName": "", + "paramType": "", + "comments": [ + " This is a stream to create multiple blurbs. If an invalid blurb is", + " requested to be created, the stream will close with an error.", + "" + ] + }, + "Messaging:Connect": { + "paramName": "", + "paramType": "", + "comments": [ + " This method starts a bidirectional stream that receives all blurbs that", + " are being created after the stream has started and sends requests to create", + " blurbs. If an invalid blurb is requested to be created, the stream will", + " close with an error.", + "" + ] + }, + "Room:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the chat room." + ] + }, + "Room:display_name": { + "paramName": "display_name", + "paramType": "TYPE_STRING", + "comments": [ + " The human readable name of the chat room." + ], + "fieldBehavior": 2 + }, + "Room:description": { + "paramName": "description", + "paramType": "TYPE_STRING", + "comments": [ + " The description of the chat room." + ] + }, + "Room:create_time": { + "paramName": "create_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The timestamp at which the room was created." + ], + "fieldBehavior": 3 + }, + "Room:update_time": { + "paramName": "update_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The latest timestamp at which the room was updated." + ], + "fieldBehavior": 3 + }, + "CreateRoomRequest:room": { + "paramName": "room", + "paramType": ".google.showcase.v1beta1.Room", + "comments": [ + " The room to create." + ] + }, + "GetRoomRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested room." + ], + "fieldBehavior": 2 + }, + "UpdateRoomRequest:room": { + "paramName": "room", + "paramType": ".google.showcase.v1beta1.Room", + "comments": [ + " The room to update." + ] + }, + "UpdateRoomRequest:update_mask": { + "paramName": "update_mask", + "paramType": ".google.protobuf.FieldMask", + "comments": [ + " The field mask to determine which fields are to be updated. If empty, the", + " server will assume all fields are to be updated." + ] + }, + "DeleteRoomRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested room." + ], + "fieldBehavior": 2 + }, + "ListRoomsRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of rooms return. Server may return fewer rooms", + " than requested. If unspecified, server will pick an appropriate default." + ] + }, + "ListRoomsRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The value of google.showcase.v1beta1.ListRoomsResponse.next_page_token", + " returned from the previous call to", + " `google.showcase.v1beta1.Messaging\\ListRooms` method." + ] + }, + "ListRoomsResponse:rooms": { + "paramName": "rooms", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The list of rooms." + ] + }, + "ListRoomsResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " A token to retrieve next page of results.", + " Pass this value in ListRoomsRequest.page_token field in the subsequent", + " call to `google.showcase.v1beta1.Messaging\\ListRooms` method to retrieve", + " the next page of results." + ] + }, + "Blurb:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the chat room." + ] + }, + "Blurb:user": { + "paramName": "user", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the blurb's author." + ], + "fieldBehavior": 2 + }, + "Blurb:text": { + "paramName": "text", + "paramType": "TYPE_STRING", + "comments": [ + " The textual content of this blurb." + ] + }, + "Blurb:image": { + "paramName": "image", + "paramType": "TYPE_BYTES", + "comments": [ + " The image content of this blurb." + ] + }, + "Blurb:create_time": { + "paramName": "create_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The timestamp at which the blurb was created." + ], + "fieldBehavior": 3 + }, + "Blurb:update_time": { + "paramName": "update_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The latest timestamp at which the blurb was updated." + ], + "fieldBehavior": 3 + }, + "Blurb:legacy_room_id": { + "paramName": "legacy_room_id", + "paramType": "TYPE_STRING", + "comments": [ + " The legacy id of the room. This field is used to signal", + " the use of the compound resource pattern", + " `rooms/{room}/blurbs/legacy/{legacy_room}.{blurb}`" + ] + }, + "Blurb:legacy_user_id": { + "paramName": "legacy_user_id", + "paramType": "TYPE_STRING", + "comments": [ + " The legacy id of the user. This field is used to signal", + " the use of the compound resource pattern", + " `users/{user}/profile/blurbs/legacy/{legacy_user}~{blurb}`" + ] + }, + "CreateBlurbRequest:parent": { + "paramName": "parent", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the chat room or user profile that this blurb will", + " be tied to." + ], + "fieldBehavior": 2 + }, + "CreateBlurbRequest:blurb": { + "paramName": "blurb", + "paramType": ".google.showcase.v1beta1.Blurb", + "comments": [ + " The blurb to create." + ] + }, + "GetBlurbRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested blurb." + ], + "fieldBehavior": 2 + }, + "UpdateBlurbRequest:blurb": { + "paramName": "blurb", + "paramType": ".google.showcase.v1beta1.Blurb", + "comments": [ + " The blurb to update." + ] + }, + "UpdateBlurbRequest:update_mask": { + "paramName": "update_mask", + "paramType": ".google.protobuf.FieldMask", + "comments": [ + " The field mask to determine wich fields are to be updated. If empty, the", + " server will assume all fields are to be updated." + ] + }, + "DeleteBlurbRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested blurb." + ], + "fieldBehavior": 2 + }, + "ListBlurbsRequest:parent": { + "paramName": "parent", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested room or profile whos blurbs to list." + ], + "fieldBehavior": 2 + }, + "ListBlurbsRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of blurbs to return. Server may return fewer", + " blurbs than requested. If unspecified, server will pick an appropriate", + " default." + ] + }, + "ListBlurbsRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The value of google.showcase.v1beta1.ListBlurbsResponse.next_page_token", + " returned from the previous call to", + " `google.showcase.v1beta1.Messaging\\ListBlurbs` method." + ] + }, + "ListBlurbsResponse:blurbs": { + "paramName": "blurbs", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The list of blurbs." + ] + }, + "ListBlurbsResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " A token to retrieve next page of results.", + " Pass this value in ListBlurbsRequest.page_token field in the subsequent", + " call to `google.showcase.v1beta1.Blurb\\ListBlurbs` method to retrieve", + " the next page of results." + ] + }, + "SearchBlurbsRequest:query": { + "paramName": "query", + "paramType": "TYPE_STRING", + "comments": [ + " The query used to search for blurbs containing to words of this string.", + " Only posts that contain an exact match of a queried word will be returned." + ], + "fieldBehavior": 2 + }, + "SearchBlurbsRequest:parent": { + "paramName": "parent", + "paramType": "TYPE_STRING", + "comments": [ + " The rooms or profiles to search. If unset, `SearchBlurbs` will search all", + " rooms and all profiles." + ] + }, + "SearchBlurbsRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of blurbs return. Server may return fewer", + " blurbs than requested. If unspecified, server will pick an appropriate", + " default." + ] + }, + "SearchBlurbsRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The value of", + " google.showcase.v1beta1.SearchBlurbsResponse.next_page_token", + " returned from the previous call to", + " `google.showcase.v1beta1.Messaging\\SearchBlurbs` method." + ] + }, + "SearchBlurbsMetadata:retry_info": { + "paramName": "retry_info", + "paramType": ".google.rpc.RetryInfo", + "comments": [ + " This signals to the client when to next poll for response." + ] + }, + "SearchBlurbsResponse:blurbs": { + "paramName": "blurbs", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Blurbs that matched the search query." + ] + }, + "SearchBlurbsResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " A token to retrieve next page of results.", + " Pass this value in SearchBlurbsRequest.page_token field in the subsequent", + " call to `google.showcase.v1beta1.Blurb\\SearchBlurbs` method to", + " retrieve the next page of results." + ] + }, + "StreamBlurbsRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of a chat room or user profile whose blurbs to stream." + ], + "fieldBehavior": 2 + }, + "StreamBlurbsRequest:expire_time": { + "paramName": "expire_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The time at which this stream will close." + ], + "fieldBehavior": 2 + }, + "StreamBlurbsResponse:blurb": { + "paramName": "blurb", + "paramType": ".google.showcase.v1beta1.Blurb", + "comments": [ + " The blurb that was either created, updated, or deleted." + ] + }, + "StreamBlurbsResponse:action": { + "paramName": "action", + "paramType": ".google.showcase.v1beta1.StreamBlurbsResponse.Action", + "comments": [ + " The action that triggered the blurb to be returned." + ] + }, + "SendBlurbsResponse:names": { + "paramName": "names", + "paramType": "TYPE_STRING[]", + "comments": [ + " The names of successful blurb creations." + ] + }, + "ConnectRequest:config": { + "paramName": "config", + "paramType": ".google.showcase.v1beta1.ConnectRequest.ConnectConfig", + "comments": [ + " Provides information that specifies how to process subsequent requests.", + " The first `ConnectRequest` message must contain a `config` message." + ] + }, + "ConnectRequest:blurb": { + "paramName": "blurb", + "paramType": ".google.showcase.v1beta1.Blurb", + "comments": [ + " The blurb to be created." + ] + }, + "SequenceService": { + "paramName": "", + "paramType": "", + "comments": [] + }, + "SequenceService:CreateSequence": { + "paramName": "", + "paramType": "", + "comments": [ + " Creates a sequence.", + "" + ] + }, + "SequenceService:GetSequenceReport": { + "paramName": "", + "paramType": "", + "comments": [ + " Retrieves a sequence.", + "" + ] + }, + "SequenceService:AttemptSequence": { + "paramName": "", + "paramType": "", + "comments": [ + " Attempts a sequence.", + "" + ] + }, + "Sequence:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [], + "fieldBehavior": 3 + }, + "Sequence:responses": { + "paramName": "responses", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Sequence of responses to return in order for each attempt. If empty, the", + " default response is an immediate OK." + ] + }, + "SequenceReport:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [], + "fieldBehavior": 3 + }, + "SequenceReport:attempts": { + "paramName": "attempts", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The set of RPC attempts received by the server for a Sequence." + ] + }, + "CreateSequenceRequest:sequence": { + "paramName": "sequence", + "paramType": ".google.showcase.v1beta1.Sequence", + "comments": [] + }, + "AttemptSequenceRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [], + "fieldBehavior": 2 + }, + "GetSequenceReportRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [], + "fieldBehavior": 2 + }, + "Testing": { + "paramName": "", + "paramType": "", + "comments": [ + " A service to facilitate running discrete sets of tests", + " against Showcase." + ] + }, + "Testing:CreateSession": { + "paramName": "", + "paramType": "", + "comments": [ + " Creates a new testing session.", + "" + ] + }, + "Testing:GetSession": { + "paramName": "", + "paramType": "", + "comments": [ + " Gets a testing session.", + "" + ] + }, + "Testing:ListSessions": { + "paramName": "", + "paramType": "", + "comments": [ + " Lists the current test sessions.", + "" + ] + }, + "Testing:DeleteSession": { + "paramName": "", + "paramType": "", + "comments": [ + " Delete a test session.", + "" + ] + }, + "Testing:ReportSession": { + "paramName": "", + "paramType": "", + "comments": [ + " Report on the status of a session.", + " This generates a report detailing which tests have been completed,", + " and an overall rollup.", + "" + ] + }, + "Testing:ListTests": { + "paramName": "", + "paramType": "", + "comments": [ + " List the tests of a sessesion.", + "" + ] + }, + "Testing:DeleteTest": { + "paramName": "", + "paramType": "", + "comments": [ + " Explicitly decline to implement a test.", + "", + " This removes the test from subsequent `ListTests` calls, and", + " attempting to do the test will error.", + "", + " This method will error if attempting to delete a required test.", + "" + ] + }, + "Testing:VerifyTest": { + "paramName": "", + "paramType": "", + "comments": [ + " Register a response to a test.", + "", + " In cases where a test involves registering a final answer at the", + " end of the test, this method provides the means to do so.", + "" + ] + }, + "Session:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the session. The ID must conform to ^[a-z]+$", + " If this is not provided, Showcase chooses one at random." + ] + }, + "Session:version": { + "paramName": "version", + "paramType": ".google.showcase.v1beta1.Session.Version", + "comments": [ + " Required. The version this session is using." + ] + }, + "CreateSessionRequest:session": { + "paramName": "session", + "paramType": ".google.showcase.v1beta1.Session", + "comments": [ + " The session to be created.", + " Sessions are immutable once they are created (although they can", + " be deleted)." + ] + }, + "GetSessionRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The session to be retrieved." + ] + }, + "ListSessionsRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of sessions to return per page." + ] + }, + "ListSessionsRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The page token, for retrieving subsequent pages." + ] + }, + "ListSessionsResponse:sessions": { + "paramName": "sessions", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The sessions being returned." + ] + }, + "ListSessionsResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The next page token, if any.", + " An empty value here means the last page has been reached." + ] + }, + "DeleteSessionRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The session to be deleted." + ] + }, + "ReportSessionRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The session to be reported on." + ] + }, + "ReportSessionResponse:result": { + "paramName": "result", + "paramType": ".google.showcase.v1beta1.ReportSessionResponse.Result", + "comments": [ + " The state of the report." + ] + }, + "ReportSessionResponse:test_runs": { + "paramName": "test_runs", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The test runs of this session." + ] + }, + "Test:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the test.", + " The tests/* portion of the names are hard-coded, and do not change", + " from session to session." + ] + }, + "Test:expectation_level": { + "paramName": "expectation_level", + "paramType": ".google.showcase.v1beta1.Test.ExpectationLevel", + "comments": [ + " The expectation level for this test." + ] + }, + "Test:description": { + "paramName": "description", + "paramType": "TYPE_STRING", + "comments": [ + " A description of the test." + ] + }, + "Test:blueprints": { + "paramName": "blueprints", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The blueprints that will satisfy this test. There may be multiple blueprints", + " that can signal to the server that this test case is being exercised. Although", + " multiple blueprints are specified, only a single blueprint needs to be run to", + " signal that the test case was exercised." + ] + }, + "Issue:type": { + "paramName": "type", + "paramType": ".google.showcase.v1beta1.Issue.Type", + "comments": [ + " The type of the issue." + ] + }, + "Issue:severity": { + "paramName": "severity", + "paramType": ".google.showcase.v1beta1.Issue.Severity", + "comments": [ + " The severity of the issue." + ] + }, + "Issue:description": { + "paramName": "description", + "paramType": "TYPE_STRING", + "comments": [ + " A description of the issue." + ] + }, + "ListTestsRequest:parent": { + "paramName": "parent", + "paramType": "TYPE_STRING", + "comments": [ + " The session." + ] + }, + "ListTestsRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of tests to return per page." + ] + }, + "ListTestsRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The page token, for retrieving subsequent pages." + ] + }, + "ListTestsResponse:tests": { + "paramName": "tests", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The tests being returned." + ] + }, + "ListTestsResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The next page token, if any.", + " An empty value here means the last page has been reached." + ] + }, + "TestRun:test": { + "paramName": "test", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the test.", + " The tests/* portion of the names are hard-coded, and do not change", + " from session to session." + ] + }, + "TestRun:issue": { + "paramName": "issue", + "paramType": ".google.showcase.v1beta1.Issue", + "comments": [ + " An issue found with the test run. If empty, this test run was successful." + ] + }, + "DeleteTestRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The test to be deleted." + ] + }, + "VerifyTestRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The test to have an answer registered to it." + ] + }, + "VerifyTestRequest:answer": { + "paramName": "answer", + "paramType": "TYPE_BYTES", + "comments": [ + " The answer from the test." + ] + }, + "VerifyTestRequest:answers": { + "paramName": "answers", + "paramType": "TYPE_BYTES[]", + "comments": [ + " The answers from the test if multiple are to be checked" + ] + }, + "VerifyTestResponse:issue": { + "paramName": "issue", + "paramType": ".google.showcase.v1beta1.Issue", + "comments": [ + " An issue if check answer was unsuccessful. This will be empty if the check answer succeeded." + ] + } + } + }, + "retryableCodeMap": { + "codeEnumMapping": { + "0": "OK", + "1": "CANCELLED", + "2": "UNKNOWN", + "3": "INVALID_ARGUMENT", + "4": "DEADLINE_EXCEEDED", + "5": "NOT_FOUND", + "6": "ALREADY_EXISTS", + "7": "PERMISSION_DENIED", + "8": "RESOURCE_EXHAUSTED", + "9": "FAILED_PRECONDITION", + "10": "ABORTED", + "11": "OUT_OF_RANGE", + "12": "UNIMPLEMENTED", + "13": "INTERNAL", + "14": "UNAVAILABLE", + "15": "DATA_LOSS", + "16": "UNAUTHENTICATED", + "OK": "0", + "CANCELLED": "1", + "UNKNOWN": "2", + "INVALID_ARGUMENT": "3", + "DEADLINE_EXCEEDED": "4", + "NOT_FOUND": "5", + "ALREADY_EXISTS": "6", + "PERMISSION_DENIED": "7", + "RESOURCE_EXHAUSTED": "8", + "FAILED_PRECONDITION": "9", + "ABORTED": "10", + "OUT_OF_RANGE": "11", + "UNIMPLEMENTED": "12", + "INTERNAL": "13", + "UNAVAILABLE": "14", + "DATA_LOSS": "15", + "UNAUTHENTICATED": "16" + }, + "uniqueCodesNamesMap": { + "": "non_idempotent", + "deadline_exceeded_unavailable": "idempotent" + }, + "prettyCodesNamesMap": { + "non_idempotent": [], + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ] + }, + "uniqueParamsNamesMap": { + "94312e9926796a52a8fcbbedaac41972e07ccd1c": "default" + }, + "prettyParamNamesMap": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + } + } + }, + "grpcServiceConfig": {}, + "bundleConfigs": [], + "bundleConfigsMethods": [], + "simpleMethods": [ + { + "inputInterface": ".google.showcase.v1beta1.EchoRequest", + "outputInterface": ".google.showcase.v1beta1.EchoResponse", + "comments": [], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "Echo", + "inputType": ".google.showcase.v1beta1.EchoRequest", + "outputType": ".google.showcase.v1beta1.EchoResponse", + "options": { + ".google.api.http": { + "post": "/v1beta1/echo:echo", + "body": "*" + }, + ".google.api.routing": { + "routingParameters": [ + { + "field": "header" + }, + { + "field": "header", + "pathTemplate": "{routing_id=**}" + }, + { + "field": "header", + "pathTemplate": "{table_name=regions/*/zones/*/**}" + }, + { + "field": "header", + "pathTemplate": "{super_id=projects/*}/**" + }, + { + "field": "header", + "pathTemplate": "{table_name=projects/*/instances/*/**}" + }, + { + "field": "header", + "pathTemplate": "projects/*/{instance_id=instances/*}/**" + }, + { + "field": "other_header", + "pathTemplate": "{baz=**}" + }, + { + "field": "other_header", + "pathTemplate": "{qux=projects/*}/**" + } + ] + } + }, + "paramComment": [ + { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The content to be echoed by the server." + ] + }, + { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error to be thrown by the server." + ] + }, + { + "paramName": "severity", + "paramType": ".google.showcase.v1beta1.Severity", + "comments": [ + " The severity to be echoed by the server." + ] + }, + { + "paramName": "header", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. This field can be set to test the routing annotation on the Echo method." + ] + }, + { + "paramName": "other_header", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. This field can be set to test the routing annotation on the Echo method." + ] + } + ], + "dynamicRoutingRequestParams": [ + [ + { + "pathTemplate": "", + "fieldRetrieve": [ + "header" + ], + "fieldSend": "header", + "messageRegex": "(?
.*)" + } + ], + [ + { + "pathTemplate": "{routing_id=**}", + "fieldRetrieve": [ + "header" + ], + "fieldSend": "routing_id", + "messageRegex": "(?(?:.*)?)" + } + ], + [ + { + "pathTemplate": "{table_name=regions/*/zones/*/**}", + "fieldRetrieve": [ + "header" + ], + "fieldSend": "table_name", + "messageRegex": "(?regions/[^/]+/zones/[^/]+(?:/.*)?)" + } + ], + [ + { + "pathTemplate": "{super_id=projects/*}/**", + "fieldRetrieve": [ + "header" + ], + "fieldSend": "super_id", + "messageRegex": "(?projects/[^/]+)(?:/.*)?" + } + ], + [ + { + "pathTemplate": "{table_name=projects/*/instances/*/**}", + "fieldRetrieve": [ + "header" + ], + "fieldSend": "table_name", + "messageRegex": "(?projects/[^/]+/instances/[^/]+(?:/.*)?)" + } + ], + [ + { + "pathTemplate": "projects/*/{instance_id=instances/*}/**", + "fieldRetrieve": [ + "header" + ], + "fieldSend": "instance_id", + "messageRegex": "projects/[^/]+/(?instances/[^/]+)(?:/.*)?" + } + ], + [ + { + "pathTemplate": "{baz=**}", + "fieldRetrieve": [ + "otherHeader" + ], + "fieldSend": "baz", + "messageRegex": "(?(?:.*)?)" + } + ], + [ + { + "pathTemplate": "{qux=projects/*}/**", + "fieldRetrieve": [ + "otherHeader" + ], + "fieldSend": "qux", + "messageRegex": "(?projects/[^/]+)(?:/.*)?" + } + ] + ] + }, + { + "inputInterface": ".google.showcase.v1beta1.PagedExpandLegacyRequest", + "outputInterface": ".google.showcase.v1beta1.PagedExpandResponse", + "comments": [ + " This is similar to the PagedExpand except that it uses", + " max_results instead of page_size, as some legacy APIs still", + " do. New APIs should NOT use this pattern.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "PagedExpandLegacy", + "inputType": ".google.showcase.v1beta1.PagedExpandLegacyRequest", + "outputType": ".google.showcase.v1beta1.PagedExpandResponse", + "options": { + ".google.api.http": { + "post": "/v1beta1/echo:pagedExpandLegacy", + "body": "*", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The string to expand." + ], + "fieldBehavior": 2 + }, + { + "paramName": "max_results", + "paramType": "TYPE_INT32", + "comments": [ + " The number of words to returned in each page.", + " (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that", + " violates aip.dev/158. Ordinarily, this should be page_size. --)" + ] + }, + { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The position of the page to be returned." + ] + } + ], + "headerRequestParams": [] + }, + { + "inputInterface": ".google.showcase.v1beta1.BlockRequest", + "outputInterface": ".google.showcase.v1beta1.BlockResponse", + "comments": [ + " This method will block (wait) for the requested amount of time", + " and then return the response or error.", + " This method showcases how a client handles delays or retries.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "Block", + "inputType": ".google.showcase.v1beta1.BlockRequest", + "outputType": ".google.showcase.v1beta1.BlockResponse", + "options": { + ".google.api.http": { + "post": "/v1beta1/echo:block", + "body": "*", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "response_delay", + "paramType": ".google.protobuf.Duration", + "comments": [ + " The amount of time to block before returning a response." + ] + }, + { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error that will be returned by the server. If this code is specified", + " to be the OK rpc code, an empty response will be returned." + ] + }, + { + "paramName": "success", + "paramType": ".google.showcase.v1beta1.BlockResponse", + "comments": [ + " The response to be returned that will signify successful method call." + ] + } + ], + "headerRequestParams": [] + } + ], + "longRunning": [ + { + "longRunning": { + "responseType": "WaitResponse", + "metadataType": "WaitMetadata" + }, + "longRunningResponseType": ".google.showcase.v1beta1.WaitResponse", + "longRunningMetadataType": ".google.showcase.v1beta1.WaitMetadata", + "inputInterface": ".google.showcase.v1beta1.WaitRequest", + "outputInterface": ".google.longrunning.Operation", + "comments": [ + " This method will wait for the requested amount of time and then return.", + " This method showcases how a client handles a request timeout.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "Wait", + "inputType": ".google.showcase.v1beta1.WaitRequest", + "outputType": ".google.longrunning.Operation", + "options": { + ".google.longrunning.operationInfo": { + "responseType": "WaitResponse", + "metadataType": "WaitMetadata" + }, + ".google.api.http": { + "post": "/v1beta1/echo:wait", + "body": "*", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "end_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The time that this operation will complete." + ] + }, + { + "paramName": "ttl", + "paramType": ".google.protobuf.Duration", + "comments": [ + " The duration of this operation." + ] + }, + { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error that will be returned by the server. If this code is specified", + " to be the OK rpc code, an empty response will be returned." + ] + }, + { + "paramName": "success", + "paramType": ".google.showcase.v1beta1.WaitResponse", + "comments": [ + " The response to be returned on operation completion." + ] + } + ], + "headerRequestParams": [] + } + ], + "diregapicLRO": [], + "streaming": [ + { + "streaming": "SERVER_STREAMING", + "inputInterface": ".google.showcase.v1beta1.ExpandRequest", + "outputInterface": ".google.showcase.v1beta1.EchoResponse", + "comments": [ + " This method splits the given content into words and will pass each word back", + " through the stream. This method showcases server-side streaming RPCs.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "Expand", + "inputType": ".google.showcase.v1beta1.ExpandRequest", + "outputType": ".google.showcase.v1beta1.EchoResponse", + "options": { + ".google.api.methodSignature": [ + "content,error" + ], + ".google.api.http": { + "post": "/v1beta1/echo:expand", + "body": "*", + "additionalBindings": [] + } + }, + "serverStreaming": true, + "paramComment": [ + { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The content that will be split into words and returned on the stream." + ] + }, + { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error that is thrown after all words are sent on the stream." + ] + } + ], + "headerRequestParams": [] + }, + { + "streaming": "CLIENT_STREAMING", + "inputInterface": ".google.showcase.v1beta1.EchoRequest", + "outputInterface": ".google.showcase.v1beta1.EchoResponse", + "comments": [ + " This method will collect the words given to it. When the stream is closed", + " by the client, this method will return the a concatenation of the strings", + " passed to it. This method showcases client-side streaming RPCs.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "Collect", + "inputType": ".google.showcase.v1beta1.EchoRequest", + "outputType": ".google.showcase.v1beta1.EchoResponse", + "options": { + ".google.api.http": { + "post": "/v1beta1/echo:collect", + "body": "*", + "additionalBindings": [] + } + }, + "clientStreaming": true, + "paramComment": [ + { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The content to be echoed by the server." + ] + }, + { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error to be thrown by the server." + ] + }, + { + "paramName": "severity", + "paramType": ".google.showcase.v1beta1.Severity", + "comments": [ + " The severity to be echoed by the server." + ] + }, + { + "paramName": "header", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. This field can be set to test the routing annotation on the Echo method." + ] + }, + { + "paramName": "other_header", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. This field can be set to test the routing annotation on the Echo method." + ] + } + ], + "headerRequestParams": [] + }, + { + "streaming": "BIDI_STREAMING", + "inputInterface": ".google.showcase.v1beta1.EchoRequest", + "outputInterface": ".google.showcase.v1beta1.EchoResponse", + "comments": [ + " This method, upon receiving a request on the stream, will pass the same", + " content back on the stream. This method showcases bidirectional", + " streaming RPCs.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "Chat", + "inputType": ".google.showcase.v1beta1.EchoRequest", + "outputType": ".google.showcase.v1beta1.EchoResponse", + "clientStreaming": true, + "serverStreaming": true, + "paramComment": [ + { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The content to be echoed by the server." + ] + }, + { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error to be thrown by the server." + ] + }, + { + "paramName": "severity", + "paramType": ".google.showcase.v1beta1.Severity", + "comments": [ + " The severity to be echoed by the server." + ] + }, + { + "paramName": "header", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. This field can be set to test the routing annotation on the Echo method." + ] + }, + { + "paramName": "other_header", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. This field can be set to test the routing annotation on the Echo method." + ] + } + ], + "headerRequestParams": [] + } + ], + "clientStreaming": [ + { + "streaming": "CLIENT_STREAMING", + "inputInterface": ".google.showcase.v1beta1.EchoRequest", + "outputInterface": ".google.showcase.v1beta1.EchoResponse", + "comments": [ + " This method will collect the words given to it. When the stream is closed", + " by the client, this method will return the a concatenation of the strings", + " passed to it. This method showcases client-side streaming RPCs.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "Collect", + "inputType": ".google.showcase.v1beta1.EchoRequest", + "outputType": ".google.showcase.v1beta1.EchoResponse", + "options": { + ".google.api.http": { + "post": "/v1beta1/echo:collect", + "body": "*", + "additionalBindings": [] + } + }, + "clientStreaming": true, + "paramComment": [ + { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The content to be echoed by the server." + ] + }, + { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error to be thrown by the server." + ] + }, + { + "paramName": "severity", + "paramType": ".google.showcase.v1beta1.Severity", + "comments": [ + " The severity to be echoed by the server." + ] + }, + { + "paramName": "header", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. This field can be set to test the routing annotation on the Echo method." + ] + }, + { + "paramName": "other_header", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. This field can be set to test the routing annotation on the Echo method." + ] + } + ], + "headerRequestParams": [] + } + ], + "serverStreaming": [ + { + "streaming": "SERVER_STREAMING", + "inputInterface": ".google.showcase.v1beta1.ExpandRequest", + "outputInterface": ".google.showcase.v1beta1.EchoResponse", + "comments": [ + " This method splits the given content into words and will pass each word back", + " through the stream. This method showcases server-side streaming RPCs.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "Expand", + "inputType": ".google.showcase.v1beta1.ExpandRequest", + "outputType": ".google.showcase.v1beta1.EchoResponse", + "options": { + ".google.api.methodSignature": [ + "content,error" + ], + ".google.api.http": { + "post": "/v1beta1/echo:expand", + "body": "*", + "additionalBindings": [] + } + }, + "serverStreaming": true, + "paramComment": [ + { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The content that will be split into words and returned on the stream." + ] + }, + { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error that is thrown after all words are sent on the stream." + ] + } + ], + "headerRequestParams": [] + } + ], + "bidiStreaming": [ + { + "streaming": "BIDI_STREAMING", + "inputInterface": ".google.showcase.v1beta1.EchoRequest", + "outputInterface": ".google.showcase.v1beta1.EchoResponse", + "comments": [ + " This method, upon receiving a request on the stream, will pass the same", + " content back on the stream. This method showcases bidirectional", + " streaming RPCs.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "Chat", + "inputType": ".google.showcase.v1beta1.EchoRequest", + "outputType": ".google.showcase.v1beta1.EchoResponse", + "clientStreaming": true, + "serverStreaming": true, + "paramComment": [ + { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The content to be echoed by the server." + ] + }, + { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error to be thrown by the server." + ] + }, + { + "paramName": "severity", + "paramType": ".google.showcase.v1beta1.Severity", + "comments": [ + " The severity to be echoed by the server." + ] + }, + { + "paramName": "header", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. This field can be set to test the routing annotation on the Echo method." + ] + }, + { + "paramName": "other_header", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. This field can be set to test the routing annotation on the Echo method." + ] + } + ], + "headerRequestParams": [] + } + ], + "paging": [ + { + "pagingFieldName": "responses", + "pagingResponseType": ".google.showcase.v1beta1.EchoResponse", + "inputInterface": ".google.showcase.v1beta1.PagedExpandRequest", + "outputInterface": ".google.showcase.v1beta1.PagedExpandResponse", + "comments": [ + " This is similar to the Expand method but instead of returning a stream of", + " expanded words, this method returns a paged list of expanded words.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "PagedExpand", + "inputType": ".google.showcase.v1beta1.PagedExpandRequest", + "outputType": ".google.showcase.v1beta1.PagedExpandResponse", + "options": { + ".google.api.http": { + "post": "/v1beta1/echo:pagedExpand", + "body": "*", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The string to expand." + ], + "fieldBehavior": 2 + }, + { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The number of words to returned in each page." + ] + }, + { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The position of the page to be returned." + ] + } + ], + "headerRequestParams": [] + }, + { + "pagingFieldName": "alphabetized", + "pagingResponseType": ".google.showcase.v1beta1.PagedExpandLegacyMappedResponse.AlphabetizedEntry", + "ignoreMapPagingMethod": true, + "inputInterface": ".google.showcase.v1beta1.PagedExpandRequest", + "outputInterface": ".google.showcase.v1beta1.PagedExpandLegacyMappedResponse", + "comments": [ + " This method returns a map containing lists of words that appear in the input, keyed by their", + " initial character. The only words returned are the ones included in the current page,", + " as determined by page_token and page_size, which both refer to the word indices in the", + " input. This paging result consisting of a map of lists is a pattern used by some legacy", + " APIs. New APIs should NOT use this pattern.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "PagedExpandLegacyMapped", + "inputType": ".google.showcase.v1beta1.PagedExpandRequest", + "outputType": ".google.showcase.v1beta1.PagedExpandLegacyMappedResponse", + "options": { + ".google.api.http": { + "post": "/v1beta1/echo:pagedExpandLegacyMapped", + "body": "*", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The string to expand." + ], + "fieldBehavior": 2 + }, + { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The number of words to returned in each page." + ] + }, + { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The position of the page to be returned." + ] + } + ], + "headerRequestParams": [] + } + ], + "hostname": "localhost", + "port": 7469, + "oauthScopes": [], + "pathTemplates": [ + { + "name": "Blueprint", + "params": [ + "session", + "test", + "blueprint" + ], + "type": "showcase.googleapis.com/Blueprint", + "pattern": [ + "sessions/{session}/tests/{test}/blueprints/{blueprint}" + ] + }, + { + "name": "Room", + "params": [ + "room" + ], + "type": "showcase.googleapis.com/Room", + "pattern": [ + "rooms/{room}" + ] + }, + { + "name": "room_blurb", + "params": [ + "room", + "blurb" + ], + "pattern": [ + "rooms/{room}/blurbs/{blurb}" + ], + "type": "showcase.googleapis.com/Blurb" + }, + { + "name": "room_blurbs_legacy_room_blurb", + "params": [ + "room", + "legacy_room", + "blurb" + ], + "pattern": [ + "rooms/{room}/blurbs/legacy/{legacy_room}.{blurb}" + ], + "type": "showcase.googleapis.com/Blurb" + }, + { + "name": "Sequence", + "params": [ + "sequence" + ], + "type": "showcase.googleapis.com/Sequence", + "pattern": [ + "sequences/{sequence}" + ] + }, + { + "name": "SequenceReport", + "params": [ + "sequence" + ], + "type": "showcase.googleapis.com/SequenceReport", + "pattern": [ + "sequences/{sequence}/sequenceReport" + ] + }, + { + "name": "Session", + "params": [ + "session" + ], + "type": "showcase.googleapis.com/Session", + "pattern": [ + "sessions/{session}" + ] + }, + { + "name": "Test", + "params": [ + "session", + "test" + ], + "type": "showcase.googleapis.com/Test", + "pattern": [ + "sessions/{session}/tests/{test}" + ] + }, + { + "name": "User", + "params": [ + "user" + ], + "type": "showcase.googleapis.com/User", + "pattern": [ + "users/{user}" + ] + }, + { + "name": "user_profile_blurb", + "params": [ + "user", + "blurb" + ], + "pattern": [ + "users/{user}/profile/blurbs/{blurb}" + ], + "type": "showcase.googleapis.com/Blurb" + }, + { + "name": "user_profile_blurbs_legacy_user_blurb", + "params": [ + "user", + "legacy_user", + "blurb" + ], + "pattern": [ + "users/{user}/profile/blurbs/legacy/{legacy_user}~{blurb}" + ], + "type": "showcase.googleapis.com/Blurb" + } + ] + }, + { + "name": "Identity", + "method": [ + { + "inputInterface": ".google.showcase.v1beta1.CreateUserRequest", + "outputInterface": ".google.showcase.v1beta1.User", + "comments": [ + " Creates a user.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "CreateUser", + "inputType": ".google.showcase.v1beta1.CreateUserRequest", + "outputType": ".google.showcase.v1beta1.User", + "options": { + ".google.api.methodSignature": [ + "user.display_name,user.email", + "user.display_name,user.email,user.age,user.nickname,user.enable_notifications,user.height_feet" + ], + ".google.api.http": { + "post": "/v1beta1/users", + "body": "*", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "user", + "paramType": ".google.showcase.v1beta1.User", + "comments": [ + " The user to create." + ] + } + ], + "headerRequestParams": [] + }, + { + "inputInterface": ".google.showcase.v1beta1.GetUserRequest", + "outputInterface": ".google.showcase.v1beta1.User", + "comments": [ + " Retrieves the User with the given uri.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "GetUser", + "inputType": ".google.showcase.v1beta1.GetUserRequest", + "outputType": ".google.showcase.v1beta1.User", + "options": { + ".google.api.methodSignature": [ + "name" + ], + ".google.api.http": { + "get": "/v1beta1/{name=users/*}", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested user." + ], + "fieldBehavior": 2 + } + ], + "headerRequestParams": [ + [ + "name" + ] + ] + }, + { + "inputInterface": ".google.showcase.v1beta1.UpdateUserRequest", + "outputInterface": ".google.showcase.v1beta1.User", + "comments": [ + " Updates a user.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "UpdateUser", + "inputType": ".google.showcase.v1beta1.UpdateUserRequest", + "outputType": ".google.showcase.v1beta1.User", + "options": { + ".google.api.http": { + "patch": "/v1beta1/{user.name=users/*}", + "body": "user", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "user", + "paramType": ".google.showcase.v1beta1.User", + "comments": [ + " The user to update." + ] + }, + { + "paramName": "update_mask", + "paramType": ".google.protobuf.FieldMask", + "comments": [ + " The field mask to determine which fields are to be updated. If empty, the", + " server will assume all fields are to be updated." + ] + } + ], + "headerRequestParams": [ + [ + "user", + "name" + ] + ] + }, + { + "inputInterface": ".google.showcase.v1beta1.DeleteUserRequest", + "outputInterface": ".google.protobuf.Empty", + "comments": [ + " Deletes a user, their profile, and all of their authored messages.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "DeleteUser", + "inputType": ".google.showcase.v1beta1.DeleteUserRequest", + "outputType": ".google.protobuf.Empty", + "options": { + ".google.api.methodSignature": [ + "name" + ], + ".google.api.http": { + "delete": "/v1beta1/{name=users/*}", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the user to delete." + ], + "fieldBehavior": 2 + } + ], + "headerRequestParams": [ + [ + "name" + ] + ] + }, + { + "pagingFieldName": "users", + "pagingResponseType": ".google.showcase.v1beta1.User", + "inputInterface": ".google.showcase.v1beta1.ListUsersRequest", + "outputInterface": ".google.showcase.v1beta1.ListUsersResponse", + "comments": [ + " Lists all users.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "ListUsers", + "inputType": ".google.showcase.v1beta1.ListUsersRequest", + "outputType": ".google.showcase.v1beta1.ListUsersResponse", + "options": { + ".google.api.http": { + "get": "/v1beta1/users", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of users to return. Server may return fewer users", + " than requested. If unspecified, server will pick an appropriate default." + ] + }, + { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The value of google.showcase.v1beta1.ListUsersResponse.next_page_token", + " returned from the previous call to", + " `google.showcase.v1beta1.Identity\\ListUsers` method." + ] + } + ], + "headerRequestParams": [] + } + ], + "options": { + ".google.api.defaultHost": "localhost:7469" + }, + "packageName": "google.showcase.v1beta1", + "protoFile": "google/showcase/v1beta1/identity.proto", + "IAMPolicyMixin": 0, + "LocationMixin": 0, + "comments": [ + " A simple identity service." + ], + "commentsMap": { + "comments": { + "Http:rules": { + "paramName": "rules", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " A list of HTTP configuration rules that apply to individual API methods.", + "", + " **NOTE:** All service configuration rules follow \"last one wins\" order." + ] + }, + "Http:fully_decode_reserved_expansion": { + "paramName": "fully_decode_reserved_expansion", + "paramType": "TYPE_BOOL", + "comments": [ + " When set to true, URL path parameters will be fully URI-decoded except in", + " cases of single segment matches in reserved expansion, where \"%2F\" will be", + " left encoded.", + "", + " The default behavior is to not decode RFC 6570 reserved characters in multi", + " segment matches." + ] + }, + "HttpRule:selector": { + "paramName": "selector", + "paramType": "TYPE_STRING", + "comments": [ + " Selects a method to which this rule applies.", + "", + " Refer to [selector][google.api.DocumentationRule.selector] for syntax", + " details." + ] + }, + "HttpRule:get": { + "paramName": "get", + "paramType": "TYPE_STRING", + "comments": [ + " Maps to HTTP GET. Used for listing and getting information about", + " resources." + ] + }, + "HttpRule:put": { + "paramName": "put", + "paramType": "TYPE_STRING", + "comments": [ + " Maps to HTTP PUT. Used for replacing a resource." + ] + }, + "HttpRule:post": { + "paramName": "post", + "paramType": "TYPE_STRING", + "comments": [ + " Maps to HTTP POST. Used for creating a resource or performing an action." + ] + }, + "HttpRule:delete": { + "paramName": "delete", + "paramType": "TYPE_STRING", + "comments": [ + " Maps to HTTP DELETE. Used for deleting a resource." + ] + }, + "HttpRule:patch": { + "paramName": "patch", + "paramType": "TYPE_STRING", + "comments": [ + " Maps to HTTP PATCH. Used for updating a resource." + ] + }, + "HttpRule:custom": { + "paramName": "custom", + "paramType": ".google.api.CustomHttpPattern", + "comments": [ + " The custom pattern is used for specifying an HTTP method that is not", + " included in the `pattern` field, such as HEAD, or \"*\" to leave the", + " HTTP method unspecified for this rule. The wild-card rule is useful", + " for services that provide content to Web (HTML) clients." + ] + }, + "HttpRule:body": { + "paramName": "body", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the request field whose value is mapped to the HTTP request", + " body, or `*` for mapping all request fields not captured by the path", + " pattern to the HTTP body, or omitted for not having any HTTP request body.", + "", + " NOTE: the referred field must be present at the top-level of the request", + " message type." + ] + }, + "HttpRule:response_body": { + "paramName": "response_body", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. The name of the response field whose value is mapped to the HTTP", + " response body. When omitted, the entire response message will be used", + " as the HTTP response body.", + "", + " NOTE: The referred field must be present at the top-level of the response", + " message type." + ] + }, + "HttpRule:additional_bindings": { + "paramName": "additional_bindings", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Additional HTTP bindings for the selector. Nested bindings must", + " not contain an `additional_bindings` field themselves (that is,", + " the nesting may only be one level deep)." + ] + }, + "CustomHttpPattern:kind": { + "paramName": "kind", + "paramType": "TYPE_STRING", + "comments": [ + " The name of this custom HTTP verb." + ] + }, + "CustomHttpPattern:path": { + "paramName": "path", + "paramType": "TYPE_STRING", + "comments": [ + " The path matched by this custom verb." + ] + }, + "FileDescriptorSet:file": { + "paramName": "file", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "FileDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "FileDescriptorProto:package": { + "paramName": "package", + "paramType": "TYPE_STRING", + "comments": [] + }, + "FileDescriptorProto:dependency": { + "paramName": "dependency", + "paramType": "TYPE_STRING[]", + "comments": [ + " Names of files imported by this file." + ] + }, + "FileDescriptorProto:public_dependency": { + "paramName": "public_dependency", + "paramType": "TYPE_INT32[]", + "comments": [ + " Indexes of the public imported files in the dependency list above." + ] + }, + "FileDescriptorProto:weak_dependency": { + "paramName": "weak_dependency", + "paramType": "TYPE_INT32[]", + "comments": [ + " Indexes of the weak imported files in the dependency list.", + " For Google-internal migration only. Do not use." + ] + }, + "FileDescriptorProto:message_type": { + "paramName": "message_type", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " All top-level definitions in this file." + ] + }, + "FileDescriptorProto:enum_type": { + "paramName": "enum_type", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "FileDescriptorProto:service": { + "paramName": "service", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "FileDescriptorProto:extension": { + "paramName": "extension", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "FileDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.FileOptions", + "comments": [] + }, + "FileDescriptorProto:source_code_info": { + "paramName": "source_code_info", + "paramType": ".google.protobuf.SourceCodeInfo", + "comments": [ + " This field contains optional information about the original source code.", + " You may safely remove this entire field without harming runtime", + " functionality of the descriptors -- the information is needed only by", + " development tools." + ] + }, + "FileDescriptorProto:syntax": { + "paramName": "syntax", + "paramType": "TYPE_STRING", + "comments": [ + " The syntax of the proto file.", + " The supported values are \"proto2\", \"proto3\", and \"editions\".", + "", + " If `edition` is present, this value must be \"editions\"." + ] + }, + "FileDescriptorProto:edition": { + "paramName": "edition", + "paramType": "TYPE_STRING", + "comments": [ + " The edition of the proto file, which is an opaque string." + ] + }, + "DescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "DescriptorProto:field": { + "paramName": "field", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:extension": { + "paramName": "extension", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:nested_type": { + "paramName": "nested_type", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:enum_type": { + "paramName": "enum_type", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:extension_range": { + "paramName": "extension_range", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:oneof_decl": { + "paramName": "oneof_decl", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.MessageOptions", + "comments": [] + }, + "DescriptorProto:reserved_range": { + "paramName": "reserved_range", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:reserved_name": { + "paramName": "reserved_name", + "paramType": "TYPE_STRING[]", + "comments": [ + " Reserved field names, which may not be used by fields in the same message.", + " A given name may only be reserved once." + ] + }, + "ExtensionRangeOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "ExtensionRangeOptions:declaration": { + "paramName": "declaration", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " For external users: DO NOT USE. We are in the process of open sourcing", + " extension declaration and executing internal cleanups before it can be", + " used externally." + ] + }, + "ExtensionRangeOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "ExtensionRangeOptions:verification": { + "paramName": "verification", + "paramType": ".google.protobuf.ExtensionRangeOptions.VerificationState", + "comments": [ + " The verification state of the range.", + " TODO(b/278783756): flip the default to DECLARATION once all empty ranges", + " are marked as UNVERIFIED." + ] + }, + "FieldDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "FieldDescriptorProto:number": { + "paramName": "number", + "paramType": "TYPE_INT32", + "comments": [] + }, + "FieldDescriptorProto:label": { + "paramName": "label", + "paramType": ".google.protobuf.FieldDescriptorProto.Label", + "comments": [] + }, + "FieldDescriptorProto:type": { + "paramName": "type", + "paramType": ".google.protobuf.FieldDescriptorProto.Type", + "comments": [ + " If type_name is set, this need not be set. If both this and type_name", + " are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP." + ] + }, + "FieldDescriptorProto:type_name": { + "paramName": "type_name", + "paramType": "TYPE_STRING", + "comments": [ + " For message and enum types, this is the name of the type. If the name", + " starts with a '.', it is fully-qualified. Otherwise, C++-like scoping", + " rules are used to find the type (i.e. first the nested types within this", + " message are searched, then within the parent, on up to the root", + " namespace)." + ] + }, + "FieldDescriptorProto:extendee": { + "paramName": "extendee", + "paramType": "TYPE_STRING", + "comments": [ + " For extensions, this is the name of the type being extended. It is", + " resolved in the same manner as type_name." + ] + }, + "FieldDescriptorProto:default_value": { + "paramName": "default_value", + "paramType": "TYPE_STRING", + "comments": [ + " For numeric types, contains the original text representation of the value.", + " For booleans, \"true\" or \"false\".", + " For strings, contains the default text contents (not escaped in any way).", + " For bytes, contains the C escaped value. All bytes >= 128 are escaped." + ] + }, + "FieldDescriptorProto:oneof_index": { + "paramName": "oneof_index", + "paramType": "TYPE_INT32", + "comments": [ + " If set, gives the index of a oneof in the containing type's oneof_decl", + " list. This field is a member of that oneof." + ] + }, + "FieldDescriptorProto:json_name": { + "paramName": "json_name", + "paramType": "TYPE_STRING", + "comments": [ + " JSON name of this field. The value is set by protocol compiler. If the", + " user has set a \"json_name\" option on this field, that option's value", + " will be used. Otherwise, it's deduced from the field's name by converting", + " it to camelCase." + ] + }, + "FieldDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.FieldOptions", + "comments": [] + }, + "FieldDescriptorProto:proto3_optional": { + "paramName": "proto3_optional", + "paramType": "TYPE_BOOL", + "comments": [ + " If true, this is a proto3 \"optional\". When a proto3 field is optional, it", + " tracks presence regardless of field type.", + "", + " When proto3_optional is true, this field must be belong to a oneof to", + " signal to old proto3 clients that presence is tracked for this field. This", + " oneof is known as a \"synthetic\" oneof, and this field must be its sole", + " member (each proto3 optional field gets its own synthetic oneof). Synthetic", + " oneofs exist in the descriptor only, and do not generate any API. Synthetic", + " oneofs must be ordered after all \"real\" oneofs.", + "", + " For message fields, proto3_optional doesn't create any semantic change,", + " since non-repeated message fields always track presence. However it still", + " indicates the semantic detail of whether the user wrote \"optional\" or not.", + " This can be useful for round-tripping the .proto file. For consistency we", + " give message fields a synthetic oneof also, even though it is not required", + " to track presence. This is especially important because the parser can't", + " tell if a field is a message or an enum, so it must always create a", + " synthetic oneof.", + "", + " Proto2 optional fields do not set this flag, because they already indicate", + " optional with `LABEL_OPTIONAL`." + ] + }, + "OneofDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "OneofDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.OneofOptions", + "comments": [] + }, + "EnumDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "EnumDescriptorProto:value": { + "paramName": "value", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "EnumDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.EnumOptions", + "comments": [] + }, + "EnumDescriptorProto:reserved_range": { + "paramName": "reserved_range", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Range of reserved numeric values. Reserved numeric values may not be used", + " by enum values in the same enum declaration. Reserved ranges may not", + " overlap." + ] + }, + "EnumDescriptorProto:reserved_name": { + "paramName": "reserved_name", + "paramType": "TYPE_STRING[]", + "comments": [ + " Reserved enum value names, which may not be reused. A given name may only", + " be reserved once." + ] + }, + "EnumValueDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "EnumValueDescriptorProto:number": { + "paramName": "number", + "paramType": "TYPE_INT32", + "comments": [] + }, + "EnumValueDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.EnumValueOptions", + "comments": [] + }, + "ServiceDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ServiceDescriptorProto:method": { + "paramName": "method", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "ServiceDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.ServiceOptions", + "comments": [] + }, + "MethodDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "MethodDescriptorProto:input_type": { + "paramName": "input_type", + "paramType": "TYPE_STRING", + "comments": [ + " Input and output type names. These are resolved in the same way as", + " FieldDescriptorProto.type_name, but must refer to a message type." + ] + }, + "MethodDescriptorProto:output_type": { + "paramName": "output_type", + "paramType": "TYPE_STRING", + "comments": [] + }, + "MethodDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.MethodOptions", + "comments": [] + }, + "MethodDescriptorProto:client_streaming": { + "paramName": "client_streaming", + "paramType": "TYPE_BOOL", + "comments": [ + " Identifies if client streams multiple client messages" + ] + }, + "MethodDescriptorProto:server_streaming": { + "paramName": "server_streaming", + "paramType": "TYPE_BOOL", + "comments": [ + " Identifies if server streams multiple server messages" + ] + }, + "FileOptions:java_package": { + "paramName": "java_package", + "paramType": "TYPE_STRING", + "comments": [ + " Sets the Java package where classes generated from this .proto will be", + " placed. By default, the proto package is used, but this is often", + " inappropriate because proto packages do not normally start with backwards", + " domain names." + ] + }, + "FileOptions:java_outer_classname": { + "paramName": "java_outer_classname", + "paramType": "TYPE_STRING", + "comments": [ + " Controls the name of the wrapper Java class generated for the .proto file.", + " That class will always contain the .proto file's getDescriptor() method as", + " well as any top-level extensions defined in the .proto file.", + " If java_multiple_files is disabled, then all the other classes from the", + " .proto file will be nested inside the single wrapper outer class." + ] + }, + "FileOptions:java_multiple_files": { + "paramName": "java_multiple_files", + "paramType": "TYPE_BOOL", + "comments": [ + " If enabled, then the Java code generator will generate a separate .java", + " file for each top-level message, enum, and service defined in the .proto", + " file. Thus, these types will *not* be nested inside the wrapper class", + " named by java_outer_classname. However, the wrapper class will still be", + " generated to contain the file's getDescriptor() method as well as any", + " top-level extensions defined in the file." + ] + }, + "FileOptions:java_generate_equals_and_hash": { + "paramName": "java_generate_equals_and_hash", + "paramType": "TYPE_BOOL", + "comments": [ + " This option does nothing." + ] + }, + "FileOptions:java_string_check_utf8": { + "paramName": "java_string_check_utf8", + "paramType": "TYPE_BOOL", + "comments": [ + " If set true, then the Java2 code generator will generate code that", + " throws an exception whenever an attempt is made to assign a non-UTF-8", + " byte sequence to a string field.", + " Message reflection will do the same.", + " However, an extension field still accepts non-UTF-8 byte sequences.", + " This option has no effect on when used with the lite runtime." + ] + }, + "FileOptions:optimize_for": { + "paramName": "optimize_for", + "paramType": ".google.protobuf.FileOptions.OptimizeMode", + "comments": [] + }, + "FileOptions:go_package": { + "paramName": "go_package", + "paramType": "TYPE_STRING", + "comments": [ + " Sets the Go package where structs generated from this .proto will be", + " placed. If omitted, the Go package will be derived from the following:", + " - The basename of the package import path, if provided.", + " - Otherwise, the package statement in the .proto file, if present.", + " - Otherwise, the basename of the .proto file, without extension." + ] + }, + "FileOptions:cc_generic_services": { + "paramName": "cc_generic_services", + "paramType": "TYPE_BOOL", + "comments": [ + " Should generic services be generated in each language? \"Generic\" services", + " are not specific to any particular RPC system. They are generated by the", + " main code generators in each language (without additional plugins).", + " Generic services were the only kind of service generation supported by", + " early versions of google.protobuf.", + "", + " Generic services are now considered deprecated in favor of using plugins", + " that generate code specific to your particular RPC system. Therefore,", + " these default to false. Old code which depends on generic services should", + " explicitly set them to true." + ] + }, + "FileOptions:java_generic_services": { + "paramName": "java_generic_services", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "FileOptions:py_generic_services": { + "paramName": "py_generic_services", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "FileOptions:php_generic_services": { + "paramName": "php_generic_services", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "FileOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this file deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for everything in the file, or it will be completely ignored; in the very", + " least, this is a formalization for deprecating files." + ] + }, + "FileOptions:cc_enable_arenas": { + "paramName": "cc_enable_arenas", + "paramType": "TYPE_BOOL", + "comments": [ + " Enables the use of arenas for the proto messages in this file. This applies", + " only to generated classes for C++." + ] + }, + "FileOptions:objc_class_prefix": { + "paramName": "objc_class_prefix", + "paramType": "TYPE_STRING", + "comments": [ + " Sets the objective c class prefix which is prepended to all objective c", + " generated classes from this .proto. There is no default." + ] + }, + "FileOptions:csharp_namespace": { + "paramName": "csharp_namespace", + "paramType": "TYPE_STRING", + "comments": [ + " Namespace for generated classes; defaults to the package." + ] + }, + "FileOptions:swift_prefix": { + "paramName": "swift_prefix", + "paramType": "TYPE_STRING", + "comments": [ + " By default Swift generators will take the proto package and CamelCase it", + " replacing '.' with underscore and use that to prefix the types/symbols", + " defined. When this options is provided, they will use this value instead", + " to prefix the types/symbols defined." + ] + }, + "FileOptions:php_class_prefix": { + "paramName": "php_class_prefix", + "paramType": "TYPE_STRING", + "comments": [ + " Sets the php class prefix which is prepended to all php generated classes", + " from this .proto. Default is empty." + ] + }, + "FileOptions:php_namespace": { + "paramName": "php_namespace", + "paramType": "TYPE_STRING", + "comments": [ + " Use this option to change the namespace of php generated classes. Default", + " is empty. When this option is empty, the package name will be used for", + " determining the namespace." + ] + }, + "FileOptions:php_metadata_namespace": { + "paramName": "php_metadata_namespace", + "paramType": "TYPE_STRING", + "comments": [ + " Use this option to change the namespace of php generated metadata classes.", + " Default is empty. When this option is empty, the proto file name will be", + " used for determining the namespace." + ] + }, + "FileOptions:ruby_package": { + "paramName": "ruby_package", + "paramType": "TYPE_STRING", + "comments": [ + " Use this option to change the package of ruby generated classes. Default", + " is empty. When this option is not set, the package name will be used for", + " determining the ruby package." + ] + }, + "FileOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "FileOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here.", + " See the documentation for the \"Options\" section above." + ] + }, + "MessageOptions:message_set_wire_format": { + "paramName": "message_set_wire_format", + "paramType": "TYPE_BOOL", + "comments": [ + " Set true to use the old proto1 MessageSet wire format for extensions.", + " This is provided for backwards-compatibility with the MessageSet wire", + " format. You should not use this for any other reason: It's less", + " efficient, has fewer features, and is more complicated.", + "", + " The message must be defined exactly as follows:", + " message Foo {", + " option message_set_wire_format = true;", + " extensions 4 to max;", + " }", + " Note that the message cannot have any defined fields; MessageSets only", + " have extensions.", + "", + " All extensions of your type must be singular messages; e.g. they cannot", + " be int32s, enums, or repeated messages.", + "", + " Because this is an option, the above two restrictions are not enforced by", + " the protocol compiler." + ] + }, + "MessageOptions:no_standard_descriptor_accessor": { + "paramName": "no_standard_descriptor_accessor", + "paramType": "TYPE_BOOL", + "comments": [ + " Disables the generation of the standard \"descriptor()\" accessor, which can", + " conflict with a field of the same name. This is meant to make migration", + " from proto1 easier; new code should avoid fields named \"descriptor\"." + ] + }, + "MessageOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this message deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for the message, or it will be completely ignored; in the very least,", + " this is a formalization for deprecating messages." + ] + }, + "MessageOptions:map_entry": { + "paramName": "map_entry", + "paramType": "TYPE_BOOL", + "comments": [ + " NOTE: Do not set the option in .proto files. Always use the maps syntax", + " instead. The option should only be implicitly set by the proto compiler", + " parser.", + "", + " Whether the message is an automatically generated map entry type for the", + " maps field.", + "", + " For maps fields:", + " map map_field = 1;", + " The parsed descriptor looks like:", + " message MapFieldEntry {", + " option map_entry = true;", + " optional KeyType key = 1;", + " optional ValueType value = 2;", + " }", + " repeated MapFieldEntry map_field = 1;", + "", + " Implementations may choose not to generate the map_entry=true message, but", + " use a native map in the target language to hold the keys and values.", + " The reflection APIs in such implementations still need to work as", + " if the field is a repeated message field." + ] + }, + "MessageOptions:deprecated_legacy_json_field_conflicts": { + "paramName": "deprecated_legacy_json_field_conflicts", + "paramType": "TYPE_BOOL", + "comments": [ + " Enable the legacy handling of JSON field name conflicts. This lowercases", + " and strips underscored from the fields before comparison in proto3 only.", + " The new behavior takes `json_name` into account and applies to proto2 as", + " well.", + "", + " This should only be used as a temporary measure against broken builds due", + " to the change in behavior for JSON field name conflicts.", + "", + " TODO(b/261750190) This is legacy behavior we plan to remove once downstream", + " teams have had time to migrate." + ] + }, + "MessageOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "MessageOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "FieldOptions:ctype": { + "paramName": "ctype", + "paramType": ".google.protobuf.FieldOptions.CType", + "comments": [ + " The ctype option instructs the C++ code generator to use a different", + " representation of the field than it normally would. See the specific", + " options below. This option is only implemented to support use of", + " [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of", + " type \"bytes\" in the open source release -- sorry, we'll try to include", + " other types in a future version!" + ] + }, + "FieldOptions:packed": { + "paramName": "packed", + "paramType": "TYPE_BOOL", + "comments": [ + " The packed option can be enabled for repeated primitive fields to enable", + " a more efficient representation on the wire. Rather than repeatedly", + " writing the tag and type for each element, the entire array is encoded as", + " a single length-delimited blob. In proto3, only explicit setting it to", + " false will avoid using packed encoding." + ] + }, + "FieldOptions:jstype": { + "paramName": "jstype", + "paramType": ".google.protobuf.FieldOptions.JSType", + "comments": [ + " The jstype option determines the JavaScript type used for values of the", + " field. The option is permitted only for 64 bit integral and fixed types", + " (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING", + " is represented as JavaScript string, which avoids loss of precision that", + " can happen when a large value is converted to a floating point JavaScript.", + " Specifying JS_NUMBER for the jstype causes the generated JavaScript code to", + " use the JavaScript \"number\" type. The behavior of the default option", + " JS_NORMAL is implementation dependent.", + "", + " This option is an enum to permit additional types to be added, e.g.", + " goog.math.Integer." + ] + }, + "FieldOptions:lazy": { + "paramName": "lazy", + "paramType": "TYPE_BOOL", + "comments": [ + " Should this field be parsed lazily? Lazy applies only to message-type", + " fields. It means that when the outer message is initially parsed, the", + " inner message's contents will not be parsed but instead stored in encoded", + " form. The inner message will actually be parsed when it is first accessed.", + "", + " This is only a hint. Implementations are free to choose whether to use", + " eager or lazy parsing regardless of the value of this option. However,", + " setting this option true suggests that the protocol author believes that", + " using lazy parsing on this field is worth the additional bookkeeping", + " overhead typically needed to implement it.", + "", + " This option does not affect the public interface of any generated code;", + " all method signatures remain the same. Furthermore, thread-safety of the", + " interface is not affected by this option; const methods remain safe to", + " call from multiple threads concurrently, while non-const methods continue", + " to require exclusive access.", + "", + " Note that implementations may choose not to check required fields within", + " a lazy sub-message. That is, calling IsInitialized() on the outer message", + " may return true even if the inner message has missing required fields.", + " This is necessary because otherwise the inner message would have to be", + " parsed in order to perform the check, defeating the purpose of lazy", + " parsing. An implementation which chooses not to check required fields", + " must be consistent about it. That is, for any particular sub-message, the", + " implementation must either *always* check its required fields, or *never*", + " check its required fields, regardless of whether or not the message has", + " been parsed.", + "", + " As of May 2022, lazy verifies the contents of the byte stream during", + " parsing. An invalid byte stream will cause the overall parsing to fail." + ] + }, + "FieldOptions:unverified_lazy": { + "paramName": "unverified_lazy", + "paramType": "TYPE_BOOL", + "comments": [ + " unverified_lazy does no correctness checks on the byte stream. This should", + " only be used where lazy with verification is prohibitive for performance", + " reasons." + ] + }, + "FieldOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this field deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for accessors, or it will be completely ignored; in the very least, this", + " is a formalization for deprecating fields." + ] + }, + "FieldOptions:weak": { + "paramName": "weak", + "paramType": "TYPE_BOOL", + "comments": [ + " For Google-internal migration only. Do not use." + ] + }, + "FieldOptions:debug_redact": { + "paramName": "debug_redact", + "paramType": "TYPE_BOOL", + "comments": [ + " Indicate that the field value should not be printed out when using debug", + " formats, e.g. when the field contains sensitive credentials." + ] + }, + "FieldOptions:retention": { + "paramName": "retention", + "paramType": ".google.protobuf.FieldOptions.OptionRetention", + "comments": [] + }, + "FieldOptions:targets": { + "paramName": "targets", + "paramType": "TYPE_ENUM[]", + "comments": [] + }, + "FieldOptions:edition_defaults": { + "paramName": "edition_defaults", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "FieldOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "FieldOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "OneofOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "OneofOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "EnumOptions:allow_alias": { + "paramName": "allow_alias", + "paramType": "TYPE_BOOL", + "comments": [ + " Set this option to true to allow mapping different tag names to the same", + " value." + ] + }, + "EnumOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this enum deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for the enum, or it will be completely ignored; in the very least, this", + " is a formalization for deprecating enums." + ] + }, + "EnumOptions:deprecated_legacy_json_field_conflicts": { + "paramName": "deprecated_legacy_json_field_conflicts", + "paramType": "TYPE_BOOL", + "comments": [ + " Enable the legacy handling of JSON field name conflicts. This lowercases", + " and strips underscored from the fields before comparison in proto3 only.", + " The new behavior takes `json_name` into account and applies to proto2 as", + " well.", + " TODO(b/261750190) Remove this legacy behavior once downstream teams have", + " had time to migrate." + ] + }, + "EnumOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "EnumOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "EnumValueOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this enum value deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for the enum value, or it will be completely ignored; in the very least,", + " this is a formalization for deprecating enum values." + ] + }, + "EnumValueOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "EnumValueOptions:debug_redact": { + "paramName": "debug_redact", + "paramType": "TYPE_BOOL", + "comments": [ + " Indicate that fields annotated with this enum value should not be printed", + " out when using debug formats, e.g. when the field contains sensitive", + " credentials." + ] + }, + "EnumValueOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "ServiceOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "ServiceOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this service deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for the service, or it will be completely ignored; in the very least,", + " this is a formalization for deprecating services." + ] + }, + "ServiceOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "MethodOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this method deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for the method, or it will be completely ignored; in the very least,", + " this is a formalization for deprecating methods." + ] + }, + "MethodOptions:idempotency_level": { + "paramName": "idempotency_level", + "paramType": ".google.protobuf.MethodOptions.IdempotencyLevel", + "comments": [] + }, + "MethodOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "MethodOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "UninterpretedOption:name": { + "paramName": "name", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "UninterpretedOption:identifier_value": { + "paramName": "identifier_value", + "paramType": "TYPE_STRING", + "comments": [ + " The value of the uninterpreted option, in whatever type the tokenizer", + " identified it as during parsing. Exactly one of these should be set." + ] + }, + "UninterpretedOption:positive_int_value": { + "paramName": "positive_int_value", + "paramType": "TYPE_UINT64", + "comments": [] + }, + "UninterpretedOption:negative_int_value": { + "paramName": "negative_int_value", + "paramType": "TYPE_INT64", + "comments": [] + }, + "UninterpretedOption:double_value": { + "paramName": "double_value", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "UninterpretedOption:string_value": { + "paramName": "string_value", + "paramType": "TYPE_BYTES", + "comments": [] + }, + "UninterpretedOption:aggregate_value": { + "paramName": "aggregate_value", + "paramType": "TYPE_STRING", + "comments": [] + }, + "FeatureSet:field_presence": { + "paramName": "field_presence", + "paramType": ".google.protobuf.FeatureSet.FieldPresence", + "comments": [] + }, + "FeatureSet:enum_type": { + "paramName": "enum_type", + "paramType": ".google.protobuf.FeatureSet.EnumType", + "comments": [] + }, + "FeatureSet:repeated_field_encoding": { + "paramName": "repeated_field_encoding", + "paramType": ".google.protobuf.FeatureSet.RepeatedFieldEncoding", + "comments": [] + }, + "FeatureSet:string_field_validation": { + "paramName": "string_field_validation", + "paramType": ".google.protobuf.FeatureSet.StringFieldValidation", + "comments": [] + }, + "FeatureSet:message_encoding": { + "paramName": "message_encoding", + "paramType": ".google.protobuf.FeatureSet.MessageEncoding", + "comments": [] + }, + "FeatureSet:json_format": { + "paramName": "json_format", + "paramType": ".google.protobuf.FeatureSet.JsonFormat", + "comments": [] + }, + "FeatureSet:raw_features": { + "paramName": "raw_features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [] + }, + "SourceCodeInfo:location": { + "paramName": "location", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " A Location identifies a piece of source code in a .proto file which", + " corresponds to a particular definition. This information is intended", + " to be useful to IDEs, code indexers, documentation generators, and similar", + " tools.", + "", + " For example, say we have a file like:", + " message Foo {", + " optional string foo = 1;", + " }", + " Let's look at just the field definition:", + " optional string foo = 1;", + " ^ ^^ ^^ ^ ^^^", + " a bc de f ghi", + " We have the following locations:", + " span path represents", + " [a,i) [ 4, 0, 2, 0 ] The whole field definition.", + " [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).", + " [c,d) [ 4, 0, 2, 0, 5 ] The type (string).", + " [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).", + " [g,h) [ 4, 0, 2, 0, 3 ] The number (1).", + "", + " Notes:", + " - A location may refer to a repeated field itself (i.e. not to any", + " particular index within it). This is used whenever a set of elements are", + " logically enclosed in a single code segment. For example, an entire", + " extend block (possibly containing multiple extension definitions) will", + " have an outer location whose path refers to the \"extensions\" repeated", + " field without an index.", + " - Multiple locations may have the same path. This happens when a single", + " logical declaration is spread out across multiple places. The most", + " obvious example is the \"extend\" block again -- there may be multiple", + " extend blocks in the same scope, each of which will have the same path.", + " - A location's span is not always a subset of its parent's span. For", + " example, the \"extendee\" of an extension declaration appears at the", + " beginning of the \"extend\" block and is shared by all extensions within", + " the block.", + " - Just because a location's span is a subset of some other location's span", + " does not mean that it is a descendant. For example, a \"group\" defines", + " both a type and a field in a single declaration. Thus, the locations", + " corresponding to the type and field and their components will overlap.", + " - Code which tries to interpret locations should probably be designed to", + " ignore those that it doesn't understand, as more types of locations could", + " be recorded in the future." + ] + }, + "GeneratedCodeInfo:annotation": { + "paramName": "annotation", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " An Annotation connects some span of text in generated code to an element", + " of its generating .proto file." + ] + }, + "Duration:seconds": { + "paramName": "seconds", + "paramType": "TYPE_INT64", + "comments": [ + " Signed seconds of the span of time. Must be from -315,576,000,000", + " to +315,576,000,000 inclusive. Note: these bounds are computed from:", + " 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years" + ] + }, + "Duration:nanos": { + "paramName": "nanos", + "paramType": "TYPE_INT32", + "comments": [ + " Signed fractions of a second at nanosecond resolution of the span", + " of time. Durations less than one second are represented with a 0", + " `seconds` field and a positive or negative `nanos` field. For durations", + " of one second or more, a non-zero value for the `nanos` field must be", + " of the same sign as the `seconds` field. Must be from -999,999,999", + " to +999,999,999 inclusive." + ] + }, + "CommonLanguageSettings:reference_docs_uri": { + "paramName": "reference_docs_uri", + "paramType": "TYPE_STRING", + "comments": [ + " Link to automatically generated reference documentation. Example:", + " https://cloud.google.com/nodejs/docs/reference/asset/latest" + ] + }, + "CommonLanguageSettings:destinations": { + "paramName": "destinations", + "paramType": "TYPE_ENUM[]", + "comments": [ + " The destination where API teams want this client library to be published." + ] + }, + "ClientLibrarySettings:version": { + "paramName": "version", + "paramType": "TYPE_STRING", + "comments": [ + " Version of the API to apply these settings to. This is the full protobuf", + " package for the API, ending in the version element.", + " Examples: \"google.cloud.speech.v1\" and \"google.spanner.admin.database.v1\"." + ] + }, + "ClientLibrarySettings:launch_stage": { + "paramName": "launch_stage", + "paramType": ".google.api.LaunchStage", + "comments": [ + " Launch stage of this version of the API." + ] + }, + "ClientLibrarySettings:rest_numeric_enums": { + "paramName": "rest_numeric_enums", + "paramType": "TYPE_BOOL", + "comments": [ + " When using transport=rest, the client request will encode enums as", + " numbers rather than strings." + ] + }, + "ClientLibrarySettings:java_settings": { + "paramName": "java_settings", + "paramType": ".google.api.JavaSettings", + "comments": [ + " Settings for legacy Java features, supported in the Service YAML." + ] + }, + "ClientLibrarySettings:cpp_settings": { + "paramName": "cpp_settings", + "paramType": ".google.api.CppSettings", + "comments": [ + " Settings for C++ client libraries." + ] + }, + "ClientLibrarySettings:php_settings": { + "paramName": "php_settings", + "paramType": ".google.api.PhpSettings", + "comments": [ + " Settings for PHP client libraries." + ] + }, + "ClientLibrarySettings:python_settings": { + "paramName": "python_settings", + "paramType": ".google.api.PythonSettings", + "comments": [ + " Settings for Python client libraries." + ] + }, + "ClientLibrarySettings:node_settings": { + "paramName": "node_settings", + "paramType": ".google.api.NodeSettings", + "comments": [ + " Settings for Node client libraries." + ] + }, + "ClientLibrarySettings:dotnet_settings": { + "paramName": "dotnet_settings", + "paramType": ".google.api.DotnetSettings", + "comments": [ + " Settings for .NET client libraries." + ] + }, + "ClientLibrarySettings:ruby_settings": { + "paramName": "ruby_settings", + "paramType": ".google.api.RubySettings", + "comments": [ + " Settings for Ruby client libraries." + ] + }, + "ClientLibrarySettings:go_settings": { + "paramName": "go_settings", + "paramType": ".google.api.GoSettings", + "comments": [ + " Settings for Go client libraries." + ] + }, + "Publishing:method_settings": { + "paramName": "method_settings", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " A list of API method settings, e.g. the behavior for methods that use the", + " long-running operation pattern." + ] + }, + "Publishing:new_issue_uri": { + "paramName": "new_issue_uri", + "paramType": "TYPE_STRING", + "comments": [ + " Link to a *public* URI where users can report issues. Example:", + " https://issuetracker.google.com/issues/new?component=190865&template=1161103" + ] + }, + "Publishing:documentation_uri": { + "paramName": "documentation_uri", + "paramType": "TYPE_STRING", + "comments": [ + " Link to product home page. Example:", + " https://cloud.google.com/asset-inventory/docs/overview" + ] + }, + "Publishing:api_short_name": { + "paramName": "api_short_name", + "paramType": "TYPE_STRING", + "comments": [ + " Used as a tracking tag when collecting data about the APIs developer", + " relations artifacts like docs, packages delivered to package managers,", + " etc. Example: \"speech\"." + ] + }, + "Publishing:github_label": { + "paramName": "github_label", + "paramType": "TYPE_STRING", + "comments": [ + " GitHub label to apply to issues and pull requests opened for this API." + ] + }, + "Publishing:codeowner_github_teams": { + "paramName": "codeowner_github_teams", + "paramType": "TYPE_STRING[]", + "comments": [ + " GitHub teams to be added to CODEOWNERS in the directory in GitHub", + " containing source code for the client libraries for this API." + ] + }, + "Publishing:doc_tag_prefix": { + "paramName": "doc_tag_prefix", + "paramType": "TYPE_STRING", + "comments": [ + " A prefix used in sample code when demarking regions to be included in", + " documentation." + ] + }, + "Publishing:organization": { + "paramName": "organization", + "paramType": ".google.api.ClientLibraryOrganization", + "comments": [ + " For whom the client library is being published." + ] + }, + "Publishing:library_settings": { + "paramName": "library_settings", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Client library settings. If the same version string appears multiple", + " times in this list, then the last one wins. Settings from earlier", + " settings with the same version string are discarded." + ] + }, + "Publishing:proto_reference_documentation_uri": { + "paramName": "proto_reference_documentation_uri", + "paramType": "TYPE_STRING", + "comments": [ + " Optional link to proto reference documentation. Example:", + " https://cloud.google.com/pubsub/lite/docs/reference/rpc" + ] + }, + "JavaSettings:library_package": { + "paramName": "library_package", + "paramType": "TYPE_STRING", + "comments": [ + " The package name to use in Java. Clobbers the java_package option", + " set in the protobuf. This should be used **only** by APIs", + " who have already set the language_settings.java.package_name\" field", + " in gapic.yaml. API teams should use the protobuf java_package option", + " where possible.", + "", + " Example of a YAML configuration::", + "", + " publishing:", + " java_settings:", + " library_package: com.google.cloud.pubsub.v1" + ] + }, + "JavaSettings:service_class_names": { + "paramName": "service_class_names", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Configure the Java class name to use instead of the service's for its", + " corresponding generated GAPIC client. Keys are fully-qualified", + " service names as they appear in the protobuf (including the full", + " the language_settings.java.interface_names\" field in gapic.yaml. API", + " teams should otherwise use the service name as it appears in the", + " protobuf.", + "", + " Example of a YAML configuration::", + "", + " publishing:", + " java_settings:", + " service_class_names:", + " - google.pubsub.v1.Publisher: TopicAdmin", + " - google.pubsub.v1.Subscriber: SubscriptionAdmin" + ] + }, + "JavaSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "CppSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "PhpSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "PythonSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "NodeSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "DotnetSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "DotnetSettings:renamed_services": { + "paramName": "renamed_services", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Map from original service names to renamed versions.", + " This is used when the default generated types", + " would cause a naming conflict. (Neither name is", + " fully-qualified.)", + " Example: Subscriber to SubscriberServiceApi." + ] + }, + "DotnetSettings:renamed_resources": { + "paramName": "renamed_resources", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Map from full resource types to the effective short name", + " for the resource. This is used when otherwise resource", + " named from different services would cause naming collisions.", + " Example entry:", + " \"datalabeling.googleapis.com/Dataset\": \"DataLabelingDataset\"" + ] + }, + "DotnetSettings:ignored_resources": { + "paramName": "ignored_resources", + "paramType": "TYPE_STRING[]", + "comments": [ + " List of full resource types to ignore during generation.", + " This is typically used for API-specific Location resources,", + " which should be handled by the generator as if they were actually", + " the common Location resources.", + " Example entry: \"documentai.googleapis.com/Location\"" + ] + }, + "DotnetSettings:forced_namespace_aliases": { + "paramName": "forced_namespace_aliases", + "paramType": "TYPE_STRING[]", + "comments": [ + " Namespaces which must be aliased in snippets due to", + " a known (but non-generator-predictable) naming collision" + ] + }, + "DotnetSettings:handwritten_signatures": { + "paramName": "handwritten_signatures", + "paramType": "TYPE_STRING[]", + "comments": [ + " Method signatures (in the form \"service.method(signature)\")", + " which are provided separately, so shouldn't be generated.", + " Snippets *calling* these methods are still generated, however." + ] + }, + "RubySettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "GoSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "MethodSettings:selector": { + "paramName": "selector", + "paramType": "TYPE_STRING", + "comments": [ + " The fully qualified name of the method, for which the options below apply.", + " This is used to find the method to apply the options." + ] + }, + "MethodSettings:long_running": { + "paramName": "long_running", + "paramType": ".google.api.MethodSettings.LongRunning", + "comments": [ + " Describes settings to use for long-running operations when generating", + " API methods for RPCs. Complements RPCs that use the annotations in", + " google/longrunning/operations.proto.", + "", + " Example of a YAML configuration::", + "", + " publishing:", + " method_settings:", + " - selector: google.cloud.speech.v2.Speech.BatchRecognize", + " long_running:", + " initial_poll_delay:", + " seconds: 60 # 1 minute", + " poll_delay_multiplier: 1.5", + " max_poll_delay:", + " seconds: 360 # 6 minutes", + " total_poll_timeout:", + " seconds: 54000 # 90 minutes" + ] + }, + "Compliance": { + "paramName": "", + "paramType": "", + "comments": [ + " This service is used to test that GAPICs implement various REST-related features correctly. This mostly means transcoding proto3 requests to REST format", + " correctly for various types of HTTP annotations, but it also includes verifying that unknown (numeric) enums received by clients can be round-tripped", + " correctly." + ] + }, + "Compliance:RepeatDataBody": { + "paramName": "", + "paramType": "", + "comments": [ + " This method echoes the ComplianceData request. This method exercises", + " sending the entire request object in the REST body.", + "" + ] + }, + "Compliance:RepeatDataBodyInfo": { + "paramName": "", + "paramType": "", + "comments": [ + " This method echoes the ComplianceData request. This method exercises", + " sending the a message-type field in the REST body. Per AIP-127, only", + " top-level, non-repeated fields can be sent this way.", + "" + ] + }, + "Compliance:RepeatDataQuery": { + "paramName": "", + "paramType": "", + "comments": [ + " This method echoes the ComplianceData request. This method exercises", + " sending all request fields as query parameters.", + "" + ] + }, + "Compliance:RepeatDataSimplePath": { + "paramName": "", + "paramType": "", + "comments": [ + " This method echoes the ComplianceData request. This method exercises", + " sending some parameters as \"simple\" path variables (i.e., of the form", + " \"/bar/{foo}\" rather than \"/{foo=bar/*}\"), and the rest as query parameters.", + "" + ] + }, + "Compliance:RepeatDataPathResource": { + "paramName": "", + "paramType": "", + "comments": [ + " Same as RepeatDataSimplePath, but with a path resource.", + "" + ] + }, + "Compliance:RepeatDataPathTrailingResource": { + "paramName": "", + "paramType": "", + "comments": [ + " Same as RepeatDataSimplePath, but with a trailing resource.", + "" + ] + }, + "Compliance:RepeatDataBodyPut": { + "paramName": "", + "paramType": "", + "comments": [ + " This method echoes the ComplianceData request, using the HTTP PUT method.", + "" + ] + }, + "Compliance:RepeatDataBodyPatch": { + "paramName": "", + "paramType": "", + "comments": [ + " This method echoes the ComplianceData request, using the HTTP PATCH method.", + "" + ] + }, + "Compliance:GetEnum": { + "paramName": "", + "paramType": "", + "comments": [ + " This method requests an enum value from the server. Depending on the contents of EnumRequest, the enum value returned will be a known enum declared in the", + " .proto file, or a made-up enum value the is unknown to the client. To verify that clients can round-trip unknown enum vaues they receive, use the", + " response from this RPC as the request to VerifyEnum()", + "", + " The values of enums sent by the server when a known or unknown value is requested will be the same within a single Showcase server run (this is needed for", + " VerifyEnum() to work) but are not guaranteed to be the same across separate Showcase server runs.", + "" + ] + }, + "Compliance:VerifyEnum": { + "paramName": "", + "paramType": "", + "comments": [ + " This method is used to verify that clients can round-trip enum values, which is particularly important for unknown enum values over REST. VerifyEnum()", + " verifies that its request, which is presumably the response that the client previously got to a GetEnum(), contains the correct data. If so, it responds", + " with the same EnumResponse; otherwise, the RPC errors.", + "", + " This works because the values of enums sent by the server when a known or unknown value is requested will be the same within a single Showcase server run,", + " although they are not guaranteed to be the same across separate Showcase server runs.", + "" + ] + }, + "RepeatRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "RepeatRequest:info": { + "paramName": "info", + "paramType": ".google.showcase.v1beta1.ComplianceData", + "comments": [] + }, + "RepeatRequest:server_verify": { + "paramName": "server_verify", + "paramType": "TYPE_BOOL", + "comments": [ + " If true, the server will verify that the received request matches", + " the request with the same name in the compliance test suite." + ] + }, + "RepeatRequest:intended_binding_uri": { + "paramName": "intended_binding_uri", + "paramType": "TYPE_STRING", + "comments": [ + " The URI template this request is expected to be bound to server-side." + ] + }, + "RepeatRequest:f_int32": { + "paramName": "f_int32", + "paramType": "TYPE_INT32", + "comments": [ + " Some top level fields, to test that these are encoded correctly", + " in query params." + ] + }, + "RepeatRequest:f_int64": { + "paramName": "f_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + "RepeatRequest:f_double": { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "RepeatRequest:p_int32": { + "paramName": "p_int32", + "paramType": "TYPE_INT32", + "comments": [] + }, + "RepeatRequest:p_int64": { + "paramName": "p_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + "RepeatRequest:p_double": { + "paramName": "p_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "RepeatResponse:request": { + "paramName": "request", + "paramType": ".google.showcase.v1beta1.RepeatRequest", + "comments": [] + }, + "RepeatResponse:binding_uri": { + "paramName": "binding_uri", + "paramType": "TYPE_STRING", + "comments": [ + " The URI template the request was bound to server-side." + ] + }, + "ComplianceSuite:group": { + "paramName": "group", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "ComplianceGroup:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ComplianceGroup:rpcs": { + "paramName": "rpcs", + "paramType": "TYPE_STRING[]", + "comments": [] + }, + "ComplianceGroup:requests": { + "paramName": "requests", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "ComplianceData:f_string": { + "paramName": "f_string", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ComplianceData:f_int32": { + "paramName": "f_int32", + "paramType": "TYPE_INT32", + "comments": [] + }, + "ComplianceData:f_sint32": { + "paramName": "f_sint32", + "paramType": "TYPE_SINT32", + "comments": [] + }, + "ComplianceData:f_sfixed32": { + "paramName": "f_sfixed32", + "paramType": "TYPE_SFIXED32", + "comments": [] + }, + "ComplianceData:f_uint32": { + "paramName": "f_uint32", + "paramType": "TYPE_UINT32", + "comments": [] + }, + "ComplianceData:f_fixed32": { + "paramName": "f_fixed32", + "paramType": "TYPE_FIXED32", + "comments": [] + }, + "ComplianceData:f_int64": { + "paramName": "f_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + "ComplianceData:f_sint64": { + "paramName": "f_sint64", + "paramType": "TYPE_SINT64", + "comments": [] + }, + "ComplianceData:f_sfixed64": { + "paramName": "f_sfixed64", + "paramType": "TYPE_SFIXED64", + "comments": [] + }, + "ComplianceData:f_uint64": { + "paramName": "f_uint64", + "paramType": "TYPE_UINT64", + "comments": [] + }, + "ComplianceData:f_fixed64": { + "paramName": "f_fixed64", + "paramType": "TYPE_FIXED64", + "comments": [] + }, + "ComplianceData:f_double": { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "ComplianceData:f_float": { + "paramName": "f_float", + "paramType": "TYPE_FLOAT", + "comments": [] + }, + "ComplianceData:f_bool": { + "paramName": "f_bool", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "ComplianceData:f_bytes": { + "paramName": "f_bytes", + "paramType": "TYPE_BYTES", + "comments": [] + }, + "ComplianceData:f_kingdom": { + "paramName": "f_kingdom", + "paramType": ".google.showcase.v1beta1.ComplianceData.LifeKingdom", + "comments": [] + }, + "ComplianceData:f_child": { + "paramName": "f_child", + "paramType": ".google.showcase.v1beta1.ComplianceDataChild", + "comments": [] + }, + "ComplianceData:p_string": { + "paramName": "p_string", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ComplianceData:p_int32": { + "paramName": "p_int32", + "paramType": "TYPE_INT32", + "comments": [] + }, + "ComplianceData:p_double": { + "paramName": "p_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "ComplianceData:p_bool": { + "paramName": "p_bool", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "ComplianceData:p_kingdom": { + "paramName": "p_kingdom", + "paramType": ".google.showcase.v1beta1.ComplianceData.LifeKingdom", + "comments": [] + }, + "ComplianceData:p_child": { + "paramName": "p_child", + "paramType": ".google.showcase.v1beta1.ComplianceDataChild", + "comments": [] + }, + "ComplianceDataChild:f_string": { + "paramName": "f_string", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ComplianceDataChild:f_float": { + "paramName": "f_float", + "paramType": "TYPE_FLOAT", + "comments": [] + }, + "ComplianceDataChild:f_double": { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "ComplianceDataChild:f_bool": { + "paramName": "f_bool", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "ComplianceDataChild:f_continent": { + "paramName": "f_continent", + "paramType": ".google.showcase.v1beta1.Continent", + "comments": [] + }, + "ComplianceDataChild:f_child": { + "paramName": "f_child", + "paramType": ".google.showcase.v1beta1.ComplianceDataGrandchild", + "comments": [] + }, + "ComplianceDataChild:p_string": { + "paramName": "p_string", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ComplianceDataChild:p_float": { + "paramName": "p_float", + "paramType": "TYPE_FLOAT", + "comments": [] + }, + "ComplianceDataChild:p_double": { + "paramName": "p_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "ComplianceDataChild:p_bool": { + "paramName": "p_bool", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "ComplianceDataChild:p_continent": { + "paramName": "p_continent", + "paramType": ".google.showcase.v1beta1.Continent", + "comments": [] + }, + "ComplianceDataChild:p_child": { + "paramName": "p_child", + "paramType": ".google.showcase.v1beta1.ComplianceDataGrandchild", + "comments": [] + }, + "ComplianceDataGrandchild:f_string": { + "paramName": "f_string", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ComplianceDataGrandchild:f_double": { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "ComplianceDataGrandchild:f_bool": { + "paramName": "f_bool", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "EnumRequest:unknown_enum": { + "paramName": "unknown_enum", + "paramType": "TYPE_BOOL", + "comments": [ + " Whether the client is requesting a new, unknown enum value or a known enum value already declard in this proto file." + ] + }, + "EnumResponse:request": { + "paramName": "request", + "paramType": ".google.showcase.v1beta1.EnumRequest", + "comments": [ + " The original request for a known or unknown enum from the server." + ] + }, + "EnumResponse:continent": { + "paramName": "continent", + "paramType": ".google.showcase.v1beta1.Continent", + "comments": [ + " The actual enum the server provided." + ] + }, + "RoutingRule:routing_parameters": { + "paramName": "routing_parameters", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " A collection of Routing Parameter specifications.", + " **NOTE:** If multiple Routing Parameters describe the same key", + " (via the `path_template` field or via the `field` field when", + " `path_template` is not provided), \"last one wins\" rule", + " determines which Parameter gets used.", + " See the examples for more details." + ] + }, + "RoutingParameter:field": { + "paramName": "field", + "paramType": "TYPE_STRING", + "comments": [ + " A request field to extract the header key-value pair from." + ] + }, + "RoutingParameter:path_template": { + "paramName": "path_template", + "paramType": "TYPE_STRING", + "comments": [ + " A pattern matching the key-value field. Optional.", + " If not specified, the whole field specified in the `field` field will be", + " taken as value, and its name used as key. If specified, it MUST contain", + " exactly one named segment (along with any number of unnamed segments) The", + " pattern will be matched over the field specified in the `field` field, then", + " if the match is successful:", + " - the name of the single named segment will be used as a header name,", + " - the match value of the segment will be used as a header value;", + " if the match is NOT successful, nothing will be sent.", + "", + " Example:", + "", + " -- This is a field in the request message", + " | that the header value will be extracted from.", + " |", + " | -- This is the key name in the", + " | | routing header.", + " V |", + " field: \"table_name\" v", + " path_template: \"projects/*/{table_location=instances/*}/tables/*\"", + " ^ ^", + " | |", + " In the {} brackets is the pattern that -- |", + " specifies what to extract from the |", + " field as a value to be sent. |", + " |", + " The string in the field must match the whole pattern --", + " before brackets, inside brackets, after brackets.", + "", + " When looking at this specific example, we can see that:", + " - A key-value pair with the key `table_location`", + " and the value matching `instances/*` should be added", + " to the x-goog-request-params routing header.", + " - The value is extracted from the request message's `table_name` field", + " if it matches the full pattern specified:", + " `projects/*/instances/*/tables/*`.", + "", + " **NB:** If the `path_template` field is not provided, the key name is", + " equal to the field name, and the whole field should be sent as a value.", + " This makes the pattern for the field and the value functionally equivalent", + " to `**`, and the configuration", + "", + " {", + " field: \"table_name\"", + " }", + "", + " is a functionally equivalent shorthand to:", + "", + " {", + " field: \"table_name\"", + " path_template: \"{table_name=**}\"", + " }", + "", + " See Example 1 for more details." + ] + }, + "Any:type_url": { + "paramName": "type_url", + "paramType": "TYPE_STRING", + "comments": [ + " A URL/resource name that uniquely identifies the type of the serialized", + " protocol buffer message. This string must contain at least", + " one \"/\" character. The last segment of the URL's path must represent", + " the fully qualified name of the type (as in", + " `path/google.protobuf.Duration`). The name should be in a canonical form", + " (e.g., leading \".\" is not accepted).", + "", + " In practice, teams usually precompile into the binary all types that they", + " expect it to use in the context of Any. However, for URLs which use the", + " scheme `http`, `https`, or no scheme, one can optionally set up a type", + " server that maps type URLs to message definitions as follows:", + "", + " * If no scheme is provided, `https` is assumed.", + " * An HTTP GET on the URL must yield a [google.protobuf.Type][]", + " value in binary format, or produce an error.", + " * Applications are allowed to cache lookup results based on the", + " URL, or have them precompiled into a binary to avoid any", + " lookup. Therefore, binary compatibility needs to be preserved", + " on changes to types. (Use versioned type names to manage", + " breaking changes.)", + "", + " Note: this functionality is not currently available in the official", + " protobuf release, and it is not used for type URLs beginning with", + " type.googleapis.com. As of May 2023, there are no widely used type server", + " implementations and no plans to implement one.", + "", + " Schemes other than `http`, `https` (or the empty scheme) might be", + " used with implementation specific semantics.", + "" + ] + }, + "Any:value": { + "paramName": "value", + "paramType": "TYPE_BYTES", + "comments": [ + " Must be a valid serialized protocol buffer of the above specified type." + ] + }, + "Status:code": { + "paramName": "code", + "paramType": "TYPE_INT32", + "comments": [ + " The status code, which should be an enum value of", + " [google.rpc.Code][google.rpc.Code]." + ] + }, + "Status:message": { + "paramName": "message", + "paramType": "TYPE_STRING", + "comments": [ + " A developer-facing error message, which should be in English. Any", + " user-facing error message should be localized and sent in the", + " [google.rpc.Status.details][google.rpc.Status.details] field, or localized", + " by the client." + ] + }, + "Status:details": { + "paramName": "details", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " A list of messages that carry the error details. There is a common set of", + " message types for APIs to use." + ] + }, + "Operations": { + "paramName": "", + "paramType": "", + "comments": [ + " Manages long-running operations with an API service.", + "", + " When an API method normally takes long time to complete, it can be designed", + " to return [Operation][google.longrunning.Operation] to the client, and the client can use this", + " interface to receive the real response asynchronously by polling the", + " operation resource, or pass the operation resource to another API (such as", + " Google Cloud Pub/Sub API) to receive the response. Any API service that", + " returns long-running operations should implement the `Operations` interface", + " so developers can have a consistent client experience." + ] + }, + "Operations:ListOperations": { + "paramName": "", + "paramType": "", + "comments": [ + " Lists operations that match the specified filter in the request. If the", + " server doesn't support this method, it returns `UNIMPLEMENTED`.", + "", + " NOTE: the `name` binding allows API services to override the binding", + " to use different resource name schemes, such as `users/*/operations`. To", + " override the binding, API services can add a binding such as", + " `\"/v1/{name=users/*}/operations\"` to their service configuration.", + " For backwards compatibility, the default name includes the operations", + " collection id, however overriding users must ensure the name binding", + " is the parent resource, without the operations collection id.", + "" + ] + }, + "Operations:GetOperation": { + "paramName": "", + "paramType": "", + "comments": [ + " Gets the latest state of a long-running operation. Clients can use this", + " method to poll the operation result at intervals as recommended by the API", + " service.", + "" + ] + }, + "Operations:DeleteOperation": { + "paramName": "", + "paramType": "", + "comments": [ + " Deletes a long-running operation. This method indicates that the client is", + " no longer interested in the operation result. It does not cancel the", + " operation. If the server doesn't support this method, it returns", + " `google.rpc.Code.UNIMPLEMENTED`.", + "" + ] + }, + "Operations:CancelOperation": { + "paramName": "", + "paramType": "", + "comments": [ + " Starts asynchronous cancellation on a long-running operation. The server", + " makes a best effort to cancel the operation, but success is not", + " guaranteed. If the server doesn't support this method, it returns", + " `google.rpc.Code.UNIMPLEMENTED`. Clients can use", + " [Operations.GetOperation][google.longrunning.Operations.GetOperation] or", + " other methods to check whether the cancellation succeeded or whether the", + " operation completed despite cancellation. On successful cancellation,", + " the operation is not deleted; instead, it becomes an operation with", + " an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,", + " corresponding to `Code.CANCELLED`.", + "" + ] + }, + "Operations:WaitOperation": { + "paramName": "", + "paramType": "", + "comments": [ + " Waits until the specified long-running operation is done or reaches at most", + " a specified timeout, returning the latest state. If the operation is", + " already done, the latest state is immediately returned. If the timeout", + " specified is greater than the default HTTP/RPC timeout, the HTTP/RPC", + " timeout is used. If the server does not support this method, it returns", + " `google.rpc.Code.UNIMPLEMENTED`.", + " Note that this method is on a best-effort basis. It may return the latest", + " state before the specified timeout (including immediately), meaning even an", + " immediate response is no guarantee that the operation is done.", + "" + ] + }, + "Operation:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The server-assigned name, which is only unique within the same service that", + " originally returns it. If you use the default HTTP mapping, the", + " `name` should be a resource name ending with `operations/{unique_id}`." + ] + }, + "Operation:metadata": { + "paramName": "metadata", + "paramType": ".google.protobuf.Any", + "comments": [ + " Service-specific metadata associated with the operation. It typically", + " contains progress information and common metadata such as create time.", + " Some services might not provide such metadata. Any method that returns a", + " long-running operation should document the metadata type, if any." + ] + }, + "Operation:done": { + "paramName": "done", + "paramType": "TYPE_BOOL", + "comments": [ + " If the value is `false`, it means the operation is still in progress.", + " If `true`, the operation is completed, and either `error` or `response` is", + " available." + ] + }, + "Operation:error": { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error result of the operation in case of failure or cancellation." + ] + }, + "Operation:response": { + "paramName": "response", + "paramType": ".google.protobuf.Any", + "comments": [ + " The normal response of the operation in case of success. If the original", + " method returns no data on success, such as `Delete`, the response is", + " `google.protobuf.Empty`. If the original method is standard", + " `Get`/`Create`/`Update`, the response should be the resource. For other", + " methods, the response should have the type `XxxResponse`, where `Xxx`", + " is the original method name. For example, if the original method name", + " is `TakeSnapshot()`, the inferred response type is", + " `TakeSnapshotResponse`." + ] + }, + "GetOperationRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the operation resource." + ] + }, + "ListOperationsRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the operation's parent resource." + ] + }, + "ListOperationsRequest:filter": { + "paramName": "filter", + "paramType": "TYPE_STRING", + "comments": [ + " The standard list filter." + ] + }, + "ListOperationsRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The standard list page size." + ] + }, + "ListOperationsRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The standard list page token." + ] + }, + "ListOperationsResponse:operations": { + "paramName": "operations", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " A list of operations that matches the specified filter in the request." + ] + }, + "ListOperationsResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The standard List next-page token." + ] + }, + "CancelOperationRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the operation resource to be cancelled." + ] + }, + "DeleteOperationRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the operation resource to be deleted." + ] + }, + "WaitOperationRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the operation resource to wait on." + ] + }, + "WaitOperationRequest:timeout": { + "paramName": "timeout", + "paramType": ".google.protobuf.Duration", + "comments": [ + " The maximum duration to wait before timing out. If left blank, the wait", + " will be at most the time permitted by the underlying HTTP/RPC protocol.", + " If RPC context deadline is also specified, the shorter one will be used." + ] + }, + "OperationInfo:response_type": { + "paramName": "response_type", + "paramType": "TYPE_STRING", + "comments": [ + " Required. The message name of the primary return type for this", + " long-running operation.", + " This type will be used to deserialize the LRO's response.", + "", + " If the response is in a different package from the rpc, a fully-qualified", + " message name must be used (e.g. `google.protobuf.Struct`).", + "", + " Note: Altering this value constitutes a breaking change." + ] + }, + "OperationInfo:metadata_type": { + "paramName": "metadata_type", + "paramType": "TYPE_STRING", + "comments": [ + " Required. The message name of the metadata type for this long-running", + " operation.", + "", + " If the response is in a different package from the rpc, a fully-qualified", + " message name must be used (e.g. `google.protobuf.Struct`).", + "", + " Note: Altering this value constitutes a breaking change." + ] + }, + "Timestamp:seconds": { + "paramName": "seconds", + "paramType": "TYPE_INT64", + "comments": [ + " Represents seconds of UTC time since Unix epoch", + " 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to", + " 9999-12-31T23:59:59Z inclusive." + ] + }, + "Timestamp:nanos": { + "paramName": "nanos", + "paramType": "TYPE_INT32", + "comments": [ + " Non-negative fractions of a second at nanosecond resolution. Negative", + " second values with fractions must still have non-negative nanos values", + " that count forward in time. Must be from 0 to 999,999,999", + " inclusive." + ] + }, + "Echo": { + "paramName": "", + "paramType": "", + "comments": [ + " This service is used showcase the four main types of rpcs - unary, server", + " side streaming, client side streaming, and bidirectional streaming. This", + " service also exposes methods that explicitly implement server delay, and", + " paginated calls. Set the 'showcase-trailer' metadata key on any method", + " to have the values echoed in the response trailers. Set the ", + " 'x-goog-request-params' metadata key on any method to have the values", + " echoed in the response headers." + ] + }, + "Echo:Expand": { + "paramName": "", + "paramType": "", + "comments": [ + " This method splits the given content into words and will pass each word back", + " through the stream. This method showcases server-side streaming RPCs.", + "" + ] + }, + "Echo:Collect": { + "paramName": "", + "paramType": "", + "comments": [ + " This method will collect the words given to it. When the stream is closed", + " by the client, this method will return the a concatenation of the strings", + " passed to it. This method showcases client-side streaming RPCs.", + "" + ] + }, + "Echo:Chat": { + "paramName": "", + "paramType": "", + "comments": [ + " This method, upon receiving a request on the stream, will pass the same", + " content back on the stream. This method showcases bidirectional", + " streaming RPCs.", + "" + ] + }, + "Echo:PagedExpand": { + "paramName": "", + "paramType": "", + "comments": [ + " This is similar to the Expand method but instead of returning a stream of", + " expanded words, this method returns a paged list of expanded words.", + "" + ] + }, + "Echo:PagedExpandLegacy": { + "paramName": "", + "paramType": "", + "comments": [ + " This is similar to the PagedExpand except that it uses", + " max_results instead of page_size, as some legacy APIs still", + " do. New APIs should NOT use this pattern.", + "" + ] + }, + "Echo:PagedExpandLegacyMapped": { + "paramName": "", + "paramType": "", + "comments": [ + " This method returns a map containing lists of words that appear in the input, keyed by their", + " initial character. The only words returned are the ones included in the current page,", + " as determined by page_token and page_size, which both refer to the word indices in the", + " input. This paging result consisting of a map of lists is a pattern used by some legacy", + " APIs. New APIs should NOT use this pattern.", + "" + ] + }, + "Echo:Wait": { + "paramName": "", + "paramType": "", + "comments": [ + " This method will wait for the requested amount of time and then return.", + " This method showcases how a client handles a request timeout.", + "" + ] + }, + "Echo:Block": { + "paramName": "", + "paramType": "", + "comments": [ + " This method will block (wait) for the requested amount of time", + " and then return the response or error.", + " This method showcases how a client handles delays or retries.", + "" + ] + }, + "EchoRequest:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The content to be echoed by the server." + ] + }, + "EchoRequest:error": { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error to be thrown by the server." + ] + }, + "EchoRequest:severity": { + "paramName": "severity", + "paramType": ".google.showcase.v1beta1.Severity", + "comments": [ + " The severity to be echoed by the server." + ] + }, + "EchoRequest:header": { + "paramName": "header", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. This field can be set to test the routing annotation on the Echo method." + ] + }, + "EchoRequest:other_header": { + "paramName": "other_header", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. This field can be set to test the routing annotation on the Echo method." + ] + }, + "EchoResponse:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The content specified in the request." + ] + }, + "EchoResponse:severity": { + "paramName": "severity", + "paramType": ".google.showcase.v1beta1.Severity", + "comments": [ + " The severity specified in the request." + ] + }, + "ExpandRequest:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The content that will be split into words and returned on the stream." + ] + }, + "ExpandRequest:error": { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error that is thrown after all words are sent on the stream." + ] + }, + "PagedExpandRequest:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The string to expand." + ], + "fieldBehavior": 2 + }, + "PagedExpandRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The number of words to returned in each page." + ] + }, + "PagedExpandRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The position of the page to be returned." + ] + }, + "PagedExpandLegacyRequest:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The string to expand." + ], + "fieldBehavior": 2 + }, + "PagedExpandLegacyRequest:max_results": { + "paramName": "max_results", + "paramType": "TYPE_INT32", + "comments": [ + " The number of words to returned in each page.", + " (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that", + " violates aip.dev/158. Ordinarily, this should be page_size. --)" + ] + }, + "PagedExpandLegacyRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The position of the page to be returned." + ] + }, + "PagedExpandResponse:responses": { + "paramName": "responses", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The words that were expanded." + ] + }, + "PagedExpandResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The next page token." + ] + }, + "PagedExpandResponseList:words": { + "paramName": "words", + "paramType": "TYPE_STRING[]", + "comments": [] + }, + "PagedExpandLegacyMappedResponse:alphabetized": { + "paramName": "alphabetized", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The words that were expanded, indexed by their initial character.", + " (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates", + " aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --)" + ] + }, + "PagedExpandLegacyMappedResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The next page token." + ] + }, + "WaitRequest:end_time": { + "paramName": "end_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The time that this operation will complete." + ] + }, + "WaitRequest:ttl": { + "paramName": "ttl", + "paramType": ".google.protobuf.Duration", + "comments": [ + " The duration of this operation." + ] + }, + "WaitRequest:error": { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error that will be returned by the server. If this code is specified", + " to be the OK rpc code, an empty response will be returned." + ] + }, + "WaitRequest:success": { + "paramName": "success", + "paramType": ".google.showcase.v1beta1.WaitResponse", + "comments": [ + " The response to be returned on operation completion." + ] + }, + "WaitResponse:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " This content of the result." + ] + }, + "WaitMetadata:end_time": { + "paramName": "end_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The time that this operation will complete." + ] + }, + "BlockRequest:response_delay": { + "paramName": "response_delay", + "paramType": ".google.protobuf.Duration", + "comments": [ + " The amount of time to block before returning a response." + ] + }, + "BlockRequest:error": { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error that will be returned by the server. If this code is specified", + " to be the OK rpc code, an empty response will be returned." + ] + }, + "BlockRequest:success": { + "paramName": "success", + "paramType": ".google.showcase.v1beta1.BlockResponse", + "comments": [ + " The response to be returned that will signify successful method call." + ] + }, + "BlockResponse:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " This content can contain anything, the server will not depend on a value", + " here." + ] + }, + "ResourceDescriptor:type": { + "paramName": "type", + "paramType": "TYPE_STRING", + "comments": [ + " The resource type. It must be in the format of", + " {service_name}/{resource_type_kind}. The `resource_type_kind` must be", + " singular and must not include version numbers.", + "", + " Example: `storage.googleapis.com/Bucket`", + "", + " The value of the resource_type_kind must follow the regular expression", + " /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and", + " should use PascalCase (UpperCamelCase). The maximum number of", + " characters allowed for the `resource_type_kind` is 100." + ] + }, + "ResourceDescriptor:pattern": { + "paramName": "pattern", + "paramType": "TYPE_STRING[]", + "comments": [ + " Optional. The relative resource name pattern associated with this resource", + " type. The DNS prefix of the full resource name shouldn't be specified here.", + "", + " The path pattern must follow the syntax, which aligns with HTTP binding", + " syntax:", + "", + " Template = Segment { \"/\" Segment } ;", + " Segment = LITERAL | Variable ;", + " Variable = \"{\" LITERAL \"}\" ;", + "", + " Examples:", + "", + " - \"projects/{project}/topics/{topic}\"", + " - \"projects/{project}/knowledgeBases/{knowledge_base}\"", + "", + " The components in braces correspond to the IDs for each resource in the", + " hierarchy. It is expected that, if multiple patterns are provided,", + " the same component name (e.g. \"project\") refers to IDs of the same", + " type of resource." + ] + }, + "ResourceDescriptor:name_field": { + "paramName": "name_field", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. The field on the resource that designates the resource name", + " field. If omitted, this is assumed to be \"name\"." + ] + }, + "ResourceDescriptor:history": { + "paramName": "history", + "paramType": ".google.api.ResourceDescriptor.History", + "comments": [ + " Optional. The historical or future-looking state of the resource pattern.", + "", + " Example:", + "", + " // The InspectTemplate message originally only supported resource", + " // names with organization, and project was added later.", + " message InspectTemplate {", + " option (google.api.resource) = {", + " type: \"dlp.googleapis.com/InspectTemplate\"", + " pattern:", + " \"organizations/{organization}/inspectTemplates/{inspect_template}\"", + " pattern: \"projects/{project}/inspectTemplates/{inspect_template}\"", + " history: ORIGINALLY_SINGLE_PATTERN", + " };", + " }" + ] + }, + "ResourceDescriptor:plural": { + "paramName": "plural", + "paramType": "TYPE_STRING", + "comments": [ + " The plural name used in the resource name and permission names, such as", + " 'projects' for the resource name of 'projects/{project}' and the permission", + " name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same", + " concept of the `plural` field in k8s CRD spec", + " https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/", + "", + " Note: The plural form is required even for singleton resources. See", + " https://aip.dev/156" + ] + }, + "ResourceDescriptor:singular": { + "paramName": "singular", + "paramType": "TYPE_STRING", + "comments": [ + " The same concept of the `singular` field in k8s CRD spec", + " https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/", + " Such as \"project\" for the `resourcemanager.googleapis.com/Project` type." + ] + }, + "ResourceDescriptor:style": { + "paramName": "style", + "paramType": "TYPE_ENUM[]", + "comments": [ + " Style flag(s) for this resource.", + " These indicate that a resource is expected to conform to a given", + " style. See the specific style flags for additional information." + ] + }, + "ResourceReference:type": { + "paramName": "type", + "paramType": "TYPE_STRING", + "comments": [ + " The resource type that the annotated field references.", + "", + " Example:", + "", + " message Subscription {", + " string topic = 2 [(google.api.resource_reference) = {", + " type: \"pubsub.googleapis.com/Topic\"", + " }];", + " }", + "", + " Occasionally, a field may reference an arbitrary resource. In this case,", + " APIs use the special value * in their resource reference.", + "", + " Example:", + "", + " message GetIamPolicyRequest {", + " string resource = 2 [(google.api.resource_reference) = {", + " type: \"*\"", + " }];", + " }" + ] + }, + "ResourceReference:child_type": { + "paramName": "child_type", + "paramType": "TYPE_STRING", + "comments": [ + " The resource type of a child collection that the annotated field", + " references. This is useful for annotating the `parent` field that", + " doesn't have a fixed resource type.", + "", + " Example:", + "", + " message ListLogEntriesRequest {", + " string parent = 1 [(google.api.resource_reference) = {", + " child_type: \"logging.googleapis.com/LogEntry\"", + " };", + " }" + ] + }, + "FieldMask:paths": { + "paramName": "paths", + "paramType": "TYPE_STRING[]", + "comments": [ + " The set of field mask paths." + ] + }, + "Identity": { + "paramName": "", + "paramType": "", + "comments": [ + " A simple identity service." + ] + }, + "Identity:CreateUser": { + "paramName": "", + "paramType": "", + "comments": [ + " Creates a user.", + "" + ] + }, + "Identity:GetUser": { + "paramName": "", + "paramType": "", + "comments": [ + " Retrieves the User with the given uri.", + "" + ] + }, + "Identity:UpdateUser": { + "paramName": "", + "paramType": "", + "comments": [ + " Updates a user.", + "" + ] + }, + "Identity:DeleteUser": { + "paramName": "", + "paramType": "", + "comments": [ + " Deletes a user, their profile, and all of their authored messages.", + "" + ] + }, + "Identity:ListUsers": { + "paramName": "", + "paramType": "", + "comments": [ + " Lists all users.", + "" + ] + }, + "User:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the user." + ] + }, + "User:display_name": { + "paramName": "display_name", + "paramType": "TYPE_STRING", + "comments": [ + " The display_name of the user." + ], + "fieldBehavior": 2 + }, + "User:email": { + "paramName": "email", + "paramType": "TYPE_STRING", + "comments": [ + " The email address of the user." + ], + "fieldBehavior": 2 + }, + "User:create_time": { + "paramName": "create_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The timestamp at which the user was created." + ], + "fieldBehavior": 3 + }, + "User:update_time": { + "paramName": "update_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The latest timestamp at which the user was updated." + ], + "fieldBehavior": 3 + }, + "User:age": { + "paramName": "age", + "paramType": "TYPE_INT32", + "comments": [ + " The age of the user in years." + ] + }, + "User:height_feet": { + "paramName": "height_feet", + "paramType": "TYPE_DOUBLE", + "comments": [ + " The height of the user in feet." + ] + }, + "User:nickname": { + "paramName": "nickname", + "paramType": "TYPE_STRING", + "comments": [ + " The nickname of the user.", + "", + " (-- aip.dev/not-precedent: An empty string is a valid nickname.", + " Ordinarily, proto3_optional should not be used on a `string` field. --)" + ] + }, + "User:enable_notifications": { + "paramName": "enable_notifications", + "paramType": "TYPE_BOOL", + "comments": [ + " Enables the receiving of notifications. The default is true if unset.", + "", + " (-- aip.dev/not-precedent: The default for the feature is true.", + " Ordinarily, the default for a `bool` field should be false. --)" + ] + }, + "CreateUserRequest:user": { + "paramName": "user", + "paramType": ".google.showcase.v1beta1.User", + "comments": [ + " The user to create." + ] + }, + "GetUserRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested user." + ], + "fieldBehavior": 2 + }, + "UpdateUserRequest:user": { + "paramName": "user", + "paramType": ".google.showcase.v1beta1.User", + "comments": [ + " The user to update." + ] + }, + "UpdateUserRequest:update_mask": { + "paramName": "update_mask", + "paramType": ".google.protobuf.FieldMask", + "comments": [ + " The field mask to determine which fields are to be updated. If empty, the", + " server will assume all fields are to be updated." + ] + }, + "DeleteUserRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the user to delete." + ], + "fieldBehavior": 2 + }, + "ListUsersRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of users to return. Server may return fewer users", + " than requested. If unspecified, server will pick an appropriate default." + ] + }, + "ListUsersRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The value of google.showcase.v1beta1.ListUsersResponse.next_page_token", + " returned from the previous call to", + " `google.showcase.v1beta1.Identity\\ListUsers` method." + ] + }, + "ListUsersResponse:users": { + "paramName": "users", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The list of users." + ] + }, + "ListUsersResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " A token to retrieve next page of results.", + " Pass this value in ListUsersRequest.page_token field in the subsequent", + " call to `google.showcase.v1beta1.Message\\ListUsers` method to retrieve the", + " next page of results." + ] + }, + "ErrorInfo:reason": { + "paramName": "reason", + "paramType": "TYPE_STRING", + "comments": [ + " The reason of the error. This is a constant value that identifies the", + " proximate cause of the error. Error reasons are unique within a particular", + " domain of errors. This should be at most 63 characters and match a", + " regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents", + " UPPER_SNAKE_CASE." + ] + }, + "ErrorInfo:domain": { + "paramName": "domain", + "paramType": "TYPE_STRING", + "comments": [ + " The logical grouping to which the \"reason\" belongs. The error domain", + " is typically the registered service name of the tool or product that", + " generates the error. Example: \"pubsub.googleapis.com\". If the error is", + " generated by some common infrastructure, the error domain must be a", + " globally unique value that identifies the infrastructure. For Google API", + " infrastructure, the error domain is \"googleapis.com\"." + ] + }, + "ErrorInfo:metadata": { + "paramName": "metadata", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Additional structured details about this error.", + "", + " Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in", + " length. When identifying the current value of an exceeded limit, the units", + " should be contained in the key, not the value. For example, rather than", + " {\"instanceLimit\": \"100/request\"}, should be returned as,", + " {\"instanceLimitPerRequest\": \"100\"}, if the client exceeds the number of", + " instances that can be created in a single (batch) request." + ] + }, + "RetryInfo:retry_delay": { + "paramName": "retry_delay", + "paramType": ".google.protobuf.Duration", + "comments": [ + " Clients should wait at least this long between retrying the same request." + ] + }, + "DebugInfo:stack_entries": { + "paramName": "stack_entries", + "paramType": "TYPE_STRING[]", + "comments": [ + " The stack trace entries indicating where the error occurred." + ] + }, + "DebugInfo:detail": { + "paramName": "detail", + "paramType": "TYPE_STRING", + "comments": [ + " Additional debugging information provided by the server." + ] + }, + "QuotaFailure:violations": { + "paramName": "violations", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Describes all quota violations." + ] + }, + "PreconditionFailure:violations": { + "paramName": "violations", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Describes all precondition violations." + ] + }, + "BadRequest:field_violations": { + "paramName": "field_violations", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Describes all violations in a client request." + ] + }, + "RequestInfo:request_id": { + "paramName": "request_id", + "paramType": "TYPE_STRING", + "comments": [ + " An opaque string that should only be interpreted by the service generating", + " it. For example, it can be used to identify requests in the service's logs." + ] + }, + "RequestInfo:serving_data": { + "paramName": "serving_data", + "paramType": "TYPE_STRING", + "comments": [ + " Any data that was used to serve this request. For example, an encrypted", + " stack trace that can be sent back to the service provider for debugging." + ] + }, + "ResourceInfo:resource_type": { + "paramName": "resource_type", + "paramType": "TYPE_STRING", + "comments": [ + " A name for the type of resource being accessed, e.g. \"sql table\",", + " \"cloud storage bucket\", \"file\", \"Google calendar\"; or the type URL", + " of the resource: e.g. \"type.googleapis.com/google.pubsub.v1.Topic\"." + ] + }, + "ResourceInfo:resource_name": { + "paramName": "resource_name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the resource being accessed. For example, a shared calendar", + " name: \"example.com_4fghdhgsrgh@group.calendar.google.com\", if the current", + " error is", + " [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED]." + ] + }, + "ResourceInfo:owner": { + "paramName": "owner", + "paramType": "TYPE_STRING", + "comments": [ + " The owner of the resource (optional).", + " For example, \"user:\" or \"project:\"." + ] + }, + "ResourceInfo:description": { + "paramName": "description", + "paramType": "TYPE_STRING", + "comments": [ + " Describes what error is encountered when accessing this resource.", + " For example, updating a cloud project may require the `writer` permission", + " on the developer console project." + ] + }, + "Help:links": { + "paramName": "links", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " URL(s) pointing to additional information on handling the current error." + ] + }, + "LocalizedMessage:locale": { + "paramName": "locale", + "paramType": "TYPE_STRING", + "comments": [ + " The locale used following the specification defined at", + " https://www.rfc-editor.org/rfc/bcp/bcp47.txt.", + " Examples are: \"en-US\", \"fr-CH\", \"es-MX\"" + ] + }, + "LocalizedMessage:message": { + "paramName": "message", + "paramType": "TYPE_STRING", + "comments": [ + " The localized error message in the above locale." + ] + }, + "Messaging": { + "paramName": "", + "paramType": "", + "comments": [ + " A simple messaging service that implements chat rooms and profile posts.", + "", + " This messaging service showcases the features that API clients", + " generated by gapic-generators implement." + ] + }, + "Messaging:CreateRoom": { + "paramName": "", + "paramType": "", + "comments": [ + " Creates a room.", + "" + ] + }, + "Messaging:GetRoom": { + "paramName": "", + "paramType": "", + "comments": [ + " Retrieves the Room with the given resource name.", + "" + ] + }, + "Messaging:UpdateRoom": { + "paramName": "", + "paramType": "", + "comments": [ + " Updates a room.", + "" + ] + }, + "Messaging:DeleteRoom": { + "paramName": "", + "paramType": "", + "comments": [ + " Deletes a room and all of its blurbs.", + "" + ] + }, + "Messaging:ListRooms": { + "paramName": "", + "paramType": "", + "comments": [ + " Lists all chat rooms.", + "" + ] + }, + "Messaging:CreateBlurb": { + "paramName": "", + "paramType": "", + "comments": [ + " Creates a blurb. If the parent is a room, the blurb is understood to be a", + " message in that room. If the parent is a profile, the blurb is understood", + " to be a post on the profile.", + "" + ] + }, + "Messaging:GetBlurb": { + "paramName": "", + "paramType": "", + "comments": [ + " Retrieves the Blurb with the given resource name.", + "" + ] + }, + "Messaging:UpdateBlurb": { + "paramName": "", + "paramType": "", + "comments": [ + " Updates a blurb.", + "" + ] + }, + "Messaging:DeleteBlurb": { + "paramName": "", + "paramType": "", + "comments": [ + " Deletes a blurb.", + "" + ] + }, + "Messaging:ListBlurbs": { + "paramName": "", + "paramType": "", + "comments": [ + " Lists blurbs for a specific chat room or user profile depending on the", + " parent resource name.", + "" + ] + }, + "Messaging:SearchBlurbs": { + "paramName": "", + "paramType": "", + "comments": [ + " This method searches through all blurbs across all rooms and profiles", + " for blurbs containing to words found in the query. Only posts that", + " contain an exact match of a queried word will be returned.", + "" + ] + }, + "Messaging:StreamBlurbs": { + "paramName": "", + "paramType": "", + "comments": [ + " This returns a stream that emits the blurbs that are created for a", + " particular chat room or user profile.", + "" + ] + }, + "Messaging:SendBlurbs": { + "paramName": "", + "paramType": "", + "comments": [ + " This is a stream to create multiple blurbs. If an invalid blurb is", + " requested to be created, the stream will close with an error.", + "" + ] + }, + "Messaging:Connect": { + "paramName": "", + "paramType": "", + "comments": [ + " This method starts a bidirectional stream that receives all blurbs that", + " are being created after the stream has started and sends requests to create", + " blurbs. If an invalid blurb is requested to be created, the stream will", + " close with an error.", + "" + ] + }, + "Room:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the chat room." + ] + }, + "Room:display_name": { + "paramName": "display_name", + "paramType": "TYPE_STRING", + "comments": [ + " The human readable name of the chat room." + ], + "fieldBehavior": 2 + }, + "Room:description": { + "paramName": "description", + "paramType": "TYPE_STRING", + "comments": [ + " The description of the chat room." + ] + }, + "Room:create_time": { + "paramName": "create_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The timestamp at which the room was created." + ], + "fieldBehavior": 3 + }, + "Room:update_time": { + "paramName": "update_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The latest timestamp at which the room was updated." + ], + "fieldBehavior": 3 + }, + "CreateRoomRequest:room": { + "paramName": "room", + "paramType": ".google.showcase.v1beta1.Room", + "comments": [ + " The room to create." + ] + }, + "GetRoomRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested room." + ], + "fieldBehavior": 2 + }, + "UpdateRoomRequest:room": { + "paramName": "room", + "paramType": ".google.showcase.v1beta1.Room", + "comments": [ + " The room to update." + ] + }, + "UpdateRoomRequest:update_mask": { + "paramName": "update_mask", + "paramType": ".google.protobuf.FieldMask", + "comments": [ + " The field mask to determine which fields are to be updated. If empty, the", + " server will assume all fields are to be updated." + ] + }, + "DeleteRoomRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested room." + ], + "fieldBehavior": 2 + }, + "ListRoomsRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of rooms return. Server may return fewer rooms", + " than requested. If unspecified, server will pick an appropriate default." + ] + }, + "ListRoomsRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The value of google.showcase.v1beta1.ListRoomsResponse.next_page_token", + " returned from the previous call to", + " `google.showcase.v1beta1.Messaging\\ListRooms` method." + ] + }, + "ListRoomsResponse:rooms": { + "paramName": "rooms", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The list of rooms." + ] + }, + "ListRoomsResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " A token to retrieve next page of results.", + " Pass this value in ListRoomsRequest.page_token field in the subsequent", + " call to `google.showcase.v1beta1.Messaging\\ListRooms` method to retrieve", + " the next page of results." + ] + }, + "Blurb:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the chat room." + ] + }, + "Blurb:user": { + "paramName": "user", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the blurb's author." + ], + "fieldBehavior": 2 + }, + "Blurb:text": { + "paramName": "text", + "paramType": "TYPE_STRING", + "comments": [ + " The textual content of this blurb." + ] + }, + "Blurb:image": { + "paramName": "image", + "paramType": "TYPE_BYTES", + "comments": [ + " The image content of this blurb." + ] + }, + "Blurb:create_time": { + "paramName": "create_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The timestamp at which the blurb was created." + ], + "fieldBehavior": 3 + }, + "Blurb:update_time": { + "paramName": "update_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The latest timestamp at which the blurb was updated." + ], + "fieldBehavior": 3 + }, + "Blurb:legacy_room_id": { + "paramName": "legacy_room_id", + "paramType": "TYPE_STRING", + "comments": [ + " The legacy id of the room. This field is used to signal", + " the use of the compound resource pattern", + " `rooms/{room}/blurbs/legacy/{legacy_room}.{blurb}`" + ] + }, + "Blurb:legacy_user_id": { + "paramName": "legacy_user_id", + "paramType": "TYPE_STRING", + "comments": [ + " The legacy id of the user. This field is used to signal", + " the use of the compound resource pattern", + " `users/{user}/profile/blurbs/legacy/{legacy_user}~{blurb}`" + ] + }, + "CreateBlurbRequest:parent": { + "paramName": "parent", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the chat room or user profile that this blurb will", + " be tied to." + ], + "fieldBehavior": 2 + }, + "CreateBlurbRequest:blurb": { + "paramName": "blurb", + "paramType": ".google.showcase.v1beta1.Blurb", + "comments": [ + " The blurb to create." + ] + }, + "GetBlurbRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested blurb." + ], + "fieldBehavior": 2 + }, + "UpdateBlurbRequest:blurb": { + "paramName": "blurb", + "paramType": ".google.showcase.v1beta1.Blurb", + "comments": [ + " The blurb to update." + ] + }, + "UpdateBlurbRequest:update_mask": { + "paramName": "update_mask", + "paramType": ".google.protobuf.FieldMask", + "comments": [ + " The field mask to determine wich fields are to be updated. If empty, the", + " server will assume all fields are to be updated." + ] + }, + "DeleteBlurbRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested blurb." + ], + "fieldBehavior": 2 + }, + "ListBlurbsRequest:parent": { + "paramName": "parent", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested room or profile whos blurbs to list." + ], + "fieldBehavior": 2 + }, + "ListBlurbsRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of blurbs to return. Server may return fewer", + " blurbs than requested. If unspecified, server will pick an appropriate", + " default." + ] + }, + "ListBlurbsRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The value of google.showcase.v1beta1.ListBlurbsResponse.next_page_token", + " returned from the previous call to", + " `google.showcase.v1beta1.Messaging\\ListBlurbs` method." + ] + }, + "ListBlurbsResponse:blurbs": { + "paramName": "blurbs", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The list of blurbs." + ] + }, + "ListBlurbsResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " A token to retrieve next page of results.", + " Pass this value in ListBlurbsRequest.page_token field in the subsequent", + " call to `google.showcase.v1beta1.Blurb\\ListBlurbs` method to retrieve", + " the next page of results." + ] + }, + "SearchBlurbsRequest:query": { + "paramName": "query", + "paramType": "TYPE_STRING", + "comments": [ + " The query used to search for blurbs containing to words of this string.", + " Only posts that contain an exact match of a queried word will be returned." + ], + "fieldBehavior": 2 + }, + "SearchBlurbsRequest:parent": { + "paramName": "parent", + "paramType": "TYPE_STRING", + "comments": [ + " The rooms or profiles to search. If unset, `SearchBlurbs` will search all", + " rooms and all profiles." + ] + }, + "SearchBlurbsRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of blurbs return. Server may return fewer", + " blurbs than requested. If unspecified, server will pick an appropriate", + " default." + ] + }, + "SearchBlurbsRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The value of", + " google.showcase.v1beta1.SearchBlurbsResponse.next_page_token", + " returned from the previous call to", + " `google.showcase.v1beta1.Messaging\\SearchBlurbs` method." + ] + }, + "SearchBlurbsMetadata:retry_info": { + "paramName": "retry_info", + "paramType": ".google.rpc.RetryInfo", + "comments": [ + " This signals to the client when to next poll for response." + ] + }, + "SearchBlurbsResponse:blurbs": { + "paramName": "blurbs", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Blurbs that matched the search query." + ] + }, + "SearchBlurbsResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " A token to retrieve next page of results.", + " Pass this value in SearchBlurbsRequest.page_token field in the subsequent", + " call to `google.showcase.v1beta1.Blurb\\SearchBlurbs` method to", + " retrieve the next page of results." + ] + }, + "StreamBlurbsRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of a chat room or user profile whose blurbs to stream." + ], + "fieldBehavior": 2 + }, + "StreamBlurbsRequest:expire_time": { + "paramName": "expire_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The time at which this stream will close." + ], + "fieldBehavior": 2 + }, + "StreamBlurbsResponse:blurb": { + "paramName": "blurb", + "paramType": ".google.showcase.v1beta1.Blurb", + "comments": [ + " The blurb that was either created, updated, or deleted." + ] + }, + "StreamBlurbsResponse:action": { + "paramName": "action", + "paramType": ".google.showcase.v1beta1.StreamBlurbsResponse.Action", + "comments": [ + " The action that triggered the blurb to be returned." + ] + }, + "SendBlurbsResponse:names": { + "paramName": "names", + "paramType": "TYPE_STRING[]", + "comments": [ + " The names of successful blurb creations." + ] + }, + "ConnectRequest:config": { + "paramName": "config", + "paramType": ".google.showcase.v1beta1.ConnectRequest.ConnectConfig", + "comments": [ + " Provides information that specifies how to process subsequent requests.", + " The first `ConnectRequest` message must contain a `config` message." + ] + }, + "ConnectRequest:blurb": { + "paramName": "blurb", + "paramType": ".google.showcase.v1beta1.Blurb", + "comments": [ + " The blurb to be created." + ] + }, + "SequenceService": { + "paramName": "", + "paramType": "", + "comments": [] + }, + "SequenceService:CreateSequence": { + "paramName": "", + "paramType": "", + "comments": [ + " Creates a sequence.", + "" + ] + }, + "SequenceService:GetSequenceReport": { + "paramName": "", + "paramType": "", + "comments": [ + " Retrieves a sequence.", + "" + ] + }, + "SequenceService:AttemptSequence": { + "paramName": "", + "paramType": "", + "comments": [ + " Attempts a sequence.", + "" + ] + }, + "Sequence:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [], + "fieldBehavior": 3 + }, + "Sequence:responses": { + "paramName": "responses", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Sequence of responses to return in order for each attempt. If empty, the", + " default response is an immediate OK." + ] + }, + "SequenceReport:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [], + "fieldBehavior": 3 + }, + "SequenceReport:attempts": { + "paramName": "attempts", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The set of RPC attempts received by the server for a Sequence." + ] + }, + "CreateSequenceRequest:sequence": { + "paramName": "sequence", + "paramType": ".google.showcase.v1beta1.Sequence", + "comments": [] + }, + "AttemptSequenceRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [], + "fieldBehavior": 2 + }, + "GetSequenceReportRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [], + "fieldBehavior": 2 + }, + "Testing": { + "paramName": "", + "paramType": "", + "comments": [ + " A service to facilitate running discrete sets of tests", + " against Showcase." + ] + }, + "Testing:CreateSession": { + "paramName": "", + "paramType": "", + "comments": [ + " Creates a new testing session.", + "" + ] + }, + "Testing:GetSession": { + "paramName": "", + "paramType": "", + "comments": [ + " Gets a testing session.", + "" + ] + }, + "Testing:ListSessions": { + "paramName": "", + "paramType": "", + "comments": [ + " Lists the current test sessions.", + "" + ] + }, + "Testing:DeleteSession": { + "paramName": "", + "paramType": "", + "comments": [ + " Delete a test session.", + "" + ] + }, + "Testing:ReportSession": { + "paramName": "", + "paramType": "", + "comments": [ + " Report on the status of a session.", + " This generates a report detailing which tests have been completed,", + " and an overall rollup.", + "" + ] + }, + "Testing:ListTests": { + "paramName": "", + "paramType": "", + "comments": [ + " List the tests of a sessesion.", + "" + ] + }, + "Testing:DeleteTest": { + "paramName": "", + "paramType": "", + "comments": [ + " Explicitly decline to implement a test.", + "", + " This removes the test from subsequent `ListTests` calls, and", + " attempting to do the test will error.", + "", + " This method will error if attempting to delete a required test.", + "" + ] + }, + "Testing:VerifyTest": { + "paramName": "", + "paramType": "", + "comments": [ + " Register a response to a test.", + "", + " In cases where a test involves registering a final answer at the", + " end of the test, this method provides the means to do so.", + "" + ] + }, + "Session:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the session. The ID must conform to ^[a-z]+$", + " If this is not provided, Showcase chooses one at random." + ] + }, + "Session:version": { + "paramName": "version", + "paramType": ".google.showcase.v1beta1.Session.Version", + "comments": [ + " Required. The version this session is using." + ] + }, + "CreateSessionRequest:session": { + "paramName": "session", + "paramType": ".google.showcase.v1beta1.Session", + "comments": [ + " The session to be created.", + " Sessions are immutable once they are created (although they can", + " be deleted)." + ] + }, + "GetSessionRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The session to be retrieved." + ] + }, + "ListSessionsRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of sessions to return per page." + ] + }, + "ListSessionsRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The page token, for retrieving subsequent pages." + ] + }, + "ListSessionsResponse:sessions": { + "paramName": "sessions", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The sessions being returned." + ] + }, + "ListSessionsResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The next page token, if any.", + " An empty value here means the last page has been reached." + ] + }, + "DeleteSessionRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The session to be deleted." + ] + }, + "ReportSessionRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The session to be reported on." + ] + }, + "ReportSessionResponse:result": { + "paramName": "result", + "paramType": ".google.showcase.v1beta1.ReportSessionResponse.Result", + "comments": [ + " The state of the report." + ] + }, + "ReportSessionResponse:test_runs": { + "paramName": "test_runs", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The test runs of this session." + ] + }, + "Test:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the test.", + " The tests/* portion of the names are hard-coded, and do not change", + " from session to session." + ] + }, + "Test:expectation_level": { + "paramName": "expectation_level", + "paramType": ".google.showcase.v1beta1.Test.ExpectationLevel", + "comments": [ + " The expectation level for this test." + ] + }, + "Test:description": { + "paramName": "description", + "paramType": "TYPE_STRING", + "comments": [ + " A description of the test." + ] + }, + "Test:blueprints": { + "paramName": "blueprints", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The blueprints that will satisfy this test. There may be multiple blueprints", + " that can signal to the server that this test case is being exercised. Although", + " multiple blueprints are specified, only a single blueprint needs to be run to", + " signal that the test case was exercised." + ] + }, + "Issue:type": { + "paramName": "type", + "paramType": ".google.showcase.v1beta1.Issue.Type", + "comments": [ + " The type of the issue." + ] + }, + "Issue:severity": { + "paramName": "severity", + "paramType": ".google.showcase.v1beta1.Issue.Severity", + "comments": [ + " The severity of the issue." + ] + }, + "Issue:description": { + "paramName": "description", + "paramType": "TYPE_STRING", + "comments": [ + " A description of the issue." + ] + }, + "ListTestsRequest:parent": { + "paramName": "parent", + "paramType": "TYPE_STRING", + "comments": [ + " The session." + ] + }, + "ListTestsRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of tests to return per page." + ] + }, + "ListTestsRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The page token, for retrieving subsequent pages." + ] + }, + "ListTestsResponse:tests": { + "paramName": "tests", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The tests being returned." + ] + }, + "ListTestsResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The next page token, if any.", + " An empty value here means the last page has been reached." + ] + }, + "TestRun:test": { + "paramName": "test", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the test.", + " The tests/* portion of the names are hard-coded, and do not change", + " from session to session." + ] + }, + "TestRun:issue": { + "paramName": "issue", + "paramType": ".google.showcase.v1beta1.Issue", + "comments": [ + " An issue found with the test run. If empty, this test run was successful." + ] + }, + "DeleteTestRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The test to be deleted." + ] + }, + "VerifyTestRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The test to have an answer registered to it." + ] + }, + "VerifyTestRequest:answer": { + "paramName": "answer", + "paramType": "TYPE_BYTES", + "comments": [ + " The answer from the test." + ] + }, + "VerifyTestRequest:answers": { + "paramName": "answers", + "paramType": "TYPE_BYTES[]", + "comments": [ + " The answers from the test if multiple are to be checked" + ] + }, + "VerifyTestResponse:issue": { + "paramName": "issue", + "paramType": ".google.showcase.v1beta1.Issue", + "comments": [ + " An issue if check answer was unsuccessful. This will be empty if the check answer succeeded." + ] + } + } + }, + "retryableCodeMap": { + "codeEnumMapping": { + "0": "OK", + "1": "CANCELLED", + "2": "UNKNOWN", + "3": "INVALID_ARGUMENT", + "4": "DEADLINE_EXCEEDED", + "5": "NOT_FOUND", + "6": "ALREADY_EXISTS", + "7": "PERMISSION_DENIED", + "8": "RESOURCE_EXHAUSTED", + "9": "FAILED_PRECONDITION", + "10": "ABORTED", + "11": "OUT_OF_RANGE", + "12": "UNIMPLEMENTED", + "13": "INTERNAL", + "14": "UNAVAILABLE", + "15": "DATA_LOSS", + "16": "UNAUTHENTICATED", + "OK": "0", + "CANCELLED": "1", + "UNKNOWN": "2", + "INVALID_ARGUMENT": "3", + "DEADLINE_EXCEEDED": "4", + "NOT_FOUND": "5", + "ALREADY_EXISTS": "6", + "PERMISSION_DENIED": "7", + "RESOURCE_EXHAUSTED": "8", + "FAILED_PRECONDITION": "9", + "ABORTED": "10", + "OUT_OF_RANGE": "11", + "UNIMPLEMENTED": "12", + "INTERNAL": "13", + "UNAVAILABLE": "14", + "DATA_LOSS": "15", + "UNAUTHENTICATED": "16" + }, + "uniqueCodesNamesMap": { + "": "non_idempotent", + "deadline_exceeded_unavailable": "idempotent" + }, + "prettyCodesNamesMap": { + "non_idempotent": [], + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ] + }, + "uniqueParamsNamesMap": { + "94312e9926796a52a8fcbbedaac41972e07ccd1c": "default" + }, + "prettyParamNamesMap": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + } + } + }, + "grpcServiceConfig": {}, + "bundleConfigs": [], + "bundleConfigsMethods": [], + "simpleMethods": [ + { + "inputInterface": ".google.showcase.v1beta1.CreateUserRequest", + "outputInterface": ".google.showcase.v1beta1.User", + "comments": [ + " Creates a user.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "CreateUser", + "inputType": ".google.showcase.v1beta1.CreateUserRequest", + "outputType": ".google.showcase.v1beta1.User", + "options": { + ".google.api.methodSignature": [ + "user.display_name,user.email", + "user.display_name,user.email,user.age,user.nickname,user.enable_notifications,user.height_feet" + ], + ".google.api.http": { + "post": "/v1beta1/users", + "body": "*", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "user", + "paramType": ".google.showcase.v1beta1.User", + "comments": [ + " The user to create." + ] + } + ], + "headerRequestParams": [] + }, + { + "inputInterface": ".google.showcase.v1beta1.GetUserRequest", + "outputInterface": ".google.showcase.v1beta1.User", + "comments": [ + " Retrieves the User with the given uri.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "GetUser", + "inputType": ".google.showcase.v1beta1.GetUserRequest", + "outputType": ".google.showcase.v1beta1.User", + "options": { + ".google.api.methodSignature": [ + "name" + ], + ".google.api.http": { + "get": "/v1beta1/{name=users/*}", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested user." + ], + "fieldBehavior": 2 + } + ], + "headerRequestParams": [ + [ + "name" + ] + ] + }, + { + "inputInterface": ".google.showcase.v1beta1.UpdateUserRequest", + "outputInterface": ".google.showcase.v1beta1.User", + "comments": [ + " Updates a user.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "UpdateUser", + "inputType": ".google.showcase.v1beta1.UpdateUserRequest", + "outputType": ".google.showcase.v1beta1.User", + "options": { + ".google.api.http": { + "patch": "/v1beta1/{user.name=users/*}", + "body": "user", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "user", + "paramType": ".google.showcase.v1beta1.User", + "comments": [ + " The user to update." + ] + }, + { + "paramName": "update_mask", + "paramType": ".google.protobuf.FieldMask", + "comments": [ + " The field mask to determine which fields are to be updated. If empty, the", + " server will assume all fields are to be updated." + ] + } + ], + "headerRequestParams": [ + [ + "user", + "name" + ] + ] + }, + { + "inputInterface": ".google.showcase.v1beta1.DeleteUserRequest", + "outputInterface": ".google.protobuf.Empty", + "comments": [ + " Deletes a user, their profile, and all of their authored messages.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "DeleteUser", + "inputType": ".google.showcase.v1beta1.DeleteUserRequest", + "outputType": ".google.protobuf.Empty", + "options": { + ".google.api.methodSignature": [ + "name" + ], + ".google.api.http": { + "delete": "/v1beta1/{name=users/*}", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the user to delete." + ], + "fieldBehavior": 2 + } + ], + "headerRequestParams": [ + [ + "name" + ] + ] + } + ], + "longRunning": [], + "diregapicLRO": [], + "streaming": [], + "clientStreaming": [], + "serverStreaming": [], + "bidiStreaming": [], + "paging": [ + { + "pagingFieldName": "users", + "pagingResponseType": ".google.showcase.v1beta1.User", + "inputInterface": ".google.showcase.v1beta1.ListUsersRequest", + "outputInterface": ".google.showcase.v1beta1.ListUsersResponse", + "comments": [ + " Lists all users.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "ListUsers", + "inputType": ".google.showcase.v1beta1.ListUsersRequest", + "outputType": ".google.showcase.v1beta1.ListUsersResponse", + "options": { + ".google.api.http": { + "get": "/v1beta1/users", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of users to return. Server may return fewer users", + " than requested. If unspecified, server will pick an appropriate default." + ] + }, + { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The value of google.showcase.v1beta1.ListUsersResponse.next_page_token", + " returned from the previous call to", + " `google.showcase.v1beta1.Identity\\ListUsers` method." + ] + } + ], + "headerRequestParams": [] + } + ], + "hostname": "localhost", + "port": 7469, + "oauthScopes": [], + "pathTemplates": [ + { + "name": "Blueprint", + "params": [ + "session", + "test", + "blueprint" + ], + "type": "showcase.googleapis.com/Blueprint", + "pattern": [ + "sessions/{session}/tests/{test}/blueprints/{blueprint}" + ] + }, + { + "name": "Room", + "params": [ + "room" + ], + "type": "showcase.googleapis.com/Room", + "pattern": [ + "rooms/{room}" + ] + }, + { + "name": "room_blurb", + "params": [ + "room", + "blurb" + ], + "pattern": [ + "rooms/{room}/blurbs/{blurb}" + ], + "type": "showcase.googleapis.com/Blurb" + }, + { + "name": "room_blurbs_legacy_room_blurb", + "params": [ + "room", + "legacy_room", + "blurb" + ], + "pattern": [ + "rooms/{room}/blurbs/legacy/{legacy_room}.{blurb}" + ], + "type": "showcase.googleapis.com/Blurb" + }, + { + "name": "Sequence", + "params": [ + "sequence" + ], + "type": "showcase.googleapis.com/Sequence", + "pattern": [ + "sequences/{sequence}" + ] + }, + { + "name": "SequenceReport", + "params": [ + "sequence" + ], + "type": "showcase.googleapis.com/SequenceReport", + "pattern": [ + "sequences/{sequence}/sequenceReport" + ] + }, + { + "name": "Session", + "params": [ + "session" + ], + "type": "showcase.googleapis.com/Session", + "pattern": [ + "sessions/{session}" + ] + }, + { + "name": "Test", + "params": [ + "session", + "test" + ], + "type": "showcase.googleapis.com/Test", + "pattern": [ + "sessions/{session}/tests/{test}" + ] + }, + { + "name": "User", + "params": [ + "user" + ], + "type": "showcase.googleapis.com/User", + "pattern": [ + "users/{user}" + ] + }, + { + "name": "user_profile_blurb", + "params": [ + "user", + "blurb" + ], + "pattern": [ + "users/{user}/profile/blurbs/{blurb}" + ], + "type": "showcase.googleapis.com/Blurb" + }, + { + "name": "user_profile_blurbs_legacy_user_blurb", + "params": [ + "user", + "legacy_user", + "blurb" + ], + "pattern": [ + "users/{user}/profile/blurbs/legacy/{legacy_user}~{blurb}" + ], + "type": "showcase.googleapis.com/Blurb" + } + ] + }, + { + "name": "Messaging", + "method": [ + { + "inputInterface": ".google.showcase.v1beta1.CreateRoomRequest", + "outputInterface": ".google.showcase.v1beta1.Room", + "comments": [ + " Creates a room.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "CreateRoom", + "inputType": ".google.showcase.v1beta1.CreateRoomRequest", + "outputType": ".google.showcase.v1beta1.Room", + "options": { + ".google.api.methodSignature": [ + "room.display_name,room.description" + ], + ".google.api.http": { + "post": "/v1beta1/rooms", + "body": "*", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "room", + "paramType": ".google.showcase.v1beta1.Room", + "comments": [ + " The room to create." + ] + } + ], + "headerRequestParams": [] + }, + { + "inputInterface": ".google.showcase.v1beta1.GetRoomRequest", + "outputInterface": ".google.showcase.v1beta1.Room", + "comments": [ + " Retrieves the Room with the given resource name.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "GetRoom", + "inputType": ".google.showcase.v1beta1.GetRoomRequest", + "outputType": ".google.showcase.v1beta1.Room", + "options": { + ".google.api.methodSignature": [ + "name" + ], + ".google.api.http": { + "get": "/v1beta1/{name=rooms/*}", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested room." + ], + "fieldBehavior": 2 + } + ], + "headerRequestParams": [ + [ + "name" + ] + ] + }, + { + "inputInterface": ".google.showcase.v1beta1.UpdateRoomRequest", + "outputInterface": ".google.showcase.v1beta1.Room", + "comments": [ + " Updates a room.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "UpdateRoom", + "inputType": ".google.showcase.v1beta1.UpdateRoomRequest", + "outputType": ".google.showcase.v1beta1.Room", + "options": { + ".google.api.http": { + "patch": "/v1beta1/{room.name=rooms/*}", + "body": "room", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "room", + "paramType": ".google.showcase.v1beta1.Room", + "comments": [ + " The room to update." + ] + }, + { + "paramName": "update_mask", + "paramType": ".google.protobuf.FieldMask", + "comments": [ + " The field mask to determine which fields are to be updated. If empty, the", + " server will assume all fields are to be updated." + ] + } + ], + "headerRequestParams": [ + [ + "room", + "name" + ] + ] + }, + { + "inputInterface": ".google.showcase.v1beta1.DeleteRoomRequest", + "outputInterface": ".google.protobuf.Empty", + "comments": [ + " Deletes a room and all of its blurbs.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "DeleteRoom", + "inputType": ".google.showcase.v1beta1.DeleteRoomRequest", + "outputType": ".google.protobuf.Empty", + "options": { + ".google.api.methodSignature": [ + "name" + ], + ".google.api.http": { + "delete": "/v1beta1/{name=rooms/*}", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested room." + ], + "fieldBehavior": 2 + } + ], + "headerRequestParams": [ + [ + "name" + ] + ] + }, + { + "pagingFieldName": "rooms", + "pagingResponseType": ".google.showcase.v1beta1.Room", + "inputInterface": ".google.showcase.v1beta1.ListRoomsRequest", + "outputInterface": ".google.showcase.v1beta1.ListRoomsResponse", + "comments": [ + " Lists all chat rooms.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "ListRooms", + "inputType": ".google.showcase.v1beta1.ListRoomsRequest", + "outputType": ".google.showcase.v1beta1.ListRoomsResponse", + "options": { + ".google.api.http": { + "get": "/v1beta1/rooms", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of rooms return. Server may return fewer rooms", + " than requested. If unspecified, server will pick an appropriate default." + ] + }, + { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The value of google.showcase.v1beta1.ListRoomsResponse.next_page_token", + " returned from the previous call to", + " `google.showcase.v1beta1.Messaging\\ListRooms` method." + ] + } + ], + "headerRequestParams": [] + }, + { + "inputInterface": ".google.showcase.v1beta1.CreateBlurbRequest", + "outputInterface": ".google.showcase.v1beta1.Blurb", + "comments": [ + " Creates a blurb. If the parent is a room, the blurb is understood to be a", + " message in that room. If the parent is a profile, the blurb is understood", + " to be a post on the profile.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "CreateBlurb", + "inputType": ".google.showcase.v1beta1.CreateBlurbRequest", + "outputType": ".google.showcase.v1beta1.Blurb", + "options": { + ".google.api.methodSignature": [ + "parent,blurb.user,blurb.text", + "parent,blurb.user,blurb.image" + ], + ".google.api.http": { + "post": "/v1beta1/{parent=rooms/*}/blurbs", + "body": "*", + "additionalBindings": [ + { + "post": "/v1beta1/{parent=users/*/profile}/blurbs", + "body": "*" + } + ] + } + }, + "paramComment": [ + { + "paramName": "parent", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the chat room or user profile that this blurb will", + " be tied to." + ], + "fieldBehavior": 2 + }, + { + "paramName": "blurb", + "paramType": ".google.showcase.v1beta1.Blurb", + "comments": [ + " The blurb to create." + ] + } + ], + "headerRequestParams": [ + [ + "parent" + ] + ] + }, + { + "inputInterface": ".google.showcase.v1beta1.GetBlurbRequest", + "outputInterface": ".google.showcase.v1beta1.Blurb", + "comments": [ + " Retrieves the Blurb with the given resource name.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "GetBlurb", + "inputType": ".google.showcase.v1beta1.GetBlurbRequest", + "outputType": ".google.showcase.v1beta1.Blurb", + "options": { + ".google.api.methodSignature": [ + "name" + ], + ".google.api.http": { + "get": "/v1beta1/{name=rooms/*/blurbs/*}", + "additionalBindings": [ + { + "get": "/v1beta1/{name=users/*/profile/blurbs/*}" + } + ] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested blurb." + ], + "fieldBehavior": 2 + } + ], + "headerRequestParams": [ + [ + "name" + ] + ] + }, + { + "inputInterface": ".google.showcase.v1beta1.UpdateBlurbRequest", + "outputInterface": ".google.showcase.v1beta1.Blurb", + "comments": [ + " Updates a blurb.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "UpdateBlurb", + "inputType": ".google.showcase.v1beta1.UpdateBlurbRequest", + "outputType": ".google.showcase.v1beta1.Blurb", + "options": { + ".google.api.http": { + "patch": "/v1beta1/{blurb.name=rooms/*/blurbs/*}", + "body": "blurb", + "additionalBindings": [ + { + "patch": "/v1beta1/{blurb.name=users/*/profile/blurbs/*}", + "body": "blurb" + } + ] + } + }, + "paramComment": [ + { + "paramName": "blurb", + "paramType": ".google.showcase.v1beta1.Blurb", + "comments": [ + " The blurb to update." + ] + }, + { + "paramName": "update_mask", + "paramType": ".google.protobuf.FieldMask", + "comments": [ + " The field mask to determine wich fields are to be updated. If empty, the", + " server will assume all fields are to be updated." + ] + } + ], + "headerRequestParams": [ + [ + "blurb", + "name" + ] + ] + }, + { + "inputInterface": ".google.showcase.v1beta1.DeleteBlurbRequest", + "outputInterface": ".google.protobuf.Empty", + "comments": [ + " Deletes a blurb.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "DeleteBlurb", + "inputType": ".google.showcase.v1beta1.DeleteBlurbRequest", + "outputType": ".google.protobuf.Empty", + "options": { + ".google.api.methodSignature": [ + "name" + ], + ".google.api.http": { + "delete": "/v1beta1/{name=rooms/*/blurbs/*}", + "additionalBindings": [ + { + "delete": "/v1beta1/{name=users/*/profile/blurbs/*}" + } + ] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested blurb." + ], + "fieldBehavior": 2 + } + ], + "headerRequestParams": [ + [ + "name" + ] + ] + }, + { + "pagingFieldName": "blurbs", + "pagingResponseType": ".google.showcase.v1beta1.Blurb", + "inputInterface": ".google.showcase.v1beta1.ListBlurbsRequest", + "outputInterface": ".google.showcase.v1beta1.ListBlurbsResponse", + "comments": [ + " Lists blurbs for a specific chat room or user profile depending on the", + " parent resource name.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "ListBlurbs", + "inputType": ".google.showcase.v1beta1.ListBlurbsRequest", + "outputType": ".google.showcase.v1beta1.ListBlurbsResponse", + "options": { + ".google.api.methodSignature": [ + "parent" + ], + ".google.api.http": { + "get": "/v1beta1/{parent=rooms/*}/blurbs", + "additionalBindings": [ + { + "get": "/v1beta1/{parent=users/*/profile}/blurbs" + } + ] + } + }, + "paramComment": [ + { + "paramName": "parent", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested room or profile whos blurbs to list." + ], + "fieldBehavior": 2 + }, + { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of blurbs to return. Server may return fewer", + " blurbs than requested. If unspecified, server will pick an appropriate", + " default." + ] + }, + { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The value of google.showcase.v1beta1.ListBlurbsResponse.next_page_token", + " returned from the previous call to", + " `google.showcase.v1beta1.Messaging\\ListBlurbs` method." + ] + } + ], + "headerRequestParams": [ + [ + "parent" + ] + ] + }, + { + "longRunning": { + "responseType": "SearchBlurbsResponse", + "metadataType": "SearchBlurbsMetadata" + }, + "longRunningResponseType": ".google.showcase.v1beta1.SearchBlurbsResponse", + "longRunningMetadataType": ".google.showcase.v1beta1.SearchBlurbsMetadata", + "inputInterface": ".google.showcase.v1beta1.SearchBlurbsRequest", + "outputInterface": ".google.longrunning.Operation", + "comments": [ + " This method searches through all blurbs across all rooms and profiles", + " for blurbs containing to words found in the query. Only posts that", + " contain an exact match of a queried word will be returned.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "SearchBlurbs", + "inputType": ".google.showcase.v1beta1.SearchBlurbsRequest", + "outputType": ".google.longrunning.Operation", + "options": { + ".google.longrunning.operationInfo": { + "responseType": "SearchBlurbsResponse", + "metadataType": "SearchBlurbsMetadata" + }, + ".google.api.methodSignature": [ + "parent,query" + ], + ".google.api.http": { + "post": "/v1beta1/{parent=rooms/*}/blurbs:search", + "body": "*", + "additionalBindings": [ + { + "post": "/v1beta1/{parent=users/*/profile}/blurbs:search" + } + ] + } + }, + "paramComment": [ + { + "paramName": "query", + "paramType": "TYPE_STRING", + "comments": [ + " The query used to search for blurbs containing to words of this string.", + " Only posts that contain an exact match of a queried word will be returned." + ], + "fieldBehavior": 2 + }, + { + "paramName": "parent", + "paramType": "TYPE_STRING", + "comments": [ + " The rooms or profiles to search. If unset, `SearchBlurbs` will search all", + " rooms and all profiles." + ] + }, + { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of blurbs return. Server may return fewer", + " blurbs than requested. If unspecified, server will pick an appropriate", + " default." + ] + }, + { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The value of", + " google.showcase.v1beta1.SearchBlurbsResponse.next_page_token", + " returned from the previous call to", + " `google.showcase.v1beta1.Messaging\\SearchBlurbs` method." + ] + } + ], + "headerRequestParams": [ + [ + "parent" + ] + ] + }, + { + "streaming": "SERVER_STREAMING", + "inputInterface": ".google.showcase.v1beta1.StreamBlurbsRequest", + "outputInterface": ".google.showcase.v1beta1.StreamBlurbsResponse", + "comments": [ + " This returns a stream that emits the blurbs that are created for a", + " particular chat room or user profile.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "StreamBlurbs", + "inputType": ".google.showcase.v1beta1.StreamBlurbsRequest", + "outputType": ".google.showcase.v1beta1.StreamBlurbsResponse", + "options": { + ".google.api.http": { + "post": "/v1beta1/{name=rooms/*}/blurbs:stream", + "body": "*", + "additionalBindings": [ + { + "post": "/v1beta1/{name=users/*/profile}/blurbs:stream", + "body": "*" + } + ] + } + }, + "serverStreaming": true, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of a chat room or user profile whose blurbs to stream." + ], + "fieldBehavior": 2 + }, + { + "paramName": "expire_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The time at which this stream will close." + ], + "fieldBehavior": 2 + } + ], + "headerRequestParams": [ + [ + "name" + ] + ] + }, + { + "streaming": "CLIENT_STREAMING", + "inputInterface": ".google.showcase.v1beta1.CreateBlurbRequest", + "outputInterface": ".google.showcase.v1beta1.SendBlurbsResponse", + "comments": [ + " This is a stream to create multiple blurbs. If an invalid blurb is", + " requested to be created, the stream will close with an error.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "SendBlurbs", + "inputType": ".google.showcase.v1beta1.CreateBlurbRequest", + "outputType": ".google.showcase.v1beta1.SendBlurbsResponse", + "options": { + ".google.api.http": { + "post": "/v1beta1/{parent=rooms/*}/blurbs:send", + "body": "*", + "additionalBindings": [ + { + "post": "/v1beta1/{parent=users/*/profile}/blurbs:send", + "body": "*" + } + ] + } + }, + "clientStreaming": true, + "paramComment": [ + { + "paramName": "parent", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the chat room or user profile that this blurb will", + " be tied to." + ], + "fieldBehavior": 2 + }, + { + "paramName": "blurb", + "paramType": ".google.showcase.v1beta1.Blurb", + "comments": [ + " The blurb to create." + ] + } + ], + "headerRequestParams": [ + [ + "parent" + ] + ] + }, + { + "streaming": "BIDI_STREAMING", + "inputInterface": ".google.showcase.v1beta1.ConnectRequest", + "outputInterface": ".google.showcase.v1beta1.StreamBlurbsResponse", + "comments": [ + " This method starts a bidirectional stream that receives all blurbs that", + " are being created after the stream has started and sends requests to create", + " blurbs. If an invalid blurb is requested to be created, the stream will", + " close with an error.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "Connect", + "inputType": ".google.showcase.v1beta1.ConnectRequest", + "outputType": ".google.showcase.v1beta1.StreamBlurbsResponse", + "clientStreaming": true, + "serverStreaming": true, + "paramComment": [ + { + "paramName": "config", + "paramType": ".google.showcase.v1beta1.ConnectRequest.ConnectConfig", + "comments": [ + " Provides information that specifies how to process subsequent requests.", + " The first `ConnectRequest` message must contain a `config` message." + ] + }, + { + "paramName": "blurb", + "paramType": ".google.showcase.v1beta1.Blurb", + "comments": [ + " The blurb to be created." + ] + } + ], + "headerRequestParams": [] + } + ], + "options": { + ".google.api.defaultHost": "localhost:7469" + }, + "packageName": "google.showcase.v1beta1", + "protoFile": "google/showcase/v1beta1/messaging.proto", + "IAMPolicyMixin": 0, + "LocationMixin": 0, + "comments": [ + " A simple messaging service that implements chat rooms and profile posts.", + "", + " This messaging service showcases the features that API clients", + " generated by gapic-generators implement." + ], + "commentsMap": { + "comments": { + "Http:rules": { + "paramName": "rules", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " A list of HTTP configuration rules that apply to individual API methods.", + "", + " **NOTE:** All service configuration rules follow \"last one wins\" order." + ] + }, + "Http:fully_decode_reserved_expansion": { + "paramName": "fully_decode_reserved_expansion", + "paramType": "TYPE_BOOL", + "comments": [ + " When set to true, URL path parameters will be fully URI-decoded except in", + " cases of single segment matches in reserved expansion, where \"%2F\" will be", + " left encoded.", + "", + " The default behavior is to not decode RFC 6570 reserved characters in multi", + " segment matches." + ] + }, + "HttpRule:selector": { + "paramName": "selector", + "paramType": "TYPE_STRING", + "comments": [ + " Selects a method to which this rule applies.", + "", + " Refer to [selector][google.api.DocumentationRule.selector] for syntax", + " details." + ] + }, + "HttpRule:get": { + "paramName": "get", + "paramType": "TYPE_STRING", + "comments": [ + " Maps to HTTP GET. Used for listing and getting information about", + " resources." + ] + }, + "HttpRule:put": { + "paramName": "put", + "paramType": "TYPE_STRING", + "comments": [ + " Maps to HTTP PUT. Used for replacing a resource." + ] + }, + "HttpRule:post": { + "paramName": "post", + "paramType": "TYPE_STRING", + "comments": [ + " Maps to HTTP POST. Used for creating a resource or performing an action." + ] + }, + "HttpRule:delete": { + "paramName": "delete", + "paramType": "TYPE_STRING", + "comments": [ + " Maps to HTTP DELETE. Used for deleting a resource." + ] + }, + "HttpRule:patch": { + "paramName": "patch", + "paramType": "TYPE_STRING", + "comments": [ + " Maps to HTTP PATCH. Used for updating a resource." + ] + }, + "HttpRule:custom": { + "paramName": "custom", + "paramType": ".google.api.CustomHttpPattern", + "comments": [ + " The custom pattern is used for specifying an HTTP method that is not", + " included in the `pattern` field, such as HEAD, or \"*\" to leave the", + " HTTP method unspecified for this rule. The wild-card rule is useful", + " for services that provide content to Web (HTML) clients." + ] + }, + "HttpRule:body": { + "paramName": "body", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the request field whose value is mapped to the HTTP request", + " body, or `*` for mapping all request fields not captured by the path", + " pattern to the HTTP body, or omitted for not having any HTTP request body.", + "", + " NOTE: the referred field must be present at the top-level of the request", + " message type." + ] + }, + "HttpRule:response_body": { + "paramName": "response_body", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. The name of the response field whose value is mapped to the HTTP", + " response body. When omitted, the entire response message will be used", + " as the HTTP response body.", + "", + " NOTE: The referred field must be present at the top-level of the response", + " message type." + ] + }, + "HttpRule:additional_bindings": { + "paramName": "additional_bindings", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Additional HTTP bindings for the selector. Nested bindings must", + " not contain an `additional_bindings` field themselves (that is,", + " the nesting may only be one level deep)." + ] + }, + "CustomHttpPattern:kind": { + "paramName": "kind", + "paramType": "TYPE_STRING", + "comments": [ + " The name of this custom HTTP verb." + ] + }, + "CustomHttpPattern:path": { + "paramName": "path", + "paramType": "TYPE_STRING", + "comments": [ + " The path matched by this custom verb." + ] + }, + "FileDescriptorSet:file": { + "paramName": "file", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "FileDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "FileDescriptorProto:package": { + "paramName": "package", + "paramType": "TYPE_STRING", + "comments": [] + }, + "FileDescriptorProto:dependency": { + "paramName": "dependency", + "paramType": "TYPE_STRING[]", + "comments": [ + " Names of files imported by this file." + ] + }, + "FileDescriptorProto:public_dependency": { + "paramName": "public_dependency", + "paramType": "TYPE_INT32[]", + "comments": [ + " Indexes of the public imported files in the dependency list above." + ] + }, + "FileDescriptorProto:weak_dependency": { + "paramName": "weak_dependency", + "paramType": "TYPE_INT32[]", + "comments": [ + " Indexes of the weak imported files in the dependency list.", + " For Google-internal migration only. Do not use." + ] + }, + "FileDescriptorProto:message_type": { + "paramName": "message_type", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " All top-level definitions in this file." + ] + }, + "FileDescriptorProto:enum_type": { + "paramName": "enum_type", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "FileDescriptorProto:service": { + "paramName": "service", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "FileDescriptorProto:extension": { + "paramName": "extension", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "FileDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.FileOptions", + "comments": [] + }, + "FileDescriptorProto:source_code_info": { + "paramName": "source_code_info", + "paramType": ".google.protobuf.SourceCodeInfo", + "comments": [ + " This field contains optional information about the original source code.", + " You may safely remove this entire field without harming runtime", + " functionality of the descriptors -- the information is needed only by", + " development tools." + ] + }, + "FileDescriptorProto:syntax": { + "paramName": "syntax", + "paramType": "TYPE_STRING", + "comments": [ + " The syntax of the proto file.", + " The supported values are \"proto2\", \"proto3\", and \"editions\".", + "", + " If `edition` is present, this value must be \"editions\"." + ] + }, + "FileDescriptorProto:edition": { + "paramName": "edition", + "paramType": "TYPE_STRING", + "comments": [ + " The edition of the proto file, which is an opaque string." + ] + }, + "DescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "DescriptorProto:field": { + "paramName": "field", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:extension": { + "paramName": "extension", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:nested_type": { + "paramName": "nested_type", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:enum_type": { + "paramName": "enum_type", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:extension_range": { + "paramName": "extension_range", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:oneof_decl": { + "paramName": "oneof_decl", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.MessageOptions", + "comments": [] + }, + "DescriptorProto:reserved_range": { + "paramName": "reserved_range", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:reserved_name": { + "paramName": "reserved_name", + "paramType": "TYPE_STRING[]", + "comments": [ + " Reserved field names, which may not be used by fields in the same message.", + " A given name may only be reserved once." + ] + }, + "ExtensionRangeOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "ExtensionRangeOptions:declaration": { + "paramName": "declaration", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " For external users: DO NOT USE. We are in the process of open sourcing", + " extension declaration and executing internal cleanups before it can be", + " used externally." + ] + }, + "ExtensionRangeOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "ExtensionRangeOptions:verification": { + "paramName": "verification", + "paramType": ".google.protobuf.ExtensionRangeOptions.VerificationState", + "comments": [ + " The verification state of the range.", + " TODO(b/278783756): flip the default to DECLARATION once all empty ranges", + " are marked as UNVERIFIED." + ] + }, + "FieldDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "FieldDescriptorProto:number": { + "paramName": "number", + "paramType": "TYPE_INT32", + "comments": [] + }, + "FieldDescriptorProto:label": { + "paramName": "label", + "paramType": ".google.protobuf.FieldDescriptorProto.Label", + "comments": [] + }, + "FieldDescriptorProto:type": { + "paramName": "type", + "paramType": ".google.protobuf.FieldDescriptorProto.Type", + "comments": [ + " If type_name is set, this need not be set. If both this and type_name", + " are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP." + ] + }, + "FieldDescriptorProto:type_name": { + "paramName": "type_name", + "paramType": "TYPE_STRING", + "comments": [ + " For message and enum types, this is the name of the type. If the name", + " starts with a '.', it is fully-qualified. Otherwise, C++-like scoping", + " rules are used to find the type (i.e. first the nested types within this", + " message are searched, then within the parent, on up to the root", + " namespace)." + ] + }, + "FieldDescriptorProto:extendee": { + "paramName": "extendee", + "paramType": "TYPE_STRING", + "comments": [ + " For extensions, this is the name of the type being extended. It is", + " resolved in the same manner as type_name." + ] + }, + "FieldDescriptorProto:default_value": { + "paramName": "default_value", + "paramType": "TYPE_STRING", + "comments": [ + " For numeric types, contains the original text representation of the value.", + " For booleans, \"true\" or \"false\".", + " For strings, contains the default text contents (not escaped in any way).", + " For bytes, contains the C escaped value. All bytes >= 128 are escaped." + ] + }, + "FieldDescriptorProto:oneof_index": { + "paramName": "oneof_index", + "paramType": "TYPE_INT32", + "comments": [ + " If set, gives the index of a oneof in the containing type's oneof_decl", + " list. This field is a member of that oneof." + ] + }, + "FieldDescriptorProto:json_name": { + "paramName": "json_name", + "paramType": "TYPE_STRING", + "comments": [ + " JSON name of this field. The value is set by protocol compiler. If the", + " user has set a \"json_name\" option on this field, that option's value", + " will be used. Otherwise, it's deduced from the field's name by converting", + " it to camelCase." + ] + }, + "FieldDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.FieldOptions", + "comments": [] + }, + "FieldDescriptorProto:proto3_optional": { + "paramName": "proto3_optional", + "paramType": "TYPE_BOOL", + "comments": [ + " If true, this is a proto3 \"optional\". When a proto3 field is optional, it", + " tracks presence regardless of field type.", + "", + " When proto3_optional is true, this field must be belong to a oneof to", + " signal to old proto3 clients that presence is tracked for this field. This", + " oneof is known as a \"synthetic\" oneof, and this field must be its sole", + " member (each proto3 optional field gets its own synthetic oneof). Synthetic", + " oneofs exist in the descriptor only, and do not generate any API. Synthetic", + " oneofs must be ordered after all \"real\" oneofs.", + "", + " For message fields, proto3_optional doesn't create any semantic change,", + " since non-repeated message fields always track presence. However it still", + " indicates the semantic detail of whether the user wrote \"optional\" or not.", + " This can be useful for round-tripping the .proto file. For consistency we", + " give message fields a synthetic oneof also, even though it is not required", + " to track presence. This is especially important because the parser can't", + " tell if a field is a message or an enum, so it must always create a", + " synthetic oneof.", + "", + " Proto2 optional fields do not set this flag, because they already indicate", + " optional with `LABEL_OPTIONAL`." + ] + }, + "OneofDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "OneofDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.OneofOptions", + "comments": [] + }, + "EnumDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "EnumDescriptorProto:value": { + "paramName": "value", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "EnumDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.EnumOptions", + "comments": [] + }, + "EnumDescriptorProto:reserved_range": { + "paramName": "reserved_range", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Range of reserved numeric values. Reserved numeric values may not be used", + " by enum values in the same enum declaration. Reserved ranges may not", + " overlap." + ] + }, + "EnumDescriptorProto:reserved_name": { + "paramName": "reserved_name", + "paramType": "TYPE_STRING[]", + "comments": [ + " Reserved enum value names, which may not be reused. A given name may only", + " be reserved once." + ] + }, + "EnumValueDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "EnumValueDescriptorProto:number": { + "paramName": "number", + "paramType": "TYPE_INT32", + "comments": [] + }, + "EnumValueDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.EnumValueOptions", + "comments": [] + }, + "ServiceDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ServiceDescriptorProto:method": { + "paramName": "method", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "ServiceDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.ServiceOptions", + "comments": [] + }, + "MethodDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "MethodDescriptorProto:input_type": { + "paramName": "input_type", + "paramType": "TYPE_STRING", + "comments": [ + " Input and output type names. These are resolved in the same way as", + " FieldDescriptorProto.type_name, but must refer to a message type." + ] + }, + "MethodDescriptorProto:output_type": { + "paramName": "output_type", + "paramType": "TYPE_STRING", + "comments": [] + }, + "MethodDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.MethodOptions", + "comments": [] + }, + "MethodDescriptorProto:client_streaming": { + "paramName": "client_streaming", + "paramType": "TYPE_BOOL", + "comments": [ + " Identifies if client streams multiple client messages" + ] + }, + "MethodDescriptorProto:server_streaming": { + "paramName": "server_streaming", + "paramType": "TYPE_BOOL", + "comments": [ + " Identifies if server streams multiple server messages" + ] + }, + "FileOptions:java_package": { + "paramName": "java_package", + "paramType": "TYPE_STRING", + "comments": [ + " Sets the Java package where classes generated from this .proto will be", + " placed. By default, the proto package is used, but this is often", + " inappropriate because proto packages do not normally start with backwards", + " domain names." + ] + }, + "FileOptions:java_outer_classname": { + "paramName": "java_outer_classname", + "paramType": "TYPE_STRING", + "comments": [ + " Controls the name of the wrapper Java class generated for the .proto file.", + " That class will always contain the .proto file's getDescriptor() method as", + " well as any top-level extensions defined in the .proto file.", + " If java_multiple_files is disabled, then all the other classes from the", + " .proto file will be nested inside the single wrapper outer class." + ] + }, + "FileOptions:java_multiple_files": { + "paramName": "java_multiple_files", + "paramType": "TYPE_BOOL", + "comments": [ + " If enabled, then the Java code generator will generate a separate .java", + " file for each top-level message, enum, and service defined in the .proto", + " file. Thus, these types will *not* be nested inside the wrapper class", + " named by java_outer_classname. However, the wrapper class will still be", + " generated to contain the file's getDescriptor() method as well as any", + " top-level extensions defined in the file." + ] + }, + "FileOptions:java_generate_equals_and_hash": { + "paramName": "java_generate_equals_and_hash", + "paramType": "TYPE_BOOL", + "comments": [ + " This option does nothing." + ] + }, + "FileOptions:java_string_check_utf8": { + "paramName": "java_string_check_utf8", + "paramType": "TYPE_BOOL", + "comments": [ + " If set true, then the Java2 code generator will generate code that", + " throws an exception whenever an attempt is made to assign a non-UTF-8", + " byte sequence to a string field.", + " Message reflection will do the same.", + " However, an extension field still accepts non-UTF-8 byte sequences.", + " This option has no effect on when used with the lite runtime." + ] + }, + "FileOptions:optimize_for": { + "paramName": "optimize_for", + "paramType": ".google.protobuf.FileOptions.OptimizeMode", + "comments": [] + }, + "FileOptions:go_package": { + "paramName": "go_package", + "paramType": "TYPE_STRING", + "comments": [ + " Sets the Go package where structs generated from this .proto will be", + " placed. If omitted, the Go package will be derived from the following:", + " - The basename of the package import path, if provided.", + " - Otherwise, the package statement in the .proto file, if present.", + " - Otherwise, the basename of the .proto file, without extension." + ] + }, + "FileOptions:cc_generic_services": { + "paramName": "cc_generic_services", + "paramType": "TYPE_BOOL", + "comments": [ + " Should generic services be generated in each language? \"Generic\" services", + " are not specific to any particular RPC system. They are generated by the", + " main code generators in each language (without additional plugins).", + " Generic services were the only kind of service generation supported by", + " early versions of google.protobuf.", + "", + " Generic services are now considered deprecated in favor of using plugins", + " that generate code specific to your particular RPC system. Therefore,", + " these default to false. Old code which depends on generic services should", + " explicitly set them to true." + ] + }, + "FileOptions:java_generic_services": { + "paramName": "java_generic_services", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "FileOptions:py_generic_services": { + "paramName": "py_generic_services", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "FileOptions:php_generic_services": { + "paramName": "php_generic_services", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "FileOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this file deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for everything in the file, or it will be completely ignored; in the very", + " least, this is a formalization for deprecating files." + ] + }, + "FileOptions:cc_enable_arenas": { + "paramName": "cc_enable_arenas", + "paramType": "TYPE_BOOL", + "comments": [ + " Enables the use of arenas for the proto messages in this file. This applies", + " only to generated classes for C++." + ] + }, + "FileOptions:objc_class_prefix": { + "paramName": "objc_class_prefix", + "paramType": "TYPE_STRING", + "comments": [ + " Sets the objective c class prefix which is prepended to all objective c", + " generated classes from this .proto. There is no default." + ] + }, + "FileOptions:csharp_namespace": { + "paramName": "csharp_namespace", + "paramType": "TYPE_STRING", + "comments": [ + " Namespace for generated classes; defaults to the package." + ] + }, + "FileOptions:swift_prefix": { + "paramName": "swift_prefix", + "paramType": "TYPE_STRING", + "comments": [ + " By default Swift generators will take the proto package and CamelCase it", + " replacing '.' with underscore and use that to prefix the types/symbols", + " defined. When this options is provided, they will use this value instead", + " to prefix the types/symbols defined." + ] + }, + "FileOptions:php_class_prefix": { + "paramName": "php_class_prefix", + "paramType": "TYPE_STRING", + "comments": [ + " Sets the php class prefix which is prepended to all php generated classes", + " from this .proto. Default is empty." + ] + }, + "FileOptions:php_namespace": { + "paramName": "php_namespace", + "paramType": "TYPE_STRING", + "comments": [ + " Use this option to change the namespace of php generated classes. Default", + " is empty. When this option is empty, the package name will be used for", + " determining the namespace." + ] + }, + "FileOptions:php_metadata_namespace": { + "paramName": "php_metadata_namespace", + "paramType": "TYPE_STRING", + "comments": [ + " Use this option to change the namespace of php generated metadata classes.", + " Default is empty. When this option is empty, the proto file name will be", + " used for determining the namespace." + ] + }, + "FileOptions:ruby_package": { + "paramName": "ruby_package", + "paramType": "TYPE_STRING", + "comments": [ + " Use this option to change the package of ruby generated classes. Default", + " is empty. When this option is not set, the package name will be used for", + " determining the ruby package." + ] + }, + "FileOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "FileOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here.", + " See the documentation for the \"Options\" section above." + ] + }, + "MessageOptions:message_set_wire_format": { + "paramName": "message_set_wire_format", + "paramType": "TYPE_BOOL", + "comments": [ + " Set true to use the old proto1 MessageSet wire format for extensions.", + " This is provided for backwards-compatibility with the MessageSet wire", + " format. You should not use this for any other reason: It's less", + " efficient, has fewer features, and is more complicated.", + "", + " The message must be defined exactly as follows:", + " message Foo {", + " option message_set_wire_format = true;", + " extensions 4 to max;", + " }", + " Note that the message cannot have any defined fields; MessageSets only", + " have extensions.", + "", + " All extensions of your type must be singular messages; e.g. they cannot", + " be int32s, enums, or repeated messages.", + "", + " Because this is an option, the above two restrictions are not enforced by", + " the protocol compiler." + ] + }, + "MessageOptions:no_standard_descriptor_accessor": { + "paramName": "no_standard_descriptor_accessor", + "paramType": "TYPE_BOOL", + "comments": [ + " Disables the generation of the standard \"descriptor()\" accessor, which can", + " conflict with a field of the same name. This is meant to make migration", + " from proto1 easier; new code should avoid fields named \"descriptor\"." + ] + }, + "MessageOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this message deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for the message, or it will be completely ignored; in the very least,", + " this is a formalization for deprecating messages." + ] + }, + "MessageOptions:map_entry": { + "paramName": "map_entry", + "paramType": "TYPE_BOOL", + "comments": [ + " NOTE: Do not set the option in .proto files. Always use the maps syntax", + " instead. The option should only be implicitly set by the proto compiler", + " parser.", + "", + " Whether the message is an automatically generated map entry type for the", + " maps field.", + "", + " For maps fields:", + " map map_field = 1;", + " The parsed descriptor looks like:", + " message MapFieldEntry {", + " option map_entry = true;", + " optional KeyType key = 1;", + " optional ValueType value = 2;", + " }", + " repeated MapFieldEntry map_field = 1;", + "", + " Implementations may choose not to generate the map_entry=true message, but", + " use a native map in the target language to hold the keys and values.", + " The reflection APIs in such implementations still need to work as", + " if the field is a repeated message field." + ] + }, + "MessageOptions:deprecated_legacy_json_field_conflicts": { + "paramName": "deprecated_legacy_json_field_conflicts", + "paramType": "TYPE_BOOL", + "comments": [ + " Enable the legacy handling of JSON field name conflicts. This lowercases", + " and strips underscored from the fields before comparison in proto3 only.", + " The new behavior takes `json_name` into account and applies to proto2 as", + " well.", + "", + " This should only be used as a temporary measure against broken builds due", + " to the change in behavior for JSON field name conflicts.", + "", + " TODO(b/261750190) This is legacy behavior we plan to remove once downstream", + " teams have had time to migrate." + ] + }, + "MessageOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "MessageOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "FieldOptions:ctype": { + "paramName": "ctype", + "paramType": ".google.protobuf.FieldOptions.CType", + "comments": [ + " The ctype option instructs the C++ code generator to use a different", + " representation of the field than it normally would. See the specific", + " options below. This option is only implemented to support use of", + " [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of", + " type \"bytes\" in the open source release -- sorry, we'll try to include", + " other types in a future version!" + ] + }, + "FieldOptions:packed": { + "paramName": "packed", + "paramType": "TYPE_BOOL", + "comments": [ + " The packed option can be enabled for repeated primitive fields to enable", + " a more efficient representation on the wire. Rather than repeatedly", + " writing the tag and type for each element, the entire array is encoded as", + " a single length-delimited blob. In proto3, only explicit setting it to", + " false will avoid using packed encoding." + ] + }, + "FieldOptions:jstype": { + "paramName": "jstype", + "paramType": ".google.protobuf.FieldOptions.JSType", + "comments": [ + " The jstype option determines the JavaScript type used for values of the", + " field. The option is permitted only for 64 bit integral and fixed types", + " (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING", + " is represented as JavaScript string, which avoids loss of precision that", + " can happen when a large value is converted to a floating point JavaScript.", + " Specifying JS_NUMBER for the jstype causes the generated JavaScript code to", + " use the JavaScript \"number\" type. The behavior of the default option", + " JS_NORMAL is implementation dependent.", + "", + " This option is an enum to permit additional types to be added, e.g.", + " goog.math.Integer." + ] + }, + "FieldOptions:lazy": { + "paramName": "lazy", + "paramType": "TYPE_BOOL", + "comments": [ + " Should this field be parsed lazily? Lazy applies only to message-type", + " fields. It means that when the outer message is initially parsed, the", + " inner message's contents will not be parsed but instead stored in encoded", + " form. The inner message will actually be parsed when it is first accessed.", + "", + " This is only a hint. Implementations are free to choose whether to use", + " eager or lazy parsing regardless of the value of this option. However,", + " setting this option true suggests that the protocol author believes that", + " using lazy parsing on this field is worth the additional bookkeeping", + " overhead typically needed to implement it.", + "", + " This option does not affect the public interface of any generated code;", + " all method signatures remain the same. Furthermore, thread-safety of the", + " interface is not affected by this option; const methods remain safe to", + " call from multiple threads concurrently, while non-const methods continue", + " to require exclusive access.", + "", + " Note that implementations may choose not to check required fields within", + " a lazy sub-message. That is, calling IsInitialized() on the outer message", + " may return true even if the inner message has missing required fields.", + " This is necessary because otherwise the inner message would have to be", + " parsed in order to perform the check, defeating the purpose of lazy", + " parsing. An implementation which chooses not to check required fields", + " must be consistent about it. That is, for any particular sub-message, the", + " implementation must either *always* check its required fields, or *never*", + " check its required fields, regardless of whether or not the message has", + " been parsed.", + "", + " As of May 2022, lazy verifies the contents of the byte stream during", + " parsing. An invalid byte stream will cause the overall parsing to fail." + ] + }, + "FieldOptions:unverified_lazy": { + "paramName": "unverified_lazy", + "paramType": "TYPE_BOOL", + "comments": [ + " unverified_lazy does no correctness checks on the byte stream. This should", + " only be used where lazy with verification is prohibitive for performance", + " reasons." + ] + }, + "FieldOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this field deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for accessors, or it will be completely ignored; in the very least, this", + " is a formalization for deprecating fields." + ] + }, + "FieldOptions:weak": { + "paramName": "weak", + "paramType": "TYPE_BOOL", + "comments": [ + " For Google-internal migration only. Do not use." + ] + }, + "FieldOptions:debug_redact": { + "paramName": "debug_redact", + "paramType": "TYPE_BOOL", + "comments": [ + " Indicate that the field value should not be printed out when using debug", + " formats, e.g. when the field contains sensitive credentials." + ] + }, + "FieldOptions:retention": { + "paramName": "retention", + "paramType": ".google.protobuf.FieldOptions.OptionRetention", + "comments": [] + }, + "FieldOptions:targets": { + "paramName": "targets", + "paramType": "TYPE_ENUM[]", + "comments": [] + }, + "FieldOptions:edition_defaults": { + "paramName": "edition_defaults", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "FieldOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "FieldOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "OneofOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "OneofOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "EnumOptions:allow_alias": { + "paramName": "allow_alias", + "paramType": "TYPE_BOOL", + "comments": [ + " Set this option to true to allow mapping different tag names to the same", + " value." + ] + }, + "EnumOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this enum deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for the enum, or it will be completely ignored; in the very least, this", + " is a formalization for deprecating enums." + ] + }, + "EnumOptions:deprecated_legacy_json_field_conflicts": { + "paramName": "deprecated_legacy_json_field_conflicts", + "paramType": "TYPE_BOOL", + "comments": [ + " Enable the legacy handling of JSON field name conflicts. This lowercases", + " and strips underscored from the fields before comparison in proto3 only.", + " The new behavior takes `json_name` into account and applies to proto2 as", + " well.", + " TODO(b/261750190) Remove this legacy behavior once downstream teams have", + " had time to migrate." + ] + }, + "EnumOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "EnumOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "EnumValueOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this enum value deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for the enum value, or it will be completely ignored; in the very least,", + " this is a formalization for deprecating enum values." + ] + }, + "EnumValueOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "EnumValueOptions:debug_redact": { + "paramName": "debug_redact", + "paramType": "TYPE_BOOL", + "comments": [ + " Indicate that fields annotated with this enum value should not be printed", + " out when using debug formats, e.g. when the field contains sensitive", + " credentials." + ] + }, + "EnumValueOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "ServiceOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "ServiceOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this service deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for the service, or it will be completely ignored; in the very least,", + " this is a formalization for deprecating services." + ] + }, + "ServiceOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "MethodOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this method deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for the method, or it will be completely ignored; in the very least,", + " this is a formalization for deprecating methods." + ] + }, + "MethodOptions:idempotency_level": { + "paramName": "idempotency_level", + "paramType": ".google.protobuf.MethodOptions.IdempotencyLevel", + "comments": [] + }, + "MethodOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "MethodOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "UninterpretedOption:name": { + "paramName": "name", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "UninterpretedOption:identifier_value": { + "paramName": "identifier_value", + "paramType": "TYPE_STRING", + "comments": [ + " The value of the uninterpreted option, in whatever type the tokenizer", + " identified it as during parsing. Exactly one of these should be set." + ] + }, + "UninterpretedOption:positive_int_value": { + "paramName": "positive_int_value", + "paramType": "TYPE_UINT64", + "comments": [] + }, + "UninterpretedOption:negative_int_value": { + "paramName": "negative_int_value", + "paramType": "TYPE_INT64", + "comments": [] + }, + "UninterpretedOption:double_value": { + "paramName": "double_value", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "UninterpretedOption:string_value": { + "paramName": "string_value", + "paramType": "TYPE_BYTES", + "comments": [] + }, + "UninterpretedOption:aggregate_value": { + "paramName": "aggregate_value", + "paramType": "TYPE_STRING", + "comments": [] + }, + "FeatureSet:field_presence": { + "paramName": "field_presence", + "paramType": ".google.protobuf.FeatureSet.FieldPresence", + "comments": [] + }, + "FeatureSet:enum_type": { + "paramName": "enum_type", + "paramType": ".google.protobuf.FeatureSet.EnumType", + "comments": [] + }, + "FeatureSet:repeated_field_encoding": { + "paramName": "repeated_field_encoding", + "paramType": ".google.protobuf.FeatureSet.RepeatedFieldEncoding", + "comments": [] + }, + "FeatureSet:string_field_validation": { + "paramName": "string_field_validation", + "paramType": ".google.protobuf.FeatureSet.StringFieldValidation", + "comments": [] + }, + "FeatureSet:message_encoding": { + "paramName": "message_encoding", + "paramType": ".google.protobuf.FeatureSet.MessageEncoding", + "comments": [] + }, + "FeatureSet:json_format": { + "paramName": "json_format", + "paramType": ".google.protobuf.FeatureSet.JsonFormat", + "comments": [] + }, + "FeatureSet:raw_features": { + "paramName": "raw_features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [] + }, + "SourceCodeInfo:location": { + "paramName": "location", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " A Location identifies a piece of source code in a .proto file which", + " corresponds to a particular definition. This information is intended", + " to be useful to IDEs, code indexers, documentation generators, and similar", + " tools.", + "", + " For example, say we have a file like:", + " message Foo {", + " optional string foo = 1;", + " }", + " Let's look at just the field definition:", + " optional string foo = 1;", + " ^ ^^ ^^ ^ ^^^", + " a bc de f ghi", + " We have the following locations:", + " span path represents", + " [a,i) [ 4, 0, 2, 0 ] The whole field definition.", + " [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).", + " [c,d) [ 4, 0, 2, 0, 5 ] The type (string).", + " [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).", + " [g,h) [ 4, 0, 2, 0, 3 ] The number (1).", + "", + " Notes:", + " - A location may refer to a repeated field itself (i.e. not to any", + " particular index within it). This is used whenever a set of elements are", + " logically enclosed in a single code segment. For example, an entire", + " extend block (possibly containing multiple extension definitions) will", + " have an outer location whose path refers to the \"extensions\" repeated", + " field without an index.", + " - Multiple locations may have the same path. This happens when a single", + " logical declaration is spread out across multiple places. The most", + " obvious example is the \"extend\" block again -- there may be multiple", + " extend blocks in the same scope, each of which will have the same path.", + " - A location's span is not always a subset of its parent's span. For", + " example, the \"extendee\" of an extension declaration appears at the", + " beginning of the \"extend\" block and is shared by all extensions within", + " the block.", + " - Just because a location's span is a subset of some other location's span", + " does not mean that it is a descendant. For example, a \"group\" defines", + " both a type and a field in a single declaration. Thus, the locations", + " corresponding to the type and field and their components will overlap.", + " - Code which tries to interpret locations should probably be designed to", + " ignore those that it doesn't understand, as more types of locations could", + " be recorded in the future." + ] + }, + "GeneratedCodeInfo:annotation": { + "paramName": "annotation", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " An Annotation connects some span of text in generated code to an element", + " of its generating .proto file." + ] + }, + "Duration:seconds": { + "paramName": "seconds", + "paramType": "TYPE_INT64", + "comments": [ + " Signed seconds of the span of time. Must be from -315,576,000,000", + " to +315,576,000,000 inclusive. Note: these bounds are computed from:", + " 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years" + ] + }, + "Duration:nanos": { + "paramName": "nanos", + "paramType": "TYPE_INT32", + "comments": [ + " Signed fractions of a second at nanosecond resolution of the span", + " of time. Durations less than one second are represented with a 0", + " `seconds` field and a positive or negative `nanos` field. For durations", + " of one second or more, a non-zero value for the `nanos` field must be", + " of the same sign as the `seconds` field. Must be from -999,999,999", + " to +999,999,999 inclusive." + ] + }, + "CommonLanguageSettings:reference_docs_uri": { + "paramName": "reference_docs_uri", + "paramType": "TYPE_STRING", + "comments": [ + " Link to automatically generated reference documentation. Example:", + " https://cloud.google.com/nodejs/docs/reference/asset/latest" + ] + }, + "CommonLanguageSettings:destinations": { + "paramName": "destinations", + "paramType": "TYPE_ENUM[]", + "comments": [ + " The destination where API teams want this client library to be published." + ] + }, + "ClientLibrarySettings:version": { + "paramName": "version", + "paramType": "TYPE_STRING", + "comments": [ + " Version of the API to apply these settings to. This is the full protobuf", + " package for the API, ending in the version element.", + " Examples: \"google.cloud.speech.v1\" and \"google.spanner.admin.database.v1\"." + ] + }, + "ClientLibrarySettings:launch_stage": { + "paramName": "launch_stage", + "paramType": ".google.api.LaunchStage", + "comments": [ + " Launch stage of this version of the API." + ] + }, + "ClientLibrarySettings:rest_numeric_enums": { + "paramName": "rest_numeric_enums", + "paramType": "TYPE_BOOL", + "comments": [ + " When using transport=rest, the client request will encode enums as", + " numbers rather than strings." + ] + }, + "ClientLibrarySettings:java_settings": { + "paramName": "java_settings", + "paramType": ".google.api.JavaSettings", + "comments": [ + " Settings for legacy Java features, supported in the Service YAML." + ] + }, + "ClientLibrarySettings:cpp_settings": { + "paramName": "cpp_settings", + "paramType": ".google.api.CppSettings", + "comments": [ + " Settings for C++ client libraries." + ] + }, + "ClientLibrarySettings:php_settings": { + "paramName": "php_settings", + "paramType": ".google.api.PhpSettings", + "comments": [ + " Settings for PHP client libraries." + ] + }, + "ClientLibrarySettings:python_settings": { + "paramName": "python_settings", + "paramType": ".google.api.PythonSettings", + "comments": [ + " Settings for Python client libraries." + ] + }, + "ClientLibrarySettings:node_settings": { + "paramName": "node_settings", + "paramType": ".google.api.NodeSettings", + "comments": [ + " Settings for Node client libraries." + ] + }, + "ClientLibrarySettings:dotnet_settings": { + "paramName": "dotnet_settings", + "paramType": ".google.api.DotnetSettings", + "comments": [ + " Settings for .NET client libraries." + ] + }, + "ClientLibrarySettings:ruby_settings": { + "paramName": "ruby_settings", + "paramType": ".google.api.RubySettings", + "comments": [ + " Settings for Ruby client libraries." + ] + }, + "ClientLibrarySettings:go_settings": { + "paramName": "go_settings", + "paramType": ".google.api.GoSettings", + "comments": [ + " Settings for Go client libraries." + ] + }, + "Publishing:method_settings": { + "paramName": "method_settings", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " A list of API method settings, e.g. the behavior for methods that use the", + " long-running operation pattern." + ] + }, + "Publishing:new_issue_uri": { + "paramName": "new_issue_uri", + "paramType": "TYPE_STRING", + "comments": [ + " Link to a *public* URI where users can report issues. Example:", + " https://issuetracker.google.com/issues/new?component=190865&template=1161103" + ] + }, + "Publishing:documentation_uri": { + "paramName": "documentation_uri", + "paramType": "TYPE_STRING", + "comments": [ + " Link to product home page. Example:", + " https://cloud.google.com/asset-inventory/docs/overview" + ] + }, + "Publishing:api_short_name": { + "paramName": "api_short_name", + "paramType": "TYPE_STRING", + "comments": [ + " Used as a tracking tag when collecting data about the APIs developer", + " relations artifacts like docs, packages delivered to package managers,", + " etc. Example: \"speech\"." + ] + }, + "Publishing:github_label": { + "paramName": "github_label", + "paramType": "TYPE_STRING", + "comments": [ + " GitHub label to apply to issues and pull requests opened for this API." + ] + }, + "Publishing:codeowner_github_teams": { + "paramName": "codeowner_github_teams", + "paramType": "TYPE_STRING[]", + "comments": [ + " GitHub teams to be added to CODEOWNERS in the directory in GitHub", + " containing source code for the client libraries for this API." + ] + }, + "Publishing:doc_tag_prefix": { + "paramName": "doc_tag_prefix", + "paramType": "TYPE_STRING", + "comments": [ + " A prefix used in sample code when demarking regions to be included in", + " documentation." + ] + }, + "Publishing:organization": { + "paramName": "organization", + "paramType": ".google.api.ClientLibraryOrganization", + "comments": [ + " For whom the client library is being published." + ] + }, + "Publishing:library_settings": { + "paramName": "library_settings", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Client library settings. If the same version string appears multiple", + " times in this list, then the last one wins. Settings from earlier", + " settings with the same version string are discarded." + ] + }, + "Publishing:proto_reference_documentation_uri": { + "paramName": "proto_reference_documentation_uri", + "paramType": "TYPE_STRING", + "comments": [ + " Optional link to proto reference documentation. Example:", + " https://cloud.google.com/pubsub/lite/docs/reference/rpc" + ] + }, + "JavaSettings:library_package": { + "paramName": "library_package", + "paramType": "TYPE_STRING", + "comments": [ + " The package name to use in Java. Clobbers the java_package option", + " set in the protobuf. This should be used **only** by APIs", + " who have already set the language_settings.java.package_name\" field", + " in gapic.yaml. API teams should use the protobuf java_package option", + " where possible.", + "", + " Example of a YAML configuration::", + "", + " publishing:", + " java_settings:", + " library_package: com.google.cloud.pubsub.v1" + ] + }, + "JavaSettings:service_class_names": { + "paramName": "service_class_names", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Configure the Java class name to use instead of the service's for its", + " corresponding generated GAPIC client. Keys are fully-qualified", + " service names as they appear in the protobuf (including the full", + " the language_settings.java.interface_names\" field in gapic.yaml. API", + " teams should otherwise use the service name as it appears in the", + " protobuf.", + "", + " Example of a YAML configuration::", + "", + " publishing:", + " java_settings:", + " service_class_names:", + " - google.pubsub.v1.Publisher: TopicAdmin", + " - google.pubsub.v1.Subscriber: SubscriptionAdmin" + ] + }, + "JavaSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "CppSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "PhpSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "PythonSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "NodeSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "DotnetSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "DotnetSettings:renamed_services": { + "paramName": "renamed_services", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Map from original service names to renamed versions.", + " This is used when the default generated types", + " would cause a naming conflict. (Neither name is", + " fully-qualified.)", + " Example: Subscriber to SubscriberServiceApi." + ] + }, + "DotnetSettings:renamed_resources": { + "paramName": "renamed_resources", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Map from full resource types to the effective short name", + " for the resource. This is used when otherwise resource", + " named from different services would cause naming collisions.", + " Example entry:", + " \"datalabeling.googleapis.com/Dataset\": \"DataLabelingDataset\"" + ] + }, + "DotnetSettings:ignored_resources": { + "paramName": "ignored_resources", + "paramType": "TYPE_STRING[]", + "comments": [ + " List of full resource types to ignore during generation.", + " This is typically used for API-specific Location resources,", + " which should be handled by the generator as if they were actually", + " the common Location resources.", + " Example entry: \"documentai.googleapis.com/Location\"" + ] + }, + "DotnetSettings:forced_namespace_aliases": { + "paramName": "forced_namespace_aliases", + "paramType": "TYPE_STRING[]", + "comments": [ + " Namespaces which must be aliased in snippets due to", + " a known (but non-generator-predictable) naming collision" + ] + }, + "DotnetSettings:handwritten_signatures": { + "paramName": "handwritten_signatures", + "paramType": "TYPE_STRING[]", + "comments": [ + " Method signatures (in the form \"service.method(signature)\")", + " which are provided separately, so shouldn't be generated.", + " Snippets *calling* these methods are still generated, however." + ] + }, + "RubySettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "GoSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "MethodSettings:selector": { + "paramName": "selector", + "paramType": "TYPE_STRING", + "comments": [ + " The fully qualified name of the method, for which the options below apply.", + " This is used to find the method to apply the options." + ] + }, + "MethodSettings:long_running": { + "paramName": "long_running", + "paramType": ".google.api.MethodSettings.LongRunning", + "comments": [ + " Describes settings to use for long-running operations when generating", + " API methods for RPCs. Complements RPCs that use the annotations in", + " google/longrunning/operations.proto.", + "", + " Example of a YAML configuration::", + "", + " publishing:", + " method_settings:", + " - selector: google.cloud.speech.v2.Speech.BatchRecognize", + " long_running:", + " initial_poll_delay:", + " seconds: 60 # 1 minute", + " poll_delay_multiplier: 1.5", + " max_poll_delay:", + " seconds: 360 # 6 minutes", + " total_poll_timeout:", + " seconds: 54000 # 90 minutes" + ] + }, + "Compliance": { + "paramName": "", + "paramType": "", + "comments": [ + " This service is used to test that GAPICs implement various REST-related features correctly. This mostly means transcoding proto3 requests to REST format", + " correctly for various types of HTTP annotations, but it also includes verifying that unknown (numeric) enums received by clients can be round-tripped", + " correctly." + ] + }, + "Compliance:RepeatDataBody": { + "paramName": "", + "paramType": "", + "comments": [ + " This method echoes the ComplianceData request. This method exercises", + " sending the entire request object in the REST body.", + "" + ] + }, + "Compliance:RepeatDataBodyInfo": { + "paramName": "", + "paramType": "", + "comments": [ + " This method echoes the ComplianceData request. This method exercises", + " sending the a message-type field in the REST body. Per AIP-127, only", + " top-level, non-repeated fields can be sent this way.", + "" + ] + }, + "Compliance:RepeatDataQuery": { + "paramName": "", + "paramType": "", + "comments": [ + " This method echoes the ComplianceData request. This method exercises", + " sending all request fields as query parameters.", + "" + ] + }, + "Compliance:RepeatDataSimplePath": { + "paramName": "", + "paramType": "", + "comments": [ + " This method echoes the ComplianceData request. This method exercises", + " sending some parameters as \"simple\" path variables (i.e., of the form", + " \"/bar/{foo}\" rather than \"/{foo=bar/*}\"), and the rest as query parameters.", + "" + ] + }, + "Compliance:RepeatDataPathResource": { + "paramName": "", + "paramType": "", + "comments": [ + " Same as RepeatDataSimplePath, but with a path resource.", + "" + ] + }, + "Compliance:RepeatDataPathTrailingResource": { + "paramName": "", + "paramType": "", + "comments": [ + " Same as RepeatDataSimplePath, but with a trailing resource.", + "" + ] + }, + "Compliance:RepeatDataBodyPut": { + "paramName": "", + "paramType": "", + "comments": [ + " This method echoes the ComplianceData request, using the HTTP PUT method.", + "" + ] + }, + "Compliance:RepeatDataBodyPatch": { + "paramName": "", + "paramType": "", + "comments": [ + " This method echoes the ComplianceData request, using the HTTP PATCH method.", + "" + ] + }, + "Compliance:GetEnum": { + "paramName": "", + "paramType": "", + "comments": [ + " This method requests an enum value from the server. Depending on the contents of EnumRequest, the enum value returned will be a known enum declared in the", + " .proto file, or a made-up enum value the is unknown to the client. To verify that clients can round-trip unknown enum vaues they receive, use the", + " response from this RPC as the request to VerifyEnum()", + "", + " The values of enums sent by the server when a known or unknown value is requested will be the same within a single Showcase server run (this is needed for", + " VerifyEnum() to work) but are not guaranteed to be the same across separate Showcase server runs.", + "" + ] + }, + "Compliance:VerifyEnum": { + "paramName": "", + "paramType": "", + "comments": [ + " This method is used to verify that clients can round-trip enum values, which is particularly important for unknown enum values over REST. VerifyEnum()", + " verifies that its request, which is presumably the response that the client previously got to a GetEnum(), contains the correct data. If so, it responds", + " with the same EnumResponse; otherwise, the RPC errors.", + "", + " This works because the values of enums sent by the server when a known or unknown value is requested will be the same within a single Showcase server run,", + " although they are not guaranteed to be the same across separate Showcase server runs.", + "" + ] + }, + "RepeatRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "RepeatRequest:info": { + "paramName": "info", + "paramType": ".google.showcase.v1beta1.ComplianceData", + "comments": [] + }, + "RepeatRequest:server_verify": { + "paramName": "server_verify", + "paramType": "TYPE_BOOL", + "comments": [ + " If true, the server will verify that the received request matches", + " the request with the same name in the compliance test suite." + ] + }, + "RepeatRequest:intended_binding_uri": { + "paramName": "intended_binding_uri", + "paramType": "TYPE_STRING", + "comments": [ + " The URI template this request is expected to be bound to server-side." + ] + }, + "RepeatRequest:f_int32": { + "paramName": "f_int32", + "paramType": "TYPE_INT32", + "comments": [ + " Some top level fields, to test that these are encoded correctly", + " in query params." + ] + }, + "RepeatRequest:f_int64": { + "paramName": "f_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + "RepeatRequest:f_double": { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "RepeatRequest:p_int32": { + "paramName": "p_int32", + "paramType": "TYPE_INT32", + "comments": [] + }, + "RepeatRequest:p_int64": { + "paramName": "p_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + "RepeatRequest:p_double": { + "paramName": "p_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "RepeatResponse:request": { + "paramName": "request", + "paramType": ".google.showcase.v1beta1.RepeatRequest", + "comments": [] + }, + "RepeatResponse:binding_uri": { + "paramName": "binding_uri", + "paramType": "TYPE_STRING", + "comments": [ + " The URI template the request was bound to server-side." + ] + }, + "ComplianceSuite:group": { + "paramName": "group", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "ComplianceGroup:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ComplianceGroup:rpcs": { + "paramName": "rpcs", + "paramType": "TYPE_STRING[]", + "comments": [] + }, + "ComplianceGroup:requests": { + "paramName": "requests", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "ComplianceData:f_string": { + "paramName": "f_string", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ComplianceData:f_int32": { + "paramName": "f_int32", + "paramType": "TYPE_INT32", + "comments": [] + }, + "ComplianceData:f_sint32": { + "paramName": "f_sint32", + "paramType": "TYPE_SINT32", + "comments": [] + }, + "ComplianceData:f_sfixed32": { + "paramName": "f_sfixed32", + "paramType": "TYPE_SFIXED32", + "comments": [] + }, + "ComplianceData:f_uint32": { + "paramName": "f_uint32", + "paramType": "TYPE_UINT32", + "comments": [] + }, + "ComplianceData:f_fixed32": { + "paramName": "f_fixed32", + "paramType": "TYPE_FIXED32", + "comments": [] + }, + "ComplianceData:f_int64": { + "paramName": "f_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + "ComplianceData:f_sint64": { + "paramName": "f_sint64", + "paramType": "TYPE_SINT64", + "comments": [] + }, + "ComplianceData:f_sfixed64": { + "paramName": "f_sfixed64", + "paramType": "TYPE_SFIXED64", + "comments": [] + }, + "ComplianceData:f_uint64": { + "paramName": "f_uint64", + "paramType": "TYPE_UINT64", + "comments": [] + }, + "ComplianceData:f_fixed64": { + "paramName": "f_fixed64", + "paramType": "TYPE_FIXED64", + "comments": [] + }, + "ComplianceData:f_double": { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "ComplianceData:f_float": { + "paramName": "f_float", + "paramType": "TYPE_FLOAT", + "comments": [] + }, + "ComplianceData:f_bool": { + "paramName": "f_bool", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "ComplianceData:f_bytes": { + "paramName": "f_bytes", + "paramType": "TYPE_BYTES", + "comments": [] + }, + "ComplianceData:f_kingdom": { + "paramName": "f_kingdom", + "paramType": ".google.showcase.v1beta1.ComplianceData.LifeKingdom", + "comments": [] + }, + "ComplianceData:f_child": { + "paramName": "f_child", + "paramType": ".google.showcase.v1beta1.ComplianceDataChild", + "comments": [] + }, + "ComplianceData:p_string": { + "paramName": "p_string", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ComplianceData:p_int32": { + "paramName": "p_int32", + "paramType": "TYPE_INT32", + "comments": [] + }, + "ComplianceData:p_double": { + "paramName": "p_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "ComplianceData:p_bool": { + "paramName": "p_bool", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "ComplianceData:p_kingdom": { + "paramName": "p_kingdom", + "paramType": ".google.showcase.v1beta1.ComplianceData.LifeKingdom", + "comments": [] + }, + "ComplianceData:p_child": { + "paramName": "p_child", + "paramType": ".google.showcase.v1beta1.ComplianceDataChild", + "comments": [] + }, + "ComplianceDataChild:f_string": { + "paramName": "f_string", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ComplianceDataChild:f_float": { + "paramName": "f_float", + "paramType": "TYPE_FLOAT", + "comments": [] + }, + "ComplianceDataChild:f_double": { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "ComplianceDataChild:f_bool": { + "paramName": "f_bool", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "ComplianceDataChild:f_continent": { + "paramName": "f_continent", + "paramType": ".google.showcase.v1beta1.Continent", + "comments": [] + }, + "ComplianceDataChild:f_child": { + "paramName": "f_child", + "paramType": ".google.showcase.v1beta1.ComplianceDataGrandchild", + "comments": [] + }, + "ComplianceDataChild:p_string": { + "paramName": "p_string", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ComplianceDataChild:p_float": { + "paramName": "p_float", + "paramType": "TYPE_FLOAT", + "comments": [] + }, + "ComplianceDataChild:p_double": { + "paramName": "p_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "ComplianceDataChild:p_bool": { + "paramName": "p_bool", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "ComplianceDataChild:p_continent": { + "paramName": "p_continent", + "paramType": ".google.showcase.v1beta1.Continent", + "comments": [] + }, + "ComplianceDataChild:p_child": { + "paramName": "p_child", + "paramType": ".google.showcase.v1beta1.ComplianceDataGrandchild", + "comments": [] + }, + "ComplianceDataGrandchild:f_string": { + "paramName": "f_string", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ComplianceDataGrandchild:f_double": { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "ComplianceDataGrandchild:f_bool": { + "paramName": "f_bool", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "EnumRequest:unknown_enum": { + "paramName": "unknown_enum", + "paramType": "TYPE_BOOL", + "comments": [ + " Whether the client is requesting a new, unknown enum value or a known enum value already declard in this proto file." + ] + }, + "EnumResponse:request": { + "paramName": "request", + "paramType": ".google.showcase.v1beta1.EnumRequest", + "comments": [ + " The original request for a known or unknown enum from the server." + ] + }, + "EnumResponse:continent": { + "paramName": "continent", + "paramType": ".google.showcase.v1beta1.Continent", + "comments": [ + " The actual enum the server provided." + ] + }, + "RoutingRule:routing_parameters": { + "paramName": "routing_parameters", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " A collection of Routing Parameter specifications.", + " **NOTE:** If multiple Routing Parameters describe the same key", + " (via the `path_template` field or via the `field` field when", + " `path_template` is not provided), \"last one wins\" rule", + " determines which Parameter gets used.", + " See the examples for more details." + ] + }, + "RoutingParameter:field": { + "paramName": "field", + "paramType": "TYPE_STRING", + "comments": [ + " A request field to extract the header key-value pair from." + ] + }, + "RoutingParameter:path_template": { + "paramName": "path_template", + "paramType": "TYPE_STRING", + "comments": [ + " A pattern matching the key-value field. Optional.", + " If not specified, the whole field specified in the `field` field will be", + " taken as value, and its name used as key. If specified, it MUST contain", + " exactly one named segment (along with any number of unnamed segments) The", + " pattern will be matched over the field specified in the `field` field, then", + " if the match is successful:", + " - the name of the single named segment will be used as a header name,", + " - the match value of the segment will be used as a header value;", + " if the match is NOT successful, nothing will be sent.", + "", + " Example:", + "", + " -- This is a field in the request message", + " | that the header value will be extracted from.", + " |", + " | -- This is the key name in the", + " | | routing header.", + " V |", + " field: \"table_name\" v", + " path_template: \"projects/*/{table_location=instances/*}/tables/*\"", + " ^ ^", + " | |", + " In the {} brackets is the pattern that -- |", + " specifies what to extract from the |", + " field as a value to be sent. |", + " |", + " The string in the field must match the whole pattern --", + " before brackets, inside brackets, after brackets.", + "", + " When looking at this specific example, we can see that:", + " - A key-value pair with the key `table_location`", + " and the value matching `instances/*` should be added", + " to the x-goog-request-params routing header.", + " - The value is extracted from the request message's `table_name` field", + " if it matches the full pattern specified:", + " `projects/*/instances/*/tables/*`.", + "", + " **NB:** If the `path_template` field is not provided, the key name is", + " equal to the field name, and the whole field should be sent as a value.", + " This makes the pattern for the field and the value functionally equivalent", + " to `**`, and the configuration", + "", + " {", + " field: \"table_name\"", + " }", + "", + " is a functionally equivalent shorthand to:", + "", + " {", + " field: \"table_name\"", + " path_template: \"{table_name=**}\"", + " }", + "", + " See Example 1 for more details." + ] + }, + "Any:type_url": { + "paramName": "type_url", + "paramType": "TYPE_STRING", + "comments": [ + " A URL/resource name that uniquely identifies the type of the serialized", + " protocol buffer message. This string must contain at least", + " one \"/\" character. The last segment of the URL's path must represent", + " the fully qualified name of the type (as in", + " `path/google.protobuf.Duration`). The name should be in a canonical form", + " (e.g., leading \".\" is not accepted).", + "", + " In practice, teams usually precompile into the binary all types that they", + " expect it to use in the context of Any. However, for URLs which use the", + " scheme `http`, `https`, or no scheme, one can optionally set up a type", + " server that maps type URLs to message definitions as follows:", + "", + " * If no scheme is provided, `https` is assumed.", + " * An HTTP GET on the URL must yield a [google.protobuf.Type][]", + " value in binary format, or produce an error.", + " * Applications are allowed to cache lookup results based on the", + " URL, or have them precompiled into a binary to avoid any", + " lookup. Therefore, binary compatibility needs to be preserved", + " on changes to types. (Use versioned type names to manage", + " breaking changes.)", + "", + " Note: this functionality is not currently available in the official", + " protobuf release, and it is not used for type URLs beginning with", + " type.googleapis.com. As of May 2023, there are no widely used type server", + " implementations and no plans to implement one.", + "", + " Schemes other than `http`, `https` (or the empty scheme) might be", + " used with implementation specific semantics.", + "" + ] + }, + "Any:value": { + "paramName": "value", + "paramType": "TYPE_BYTES", + "comments": [ + " Must be a valid serialized protocol buffer of the above specified type." + ] + }, + "Status:code": { + "paramName": "code", + "paramType": "TYPE_INT32", + "comments": [ + " The status code, which should be an enum value of", + " [google.rpc.Code][google.rpc.Code]." + ] + }, + "Status:message": { + "paramName": "message", + "paramType": "TYPE_STRING", + "comments": [ + " A developer-facing error message, which should be in English. Any", + " user-facing error message should be localized and sent in the", + " [google.rpc.Status.details][google.rpc.Status.details] field, or localized", + " by the client." + ] + }, + "Status:details": { + "paramName": "details", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " A list of messages that carry the error details. There is a common set of", + " message types for APIs to use." + ] + }, + "Operations": { + "paramName": "", + "paramType": "", + "comments": [ + " Manages long-running operations with an API service.", + "", + " When an API method normally takes long time to complete, it can be designed", + " to return [Operation][google.longrunning.Operation] to the client, and the client can use this", + " interface to receive the real response asynchronously by polling the", + " operation resource, or pass the operation resource to another API (such as", + " Google Cloud Pub/Sub API) to receive the response. Any API service that", + " returns long-running operations should implement the `Operations` interface", + " so developers can have a consistent client experience." + ] + }, + "Operations:ListOperations": { + "paramName": "", + "paramType": "", + "comments": [ + " Lists operations that match the specified filter in the request. If the", + " server doesn't support this method, it returns `UNIMPLEMENTED`.", + "", + " NOTE: the `name` binding allows API services to override the binding", + " to use different resource name schemes, such as `users/*/operations`. To", + " override the binding, API services can add a binding such as", + " `\"/v1/{name=users/*}/operations\"` to their service configuration.", + " For backwards compatibility, the default name includes the operations", + " collection id, however overriding users must ensure the name binding", + " is the parent resource, without the operations collection id.", + "" + ] + }, + "Operations:GetOperation": { + "paramName": "", + "paramType": "", + "comments": [ + " Gets the latest state of a long-running operation. Clients can use this", + " method to poll the operation result at intervals as recommended by the API", + " service.", + "" + ] + }, + "Operations:DeleteOperation": { + "paramName": "", + "paramType": "", + "comments": [ + " Deletes a long-running operation. This method indicates that the client is", + " no longer interested in the operation result. It does not cancel the", + " operation. If the server doesn't support this method, it returns", + " `google.rpc.Code.UNIMPLEMENTED`.", + "" + ] + }, + "Operations:CancelOperation": { + "paramName": "", + "paramType": "", + "comments": [ + " Starts asynchronous cancellation on a long-running operation. The server", + " makes a best effort to cancel the operation, but success is not", + " guaranteed. If the server doesn't support this method, it returns", + " `google.rpc.Code.UNIMPLEMENTED`. Clients can use", + " [Operations.GetOperation][google.longrunning.Operations.GetOperation] or", + " other methods to check whether the cancellation succeeded or whether the", + " operation completed despite cancellation. On successful cancellation,", + " the operation is not deleted; instead, it becomes an operation with", + " an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,", + " corresponding to `Code.CANCELLED`.", + "" + ] + }, + "Operations:WaitOperation": { + "paramName": "", + "paramType": "", + "comments": [ + " Waits until the specified long-running operation is done or reaches at most", + " a specified timeout, returning the latest state. If the operation is", + " already done, the latest state is immediately returned. If the timeout", + " specified is greater than the default HTTP/RPC timeout, the HTTP/RPC", + " timeout is used. If the server does not support this method, it returns", + " `google.rpc.Code.UNIMPLEMENTED`.", + " Note that this method is on a best-effort basis. It may return the latest", + " state before the specified timeout (including immediately), meaning even an", + " immediate response is no guarantee that the operation is done.", + "" + ] + }, + "Operation:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The server-assigned name, which is only unique within the same service that", + " originally returns it. If you use the default HTTP mapping, the", + " `name` should be a resource name ending with `operations/{unique_id}`." + ] + }, + "Operation:metadata": { + "paramName": "metadata", + "paramType": ".google.protobuf.Any", + "comments": [ + " Service-specific metadata associated with the operation. It typically", + " contains progress information and common metadata such as create time.", + " Some services might not provide such metadata. Any method that returns a", + " long-running operation should document the metadata type, if any." + ] + }, + "Operation:done": { + "paramName": "done", + "paramType": "TYPE_BOOL", + "comments": [ + " If the value is `false`, it means the operation is still in progress.", + " If `true`, the operation is completed, and either `error` or `response` is", + " available." + ] + }, + "Operation:error": { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error result of the operation in case of failure or cancellation." + ] + }, + "Operation:response": { + "paramName": "response", + "paramType": ".google.protobuf.Any", + "comments": [ + " The normal response of the operation in case of success. If the original", + " method returns no data on success, such as `Delete`, the response is", + " `google.protobuf.Empty`. If the original method is standard", + " `Get`/`Create`/`Update`, the response should be the resource. For other", + " methods, the response should have the type `XxxResponse`, where `Xxx`", + " is the original method name. For example, if the original method name", + " is `TakeSnapshot()`, the inferred response type is", + " `TakeSnapshotResponse`." + ] + }, + "GetOperationRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the operation resource." + ] + }, + "ListOperationsRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the operation's parent resource." + ] + }, + "ListOperationsRequest:filter": { + "paramName": "filter", + "paramType": "TYPE_STRING", + "comments": [ + " The standard list filter." + ] + }, + "ListOperationsRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The standard list page size." + ] + }, + "ListOperationsRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The standard list page token." + ] + }, + "ListOperationsResponse:operations": { + "paramName": "operations", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " A list of operations that matches the specified filter in the request." + ] + }, + "ListOperationsResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The standard List next-page token." + ] + }, + "CancelOperationRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the operation resource to be cancelled." + ] + }, + "DeleteOperationRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the operation resource to be deleted." + ] + }, + "WaitOperationRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the operation resource to wait on." + ] + }, + "WaitOperationRequest:timeout": { + "paramName": "timeout", + "paramType": ".google.protobuf.Duration", + "comments": [ + " The maximum duration to wait before timing out. If left blank, the wait", + " will be at most the time permitted by the underlying HTTP/RPC protocol.", + " If RPC context deadline is also specified, the shorter one will be used." + ] + }, + "OperationInfo:response_type": { + "paramName": "response_type", + "paramType": "TYPE_STRING", + "comments": [ + " Required. The message name of the primary return type for this", + " long-running operation.", + " This type will be used to deserialize the LRO's response.", + "", + " If the response is in a different package from the rpc, a fully-qualified", + " message name must be used (e.g. `google.protobuf.Struct`).", + "", + " Note: Altering this value constitutes a breaking change." + ] + }, + "OperationInfo:metadata_type": { + "paramName": "metadata_type", + "paramType": "TYPE_STRING", + "comments": [ + " Required. The message name of the metadata type for this long-running", + " operation.", + "", + " If the response is in a different package from the rpc, a fully-qualified", + " message name must be used (e.g. `google.protobuf.Struct`).", + "", + " Note: Altering this value constitutes a breaking change." + ] + }, + "Timestamp:seconds": { + "paramName": "seconds", + "paramType": "TYPE_INT64", + "comments": [ + " Represents seconds of UTC time since Unix epoch", + " 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to", + " 9999-12-31T23:59:59Z inclusive." + ] + }, + "Timestamp:nanos": { + "paramName": "nanos", + "paramType": "TYPE_INT32", + "comments": [ + " Non-negative fractions of a second at nanosecond resolution. Negative", + " second values with fractions must still have non-negative nanos values", + " that count forward in time. Must be from 0 to 999,999,999", + " inclusive." + ] + }, + "Echo": { + "paramName": "", + "paramType": "", + "comments": [ + " This service is used showcase the four main types of rpcs - unary, server", + " side streaming, client side streaming, and bidirectional streaming. This", + " service also exposes methods that explicitly implement server delay, and", + " paginated calls. Set the 'showcase-trailer' metadata key on any method", + " to have the values echoed in the response trailers. Set the ", + " 'x-goog-request-params' metadata key on any method to have the values", + " echoed in the response headers." + ] + }, + "Echo:Expand": { + "paramName": "", + "paramType": "", + "comments": [ + " This method splits the given content into words and will pass each word back", + " through the stream. This method showcases server-side streaming RPCs.", + "" + ] + }, + "Echo:Collect": { + "paramName": "", + "paramType": "", + "comments": [ + " This method will collect the words given to it. When the stream is closed", + " by the client, this method will return the a concatenation of the strings", + " passed to it. This method showcases client-side streaming RPCs.", + "" + ] + }, + "Echo:Chat": { + "paramName": "", + "paramType": "", + "comments": [ + " This method, upon receiving a request on the stream, will pass the same", + " content back on the stream. This method showcases bidirectional", + " streaming RPCs.", + "" + ] + }, + "Echo:PagedExpand": { + "paramName": "", + "paramType": "", + "comments": [ + " This is similar to the Expand method but instead of returning a stream of", + " expanded words, this method returns a paged list of expanded words.", + "" + ] + }, + "Echo:PagedExpandLegacy": { + "paramName": "", + "paramType": "", + "comments": [ + " This is similar to the PagedExpand except that it uses", + " max_results instead of page_size, as some legacy APIs still", + " do. New APIs should NOT use this pattern.", + "" + ] + }, + "Echo:PagedExpandLegacyMapped": { + "paramName": "", + "paramType": "", + "comments": [ + " This method returns a map containing lists of words that appear in the input, keyed by their", + " initial character. The only words returned are the ones included in the current page,", + " as determined by page_token and page_size, which both refer to the word indices in the", + " input. This paging result consisting of a map of lists is a pattern used by some legacy", + " APIs. New APIs should NOT use this pattern.", + "" + ] + }, + "Echo:Wait": { + "paramName": "", + "paramType": "", + "comments": [ + " This method will wait for the requested amount of time and then return.", + " This method showcases how a client handles a request timeout.", + "" + ] + }, + "Echo:Block": { + "paramName": "", + "paramType": "", + "comments": [ + " This method will block (wait) for the requested amount of time", + " and then return the response or error.", + " This method showcases how a client handles delays or retries.", + "" + ] + }, + "EchoRequest:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The content to be echoed by the server." + ] + }, + "EchoRequest:error": { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error to be thrown by the server." + ] + }, + "EchoRequest:severity": { + "paramName": "severity", + "paramType": ".google.showcase.v1beta1.Severity", + "comments": [ + " The severity to be echoed by the server." + ] + }, + "EchoRequest:header": { + "paramName": "header", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. This field can be set to test the routing annotation on the Echo method." + ] + }, + "EchoRequest:other_header": { + "paramName": "other_header", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. This field can be set to test the routing annotation on the Echo method." + ] + }, + "EchoResponse:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The content specified in the request." + ] + }, + "EchoResponse:severity": { + "paramName": "severity", + "paramType": ".google.showcase.v1beta1.Severity", + "comments": [ + " The severity specified in the request." + ] + }, + "ExpandRequest:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The content that will be split into words and returned on the stream." + ] + }, + "ExpandRequest:error": { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error that is thrown after all words are sent on the stream." + ] + }, + "PagedExpandRequest:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The string to expand." + ], + "fieldBehavior": 2 + }, + "PagedExpandRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The number of words to returned in each page." + ] + }, + "PagedExpandRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The position of the page to be returned." + ] + }, + "PagedExpandLegacyRequest:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The string to expand." + ], + "fieldBehavior": 2 + }, + "PagedExpandLegacyRequest:max_results": { + "paramName": "max_results", + "paramType": "TYPE_INT32", + "comments": [ + " The number of words to returned in each page.", + " (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that", + " violates aip.dev/158. Ordinarily, this should be page_size. --)" + ] + }, + "PagedExpandLegacyRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The position of the page to be returned." + ] + }, + "PagedExpandResponse:responses": { + "paramName": "responses", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The words that were expanded." + ] + }, + "PagedExpandResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The next page token." + ] + }, + "PagedExpandResponseList:words": { + "paramName": "words", + "paramType": "TYPE_STRING[]", + "comments": [] + }, + "PagedExpandLegacyMappedResponse:alphabetized": { + "paramName": "alphabetized", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The words that were expanded, indexed by their initial character.", + " (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates", + " aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --)" + ] + }, + "PagedExpandLegacyMappedResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The next page token." + ] + }, + "WaitRequest:end_time": { + "paramName": "end_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The time that this operation will complete." + ] + }, + "WaitRequest:ttl": { + "paramName": "ttl", + "paramType": ".google.protobuf.Duration", + "comments": [ + " The duration of this operation." + ] + }, + "WaitRequest:error": { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error that will be returned by the server. If this code is specified", + " to be the OK rpc code, an empty response will be returned." + ] + }, + "WaitRequest:success": { + "paramName": "success", + "paramType": ".google.showcase.v1beta1.WaitResponse", + "comments": [ + " The response to be returned on operation completion." + ] + }, + "WaitResponse:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " This content of the result." + ] + }, + "WaitMetadata:end_time": { + "paramName": "end_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The time that this operation will complete." + ] + }, + "BlockRequest:response_delay": { + "paramName": "response_delay", + "paramType": ".google.protobuf.Duration", + "comments": [ + " The amount of time to block before returning a response." + ] + }, + "BlockRequest:error": { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error that will be returned by the server. If this code is specified", + " to be the OK rpc code, an empty response will be returned." + ] + }, + "BlockRequest:success": { + "paramName": "success", + "paramType": ".google.showcase.v1beta1.BlockResponse", + "comments": [ + " The response to be returned that will signify successful method call." + ] + }, + "BlockResponse:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " This content can contain anything, the server will not depend on a value", + " here." + ] + }, + "ResourceDescriptor:type": { + "paramName": "type", + "paramType": "TYPE_STRING", + "comments": [ + " The resource type. It must be in the format of", + " {service_name}/{resource_type_kind}. The `resource_type_kind` must be", + " singular and must not include version numbers.", + "", + " Example: `storage.googleapis.com/Bucket`", + "", + " The value of the resource_type_kind must follow the regular expression", + " /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and", + " should use PascalCase (UpperCamelCase). The maximum number of", + " characters allowed for the `resource_type_kind` is 100." + ] + }, + "ResourceDescriptor:pattern": { + "paramName": "pattern", + "paramType": "TYPE_STRING[]", + "comments": [ + " Optional. The relative resource name pattern associated with this resource", + " type. The DNS prefix of the full resource name shouldn't be specified here.", + "", + " The path pattern must follow the syntax, which aligns with HTTP binding", + " syntax:", + "", + " Template = Segment { \"/\" Segment } ;", + " Segment = LITERAL | Variable ;", + " Variable = \"{\" LITERAL \"}\" ;", + "", + " Examples:", + "", + " - \"projects/{project}/topics/{topic}\"", + " - \"projects/{project}/knowledgeBases/{knowledge_base}\"", + "", + " The components in braces correspond to the IDs for each resource in the", + " hierarchy. It is expected that, if multiple patterns are provided,", + " the same component name (e.g. \"project\") refers to IDs of the same", + " type of resource." + ] + }, + "ResourceDescriptor:name_field": { + "paramName": "name_field", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. The field on the resource that designates the resource name", + " field. If omitted, this is assumed to be \"name\"." + ] + }, + "ResourceDescriptor:history": { + "paramName": "history", + "paramType": ".google.api.ResourceDescriptor.History", + "comments": [ + " Optional. The historical or future-looking state of the resource pattern.", + "", + " Example:", + "", + " // The InspectTemplate message originally only supported resource", + " // names with organization, and project was added later.", + " message InspectTemplate {", + " option (google.api.resource) = {", + " type: \"dlp.googleapis.com/InspectTemplate\"", + " pattern:", + " \"organizations/{organization}/inspectTemplates/{inspect_template}\"", + " pattern: \"projects/{project}/inspectTemplates/{inspect_template}\"", + " history: ORIGINALLY_SINGLE_PATTERN", + " };", + " }" + ] + }, + "ResourceDescriptor:plural": { + "paramName": "plural", + "paramType": "TYPE_STRING", + "comments": [ + " The plural name used in the resource name and permission names, such as", + " 'projects' for the resource name of 'projects/{project}' and the permission", + " name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same", + " concept of the `plural` field in k8s CRD spec", + " https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/", + "", + " Note: The plural form is required even for singleton resources. See", + " https://aip.dev/156" + ] + }, + "ResourceDescriptor:singular": { + "paramName": "singular", + "paramType": "TYPE_STRING", + "comments": [ + " The same concept of the `singular` field in k8s CRD spec", + " https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/", + " Such as \"project\" for the `resourcemanager.googleapis.com/Project` type." + ] + }, + "ResourceDescriptor:style": { + "paramName": "style", + "paramType": "TYPE_ENUM[]", + "comments": [ + " Style flag(s) for this resource.", + " These indicate that a resource is expected to conform to a given", + " style. See the specific style flags for additional information." + ] + }, + "ResourceReference:type": { + "paramName": "type", + "paramType": "TYPE_STRING", + "comments": [ + " The resource type that the annotated field references.", + "", + " Example:", + "", + " message Subscription {", + " string topic = 2 [(google.api.resource_reference) = {", + " type: \"pubsub.googleapis.com/Topic\"", + " }];", + " }", + "", + " Occasionally, a field may reference an arbitrary resource. In this case,", + " APIs use the special value * in their resource reference.", + "", + " Example:", + "", + " message GetIamPolicyRequest {", + " string resource = 2 [(google.api.resource_reference) = {", + " type: \"*\"", + " }];", + " }" + ] + }, + "ResourceReference:child_type": { + "paramName": "child_type", + "paramType": "TYPE_STRING", + "comments": [ + " The resource type of a child collection that the annotated field", + " references. This is useful for annotating the `parent` field that", + " doesn't have a fixed resource type.", + "", + " Example:", + "", + " message ListLogEntriesRequest {", + " string parent = 1 [(google.api.resource_reference) = {", + " child_type: \"logging.googleapis.com/LogEntry\"", + " };", + " }" + ] + }, + "FieldMask:paths": { + "paramName": "paths", + "paramType": "TYPE_STRING[]", + "comments": [ + " The set of field mask paths." + ] + }, + "Identity": { + "paramName": "", + "paramType": "", + "comments": [ + " A simple identity service." + ] + }, + "Identity:CreateUser": { + "paramName": "", + "paramType": "", + "comments": [ + " Creates a user.", + "" + ] + }, + "Identity:GetUser": { + "paramName": "", + "paramType": "", + "comments": [ + " Retrieves the User with the given uri.", + "" + ] + }, + "Identity:UpdateUser": { + "paramName": "", + "paramType": "", + "comments": [ + " Updates a user.", + "" + ] + }, + "Identity:DeleteUser": { + "paramName": "", + "paramType": "", + "comments": [ + " Deletes a user, their profile, and all of their authored messages.", + "" + ] + }, + "Identity:ListUsers": { + "paramName": "", + "paramType": "", + "comments": [ + " Lists all users.", + "" + ] + }, + "User:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the user." + ] + }, + "User:display_name": { + "paramName": "display_name", + "paramType": "TYPE_STRING", + "comments": [ + " The display_name of the user." + ], + "fieldBehavior": 2 + }, + "User:email": { + "paramName": "email", + "paramType": "TYPE_STRING", + "comments": [ + " The email address of the user." + ], + "fieldBehavior": 2 + }, + "User:create_time": { + "paramName": "create_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The timestamp at which the user was created." + ], + "fieldBehavior": 3 + }, + "User:update_time": { + "paramName": "update_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The latest timestamp at which the user was updated." + ], + "fieldBehavior": 3 + }, + "User:age": { + "paramName": "age", + "paramType": "TYPE_INT32", + "comments": [ + " The age of the user in years." + ] + }, + "User:height_feet": { + "paramName": "height_feet", + "paramType": "TYPE_DOUBLE", + "comments": [ + " The height of the user in feet." + ] + }, + "User:nickname": { + "paramName": "nickname", + "paramType": "TYPE_STRING", + "comments": [ + " The nickname of the user.", + "", + " (-- aip.dev/not-precedent: An empty string is a valid nickname.", + " Ordinarily, proto3_optional should not be used on a `string` field. --)" + ] + }, + "User:enable_notifications": { + "paramName": "enable_notifications", + "paramType": "TYPE_BOOL", + "comments": [ + " Enables the receiving of notifications. The default is true if unset.", + "", + " (-- aip.dev/not-precedent: The default for the feature is true.", + " Ordinarily, the default for a `bool` field should be false. --)" + ] + }, + "CreateUserRequest:user": { + "paramName": "user", + "paramType": ".google.showcase.v1beta1.User", + "comments": [ + " The user to create." + ] + }, + "GetUserRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested user." + ], + "fieldBehavior": 2 + }, + "UpdateUserRequest:user": { + "paramName": "user", + "paramType": ".google.showcase.v1beta1.User", + "comments": [ + " The user to update." + ] + }, + "UpdateUserRequest:update_mask": { + "paramName": "update_mask", + "paramType": ".google.protobuf.FieldMask", + "comments": [ + " The field mask to determine which fields are to be updated. If empty, the", + " server will assume all fields are to be updated." + ] + }, + "DeleteUserRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the user to delete." + ], + "fieldBehavior": 2 + }, + "ListUsersRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of users to return. Server may return fewer users", + " than requested. If unspecified, server will pick an appropriate default." + ] + }, + "ListUsersRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The value of google.showcase.v1beta1.ListUsersResponse.next_page_token", + " returned from the previous call to", + " `google.showcase.v1beta1.Identity\\ListUsers` method." + ] + }, + "ListUsersResponse:users": { + "paramName": "users", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The list of users." + ] + }, + "ListUsersResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " A token to retrieve next page of results.", + " Pass this value in ListUsersRequest.page_token field in the subsequent", + " call to `google.showcase.v1beta1.Message\\ListUsers` method to retrieve the", + " next page of results." + ] + }, + "ErrorInfo:reason": { + "paramName": "reason", + "paramType": "TYPE_STRING", + "comments": [ + " The reason of the error. This is a constant value that identifies the", + " proximate cause of the error. Error reasons are unique within a particular", + " domain of errors. This should be at most 63 characters and match a", + " regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents", + " UPPER_SNAKE_CASE." + ] + }, + "ErrorInfo:domain": { + "paramName": "domain", + "paramType": "TYPE_STRING", + "comments": [ + " The logical grouping to which the \"reason\" belongs. The error domain", + " is typically the registered service name of the tool or product that", + " generates the error. Example: \"pubsub.googleapis.com\". If the error is", + " generated by some common infrastructure, the error domain must be a", + " globally unique value that identifies the infrastructure. For Google API", + " infrastructure, the error domain is \"googleapis.com\"." + ] + }, + "ErrorInfo:metadata": { + "paramName": "metadata", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Additional structured details about this error.", + "", + " Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in", + " length. When identifying the current value of an exceeded limit, the units", + " should be contained in the key, not the value. For example, rather than", + " {\"instanceLimit\": \"100/request\"}, should be returned as,", + " {\"instanceLimitPerRequest\": \"100\"}, if the client exceeds the number of", + " instances that can be created in a single (batch) request." + ] + }, + "RetryInfo:retry_delay": { + "paramName": "retry_delay", + "paramType": ".google.protobuf.Duration", + "comments": [ + " Clients should wait at least this long between retrying the same request." + ] + }, + "DebugInfo:stack_entries": { + "paramName": "stack_entries", + "paramType": "TYPE_STRING[]", + "comments": [ + " The stack trace entries indicating where the error occurred." + ] + }, + "DebugInfo:detail": { + "paramName": "detail", + "paramType": "TYPE_STRING", + "comments": [ + " Additional debugging information provided by the server." + ] + }, + "QuotaFailure:violations": { + "paramName": "violations", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Describes all quota violations." + ] + }, + "PreconditionFailure:violations": { + "paramName": "violations", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Describes all precondition violations." + ] + }, + "BadRequest:field_violations": { + "paramName": "field_violations", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Describes all violations in a client request." + ] + }, + "RequestInfo:request_id": { + "paramName": "request_id", + "paramType": "TYPE_STRING", + "comments": [ + " An opaque string that should only be interpreted by the service generating", + " it. For example, it can be used to identify requests in the service's logs." + ] + }, + "RequestInfo:serving_data": { + "paramName": "serving_data", + "paramType": "TYPE_STRING", + "comments": [ + " Any data that was used to serve this request. For example, an encrypted", + " stack trace that can be sent back to the service provider for debugging." + ] + }, + "ResourceInfo:resource_type": { + "paramName": "resource_type", + "paramType": "TYPE_STRING", + "comments": [ + " A name for the type of resource being accessed, e.g. \"sql table\",", + " \"cloud storage bucket\", \"file\", \"Google calendar\"; or the type URL", + " of the resource: e.g. \"type.googleapis.com/google.pubsub.v1.Topic\"." + ] + }, + "ResourceInfo:resource_name": { + "paramName": "resource_name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the resource being accessed. For example, a shared calendar", + " name: \"example.com_4fghdhgsrgh@group.calendar.google.com\", if the current", + " error is", + " [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED]." + ] + }, + "ResourceInfo:owner": { + "paramName": "owner", + "paramType": "TYPE_STRING", + "comments": [ + " The owner of the resource (optional).", + " For example, \"user:\" or \"project:\"." + ] + }, + "ResourceInfo:description": { + "paramName": "description", + "paramType": "TYPE_STRING", + "comments": [ + " Describes what error is encountered when accessing this resource.", + " For example, updating a cloud project may require the `writer` permission", + " on the developer console project." + ] + }, + "Help:links": { + "paramName": "links", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " URL(s) pointing to additional information on handling the current error." + ] + }, + "LocalizedMessage:locale": { + "paramName": "locale", + "paramType": "TYPE_STRING", + "comments": [ + " The locale used following the specification defined at", + " https://www.rfc-editor.org/rfc/bcp/bcp47.txt.", + " Examples are: \"en-US\", \"fr-CH\", \"es-MX\"" + ] + }, + "LocalizedMessage:message": { + "paramName": "message", + "paramType": "TYPE_STRING", + "comments": [ + " The localized error message in the above locale." + ] + }, + "Messaging": { + "paramName": "", + "paramType": "", + "comments": [ + " A simple messaging service that implements chat rooms and profile posts.", + "", + " This messaging service showcases the features that API clients", + " generated by gapic-generators implement." + ] + }, + "Messaging:CreateRoom": { + "paramName": "", + "paramType": "", + "comments": [ + " Creates a room.", + "" + ] + }, + "Messaging:GetRoom": { + "paramName": "", + "paramType": "", + "comments": [ + " Retrieves the Room with the given resource name.", + "" + ] + }, + "Messaging:UpdateRoom": { + "paramName": "", + "paramType": "", + "comments": [ + " Updates a room.", + "" + ] + }, + "Messaging:DeleteRoom": { + "paramName": "", + "paramType": "", + "comments": [ + " Deletes a room and all of its blurbs.", + "" + ] + }, + "Messaging:ListRooms": { + "paramName": "", + "paramType": "", + "comments": [ + " Lists all chat rooms.", + "" + ] + }, + "Messaging:CreateBlurb": { + "paramName": "", + "paramType": "", + "comments": [ + " Creates a blurb. If the parent is a room, the blurb is understood to be a", + " message in that room. If the parent is a profile, the blurb is understood", + " to be a post on the profile.", + "" + ] + }, + "Messaging:GetBlurb": { + "paramName": "", + "paramType": "", + "comments": [ + " Retrieves the Blurb with the given resource name.", + "" + ] + }, + "Messaging:UpdateBlurb": { + "paramName": "", + "paramType": "", + "comments": [ + " Updates a blurb.", + "" + ] + }, + "Messaging:DeleteBlurb": { + "paramName": "", + "paramType": "", + "comments": [ + " Deletes a blurb.", + "" + ] + }, + "Messaging:ListBlurbs": { + "paramName": "", + "paramType": "", + "comments": [ + " Lists blurbs for a specific chat room or user profile depending on the", + " parent resource name.", + "" + ] + }, + "Messaging:SearchBlurbs": { + "paramName": "", + "paramType": "", + "comments": [ + " This method searches through all blurbs across all rooms and profiles", + " for blurbs containing to words found in the query. Only posts that", + " contain an exact match of a queried word will be returned.", + "" + ] + }, + "Messaging:StreamBlurbs": { + "paramName": "", + "paramType": "", + "comments": [ + " This returns a stream that emits the blurbs that are created for a", + " particular chat room or user profile.", + "" + ] + }, + "Messaging:SendBlurbs": { + "paramName": "", + "paramType": "", + "comments": [ + " This is a stream to create multiple blurbs. If an invalid blurb is", + " requested to be created, the stream will close with an error.", + "" + ] + }, + "Messaging:Connect": { + "paramName": "", + "paramType": "", + "comments": [ + " This method starts a bidirectional stream that receives all blurbs that", + " are being created after the stream has started and sends requests to create", + " blurbs. If an invalid blurb is requested to be created, the stream will", + " close with an error.", + "" + ] + }, + "Room:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the chat room." + ] + }, + "Room:display_name": { + "paramName": "display_name", + "paramType": "TYPE_STRING", + "comments": [ + " The human readable name of the chat room." + ], + "fieldBehavior": 2 + }, + "Room:description": { + "paramName": "description", + "paramType": "TYPE_STRING", + "comments": [ + " The description of the chat room." + ] + }, + "Room:create_time": { + "paramName": "create_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The timestamp at which the room was created." + ], + "fieldBehavior": 3 + }, + "Room:update_time": { + "paramName": "update_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The latest timestamp at which the room was updated." + ], + "fieldBehavior": 3 + }, + "CreateRoomRequest:room": { + "paramName": "room", + "paramType": ".google.showcase.v1beta1.Room", + "comments": [ + " The room to create." + ] + }, + "GetRoomRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested room." + ], + "fieldBehavior": 2 + }, + "UpdateRoomRequest:room": { + "paramName": "room", + "paramType": ".google.showcase.v1beta1.Room", + "comments": [ + " The room to update." + ] + }, + "UpdateRoomRequest:update_mask": { + "paramName": "update_mask", + "paramType": ".google.protobuf.FieldMask", + "comments": [ + " The field mask to determine which fields are to be updated. If empty, the", + " server will assume all fields are to be updated." + ] + }, + "DeleteRoomRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested room." + ], + "fieldBehavior": 2 + }, + "ListRoomsRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of rooms return. Server may return fewer rooms", + " than requested. If unspecified, server will pick an appropriate default." + ] + }, + "ListRoomsRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The value of google.showcase.v1beta1.ListRoomsResponse.next_page_token", + " returned from the previous call to", + " `google.showcase.v1beta1.Messaging\\ListRooms` method." + ] + }, + "ListRoomsResponse:rooms": { + "paramName": "rooms", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The list of rooms." + ] + }, + "ListRoomsResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " A token to retrieve next page of results.", + " Pass this value in ListRoomsRequest.page_token field in the subsequent", + " call to `google.showcase.v1beta1.Messaging\\ListRooms` method to retrieve", + " the next page of results." + ] + }, + "Blurb:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the chat room." + ] + }, + "Blurb:user": { + "paramName": "user", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the blurb's author." + ], + "fieldBehavior": 2 + }, + "Blurb:text": { + "paramName": "text", + "paramType": "TYPE_STRING", + "comments": [ + " The textual content of this blurb." + ] + }, + "Blurb:image": { + "paramName": "image", + "paramType": "TYPE_BYTES", + "comments": [ + " The image content of this blurb." + ] + }, + "Blurb:create_time": { + "paramName": "create_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The timestamp at which the blurb was created." + ], + "fieldBehavior": 3 + }, + "Blurb:update_time": { + "paramName": "update_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The latest timestamp at which the blurb was updated." + ], + "fieldBehavior": 3 + }, + "Blurb:legacy_room_id": { + "paramName": "legacy_room_id", + "paramType": "TYPE_STRING", + "comments": [ + " The legacy id of the room. This field is used to signal", + " the use of the compound resource pattern", + " `rooms/{room}/blurbs/legacy/{legacy_room}.{blurb}`" + ] + }, + "Blurb:legacy_user_id": { + "paramName": "legacy_user_id", + "paramType": "TYPE_STRING", + "comments": [ + " The legacy id of the user. This field is used to signal", + " the use of the compound resource pattern", + " `users/{user}/profile/blurbs/legacy/{legacy_user}~{blurb}`" + ] + }, + "CreateBlurbRequest:parent": { + "paramName": "parent", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the chat room or user profile that this blurb will", + " be tied to." + ], + "fieldBehavior": 2 + }, + "CreateBlurbRequest:blurb": { + "paramName": "blurb", + "paramType": ".google.showcase.v1beta1.Blurb", + "comments": [ + " The blurb to create." + ] + }, + "GetBlurbRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested blurb." + ], + "fieldBehavior": 2 + }, + "UpdateBlurbRequest:blurb": { + "paramName": "blurb", + "paramType": ".google.showcase.v1beta1.Blurb", + "comments": [ + " The blurb to update." + ] + }, + "UpdateBlurbRequest:update_mask": { + "paramName": "update_mask", + "paramType": ".google.protobuf.FieldMask", + "comments": [ + " The field mask to determine wich fields are to be updated. If empty, the", + " server will assume all fields are to be updated." + ] + }, + "DeleteBlurbRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested blurb." + ], + "fieldBehavior": 2 + }, + "ListBlurbsRequest:parent": { + "paramName": "parent", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested room or profile whos blurbs to list." + ], + "fieldBehavior": 2 + }, + "ListBlurbsRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of blurbs to return. Server may return fewer", + " blurbs than requested. If unspecified, server will pick an appropriate", + " default." + ] + }, + "ListBlurbsRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The value of google.showcase.v1beta1.ListBlurbsResponse.next_page_token", + " returned from the previous call to", + " `google.showcase.v1beta1.Messaging\\ListBlurbs` method." + ] + }, + "ListBlurbsResponse:blurbs": { + "paramName": "blurbs", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The list of blurbs." + ] + }, + "ListBlurbsResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " A token to retrieve next page of results.", + " Pass this value in ListBlurbsRequest.page_token field in the subsequent", + " call to `google.showcase.v1beta1.Blurb\\ListBlurbs` method to retrieve", + " the next page of results." + ] + }, + "SearchBlurbsRequest:query": { + "paramName": "query", + "paramType": "TYPE_STRING", + "comments": [ + " The query used to search for blurbs containing to words of this string.", + " Only posts that contain an exact match of a queried word will be returned." + ], + "fieldBehavior": 2 + }, + "SearchBlurbsRequest:parent": { + "paramName": "parent", + "paramType": "TYPE_STRING", + "comments": [ + " The rooms or profiles to search. If unset, `SearchBlurbs` will search all", + " rooms and all profiles." + ] + }, + "SearchBlurbsRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of blurbs return. Server may return fewer", + " blurbs than requested. If unspecified, server will pick an appropriate", + " default." + ] + }, + "SearchBlurbsRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The value of", + " google.showcase.v1beta1.SearchBlurbsResponse.next_page_token", + " returned from the previous call to", + " `google.showcase.v1beta1.Messaging\\SearchBlurbs` method." + ] + }, + "SearchBlurbsMetadata:retry_info": { + "paramName": "retry_info", + "paramType": ".google.rpc.RetryInfo", + "comments": [ + " This signals to the client when to next poll for response." + ] + }, + "SearchBlurbsResponse:blurbs": { + "paramName": "blurbs", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Blurbs that matched the search query." + ] + }, + "SearchBlurbsResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " A token to retrieve next page of results.", + " Pass this value in SearchBlurbsRequest.page_token field in the subsequent", + " call to `google.showcase.v1beta1.Blurb\\SearchBlurbs` method to", + " retrieve the next page of results." + ] + }, + "StreamBlurbsRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of a chat room or user profile whose blurbs to stream." + ], + "fieldBehavior": 2 + }, + "StreamBlurbsRequest:expire_time": { + "paramName": "expire_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The time at which this stream will close." + ], + "fieldBehavior": 2 + }, + "StreamBlurbsResponse:blurb": { + "paramName": "blurb", + "paramType": ".google.showcase.v1beta1.Blurb", + "comments": [ + " The blurb that was either created, updated, or deleted." + ] + }, + "StreamBlurbsResponse:action": { + "paramName": "action", + "paramType": ".google.showcase.v1beta1.StreamBlurbsResponse.Action", + "comments": [ + " The action that triggered the blurb to be returned." + ] + }, + "SendBlurbsResponse:names": { + "paramName": "names", + "paramType": "TYPE_STRING[]", + "comments": [ + " The names of successful blurb creations." + ] + }, + "ConnectRequest:config": { + "paramName": "config", + "paramType": ".google.showcase.v1beta1.ConnectRequest.ConnectConfig", + "comments": [ + " Provides information that specifies how to process subsequent requests.", + " The first `ConnectRequest` message must contain a `config` message." + ] + }, + "ConnectRequest:blurb": { + "paramName": "blurb", + "paramType": ".google.showcase.v1beta1.Blurb", + "comments": [ + " The blurb to be created." + ] + }, + "SequenceService": { + "paramName": "", + "paramType": "", + "comments": [] + }, + "SequenceService:CreateSequence": { + "paramName": "", + "paramType": "", + "comments": [ + " Creates a sequence.", + "" + ] + }, + "SequenceService:GetSequenceReport": { + "paramName": "", + "paramType": "", + "comments": [ + " Retrieves a sequence.", + "" + ] + }, + "SequenceService:AttemptSequence": { + "paramName": "", + "paramType": "", + "comments": [ + " Attempts a sequence.", + "" + ] + }, + "Sequence:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [], + "fieldBehavior": 3 + }, + "Sequence:responses": { + "paramName": "responses", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Sequence of responses to return in order for each attempt. If empty, the", + " default response is an immediate OK." + ] + }, + "SequenceReport:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [], + "fieldBehavior": 3 + }, + "SequenceReport:attempts": { + "paramName": "attempts", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The set of RPC attempts received by the server for a Sequence." + ] + }, + "CreateSequenceRequest:sequence": { + "paramName": "sequence", + "paramType": ".google.showcase.v1beta1.Sequence", + "comments": [] + }, + "AttemptSequenceRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [], + "fieldBehavior": 2 + }, + "GetSequenceReportRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [], + "fieldBehavior": 2 + }, + "Testing": { + "paramName": "", + "paramType": "", + "comments": [ + " A service to facilitate running discrete sets of tests", + " against Showcase." + ] + }, + "Testing:CreateSession": { + "paramName": "", + "paramType": "", + "comments": [ + " Creates a new testing session.", + "" + ] + }, + "Testing:GetSession": { + "paramName": "", + "paramType": "", + "comments": [ + " Gets a testing session.", + "" + ] + }, + "Testing:ListSessions": { + "paramName": "", + "paramType": "", + "comments": [ + " Lists the current test sessions.", + "" + ] + }, + "Testing:DeleteSession": { + "paramName": "", + "paramType": "", + "comments": [ + " Delete a test session.", + "" + ] + }, + "Testing:ReportSession": { + "paramName": "", + "paramType": "", + "comments": [ + " Report on the status of a session.", + " This generates a report detailing which tests have been completed,", + " and an overall rollup.", + "" + ] + }, + "Testing:ListTests": { + "paramName": "", + "paramType": "", + "comments": [ + " List the tests of a sessesion.", + "" + ] + }, + "Testing:DeleteTest": { + "paramName": "", + "paramType": "", + "comments": [ + " Explicitly decline to implement a test.", + "", + " This removes the test from subsequent `ListTests` calls, and", + " attempting to do the test will error.", + "", + " This method will error if attempting to delete a required test.", + "" + ] + }, + "Testing:VerifyTest": { + "paramName": "", + "paramType": "", + "comments": [ + " Register a response to a test.", + "", + " In cases where a test involves registering a final answer at the", + " end of the test, this method provides the means to do so.", + "" + ] + }, + "Session:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the session. The ID must conform to ^[a-z]+$", + " If this is not provided, Showcase chooses one at random." + ] + }, + "Session:version": { + "paramName": "version", + "paramType": ".google.showcase.v1beta1.Session.Version", + "comments": [ + " Required. The version this session is using." + ] + }, + "CreateSessionRequest:session": { + "paramName": "session", + "paramType": ".google.showcase.v1beta1.Session", + "comments": [ + " The session to be created.", + " Sessions are immutable once they are created (although they can", + " be deleted)." + ] + }, + "GetSessionRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The session to be retrieved." + ] + }, + "ListSessionsRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of sessions to return per page." + ] + }, + "ListSessionsRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The page token, for retrieving subsequent pages." + ] + }, + "ListSessionsResponse:sessions": { + "paramName": "sessions", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The sessions being returned." + ] + }, + "ListSessionsResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The next page token, if any.", + " An empty value here means the last page has been reached." + ] + }, + "DeleteSessionRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The session to be deleted." + ] + }, + "ReportSessionRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The session to be reported on." + ] + }, + "ReportSessionResponse:result": { + "paramName": "result", + "paramType": ".google.showcase.v1beta1.ReportSessionResponse.Result", + "comments": [ + " The state of the report." + ] + }, + "ReportSessionResponse:test_runs": { + "paramName": "test_runs", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The test runs of this session." + ] + }, + "Test:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the test.", + " The tests/* portion of the names are hard-coded, and do not change", + " from session to session." + ] + }, + "Test:expectation_level": { + "paramName": "expectation_level", + "paramType": ".google.showcase.v1beta1.Test.ExpectationLevel", + "comments": [ + " The expectation level for this test." + ] + }, + "Test:description": { + "paramName": "description", + "paramType": "TYPE_STRING", + "comments": [ + " A description of the test." + ] + }, + "Test:blueprints": { + "paramName": "blueprints", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The blueprints that will satisfy this test. There may be multiple blueprints", + " that can signal to the server that this test case is being exercised. Although", + " multiple blueprints are specified, only a single blueprint needs to be run to", + " signal that the test case was exercised." + ] + }, + "Issue:type": { + "paramName": "type", + "paramType": ".google.showcase.v1beta1.Issue.Type", + "comments": [ + " The type of the issue." + ] + }, + "Issue:severity": { + "paramName": "severity", + "paramType": ".google.showcase.v1beta1.Issue.Severity", + "comments": [ + " The severity of the issue." + ] + }, + "Issue:description": { + "paramName": "description", + "paramType": "TYPE_STRING", + "comments": [ + " A description of the issue." + ] + }, + "ListTestsRequest:parent": { + "paramName": "parent", + "paramType": "TYPE_STRING", + "comments": [ + " The session." + ] + }, + "ListTestsRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of tests to return per page." + ] + }, + "ListTestsRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The page token, for retrieving subsequent pages." + ] + }, + "ListTestsResponse:tests": { + "paramName": "tests", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The tests being returned." + ] + }, + "ListTestsResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The next page token, if any.", + " An empty value here means the last page has been reached." + ] + }, + "TestRun:test": { + "paramName": "test", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the test.", + " The tests/* portion of the names are hard-coded, and do not change", + " from session to session." + ] + }, + "TestRun:issue": { + "paramName": "issue", + "paramType": ".google.showcase.v1beta1.Issue", + "comments": [ + " An issue found with the test run. If empty, this test run was successful." + ] + }, + "DeleteTestRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The test to be deleted." + ] + }, + "VerifyTestRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The test to have an answer registered to it." + ] + }, + "VerifyTestRequest:answer": { + "paramName": "answer", + "paramType": "TYPE_BYTES", + "comments": [ + " The answer from the test." + ] + }, + "VerifyTestRequest:answers": { + "paramName": "answers", + "paramType": "TYPE_BYTES[]", + "comments": [ + " The answers from the test if multiple are to be checked" + ] + }, + "VerifyTestResponse:issue": { + "paramName": "issue", + "paramType": ".google.showcase.v1beta1.Issue", + "comments": [ + " An issue if check answer was unsuccessful. This will be empty if the check answer succeeded." + ] + } + } + }, + "retryableCodeMap": { + "codeEnumMapping": { + "0": "OK", + "1": "CANCELLED", + "2": "UNKNOWN", + "3": "INVALID_ARGUMENT", + "4": "DEADLINE_EXCEEDED", + "5": "NOT_FOUND", + "6": "ALREADY_EXISTS", + "7": "PERMISSION_DENIED", + "8": "RESOURCE_EXHAUSTED", + "9": "FAILED_PRECONDITION", + "10": "ABORTED", + "11": "OUT_OF_RANGE", + "12": "UNIMPLEMENTED", + "13": "INTERNAL", + "14": "UNAVAILABLE", + "15": "DATA_LOSS", + "16": "UNAUTHENTICATED", + "OK": "0", + "CANCELLED": "1", + "UNKNOWN": "2", + "INVALID_ARGUMENT": "3", + "DEADLINE_EXCEEDED": "4", + "NOT_FOUND": "5", + "ALREADY_EXISTS": "6", + "PERMISSION_DENIED": "7", + "RESOURCE_EXHAUSTED": "8", + "FAILED_PRECONDITION": "9", + "ABORTED": "10", + "OUT_OF_RANGE": "11", + "UNIMPLEMENTED": "12", + "INTERNAL": "13", + "UNAVAILABLE": "14", + "DATA_LOSS": "15", + "UNAUTHENTICATED": "16" + }, + "uniqueCodesNamesMap": { + "": "non_idempotent", + "deadline_exceeded_unavailable": "idempotent" + }, + "prettyCodesNamesMap": { + "non_idempotent": [], + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ] + }, + "uniqueParamsNamesMap": { + "94312e9926796a52a8fcbbedaac41972e07ccd1c": "default" + }, + "prettyParamNamesMap": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + } + } + }, + "grpcServiceConfig": {}, + "bundleConfigs": [], + "bundleConfigsMethods": [], + "simpleMethods": [ + { + "inputInterface": ".google.showcase.v1beta1.CreateRoomRequest", + "outputInterface": ".google.showcase.v1beta1.Room", + "comments": [ + " Creates a room.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "CreateRoom", + "inputType": ".google.showcase.v1beta1.CreateRoomRequest", + "outputType": ".google.showcase.v1beta1.Room", + "options": { + ".google.api.methodSignature": [ + "room.display_name,room.description" + ], + ".google.api.http": { + "post": "/v1beta1/rooms", + "body": "*", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "room", + "paramType": ".google.showcase.v1beta1.Room", + "comments": [ + " The room to create." + ] + } + ], + "headerRequestParams": [] + }, + { + "inputInterface": ".google.showcase.v1beta1.GetRoomRequest", + "outputInterface": ".google.showcase.v1beta1.Room", + "comments": [ + " Retrieves the Room with the given resource name.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "GetRoom", + "inputType": ".google.showcase.v1beta1.GetRoomRequest", + "outputType": ".google.showcase.v1beta1.Room", + "options": { + ".google.api.methodSignature": [ + "name" + ], + ".google.api.http": { + "get": "/v1beta1/{name=rooms/*}", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested room." + ], + "fieldBehavior": 2 + } + ], + "headerRequestParams": [ + [ + "name" + ] + ] + }, + { + "inputInterface": ".google.showcase.v1beta1.UpdateRoomRequest", + "outputInterface": ".google.showcase.v1beta1.Room", + "comments": [ + " Updates a room.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "UpdateRoom", + "inputType": ".google.showcase.v1beta1.UpdateRoomRequest", + "outputType": ".google.showcase.v1beta1.Room", + "options": { + ".google.api.http": { + "patch": "/v1beta1/{room.name=rooms/*}", + "body": "room", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "room", + "paramType": ".google.showcase.v1beta1.Room", + "comments": [ + " The room to update." + ] + }, + { + "paramName": "update_mask", + "paramType": ".google.protobuf.FieldMask", + "comments": [ + " The field mask to determine which fields are to be updated. If empty, the", + " server will assume all fields are to be updated." + ] + } + ], + "headerRequestParams": [ + [ + "room", + "name" + ] + ] + }, + { + "inputInterface": ".google.showcase.v1beta1.DeleteRoomRequest", + "outputInterface": ".google.protobuf.Empty", + "comments": [ + " Deletes a room and all of its blurbs.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "DeleteRoom", + "inputType": ".google.showcase.v1beta1.DeleteRoomRequest", + "outputType": ".google.protobuf.Empty", + "options": { + ".google.api.methodSignature": [ + "name" + ], + ".google.api.http": { + "delete": "/v1beta1/{name=rooms/*}", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested room." + ], + "fieldBehavior": 2 + } + ], + "headerRequestParams": [ + [ + "name" + ] + ] + }, + { + "inputInterface": ".google.showcase.v1beta1.CreateBlurbRequest", + "outputInterface": ".google.showcase.v1beta1.Blurb", + "comments": [ + " Creates a blurb. If the parent is a room, the blurb is understood to be a", + " message in that room. If the parent is a profile, the blurb is understood", + " to be a post on the profile.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "CreateBlurb", + "inputType": ".google.showcase.v1beta1.CreateBlurbRequest", + "outputType": ".google.showcase.v1beta1.Blurb", + "options": { + ".google.api.methodSignature": [ + "parent,blurb.user,blurb.text", + "parent,blurb.user,blurb.image" + ], + ".google.api.http": { + "post": "/v1beta1/{parent=rooms/*}/blurbs", + "body": "*", + "additionalBindings": [ + { + "post": "/v1beta1/{parent=users/*/profile}/blurbs", + "body": "*" + } + ] + } + }, + "paramComment": [ + { + "paramName": "parent", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the chat room or user profile that this blurb will", + " be tied to." + ], + "fieldBehavior": 2 + }, + { + "paramName": "blurb", + "paramType": ".google.showcase.v1beta1.Blurb", + "comments": [ + " The blurb to create." + ] + } + ], + "headerRequestParams": [ + [ + "parent" + ] + ] + }, + { + "inputInterface": ".google.showcase.v1beta1.GetBlurbRequest", + "outputInterface": ".google.showcase.v1beta1.Blurb", + "comments": [ + " Retrieves the Blurb with the given resource name.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "GetBlurb", + "inputType": ".google.showcase.v1beta1.GetBlurbRequest", + "outputType": ".google.showcase.v1beta1.Blurb", + "options": { + ".google.api.methodSignature": [ + "name" + ], + ".google.api.http": { + "get": "/v1beta1/{name=rooms/*/blurbs/*}", + "additionalBindings": [ + { + "get": "/v1beta1/{name=users/*/profile/blurbs/*}" + } + ] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested blurb." + ], + "fieldBehavior": 2 + } + ], + "headerRequestParams": [ + [ + "name" + ] + ] + }, + { + "inputInterface": ".google.showcase.v1beta1.UpdateBlurbRequest", + "outputInterface": ".google.showcase.v1beta1.Blurb", + "comments": [ + " Updates a blurb.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "UpdateBlurb", + "inputType": ".google.showcase.v1beta1.UpdateBlurbRequest", + "outputType": ".google.showcase.v1beta1.Blurb", + "options": { + ".google.api.http": { + "patch": "/v1beta1/{blurb.name=rooms/*/blurbs/*}", + "body": "blurb", + "additionalBindings": [ + { + "patch": "/v1beta1/{blurb.name=users/*/profile/blurbs/*}", + "body": "blurb" + } + ] + } + }, + "paramComment": [ + { + "paramName": "blurb", + "paramType": ".google.showcase.v1beta1.Blurb", + "comments": [ + " The blurb to update." + ] + }, + { + "paramName": "update_mask", + "paramType": ".google.protobuf.FieldMask", + "comments": [ + " The field mask to determine wich fields are to be updated. If empty, the", + " server will assume all fields are to be updated." + ] + } + ], + "headerRequestParams": [ + [ + "blurb", + "name" + ] + ] + }, + { + "inputInterface": ".google.showcase.v1beta1.DeleteBlurbRequest", + "outputInterface": ".google.protobuf.Empty", + "comments": [ + " Deletes a blurb.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "DeleteBlurb", + "inputType": ".google.showcase.v1beta1.DeleteBlurbRequest", + "outputType": ".google.protobuf.Empty", + "options": { + ".google.api.methodSignature": [ + "name" + ], + ".google.api.http": { + "delete": "/v1beta1/{name=rooms/*/blurbs/*}", + "additionalBindings": [ + { + "delete": "/v1beta1/{name=users/*/profile/blurbs/*}" + } + ] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested blurb." + ], + "fieldBehavior": 2 + } + ], + "headerRequestParams": [ + [ + "name" + ] + ] + } + ], + "longRunning": [ + { + "longRunning": { + "responseType": "SearchBlurbsResponse", + "metadataType": "SearchBlurbsMetadata" + }, + "longRunningResponseType": ".google.showcase.v1beta1.SearchBlurbsResponse", + "longRunningMetadataType": ".google.showcase.v1beta1.SearchBlurbsMetadata", + "inputInterface": ".google.showcase.v1beta1.SearchBlurbsRequest", + "outputInterface": ".google.longrunning.Operation", + "comments": [ + " This method searches through all blurbs across all rooms and profiles", + " for blurbs containing to words found in the query. Only posts that", + " contain an exact match of a queried word will be returned.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "SearchBlurbs", + "inputType": ".google.showcase.v1beta1.SearchBlurbsRequest", + "outputType": ".google.longrunning.Operation", + "options": { + ".google.longrunning.operationInfo": { + "responseType": "SearchBlurbsResponse", + "metadataType": "SearchBlurbsMetadata" + }, + ".google.api.methodSignature": [ + "parent,query" + ], + ".google.api.http": { + "post": "/v1beta1/{parent=rooms/*}/blurbs:search", + "body": "*", + "additionalBindings": [ + { + "post": "/v1beta1/{parent=users/*/profile}/blurbs:search" + } + ] + } + }, + "paramComment": [ + { + "paramName": "query", + "paramType": "TYPE_STRING", + "comments": [ + " The query used to search for blurbs containing to words of this string.", + " Only posts that contain an exact match of a queried word will be returned." + ], + "fieldBehavior": 2 + }, + { + "paramName": "parent", + "paramType": "TYPE_STRING", + "comments": [ + " The rooms or profiles to search. If unset, `SearchBlurbs` will search all", + " rooms and all profiles." + ] + }, + { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of blurbs return. Server may return fewer", + " blurbs than requested. If unspecified, server will pick an appropriate", + " default." + ] + }, + { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The value of", + " google.showcase.v1beta1.SearchBlurbsResponse.next_page_token", + " returned from the previous call to", + " `google.showcase.v1beta1.Messaging\\SearchBlurbs` method." + ] + } + ], + "headerRequestParams": [ + [ + "parent" + ] + ] + } + ], + "diregapicLRO": [], + "streaming": [ + { + "streaming": "SERVER_STREAMING", + "inputInterface": ".google.showcase.v1beta1.StreamBlurbsRequest", + "outputInterface": ".google.showcase.v1beta1.StreamBlurbsResponse", + "comments": [ + " This returns a stream that emits the blurbs that are created for a", + " particular chat room or user profile.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "StreamBlurbs", + "inputType": ".google.showcase.v1beta1.StreamBlurbsRequest", + "outputType": ".google.showcase.v1beta1.StreamBlurbsResponse", + "options": { + ".google.api.http": { + "post": "/v1beta1/{name=rooms/*}/blurbs:stream", + "body": "*", + "additionalBindings": [ + { + "post": "/v1beta1/{name=users/*/profile}/blurbs:stream", + "body": "*" + } + ] + } + }, + "serverStreaming": true, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of a chat room or user profile whose blurbs to stream." + ], + "fieldBehavior": 2 + }, + { + "paramName": "expire_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The time at which this stream will close." + ], + "fieldBehavior": 2 + } + ], + "headerRequestParams": [ + [ + "name" + ] + ] + }, + { + "streaming": "CLIENT_STREAMING", + "inputInterface": ".google.showcase.v1beta1.CreateBlurbRequest", + "outputInterface": ".google.showcase.v1beta1.SendBlurbsResponse", + "comments": [ + " This is a stream to create multiple blurbs. If an invalid blurb is", + " requested to be created, the stream will close with an error.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "SendBlurbs", + "inputType": ".google.showcase.v1beta1.CreateBlurbRequest", + "outputType": ".google.showcase.v1beta1.SendBlurbsResponse", + "options": { + ".google.api.http": { + "post": "/v1beta1/{parent=rooms/*}/blurbs:send", + "body": "*", + "additionalBindings": [ + { + "post": "/v1beta1/{parent=users/*/profile}/blurbs:send", + "body": "*" + } + ] + } + }, + "clientStreaming": true, + "paramComment": [ + { + "paramName": "parent", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the chat room or user profile that this blurb will", + " be tied to." + ], + "fieldBehavior": 2 + }, + { + "paramName": "blurb", + "paramType": ".google.showcase.v1beta1.Blurb", + "comments": [ + " The blurb to create." + ] + } + ], + "headerRequestParams": [ + [ + "parent" + ] + ] + }, + { + "streaming": "BIDI_STREAMING", + "inputInterface": ".google.showcase.v1beta1.ConnectRequest", + "outputInterface": ".google.showcase.v1beta1.StreamBlurbsResponse", + "comments": [ + " This method starts a bidirectional stream that receives all blurbs that", + " are being created after the stream has started and sends requests to create", + " blurbs. If an invalid blurb is requested to be created, the stream will", + " close with an error.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "Connect", + "inputType": ".google.showcase.v1beta1.ConnectRequest", + "outputType": ".google.showcase.v1beta1.StreamBlurbsResponse", + "clientStreaming": true, + "serverStreaming": true, + "paramComment": [ + { + "paramName": "config", + "paramType": ".google.showcase.v1beta1.ConnectRequest.ConnectConfig", + "comments": [ + " Provides information that specifies how to process subsequent requests.", + " The first `ConnectRequest` message must contain a `config` message." + ] + }, + { + "paramName": "blurb", + "paramType": ".google.showcase.v1beta1.Blurb", + "comments": [ + " The blurb to be created." + ] + } + ], + "headerRequestParams": [] + } + ], + "clientStreaming": [ + { + "streaming": "CLIENT_STREAMING", + "inputInterface": ".google.showcase.v1beta1.CreateBlurbRequest", + "outputInterface": ".google.showcase.v1beta1.SendBlurbsResponse", + "comments": [ + " This is a stream to create multiple blurbs. If an invalid blurb is", + " requested to be created, the stream will close with an error.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "SendBlurbs", + "inputType": ".google.showcase.v1beta1.CreateBlurbRequest", + "outputType": ".google.showcase.v1beta1.SendBlurbsResponse", + "options": { + ".google.api.http": { + "post": "/v1beta1/{parent=rooms/*}/blurbs:send", + "body": "*", + "additionalBindings": [ + { + "post": "/v1beta1/{parent=users/*/profile}/blurbs:send", + "body": "*" + } + ] + } + }, + "clientStreaming": true, + "paramComment": [ + { + "paramName": "parent", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the chat room or user profile that this blurb will", + " be tied to." + ], + "fieldBehavior": 2 + }, + { + "paramName": "blurb", + "paramType": ".google.showcase.v1beta1.Blurb", + "comments": [ + " The blurb to create." + ] + } + ], + "headerRequestParams": [ + [ + "parent" + ] + ] + } + ], + "serverStreaming": [ + { + "streaming": "SERVER_STREAMING", + "inputInterface": ".google.showcase.v1beta1.StreamBlurbsRequest", + "outputInterface": ".google.showcase.v1beta1.StreamBlurbsResponse", + "comments": [ + " This returns a stream that emits the blurbs that are created for a", + " particular chat room or user profile.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "StreamBlurbs", + "inputType": ".google.showcase.v1beta1.StreamBlurbsRequest", + "outputType": ".google.showcase.v1beta1.StreamBlurbsResponse", + "options": { + ".google.api.http": { + "post": "/v1beta1/{name=rooms/*}/blurbs:stream", + "body": "*", + "additionalBindings": [ + { + "post": "/v1beta1/{name=users/*/profile}/blurbs:stream", + "body": "*" + } + ] + } + }, + "serverStreaming": true, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of a chat room or user profile whose blurbs to stream." + ], + "fieldBehavior": 2 + }, + { + "paramName": "expire_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The time at which this stream will close." + ], + "fieldBehavior": 2 + } + ], + "headerRequestParams": [ + [ + "name" + ] + ] + } + ], + "bidiStreaming": [ + { + "streaming": "BIDI_STREAMING", + "inputInterface": ".google.showcase.v1beta1.ConnectRequest", + "outputInterface": ".google.showcase.v1beta1.StreamBlurbsResponse", + "comments": [ + " This method starts a bidirectional stream that receives all blurbs that", + " are being created after the stream has started and sends requests to create", + " blurbs. If an invalid blurb is requested to be created, the stream will", + " close with an error.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "Connect", + "inputType": ".google.showcase.v1beta1.ConnectRequest", + "outputType": ".google.showcase.v1beta1.StreamBlurbsResponse", + "clientStreaming": true, + "serverStreaming": true, + "paramComment": [ + { + "paramName": "config", + "paramType": ".google.showcase.v1beta1.ConnectRequest.ConnectConfig", + "comments": [ + " Provides information that specifies how to process subsequent requests.", + " The first `ConnectRequest` message must contain a `config` message." + ] + }, + { + "paramName": "blurb", + "paramType": ".google.showcase.v1beta1.Blurb", + "comments": [ + " The blurb to be created." + ] + } + ], + "headerRequestParams": [] + } + ], + "paging": [ + { + "pagingFieldName": "rooms", + "pagingResponseType": ".google.showcase.v1beta1.Room", + "inputInterface": ".google.showcase.v1beta1.ListRoomsRequest", + "outputInterface": ".google.showcase.v1beta1.ListRoomsResponse", + "comments": [ + " Lists all chat rooms.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "ListRooms", + "inputType": ".google.showcase.v1beta1.ListRoomsRequest", + "outputType": ".google.showcase.v1beta1.ListRoomsResponse", + "options": { + ".google.api.http": { + "get": "/v1beta1/rooms", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of rooms return. Server may return fewer rooms", + " than requested. If unspecified, server will pick an appropriate default." + ] + }, + { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The value of google.showcase.v1beta1.ListRoomsResponse.next_page_token", + " returned from the previous call to", + " `google.showcase.v1beta1.Messaging\\ListRooms` method." + ] + } + ], + "headerRequestParams": [] + }, + { + "pagingFieldName": "blurbs", + "pagingResponseType": ".google.showcase.v1beta1.Blurb", + "inputInterface": ".google.showcase.v1beta1.ListBlurbsRequest", + "outputInterface": ".google.showcase.v1beta1.ListBlurbsResponse", + "comments": [ + " Lists blurbs for a specific chat room or user profile depending on the", + " parent resource name.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "ListBlurbs", + "inputType": ".google.showcase.v1beta1.ListBlurbsRequest", + "outputType": ".google.showcase.v1beta1.ListBlurbsResponse", + "options": { + ".google.api.methodSignature": [ + "parent" + ], + ".google.api.http": { + "get": "/v1beta1/{parent=rooms/*}/blurbs", + "additionalBindings": [ + { + "get": "/v1beta1/{parent=users/*/profile}/blurbs" + } + ] + } + }, + "paramComment": [ + { + "paramName": "parent", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested room or profile whos blurbs to list." + ], + "fieldBehavior": 2 + }, + { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of blurbs to return. Server may return fewer", + " blurbs than requested. If unspecified, server will pick an appropriate", + " default." + ] + }, + { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The value of google.showcase.v1beta1.ListBlurbsResponse.next_page_token", + " returned from the previous call to", + " `google.showcase.v1beta1.Messaging\\ListBlurbs` method." + ] + } + ], + "headerRequestParams": [ + [ + "parent" + ] + ] + } + ], + "hostname": "localhost", + "port": 7469, + "oauthScopes": [], + "pathTemplates": [ + { + "name": "Blueprint", + "params": [ + "session", + "test", + "blueprint" + ], + "type": "showcase.googleapis.com/Blueprint", + "pattern": [ + "sessions/{session}/tests/{test}/blueprints/{blueprint}" + ] + }, + { + "name": "Room", + "params": [ + "room" + ], + "type": "showcase.googleapis.com/Room", + "pattern": [ + "rooms/{room}" + ] + }, + { + "name": "room_blurb", + "params": [ + "room", + "blurb" + ], + "pattern": [ + "rooms/{room}/blurbs/{blurb}" + ], + "type": "showcase.googleapis.com/Blurb" + }, + { + "name": "room_blurbs_legacy_room_blurb", + "params": [ + "room", + "legacy_room", + "blurb" + ], + "pattern": [ + "rooms/{room}/blurbs/legacy/{legacy_room}.{blurb}" + ], + "type": "showcase.googleapis.com/Blurb" + }, + { + "name": "Sequence", + "params": [ + "sequence" + ], + "type": "showcase.googleapis.com/Sequence", + "pattern": [ + "sequences/{sequence}" + ] + }, + { + "name": "SequenceReport", + "params": [ + "sequence" + ], + "type": "showcase.googleapis.com/SequenceReport", + "pattern": [ + "sequences/{sequence}/sequenceReport" + ] + }, + { + "name": "Session", + "params": [ + "session" + ], + "type": "showcase.googleapis.com/Session", + "pattern": [ + "sessions/{session}" + ] + }, + { + "name": "Test", + "params": [ + "session", + "test" + ], + "type": "showcase.googleapis.com/Test", + "pattern": [ + "sessions/{session}/tests/{test}" + ] + }, + { + "name": "User", + "params": [ + "user" + ], + "type": "showcase.googleapis.com/User", + "pattern": [ + "users/{user}" + ] + }, + { + "name": "user_profile_blurb", + "params": [ + "user", + "blurb" + ], + "pattern": [ + "users/{user}/profile/blurbs/{blurb}" + ], + "type": "showcase.googleapis.com/Blurb" + }, + { + "name": "user_profile_blurbs_legacy_user_blurb", + "params": [ + "user", + "legacy_user", + "blurb" + ], + "pattern": [ + "users/{user}/profile/blurbs/legacy/{legacy_user}~{blurb}" + ], + "type": "showcase.googleapis.com/Blurb" + } + ] + }, + { + "name": "SequenceService", + "method": [ + { + "inputInterface": ".google.showcase.v1beta1.CreateSequenceRequest", + "outputInterface": ".google.showcase.v1beta1.Sequence", + "comments": [ + " Creates a sequence.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "CreateSequence", + "inputType": ".google.showcase.v1beta1.CreateSequenceRequest", + "outputType": ".google.showcase.v1beta1.Sequence", + "options": { + ".google.api.methodSignature": [ + "sequence" + ], + ".google.api.http": { + "post": "/v1beta1/sequences", + "body": "sequence", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "sequence", + "paramType": ".google.showcase.v1beta1.Sequence", + "comments": [] + } + ], + "headerRequestParams": [] + }, + { + "inputInterface": ".google.showcase.v1beta1.GetSequenceReportRequest", + "outputInterface": ".google.showcase.v1beta1.SequenceReport", + "comments": [ + " Retrieves a sequence.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "GetSequenceReport", + "inputType": ".google.showcase.v1beta1.GetSequenceReportRequest", + "outputType": ".google.showcase.v1beta1.SequenceReport", + "options": { + ".google.api.methodSignature": [ + "name" + ], + ".google.api.http": { + "get": "/v1beta1/{name=sequences/*/sequenceReport}", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [], + "fieldBehavior": 2 + } + ], + "headerRequestParams": [ + [ + "name" + ] + ] + }, + { + "inputInterface": ".google.showcase.v1beta1.AttemptSequenceRequest", + "outputInterface": ".google.protobuf.Empty", + "comments": [ + " Attempts a sequence.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "AttemptSequence", + "inputType": ".google.showcase.v1beta1.AttemptSequenceRequest", + "outputType": ".google.protobuf.Empty", + "options": { + ".google.api.methodSignature": [ + "name" + ], + ".google.api.http": { + "post": "/v1beta1/{name=sequences/*}", + "body": "*", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [], + "fieldBehavior": 2 + } + ], + "headerRequestParams": [ + [ + "name" + ] + ] + } + ], + "options": { + ".google.api.defaultHost": "localhost:7469" + }, + "packageName": "google.showcase.v1beta1", + "protoFile": "google/showcase/v1beta1/sequence.proto", + "IAMPolicyMixin": 0, + "LocationMixin": 0, + "comments": [], + "commentsMap": { + "comments": { + "Http:rules": { + "paramName": "rules", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " A list of HTTP configuration rules that apply to individual API methods.", + "", + " **NOTE:** All service configuration rules follow \"last one wins\" order." + ] + }, + "Http:fully_decode_reserved_expansion": { + "paramName": "fully_decode_reserved_expansion", + "paramType": "TYPE_BOOL", + "comments": [ + " When set to true, URL path parameters will be fully URI-decoded except in", + " cases of single segment matches in reserved expansion, where \"%2F\" will be", + " left encoded.", + "", + " The default behavior is to not decode RFC 6570 reserved characters in multi", + " segment matches." + ] + }, + "HttpRule:selector": { + "paramName": "selector", + "paramType": "TYPE_STRING", + "comments": [ + " Selects a method to which this rule applies.", + "", + " Refer to [selector][google.api.DocumentationRule.selector] for syntax", + " details." + ] + }, + "HttpRule:get": { + "paramName": "get", + "paramType": "TYPE_STRING", + "comments": [ + " Maps to HTTP GET. Used for listing and getting information about", + " resources." + ] + }, + "HttpRule:put": { + "paramName": "put", + "paramType": "TYPE_STRING", + "comments": [ + " Maps to HTTP PUT. Used for replacing a resource." + ] + }, + "HttpRule:post": { + "paramName": "post", + "paramType": "TYPE_STRING", + "comments": [ + " Maps to HTTP POST. Used for creating a resource or performing an action." + ] + }, + "HttpRule:delete": { + "paramName": "delete", + "paramType": "TYPE_STRING", + "comments": [ + " Maps to HTTP DELETE. Used for deleting a resource." + ] + }, + "HttpRule:patch": { + "paramName": "patch", + "paramType": "TYPE_STRING", + "comments": [ + " Maps to HTTP PATCH. Used for updating a resource." + ] + }, + "HttpRule:custom": { + "paramName": "custom", + "paramType": ".google.api.CustomHttpPattern", + "comments": [ + " The custom pattern is used for specifying an HTTP method that is not", + " included in the `pattern` field, such as HEAD, or \"*\" to leave the", + " HTTP method unspecified for this rule. The wild-card rule is useful", + " for services that provide content to Web (HTML) clients." + ] + }, + "HttpRule:body": { + "paramName": "body", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the request field whose value is mapped to the HTTP request", + " body, or `*` for mapping all request fields not captured by the path", + " pattern to the HTTP body, or omitted for not having any HTTP request body.", + "", + " NOTE: the referred field must be present at the top-level of the request", + " message type." + ] + }, + "HttpRule:response_body": { + "paramName": "response_body", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. The name of the response field whose value is mapped to the HTTP", + " response body. When omitted, the entire response message will be used", + " as the HTTP response body.", + "", + " NOTE: The referred field must be present at the top-level of the response", + " message type." + ] + }, + "HttpRule:additional_bindings": { + "paramName": "additional_bindings", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Additional HTTP bindings for the selector. Nested bindings must", + " not contain an `additional_bindings` field themselves (that is,", + " the nesting may only be one level deep)." + ] + }, + "CustomHttpPattern:kind": { + "paramName": "kind", + "paramType": "TYPE_STRING", + "comments": [ + " The name of this custom HTTP verb." + ] + }, + "CustomHttpPattern:path": { + "paramName": "path", + "paramType": "TYPE_STRING", + "comments": [ + " The path matched by this custom verb." + ] + }, + "FileDescriptorSet:file": { + "paramName": "file", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "FileDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "FileDescriptorProto:package": { + "paramName": "package", + "paramType": "TYPE_STRING", + "comments": [] + }, + "FileDescriptorProto:dependency": { + "paramName": "dependency", + "paramType": "TYPE_STRING[]", + "comments": [ + " Names of files imported by this file." + ] + }, + "FileDescriptorProto:public_dependency": { + "paramName": "public_dependency", + "paramType": "TYPE_INT32[]", + "comments": [ + " Indexes of the public imported files in the dependency list above." + ] + }, + "FileDescriptorProto:weak_dependency": { + "paramName": "weak_dependency", + "paramType": "TYPE_INT32[]", + "comments": [ + " Indexes of the weak imported files in the dependency list.", + " For Google-internal migration only. Do not use." + ] + }, + "FileDescriptorProto:message_type": { + "paramName": "message_type", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " All top-level definitions in this file." + ] + }, + "FileDescriptorProto:enum_type": { + "paramName": "enum_type", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "FileDescriptorProto:service": { + "paramName": "service", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "FileDescriptorProto:extension": { + "paramName": "extension", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "FileDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.FileOptions", + "comments": [] + }, + "FileDescriptorProto:source_code_info": { + "paramName": "source_code_info", + "paramType": ".google.protobuf.SourceCodeInfo", + "comments": [ + " This field contains optional information about the original source code.", + " You may safely remove this entire field without harming runtime", + " functionality of the descriptors -- the information is needed only by", + " development tools." + ] + }, + "FileDescriptorProto:syntax": { + "paramName": "syntax", + "paramType": "TYPE_STRING", + "comments": [ + " The syntax of the proto file.", + " The supported values are \"proto2\", \"proto3\", and \"editions\".", + "", + " If `edition` is present, this value must be \"editions\"." + ] + }, + "FileDescriptorProto:edition": { + "paramName": "edition", + "paramType": "TYPE_STRING", + "comments": [ + " The edition of the proto file, which is an opaque string." + ] + }, + "DescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "DescriptorProto:field": { + "paramName": "field", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:extension": { + "paramName": "extension", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:nested_type": { + "paramName": "nested_type", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:enum_type": { + "paramName": "enum_type", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:extension_range": { + "paramName": "extension_range", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:oneof_decl": { + "paramName": "oneof_decl", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.MessageOptions", + "comments": [] + }, + "DescriptorProto:reserved_range": { + "paramName": "reserved_range", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:reserved_name": { + "paramName": "reserved_name", + "paramType": "TYPE_STRING[]", + "comments": [ + " Reserved field names, which may not be used by fields in the same message.", + " A given name may only be reserved once." + ] + }, + "ExtensionRangeOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "ExtensionRangeOptions:declaration": { + "paramName": "declaration", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " For external users: DO NOT USE. We are in the process of open sourcing", + " extension declaration and executing internal cleanups before it can be", + " used externally." + ] + }, + "ExtensionRangeOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "ExtensionRangeOptions:verification": { + "paramName": "verification", + "paramType": ".google.protobuf.ExtensionRangeOptions.VerificationState", + "comments": [ + " The verification state of the range.", + " TODO(b/278783756): flip the default to DECLARATION once all empty ranges", + " are marked as UNVERIFIED." + ] + }, + "FieldDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "FieldDescriptorProto:number": { + "paramName": "number", + "paramType": "TYPE_INT32", + "comments": [] + }, + "FieldDescriptorProto:label": { + "paramName": "label", + "paramType": ".google.protobuf.FieldDescriptorProto.Label", + "comments": [] + }, + "FieldDescriptorProto:type": { + "paramName": "type", + "paramType": ".google.protobuf.FieldDescriptorProto.Type", + "comments": [ + " If type_name is set, this need not be set. If both this and type_name", + " are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP." + ] + }, + "FieldDescriptorProto:type_name": { + "paramName": "type_name", + "paramType": "TYPE_STRING", + "comments": [ + " For message and enum types, this is the name of the type. If the name", + " starts with a '.', it is fully-qualified. Otherwise, C++-like scoping", + " rules are used to find the type (i.e. first the nested types within this", + " message are searched, then within the parent, on up to the root", + " namespace)." + ] + }, + "FieldDescriptorProto:extendee": { + "paramName": "extendee", + "paramType": "TYPE_STRING", + "comments": [ + " For extensions, this is the name of the type being extended. It is", + " resolved in the same manner as type_name." + ] + }, + "FieldDescriptorProto:default_value": { + "paramName": "default_value", + "paramType": "TYPE_STRING", + "comments": [ + " For numeric types, contains the original text representation of the value.", + " For booleans, \"true\" or \"false\".", + " For strings, contains the default text contents (not escaped in any way).", + " For bytes, contains the C escaped value. All bytes >= 128 are escaped." + ] + }, + "FieldDescriptorProto:oneof_index": { + "paramName": "oneof_index", + "paramType": "TYPE_INT32", + "comments": [ + " If set, gives the index of a oneof in the containing type's oneof_decl", + " list. This field is a member of that oneof." + ] + }, + "FieldDescriptorProto:json_name": { + "paramName": "json_name", + "paramType": "TYPE_STRING", + "comments": [ + " JSON name of this field. The value is set by protocol compiler. If the", + " user has set a \"json_name\" option on this field, that option's value", + " will be used. Otherwise, it's deduced from the field's name by converting", + " it to camelCase." + ] + }, + "FieldDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.FieldOptions", + "comments": [] + }, + "FieldDescriptorProto:proto3_optional": { + "paramName": "proto3_optional", + "paramType": "TYPE_BOOL", + "comments": [ + " If true, this is a proto3 \"optional\". When a proto3 field is optional, it", + " tracks presence regardless of field type.", + "", + " When proto3_optional is true, this field must be belong to a oneof to", + " signal to old proto3 clients that presence is tracked for this field. This", + " oneof is known as a \"synthetic\" oneof, and this field must be its sole", + " member (each proto3 optional field gets its own synthetic oneof). Synthetic", + " oneofs exist in the descriptor only, and do not generate any API. Synthetic", + " oneofs must be ordered after all \"real\" oneofs.", + "", + " For message fields, proto3_optional doesn't create any semantic change,", + " since non-repeated message fields always track presence. However it still", + " indicates the semantic detail of whether the user wrote \"optional\" or not.", + " This can be useful for round-tripping the .proto file. For consistency we", + " give message fields a synthetic oneof also, even though it is not required", + " to track presence. This is especially important because the parser can't", + " tell if a field is a message or an enum, so it must always create a", + " synthetic oneof.", + "", + " Proto2 optional fields do not set this flag, because they already indicate", + " optional with `LABEL_OPTIONAL`." + ] + }, + "OneofDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "OneofDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.OneofOptions", + "comments": [] + }, + "EnumDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "EnumDescriptorProto:value": { + "paramName": "value", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "EnumDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.EnumOptions", + "comments": [] + }, + "EnumDescriptorProto:reserved_range": { + "paramName": "reserved_range", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Range of reserved numeric values. Reserved numeric values may not be used", + " by enum values in the same enum declaration. Reserved ranges may not", + " overlap." + ] + }, + "EnumDescriptorProto:reserved_name": { + "paramName": "reserved_name", + "paramType": "TYPE_STRING[]", + "comments": [ + " Reserved enum value names, which may not be reused. A given name may only", + " be reserved once." + ] + }, + "EnumValueDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "EnumValueDescriptorProto:number": { + "paramName": "number", + "paramType": "TYPE_INT32", + "comments": [] + }, + "EnumValueDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.EnumValueOptions", + "comments": [] + }, + "ServiceDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ServiceDescriptorProto:method": { + "paramName": "method", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "ServiceDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.ServiceOptions", + "comments": [] + }, + "MethodDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "MethodDescriptorProto:input_type": { + "paramName": "input_type", + "paramType": "TYPE_STRING", + "comments": [ + " Input and output type names. These are resolved in the same way as", + " FieldDescriptorProto.type_name, but must refer to a message type." + ] + }, + "MethodDescriptorProto:output_type": { + "paramName": "output_type", + "paramType": "TYPE_STRING", + "comments": [] + }, + "MethodDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.MethodOptions", + "comments": [] + }, + "MethodDescriptorProto:client_streaming": { + "paramName": "client_streaming", + "paramType": "TYPE_BOOL", + "comments": [ + " Identifies if client streams multiple client messages" + ] + }, + "MethodDescriptorProto:server_streaming": { + "paramName": "server_streaming", + "paramType": "TYPE_BOOL", + "comments": [ + " Identifies if server streams multiple server messages" + ] + }, + "FileOptions:java_package": { + "paramName": "java_package", + "paramType": "TYPE_STRING", + "comments": [ + " Sets the Java package where classes generated from this .proto will be", + " placed. By default, the proto package is used, but this is often", + " inappropriate because proto packages do not normally start with backwards", + " domain names." + ] + }, + "FileOptions:java_outer_classname": { + "paramName": "java_outer_classname", + "paramType": "TYPE_STRING", + "comments": [ + " Controls the name of the wrapper Java class generated for the .proto file.", + " That class will always contain the .proto file's getDescriptor() method as", + " well as any top-level extensions defined in the .proto file.", + " If java_multiple_files is disabled, then all the other classes from the", + " .proto file will be nested inside the single wrapper outer class." + ] + }, + "FileOptions:java_multiple_files": { + "paramName": "java_multiple_files", + "paramType": "TYPE_BOOL", + "comments": [ + " If enabled, then the Java code generator will generate a separate .java", + " file for each top-level message, enum, and service defined in the .proto", + " file. Thus, these types will *not* be nested inside the wrapper class", + " named by java_outer_classname. However, the wrapper class will still be", + " generated to contain the file's getDescriptor() method as well as any", + " top-level extensions defined in the file." + ] + }, + "FileOptions:java_generate_equals_and_hash": { + "paramName": "java_generate_equals_and_hash", + "paramType": "TYPE_BOOL", + "comments": [ + " This option does nothing." + ] + }, + "FileOptions:java_string_check_utf8": { + "paramName": "java_string_check_utf8", + "paramType": "TYPE_BOOL", + "comments": [ + " If set true, then the Java2 code generator will generate code that", + " throws an exception whenever an attempt is made to assign a non-UTF-8", + " byte sequence to a string field.", + " Message reflection will do the same.", + " However, an extension field still accepts non-UTF-8 byte sequences.", + " This option has no effect on when used with the lite runtime." + ] + }, + "FileOptions:optimize_for": { + "paramName": "optimize_for", + "paramType": ".google.protobuf.FileOptions.OptimizeMode", + "comments": [] + }, + "FileOptions:go_package": { + "paramName": "go_package", + "paramType": "TYPE_STRING", + "comments": [ + " Sets the Go package where structs generated from this .proto will be", + " placed. If omitted, the Go package will be derived from the following:", + " - The basename of the package import path, if provided.", + " - Otherwise, the package statement in the .proto file, if present.", + " - Otherwise, the basename of the .proto file, without extension." + ] + }, + "FileOptions:cc_generic_services": { + "paramName": "cc_generic_services", + "paramType": "TYPE_BOOL", + "comments": [ + " Should generic services be generated in each language? \"Generic\" services", + " are not specific to any particular RPC system. They are generated by the", + " main code generators in each language (without additional plugins).", + " Generic services were the only kind of service generation supported by", + " early versions of google.protobuf.", + "", + " Generic services are now considered deprecated in favor of using plugins", + " that generate code specific to your particular RPC system. Therefore,", + " these default to false. Old code which depends on generic services should", + " explicitly set them to true." + ] + }, + "FileOptions:java_generic_services": { + "paramName": "java_generic_services", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "FileOptions:py_generic_services": { + "paramName": "py_generic_services", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "FileOptions:php_generic_services": { + "paramName": "php_generic_services", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "FileOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this file deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for everything in the file, or it will be completely ignored; in the very", + " least, this is a formalization for deprecating files." + ] + }, + "FileOptions:cc_enable_arenas": { + "paramName": "cc_enable_arenas", + "paramType": "TYPE_BOOL", + "comments": [ + " Enables the use of arenas for the proto messages in this file. This applies", + " only to generated classes for C++." + ] + }, + "FileOptions:objc_class_prefix": { + "paramName": "objc_class_prefix", + "paramType": "TYPE_STRING", + "comments": [ + " Sets the objective c class prefix which is prepended to all objective c", + " generated classes from this .proto. There is no default." + ] + }, + "FileOptions:csharp_namespace": { + "paramName": "csharp_namespace", + "paramType": "TYPE_STRING", + "comments": [ + " Namespace for generated classes; defaults to the package." + ] + }, + "FileOptions:swift_prefix": { + "paramName": "swift_prefix", + "paramType": "TYPE_STRING", + "comments": [ + " By default Swift generators will take the proto package and CamelCase it", + " replacing '.' with underscore and use that to prefix the types/symbols", + " defined. When this options is provided, they will use this value instead", + " to prefix the types/symbols defined." + ] + }, + "FileOptions:php_class_prefix": { + "paramName": "php_class_prefix", + "paramType": "TYPE_STRING", + "comments": [ + " Sets the php class prefix which is prepended to all php generated classes", + " from this .proto. Default is empty." + ] + }, + "FileOptions:php_namespace": { + "paramName": "php_namespace", + "paramType": "TYPE_STRING", + "comments": [ + " Use this option to change the namespace of php generated classes. Default", + " is empty. When this option is empty, the package name will be used for", + " determining the namespace." + ] + }, + "FileOptions:php_metadata_namespace": { + "paramName": "php_metadata_namespace", + "paramType": "TYPE_STRING", + "comments": [ + " Use this option to change the namespace of php generated metadata classes.", + " Default is empty. When this option is empty, the proto file name will be", + " used for determining the namespace." + ] + }, + "FileOptions:ruby_package": { + "paramName": "ruby_package", + "paramType": "TYPE_STRING", + "comments": [ + " Use this option to change the package of ruby generated classes. Default", + " is empty. When this option is not set, the package name will be used for", + " determining the ruby package." + ] + }, + "FileOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "FileOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here.", + " See the documentation for the \"Options\" section above." + ] + }, + "MessageOptions:message_set_wire_format": { + "paramName": "message_set_wire_format", + "paramType": "TYPE_BOOL", + "comments": [ + " Set true to use the old proto1 MessageSet wire format for extensions.", + " This is provided for backwards-compatibility with the MessageSet wire", + " format. You should not use this for any other reason: It's less", + " efficient, has fewer features, and is more complicated.", + "", + " The message must be defined exactly as follows:", + " message Foo {", + " option message_set_wire_format = true;", + " extensions 4 to max;", + " }", + " Note that the message cannot have any defined fields; MessageSets only", + " have extensions.", + "", + " All extensions of your type must be singular messages; e.g. they cannot", + " be int32s, enums, or repeated messages.", + "", + " Because this is an option, the above two restrictions are not enforced by", + " the protocol compiler." + ] + }, + "MessageOptions:no_standard_descriptor_accessor": { + "paramName": "no_standard_descriptor_accessor", + "paramType": "TYPE_BOOL", + "comments": [ + " Disables the generation of the standard \"descriptor()\" accessor, which can", + " conflict with a field of the same name. This is meant to make migration", + " from proto1 easier; new code should avoid fields named \"descriptor\"." + ] + }, + "MessageOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this message deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for the message, or it will be completely ignored; in the very least,", + " this is a formalization for deprecating messages." + ] + }, + "MessageOptions:map_entry": { + "paramName": "map_entry", + "paramType": "TYPE_BOOL", + "comments": [ + " NOTE: Do not set the option in .proto files. Always use the maps syntax", + " instead. The option should only be implicitly set by the proto compiler", + " parser.", + "", + " Whether the message is an automatically generated map entry type for the", + " maps field.", + "", + " For maps fields:", + " map map_field = 1;", + " The parsed descriptor looks like:", + " message MapFieldEntry {", + " option map_entry = true;", + " optional KeyType key = 1;", + " optional ValueType value = 2;", + " }", + " repeated MapFieldEntry map_field = 1;", + "", + " Implementations may choose not to generate the map_entry=true message, but", + " use a native map in the target language to hold the keys and values.", + " The reflection APIs in such implementations still need to work as", + " if the field is a repeated message field." + ] + }, + "MessageOptions:deprecated_legacy_json_field_conflicts": { + "paramName": "deprecated_legacy_json_field_conflicts", + "paramType": "TYPE_BOOL", + "comments": [ + " Enable the legacy handling of JSON field name conflicts. This lowercases", + " and strips underscored from the fields before comparison in proto3 only.", + " The new behavior takes `json_name` into account and applies to proto2 as", + " well.", + "", + " This should only be used as a temporary measure against broken builds due", + " to the change in behavior for JSON field name conflicts.", + "", + " TODO(b/261750190) This is legacy behavior we plan to remove once downstream", + " teams have had time to migrate." + ] + }, + "MessageOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "MessageOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "FieldOptions:ctype": { + "paramName": "ctype", + "paramType": ".google.protobuf.FieldOptions.CType", + "comments": [ + " The ctype option instructs the C++ code generator to use a different", + " representation of the field than it normally would. See the specific", + " options below. This option is only implemented to support use of", + " [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of", + " type \"bytes\" in the open source release -- sorry, we'll try to include", + " other types in a future version!" + ] + }, + "FieldOptions:packed": { + "paramName": "packed", + "paramType": "TYPE_BOOL", + "comments": [ + " The packed option can be enabled for repeated primitive fields to enable", + " a more efficient representation on the wire. Rather than repeatedly", + " writing the tag and type for each element, the entire array is encoded as", + " a single length-delimited blob. In proto3, only explicit setting it to", + " false will avoid using packed encoding." + ] + }, + "FieldOptions:jstype": { + "paramName": "jstype", + "paramType": ".google.protobuf.FieldOptions.JSType", + "comments": [ + " The jstype option determines the JavaScript type used for values of the", + " field. The option is permitted only for 64 bit integral and fixed types", + " (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING", + " is represented as JavaScript string, which avoids loss of precision that", + " can happen when a large value is converted to a floating point JavaScript.", + " Specifying JS_NUMBER for the jstype causes the generated JavaScript code to", + " use the JavaScript \"number\" type. The behavior of the default option", + " JS_NORMAL is implementation dependent.", + "", + " This option is an enum to permit additional types to be added, e.g.", + " goog.math.Integer." + ] + }, + "FieldOptions:lazy": { + "paramName": "lazy", + "paramType": "TYPE_BOOL", + "comments": [ + " Should this field be parsed lazily? Lazy applies only to message-type", + " fields. It means that when the outer message is initially parsed, the", + " inner message's contents will not be parsed but instead stored in encoded", + " form. The inner message will actually be parsed when it is first accessed.", + "", + " This is only a hint. Implementations are free to choose whether to use", + " eager or lazy parsing regardless of the value of this option. However,", + " setting this option true suggests that the protocol author believes that", + " using lazy parsing on this field is worth the additional bookkeeping", + " overhead typically needed to implement it.", + "", + " This option does not affect the public interface of any generated code;", + " all method signatures remain the same. Furthermore, thread-safety of the", + " interface is not affected by this option; const methods remain safe to", + " call from multiple threads concurrently, while non-const methods continue", + " to require exclusive access.", + "", + " Note that implementations may choose not to check required fields within", + " a lazy sub-message. That is, calling IsInitialized() on the outer message", + " may return true even if the inner message has missing required fields.", + " This is necessary because otherwise the inner message would have to be", + " parsed in order to perform the check, defeating the purpose of lazy", + " parsing. An implementation which chooses not to check required fields", + " must be consistent about it. That is, for any particular sub-message, the", + " implementation must either *always* check its required fields, or *never*", + " check its required fields, regardless of whether or not the message has", + " been parsed.", + "", + " As of May 2022, lazy verifies the contents of the byte stream during", + " parsing. An invalid byte stream will cause the overall parsing to fail." + ] + }, + "FieldOptions:unverified_lazy": { + "paramName": "unverified_lazy", + "paramType": "TYPE_BOOL", + "comments": [ + " unverified_lazy does no correctness checks on the byte stream. This should", + " only be used where lazy with verification is prohibitive for performance", + " reasons." + ] + }, + "FieldOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this field deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for accessors, or it will be completely ignored; in the very least, this", + " is a formalization for deprecating fields." + ] + }, + "FieldOptions:weak": { + "paramName": "weak", + "paramType": "TYPE_BOOL", + "comments": [ + " For Google-internal migration only. Do not use." + ] + }, + "FieldOptions:debug_redact": { + "paramName": "debug_redact", + "paramType": "TYPE_BOOL", + "comments": [ + " Indicate that the field value should not be printed out when using debug", + " formats, e.g. when the field contains sensitive credentials." + ] + }, + "FieldOptions:retention": { + "paramName": "retention", + "paramType": ".google.protobuf.FieldOptions.OptionRetention", + "comments": [] + }, + "FieldOptions:targets": { + "paramName": "targets", + "paramType": "TYPE_ENUM[]", + "comments": [] + }, + "FieldOptions:edition_defaults": { + "paramName": "edition_defaults", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "FieldOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "FieldOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "OneofOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "OneofOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "EnumOptions:allow_alias": { + "paramName": "allow_alias", + "paramType": "TYPE_BOOL", + "comments": [ + " Set this option to true to allow mapping different tag names to the same", + " value." + ] + }, + "EnumOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this enum deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for the enum, or it will be completely ignored; in the very least, this", + " is a formalization for deprecating enums." + ] + }, + "EnumOptions:deprecated_legacy_json_field_conflicts": { + "paramName": "deprecated_legacy_json_field_conflicts", + "paramType": "TYPE_BOOL", + "comments": [ + " Enable the legacy handling of JSON field name conflicts. This lowercases", + " and strips underscored from the fields before comparison in proto3 only.", + " The new behavior takes `json_name` into account and applies to proto2 as", + " well.", + " TODO(b/261750190) Remove this legacy behavior once downstream teams have", + " had time to migrate." + ] + }, + "EnumOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "EnumOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "EnumValueOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this enum value deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for the enum value, or it will be completely ignored; in the very least,", + " this is a formalization for deprecating enum values." + ] + }, + "EnumValueOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "EnumValueOptions:debug_redact": { + "paramName": "debug_redact", + "paramType": "TYPE_BOOL", + "comments": [ + " Indicate that fields annotated with this enum value should not be printed", + " out when using debug formats, e.g. when the field contains sensitive", + " credentials." + ] + }, + "EnumValueOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "ServiceOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "ServiceOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this service deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for the service, or it will be completely ignored; in the very least,", + " this is a formalization for deprecating services." + ] + }, + "ServiceOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "MethodOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this method deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for the method, or it will be completely ignored; in the very least,", + " this is a formalization for deprecating methods." + ] + }, + "MethodOptions:idempotency_level": { + "paramName": "idempotency_level", + "paramType": ".google.protobuf.MethodOptions.IdempotencyLevel", + "comments": [] + }, + "MethodOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "MethodOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "UninterpretedOption:name": { + "paramName": "name", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "UninterpretedOption:identifier_value": { + "paramName": "identifier_value", + "paramType": "TYPE_STRING", + "comments": [ + " The value of the uninterpreted option, in whatever type the tokenizer", + " identified it as during parsing. Exactly one of these should be set." + ] + }, + "UninterpretedOption:positive_int_value": { + "paramName": "positive_int_value", + "paramType": "TYPE_UINT64", + "comments": [] + }, + "UninterpretedOption:negative_int_value": { + "paramName": "negative_int_value", + "paramType": "TYPE_INT64", + "comments": [] + }, + "UninterpretedOption:double_value": { + "paramName": "double_value", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "UninterpretedOption:string_value": { + "paramName": "string_value", + "paramType": "TYPE_BYTES", + "comments": [] + }, + "UninterpretedOption:aggregate_value": { + "paramName": "aggregate_value", + "paramType": "TYPE_STRING", + "comments": [] + }, + "FeatureSet:field_presence": { + "paramName": "field_presence", + "paramType": ".google.protobuf.FeatureSet.FieldPresence", + "comments": [] + }, + "FeatureSet:enum_type": { + "paramName": "enum_type", + "paramType": ".google.protobuf.FeatureSet.EnumType", + "comments": [] + }, + "FeatureSet:repeated_field_encoding": { + "paramName": "repeated_field_encoding", + "paramType": ".google.protobuf.FeatureSet.RepeatedFieldEncoding", + "comments": [] + }, + "FeatureSet:string_field_validation": { + "paramName": "string_field_validation", + "paramType": ".google.protobuf.FeatureSet.StringFieldValidation", + "comments": [] + }, + "FeatureSet:message_encoding": { + "paramName": "message_encoding", + "paramType": ".google.protobuf.FeatureSet.MessageEncoding", + "comments": [] + }, + "FeatureSet:json_format": { + "paramName": "json_format", + "paramType": ".google.protobuf.FeatureSet.JsonFormat", + "comments": [] + }, + "FeatureSet:raw_features": { + "paramName": "raw_features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [] + }, + "SourceCodeInfo:location": { + "paramName": "location", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " A Location identifies a piece of source code in a .proto file which", + " corresponds to a particular definition. This information is intended", + " to be useful to IDEs, code indexers, documentation generators, and similar", + " tools.", + "", + " For example, say we have a file like:", + " message Foo {", + " optional string foo = 1;", + " }", + " Let's look at just the field definition:", + " optional string foo = 1;", + " ^ ^^ ^^ ^ ^^^", + " a bc de f ghi", + " We have the following locations:", + " span path represents", + " [a,i) [ 4, 0, 2, 0 ] The whole field definition.", + " [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).", + " [c,d) [ 4, 0, 2, 0, 5 ] The type (string).", + " [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).", + " [g,h) [ 4, 0, 2, 0, 3 ] The number (1).", + "", + " Notes:", + " - A location may refer to a repeated field itself (i.e. not to any", + " particular index within it). This is used whenever a set of elements are", + " logically enclosed in a single code segment. For example, an entire", + " extend block (possibly containing multiple extension definitions) will", + " have an outer location whose path refers to the \"extensions\" repeated", + " field without an index.", + " - Multiple locations may have the same path. This happens when a single", + " logical declaration is spread out across multiple places. The most", + " obvious example is the \"extend\" block again -- there may be multiple", + " extend blocks in the same scope, each of which will have the same path.", + " - A location's span is not always a subset of its parent's span. For", + " example, the \"extendee\" of an extension declaration appears at the", + " beginning of the \"extend\" block and is shared by all extensions within", + " the block.", + " - Just because a location's span is a subset of some other location's span", + " does not mean that it is a descendant. For example, a \"group\" defines", + " both a type and a field in a single declaration. Thus, the locations", + " corresponding to the type and field and their components will overlap.", + " - Code which tries to interpret locations should probably be designed to", + " ignore those that it doesn't understand, as more types of locations could", + " be recorded in the future." + ] + }, + "GeneratedCodeInfo:annotation": { + "paramName": "annotation", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " An Annotation connects some span of text in generated code to an element", + " of its generating .proto file." + ] + }, + "Duration:seconds": { + "paramName": "seconds", + "paramType": "TYPE_INT64", + "comments": [ + " Signed seconds of the span of time. Must be from -315,576,000,000", + " to +315,576,000,000 inclusive. Note: these bounds are computed from:", + " 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years" + ] + }, + "Duration:nanos": { + "paramName": "nanos", + "paramType": "TYPE_INT32", + "comments": [ + " Signed fractions of a second at nanosecond resolution of the span", + " of time. Durations less than one second are represented with a 0", + " `seconds` field and a positive or negative `nanos` field. For durations", + " of one second or more, a non-zero value for the `nanos` field must be", + " of the same sign as the `seconds` field. Must be from -999,999,999", + " to +999,999,999 inclusive." + ] + }, + "CommonLanguageSettings:reference_docs_uri": { + "paramName": "reference_docs_uri", + "paramType": "TYPE_STRING", + "comments": [ + " Link to automatically generated reference documentation. Example:", + " https://cloud.google.com/nodejs/docs/reference/asset/latest" + ] + }, + "CommonLanguageSettings:destinations": { + "paramName": "destinations", + "paramType": "TYPE_ENUM[]", + "comments": [ + " The destination where API teams want this client library to be published." + ] + }, + "ClientLibrarySettings:version": { + "paramName": "version", + "paramType": "TYPE_STRING", + "comments": [ + " Version of the API to apply these settings to. This is the full protobuf", + " package for the API, ending in the version element.", + " Examples: \"google.cloud.speech.v1\" and \"google.spanner.admin.database.v1\"." + ] + }, + "ClientLibrarySettings:launch_stage": { + "paramName": "launch_stage", + "paramType": ".google.api.LaunchStage", + "comments": [ + " Launch stage of this version of the API." + ] + }, + "ClientLibrarySettings:rest_numeric_enums": { + "paramName": "rest_numeric_enums", + "paramType": "TYPE_BOOL", + "comments": [ + " When using transport=rest, the client request will encode enums as", + " numbers rather than strings." + ] + }, + "ClientLibrarySettings:java_settings": { + "paramName": "java_settings", + "paramType": ".google.api.JavaSettings", + "comments": [ + " Settings for legacy Java features, supported in the Service YAML." + ] + }, + "ClientLibrarySettings:cpp_settings": { + "paramName": "cpp_settings", + "paramType": ".google.api.CppSettings", + "comments": [ + " Settings for C++ client libraries." + ] + }, + "ClientLibrarySettings:php_settings": { + "paramName": "php_settings", + "paramType": ".google.api.PhpSettings", + "comments": [ + " Settings for PHP client libraries." + ] + }, + "ClientLibrarySettings:python_settings": { + "paramName": "python_settings", + "paramType": ".google.api.PythonSettings", + "comments": [ + " Settings for Python client libraries." + ] + }, + "ClientLibrarySettings:node_settings": { + "paramName": "node_settings", + "paramType": ".google.api.NodeSettings", + "comments": [ + " Settings for Node client libraries." + ] + }, + "ClientLibrarySettings:dotnet_settings": { + "paramName": "dotnet_settings", + "paramType": ".google.api.DotnetSettings", + "comments": [ + " Settings for .NET client libraries." + ] + }, + "ClientLibrarySettings:ruby_settings": { + "paramName": "ruby_settings", + "paramType": ".google.api.RubySettings", + "comments": [ + " Settings for Ruby client libraries." + ] + }, + "ClientLibrarySettings:go_settings": { + "paramName": "go_settings", + "paramType": ".google.api.GoSettings", + "comments": [ + " Settings for Go client libraries." + ] + }, + "Publishing:method_settings": { + "paramName": "method_settings", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " A list of API method settings, e.g. the behavior for methods that use the", + " long-running operation pattern." + ] + }, + "Publishing:new_issue_uri": { + "paramName": "new_issue_uri", + "paramType": "TYPE_STRING", + "comments": [ + " Link to a *public* URI where users can report issues. Example:", + " https://issuetracker.google.com/issues/new?component=190865&template=1161103" + ] + }, + "Publishing:documentation_uri": { + "paramName": "documentation_uri", + "paramType": "TYPE_STRING", + "comments": [ + " Link to product home page. Example:", + " https://cloud.google.com/asset-inventory/docs/overview" + ] + }, + "Publishing:api_short_name": { + "paramName": "api_short_name", + "paramType": "TYPE_STRING", + "comments": [ + " Used as a tracking tag when collecting data about the APIs developer", + " relations artifacts like docs, packages delivered to package managers,", + " etc. Example: \"speech\"." + ] + }, + "Publishing:github_label": { + "paramName": "github_label", + "paramType": "TYPE_STRING", + "comments": [ + " GitHub label to apply to issues and pull requests opened for this API." + ] + }, + "Publishing:codeowner_github_teams": { + "paramName": "codeowner_github_teams", + "paramType": "TYPE_STRING[]", + "comments": [ + " GitHub teams to be added to CODEOWNERS in the directory in GitHub", + " containing source code for the client libraries for this API." + ] + }, + "Publishing:doc_tag_prefix": { + "paramName": "doc_tag_prefix", + "paramType": "TYPE_STRING", + "comments": [ + " A prefix used in sample code when demarking regions to be included in", + " documentation." + ] + }, + "Publishing:organization": { + "paramName": "organization", + "paramType": ".google.api.ClientLibraryOrganization", + "comments": [ + " For whom the client library is being published." + ] + }, + "Publishing:library_settings": { + "paramName": "library_settings", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Client library settings. If the same version string appears multiple", + " times in this list, then the last one wins. Settings from earlier", + " settings with the same version string are discarded." + ] + }, + "Publishing:proto_reference_documentation_uri": { + "paramName": "proto_reference_documentation_uri", + "paramType": "TYPE_STRING", + "comments": [ + " Optional link to proto reference documentation. Example:", + " https://cloud.google.com/pubsub/lite/docs/reference/rpc" + ] + }, + "JavaSettings:library_package": { + "paramName": "library_package", + "paramType": "TYPE_STRING", + "comments": [ + " The package name to use in Java. Clobbers the java_package option", + " set in the protobuf. This should be used **only** by APIs", + " who have already set the language_settings.java.package_name\" field", + " in gapic.yaml. API teams should use the protobuf java_package option", + " where possible.", + "", + " Example of a YAML configuration::", + "", + " publishing:", + " java_settings:", + " library_package: com.google.cloud.pubsub.v1" + ] + }, + "JavaSettings:service_class_names": { + "paramName": "service_class_names", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Configure the Java class name to use instead of the service's for its", + " corresponding generated GAPIC client. Keys are fully-qualified", + " service names as they appear in the protobuf (including the full", + " the language_settings.java.interface_names\" field in gapic.yaml. API", + " teams should otherwise use the service name as it appears in the", + " protobuf.", + "", + " Example of a YAML configuration::", + "", + " publishing:", + " java_settings:", + " service_class_names:", + " - google.pubsub.v1.Publisher: TopicAdmin", + " - google.pubsub.v1.Subscriber: SubscriptionAdmin" + ] + }, + "JavaSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "CppSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "PhpSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "PythonSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "NodeSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "DotnetSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "DotnetSettings:renamed_services": { + "paramName": "renamed_services", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Map from original service names to renamed versions.", + " This is used when the default generated types", + " would cause a naming conflict. (Neither name is", + " fully-qualified.)", + " Example: Subscriber to SubscriberServiceApi." + ] + }, + "DotnetSettings:renamed_resources": { + "paramName": "renamed_resources", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Map from full resource types to the effective short name", + " for the resource. This is used when otherwise resource", + " named from different services would cause naming collisions.", + " Example entry:", + " \"datalabeling.googleapis.com/Dataset\": \"DataLabelingDataset\"" + ] + }, + "DotnetSettings:ignored_resources": { + "paramName": "ignored_resources", + "paramType": "TYPE_STRING[]", + "comments": [ + " List of full resource types to ignore during generation.", + " This is typically used for API-specific Location resources,", + " which should be handled by the generator as if they were actually", + " the common Location resources.", + " Example entry: \"documentai.googleapis.com/Location\"" + ] + }, + "DotnetSettings:forced_namespace_aliases": { + "paramName": "forced_namespace_aliases", + "paramType": "TYPE_STRING[]", + "comments": [ + " Namespaces which must be aliased in snippets due to", + " a known (but non-generator-predictable) naming collision" + ] + }, + "DotnetSettings:handwritten_signatures": { + "paramName": "handwritten_signatures", + "paramType": "TYPE_STRING[]", + "comments": [ + " Method signatures (in the form \"service.method(signature)\")", + " which are provided separately, so shouldn't be generated.", + " Snippets *calling* these methods are still generated, however." + ] + }, + "RubySettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "GoSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "MethodSettings:selector": { + "paramName": "selector", + "paramType": "TYPE_STRING", + "comments": [ + " The fully qualified name of the method, for which the options below apply.", + " This is used to find the method to apply the options." + ] + }, + "MethodSettings:long_running": { + "paramName": "long_running", + "paramType": ".google.api.MethodSettings.LongRunning", + "comments": [ + " Describes settings to use for long-running operations when generating", + " API methods for RPCs. Complements RPCs that use the annotations in", + " google/longrunning/operations.proto.", + "", + " Example of a YAML configuration::", + "", + " publishing:", + " method_settings:", + " - selector: google.cloud.speech.v2.Speech.BatchRecognize", + " long_running:", + " initial_poll_delay:", + " seconds: 60 # 1 minute", + " poll_delay_multiplier: 1.5", + " max_poll_delay:", + " seconds: 360 # 6 minutes", + " total_poll_timeout:", + " seconds: 54000 # 90 minutes" + ] + }, + "Compliance": { + "paramName": "", + "paramType": "", + "comments": [ + " This service is used to test that GAPICs implement various REST-related features correctly. This mostly means transcoding proto3 requests to REST format", + " correctly for various types of HTTP annotations, but it also includes verifying that unknown (numeric) enums received by clients can be round-tripped", + " correctly." + ] + }, + "Compliance:RepeatDataBody": { + "paramName": "", + "paramType": "", + "comments": [ + " This method echoes the ComplianceData request. This method exercises", + " sending the entire request object in the REST body.", + "" + ] + }, + "Compliance:RepeatDataBodyInfo": { + "paramName": "", + "paramType": "", + "comments": [ + " This method echoes the ComplianceData request. This method exercises", + " sending the a message-type field in the REST body. Per AIP-127, only", + " top-level, non-repeated fields can be sent this way.", + "" + ] + }, + "Compliance:RepeatDataQuery": { + "paramName": "", + "paramType": "", + "comments": [ + " This method echoes the ComplianceData request. This method exercises", + " sending all request fields as query parameters.", + "" + ] + }, + "Compliance:RepeatDataSimplePath": { + "paramName": "", + "paramType": "", + "comments": [ + " This method echoes the ComplianceData request. This method exercises", + " sending some parameters as \"simple\" path variables (i.e., of the form", + " \"/bar/{foo}\" rather than \"/{foo=bar/*}\"), and the rest as query parameters.", + "" + ] + }, + "Compliance:RepeatDataPathResource": { + "paramName": "", + "paramType": "", + "comments": [ + " Same as RepeatDataSimplePath, but with a path resource.", + "" + ] + }, + "Compliance:RepeatDataPathTrailingResource": { + "paramName": "", + "paramType": "", + "comments": [ + " Same as RepeatDataSimplePath, but with a trailing resource.", + "" + ] + }, + "Compliance:RepeatDataBodyPut": { + "paramName": "", + "paramType": "", + "comments": [ + " This method echoes the ComplianceData request, using the HTTP PUT method.", + "" + ] + }, + "Compliance:RepeatDataBodyPatch": { + "paramName": "", + "paramType": "", + "comments": [ + " This method echoes the ComplianceData request, using the HTTP PATCH method.", + "" + ] + }, + "Compliance:GetEnum": { + "paramName": "", + "paramType": "", + "comments": [ + " This method requests an enum value from the server. Depending on the contents of EnumRequest, the enum value returned will be a known enum declared in the", + " .proto file, or a made-up enum value the is unknown to the client. To verify that clients can round-trip unknown enum vaues they receive, use the", + " response from this RPC as the request to VerifyEnum()", + "", + " The values of enums sent by the server when a known or unknown value is requested will be the same within a single Showcase server run (this is needed for", + " VerifyEnum() to work) but are not guaranteed to be the same across separate Showcase server runs.", + "" + ] + }, + "Compliance:VerifyEnum": { + "paramName": "", + "paramType": "", + "comments": [ + " This method is used to verify that clients can round-trip enum values, which is particularly important for unknown enum values over REST. VerifyEnum()", + " verifies that its request, which is presumably the response that the client previously got to a GetEnum(), contains the correct data. If so, it responds", + " with the same EnumResponse; otherwise, the RPC errors.", + "", + " This works because the values of enums sent by the server when a known or unknown value is requested will be the same within a single Showcase server run,", + " although they are not guaranteed to be the same across separate Showcase server runs.", + "" + ] + }, + "RepeatRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "RepeatRequest:info": { + "paramName": "info", + "paramType": ".google.showcase.v1beta1.ComplianceData", + "comments": [] + }, + "RepeatRequest:server_verify": { + "paramName": "server_verify", + "paramType": "TYPE_BOOL", + "comments": [ + " If true, the server will verify that the received request matches", + " the request with the same name in the compliance test suite." + ] + }, + "RepeatRequest:intended_binding_uri": { + "paramName": "intended_binding_uri", + "paramType": "TYPE_STRING", + "comments": [ + " The URI template this request is expected to be bound to server-side." + ] + }, + "RepeatRequest:f_int32": { + "paramName": "f_int32", + "paramType": "TYPE_INT32", + "comments": [ + " Some top level fields, to test that these are encoded correctly", + " in query params." + ] + }, + "RepeatRequest:f_int64": { + "paramName": "f_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + "RepeatRequest:f_double": { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "RepeatRequest:p_int32": { + "paramName": "p_int32", + "paramType": "TYPE_INT32", + "comments": [] + }, + "RepeatRequest:p_int64": { + "paramName": "p_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + "RepeatRequest:p_double": { + "paramName": "p_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "RepeatResponse:request": { + "paramName": "request", + "paramType": ".google.showcase.v1beta1.RepeatRequest", + "comments": [] + }, + "RepeatResponse:binding_uri": { + "paramName": "binding_uri", + "paramType": "TYPE_STRING", + "comments": [ + " The URI template the request was bound to server-side." + ] + }, + "ComplianceSuite:group": { + "paramName": "group", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "ComplianceGroup:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ComplianceGroup:rpcs": { + "paramName": "rpcs", + "paramType": "TYPE_STRING[]", + "comments": [] + }, + "ComplianceGroup:requests": { + "paramName": "requests", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "ComplianceData:f_string": { + "paramName": "f_string", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ComplianceData:f_int32": { + "paramName": "f_int32", + "paramType": "TYPE_INT32", + "comments": [] + }, + "ComplianceData:f_sint32": { + "paramName": "f_sint32", + "paramType": "TYPE_SINT32", + "comments": [] + }, + "ComplianceData:f_sfixed32": { + "paramName": "f_sfixed32", + "paramType": "TYPE_SFIXED32", + "comments": [] + }, + "ComplianceData:f_uint32": { + "paramName": "f_uint32", + "paramType": "TYPE_UINT32", + "comments": [] + }, + "ComplianceData:f_fixed32": { + "paramName": "f_fixed32", + "paramType": "TYPE_FIXED32", + "comments": [] + }, + "ComplianceData:f_int64": { + "paramName": "f_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + "ComplianceData:f_sint64": { + "paramName": "f_sint64", + "paramType": "TYPE_SINT64", + "comments": [] + }, + "ComplianceData:f_sfixed64": { + "paramName": "f_sfixed64", + "paramType": "TYPE_SFIXED64", + "comments": [] + }, + "ComplianceData:f_uint64": { + "paramName": "f_uint64", + "paramType": "TYPE_UINT64", + "comments": [] + }, + "ComplianceData:f_fixed64": { + "paramName": "f_fixed64", + "paramType": "TYPE_FIXED64", + "comments": [] + }, + "ComplianceData:f_double": { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "ComplianceData:f_float": { + "paramName": "f_float", + "paramType": "TYPE_FLOAT", + "comments": [] + }, + "ComplianceData:f_bool": { + "paramName": "f_bool", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "ComplianceData:f_bytes": { + "paramName": "f_bytes", + "paramType": "TYPE_BYTES", + "comments": [] + }, + "ComplianceData:f_kingdom": { + "paramName": "f_kingdom", + "paramType": ".google.showcase.v1beta1.ComplianceData.LifeKingdom", + "comments": [] + }, + "ComplianceData:f_child": { + "paramName": "f_child", + "paramType": ".google.showcase.v1beta1.ComplianceDataChild", + "comments": [] + }, + "ComplianceData:p_string": { + "paramName": "p_string", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ComplianceData:p_int32": { + "paramName": "p_int32", + "paramType": "TYPE_INT32", + "comments": [] + }, + "ComplianceData:p_double": { + "paramName": "p_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "ComplianceData:p_bool": { + "paramName": "p_bool", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "ComplianceData:p_kingdom": { + "paramName": "p_kingdom", + "paramType": ".google.showcase.v1beta1.ComplianceData.LifeKingdom", + "comments": [] + }, + "ComplianceData:p_child": { + "paramName": "p_child", + "paramType": ".google.showcase.v1beta1.ComplianceDataChild", + "comments": [] + }, + "ComplianceDataChild:f_string": { + "paramName": "f_string", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ComplianceDataChild:f_float": { + "paramName": "f_float", + "paramType": "TYPE_FLOAT", + "comments": [] + }, + "ComplianceDataChild:f_double": { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "ComplianceDataChild:f_bool": { + "paramName": "f_bool", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "ComplianceDataChild:f_continent": { + "paramName": "f_continent", + "paramType": ".google.showcase.v1beta1.Continent", + "comments": [] + }, + "ComplianceDataChild:f_child": { + "paramName": "f_child", + "paramType": ".google.showcase.v1beta1.ComplianceDataGrandchild", + "comments": [] + }, + "ComplianceDataChild:p_string": { + "paramName": "p_string", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ComplianceDataChild:p_float": { + "paramName": "p_float", + "paramType": "TYPE_FLOAT", + "comments": [] + }, + "ComplianceDataChild:p_double": { + "paramName": "p_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "ComplianceDataChild:p_bool": { + "paramName": "p_bool", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "ComplianceDataChild:p_continent": { + "paramName": "p_continent", + "paramType": ".google.showcase.v1beta1.Continent", + "comments": [] + }, + "ComplianceDataChild:p_child": { + "paramName": "p_child", + "paramType": ".google.showcase.v1beta1.ComplianceDataGrandchild", + "comments": [] + }, + "ComplianceDataGrandchild:f_string": { + "paramName": "f_string", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ComplianceDataGrandchild:f_double": { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "ComplianceDataGrandchild:f_bool": { + "paramName": "f_bool", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "EnumRequest:unknown_enum": { + "paramName": "unknown_enum", + "paramType": "TYPE_BOOL", + "comments": [ + " Whether the client is requesting a new, unknown enum value or a known enum value already declard in this proto file." + ] + }, + "EnumResponse:request": { + "paramName": "request", + "paramType": ".google.showcase.v1beta1.EnumRequest", + "comments": [ + " The original request for a known or unknown enum from the server." + ] + }, + "EnumResponse:continent": { + "paramName": "continent", + "paramType": ".google.showcase.v1beta1.Continent", + "comments": [ + " The actual enum the server provided." + ] + }, + "RoutingRule:routing_parameters": { + "paramName": "routing_parameters", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " A collection of Routing Parameter specifications.", + " **NOTE:** If multiple Routing Parameters describe the same key", + " (via the `path_template` field or via the `field` field when", + " `path_template` is not provided), \"last one wins\" rule", + " determines which Parameter gets used.", + " See the examples for more details." + ] + }, + "RoutingParameter:field": { + "paramName": "field", + "paramType": "TYPE_STRING", + "comments": [ + " A request field to extract the header key-value pair from." + ] + }, + "RoutingParameter:path_template": { + "paramName": "path_template", + "paramType": "TYPE_STRING", + "comments": [ + " A pattern matching the key-value field. Optional.", + " If not specified, the whole field specified in the `field` field will be", + " taken as value, and its name used as key. If specified, it MUST contain", + " exactly one named segment (along with any number of unnamed segments) The", + " pattern will be matched over the field specified in the `field` field, then", + " if the match is successful:", + " - the name of the single named segment will be used as a header name,", + " - the match value of the segment will be used as a header value;", + " if the match is NOT successful, nothing will be sent.", + "", + " Example:", + "", + " -- This is a field in the request message", + " | that the header value will be extracted from.", + " |", + " | -- This is the key name in the", + " | | routing header.", + " V |", + " field: \"table_name\" v", + " path_template: \"projects/*/{table_location=instances/*}/tables/*\"", + " ^ ^", + " | |", + " In the {} brackets is the pattern that -- |", + " specifies what to extract from the |", + " field as a value to be sent. |", + " |", + " The string in the field must match the whole pattern --", + " before brackets, inside brackets, after brackets.", + "", + " When looking at this specific example, we can see that:", + " - A key-value pair with the key `table_location`", + " and the value matching `instances/*` should be added", + " to the x-goog-request-params routing header.", + " - The value is extracted from the request message's `table_name` field", + " if it matches the full pattern specified:", + " `projects/*/instances/*/tables/*`.", + "", + " **NB:** If the `path_template` field is not provided, the key name is", + " equal to the field name, and the whole field should be sent as a value.", + " This makes the pattern for the field and the value functionally equivalent", + " to `**`, and the configuration", + "", + " {", + " field: \"table_name\"", + " }", + "", + " is a functionally equivalent shorthand to:", + "", + " {", + " field: \"table_name\"", + " path_template: \"{table_name=**}\"", + " }", + "", + " See Example 1 for more details." + ] + }, + "Any:type_url": { + "paramName": "type_url", + "paramType": "TYPE_STRING", + "comments": [ + " A URL/resource name that uniquely identifies the type of the serialized", + " protocol buffer message. This string must contain at least", + " one \"/\" character. The last segment of the URL's path must represent", + " the fully qualified name of the type (as in", + " `path/google.protobuf.Duration`). The name should be in a canonical form", + " (e.g., leading \".\" is not accepted).", + "", + " In practice, teams usually precompile into the binary all types that they", + " expect it to use in the context of Any. However, for URLs which use the", + " scheme `http`, `https`, or no scheme, one can optionally set up a type", + " server that maps type URLs to message definitions as follows:", + "", + " * If no scheme is provided, `https` is assumed.", + " * An HTTP GET on the URL must yield a [google.protobuf.Type][]", + " value in binary format, or produce an error.", + " * Applications are allowed to cache lookup results based on the", + " URL, or have them precompiled into a binary to avoid any", + " lookup. Therefore, binary compatibility needs to be preserved", + " on changes to types. (Use versioned type names to manage", + " breaking changes.)", + "", + " Note: this functionality is not currently available in the official", + " protobuf release, and it is not used for type URLs beginning with", + " type.googleapis.com. As of May 2023, there are no widely used type server", + " implementations and no plans to implement one.", + "", + " Schemes other than `http`, `https` (or the empty scheme) might be", + " used with implementation specific semantics.", + "" + ] + }, + "Any:value": { + "paramName": "value", + "paramType": "TYPE_BYTES", + "comments": [ + " Must be a valid serialized protocol buffer of the above specified type." + ] + }, + "Status:code": { + "paramName": "code", + "paramType": "TYPE_INT32", + "comments": [ + " The status code, which should be an enum value of", + " [google.rpc.Code][google.rpc.Code]." + ] + }, + "Status:message": { + "paramName": "message", + "paramType": "TYPE_STRING", + "comments": [ + " A developer-facing error message, which should be in English. Any", + " user-facing error message should be localized and sent in the", + " [google.rpc.Status.details][google.rpc.Status.details] field, or localized", + " by the client." + ] + }, + "Status:details": { + "paramName": "details", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " A list of messages that carry the error details. There is a common set of", + " message types for APIs to use." + ] + }, + "Operations": { + "paramName": "", + "paramType": "", + "comments": [ + " Manages long-running operations with an API service.", + "", + " When an API method normally takes long time to complete, it can be designed", + " to return [Operation][google.longrunning.Operation] to the client, and the client can use this", + " interface to receive the real response asynchronously by polling the", + " operation resource, or pass the operation resource to another API (such as", + " Google Cloud Pub/Sub API) to receive the response. Any API service that", + " returns long-running operations should implement the `Operations` interface", + " so developers can have a consistent client experience." + ] + }, + "Operations:ListOperations": { + "paramName": "", + "paramType": "", + "comments": [ + " Lists operations that match the specified filter in the request. If the", + " server doesn't support this method, it returns `UNIMPLEMENTED`.", + "", + " NOTE: the `name` binding allows API services to override the binding", + " to use different resource name schemes, such as `users/*/operations`. To", + " override the binding, API services can add a binding such as", + " `\"/v1/{name=users/*}/operations\"` to their service configuration.", + " For backwards compatibility, the default name includes the operations", + " collection id, however overriding users must ensure the name binding", + " is the parent resource, without the operations collection id.", + "" + ] + }, + "Operations:GetOperation": { + "paramName": "", + "paramType": "", + "comments": [ + " Gets the latest state of a long-running operation. Clients can use this", + " method to poll the operation result at intervals as recommended by the API", + " service.", + "" + ] + }, + "Operations:DeleteOperation": { + "paramName": "", + "paramType": "", + "comments": [ + " Deletes a long-running operation. This method indicates that the client is", + " no longer interested in the operation result. It does not cancel the", + " operation. If the server doesn't support this method, it returns", + " `google.rpc.Code.UNIMPLEMENTED`.", + "" + ] + }, + "Operations:CancelOperation": { + "paramName": "", + "paramType": "", + "comments": [ + " Starts asynchronous cancellation on a long-running operation. The server", + " makes a best effort to cancel the operation, but success is not", + " guaranteed. If the server doesn't support this method, it returns", + " `google.rpc.Code.UNIMPLEMENTED`. Clients can use", + " [Operations.GetOperation][google.longrunning.Operations.GetOperation] or", + " other methods to check whether the cancellation succeeded or whether the", + " operation completed despite cancellation. On successful cancellation,", + " the operation is not deleted; instead, it becomes an operation with", + " an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,", + " corresponding to `Code.CANCELLED`.", + "" + ] + }, + "Operations:WaitOperation": { + "paramName": "", + "paramType": "", + "comments": [ + " Waits until the specified long-running operation is done or reaches at most", + " a specified timeout, returning the latest state. If the operation is", + " already done, the latest state is immediately returned. If the timeout", + " specified is greater than the default HTTP/RPC timeout, the HTTP/RPC", + " timeout is used. If the server does not support this method, it returns", + " `google.rpc.Code.UNIMPLEMENTED`.", + " Note that this method is on a best-effort basis. It may return the latest", + " state before the specified timeout (including immediately), meaning even an", + " immediate response is no guarantee that the operation is done.", + "" + ] + }, + "Operation:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The server-assigned name, which is only unique within the same service that", + " originally returns it. If you use the default HTTP mapping, the", + " `name` should be a resource name ending with `operations/{unique_id}`." + ] + }, + "Operation:metadata": { + "paramName": "metadata", + "paramType": ".google.protobuf.Any", + "comments": [ + " Service-specific metadata associated with the operation. It typically", + " contains progress information and common metadata such as create time.", + " Some services might not provide such metadata. Any method that returns a", + " long-running operation should document the metadata type, if any." + ] + }, + "Operation:done": { + "paramName": "done", + "paramType": "TYPE_BOOL", + "comments": [ + " If the value is `false`, it means the operation is still in progress.", + " If `true`, the operation is completed, and either `error` or `response` is", + " available." + ] + }, + "Operation:error": { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error result of the operation in case of failure or cancellation." + ] + }, + "Operation:response": { + "paramName": "response", + "paramType": ".google.protobuf.Any", + "comments": [ + " The normal response of the operation in case of success. If the original", + " method returns no data on success, such as `Delete`, the response is", + " `google.protobuf.Empty`. If the original method is standard", + " `Get`/`Create`/`Update`, the response should be the resource. For other", + " methods, the response should have the type `XxxResponse`, where `Xxx`", + " is the original method name. For example, if the original method name", + " is `TakeSnapshot()`, the inferred response type is", + " `TakeSnapshotResponse`." + ] + }, + "GetOperationRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the operation resource." + ] + }, + "ListOperationsRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the operation's parent resource." + ] + }, + "ListOperationsRequest:filter": { + "paramName": "filter", + "paramType": "TYPE_STRING", + "comments": [ + " The standard list filter." + ] + }, + "ListOperationsRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The standard list page size." + ] + }, + "ListOperationsRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The standard list page token." + ] + }, + "ListOperationsResponse:operations": { + "paramName": "operations", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " A list of operations that matches the specified filter in the request." + ] + }, + "ListOperationsResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The standard List next-page token." + ] + }, + "CancelOperationRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the operation resource to be cancelled." + ] + }, + "DeleteOperationRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the operation resource to be deleted." + ] + }, + "WaitOperationRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the operation resource to wait on." + ] + }, + "WaitOperationRequest:timeout": { + "paramName": "timeout", + "paramType": ".google.protobuf.Duration", + "comments": [ + " The maximum duration to wait before timing out. If left blank, the wait", + " will be at most the time permitted by the underlying HTTP/RPC protocol.", + " If RPC context deadline is also specified, the shorter one will be used." + ] + }, + "OperationInfo:response_type": { + "paramName": "response_type", + "paramType": "TYPE_STRING", + "comments": [ + " Required. The message name of the primary return type for this", + " long-running operation.", + " This type will be used to deserialize the LRO's response.", + "", + " If the response is in a different package from the rpc, a fully-qualified", + " message name must be used (e.g. `google.protobuf.Struct`).", + "", + " Note: Altering this value constitutes a breaking change." + ] + }, + "OperationInfo:metadata_type": { + "paramName": "metadata_type", + "paramType": "TYPE_STRING", + "comments": [ + " Required. The message name of the metadata type for this long-running", + " operation.", + "", + " If the response is in a different package from the rpc, a fully-qualified", + " message name must be used (e.g. `google.protobuf.Struct`).", + "", + " Note: Altering this value constitutes a breaking change." + ] + }, + "Timestamp:seconds": { + "paramName": "seconds", + "paramType": "TYPE_INT64", + "comments": [ + " Represents seconds of UTC time since Unix epoch", + " 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to", + " 9999-12-31T23:59:59Z inclusive." + ] + }, + "Timestamp:nanos": { + "paramName": "nanos", + "paramType": "TYPE_INT32", + "comments": [ + " Non-negative fractions of a second at nanosecond resolution. Negative", + " second values with fractions must still have non-negative nanos values", + " that count forward in time. Must be from 0 to 999,999,999", + " inclusive." + ] + }, + "Echo": { + "paramName": "", + "paramType": "", + "comments": [ + " This service is used showcase the four main types of rpcs - unary, server", + " side streaming, client side streaming, and bidirectional streaming. This", + " service also exposes methods that explicitly implement server delay, and", + " paginated calls. Set the 'showcase-trailer' metadata key on any method", + " to have the values echoed in the response trailers. Set the ", + " 'x-goog-request-params' metadata key on any method to have the values", + " echoed in the response headers." + ] + }, + "Echo:Expand": { + "paramName": "", + "paramType": "", + "comments": [ + " This method splits the given content into words and will pass each word back", + " through the stream. This method showcases server-side streaming RPCs.", + "" + ] + }, + "Echo:Collect": { + "paramName": "", + "paramType": "", + "comments": [ + " This method will collect the words given to it. When the stream is closed", + " by the client, this method will return the a concatenation of the strings", + " passed to it. This method showcases client-side streaming RPCs.", + "" + ] + }, + "Echo:Chat": { + "paramName": "", + "paramType": "", + "comments": [ + " This method, upon receiving a request on the stream, will pass the same", + " content back on the stream. This method showcases bidirectional", + " streaming RPCs.", + "" + ] + }, + "Echo:PagedExpand": { + "paramName": "", + "paramType": "", + "comments": [ + " This is similar to the Expand method but instead of returning a stream of", + " expanded words, this method returns a paged list of expanded words.", + "" + ] + }, + "Echo:PagedExpandLegacy": { + "paramName": "", + "paramType": "", + "comments": [ + " This is similar to the PagedExpand except that it uses", + " max_results instead of page_size, as some legacy APIs still", + " do. New APIs should NOT use this pattern.", + "" + ] + }, + "Echo:PagedExpandLegacyMapped": { + "paramName": "", + "paramType": "", + "comments": [ + " This method returns a map containing lists of words that appear in the input, keyed by their", + " initial character. The only words returned are the ones included in the current page,", + " as determined by page_token and page_size, which both refer to the word indices in the", + " input. This paging result consisting of a map of lists is a pattern used by some legacy", + " APIs. New APIs should NOT use this pattern.", + "" + ] + }, + "Echo:Wait": { + "paramName": "", + "paramType": "", + "comments": [ + " This method will wait for the requested amount of time and then return.", + " This method showcases how a client handles a request timeout.", + "" + ] + }, + "Echo:Block": { + "paramName": "", + "paramType": "", + "comments": [ + " This method will block (wait) for the requested amount of time", + " and then return the response or error.", + " This method showcases how a client handles delays or retries.", + "" + ] + }, + "EchoRequest:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The content to be echoed by the server." + ] + }, + "EchoRequest:error": { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error to be thrown by the server." + ] + }, + "EchoRequest:severity": { + "paramName": "severity", + "paramType": ".google.showcase.v1beta1.Severity", + "comments": [ + " The severity to be echoed by the server." + ] + }, + "EchoRequest:header": { + "paramName": "header", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. This field can be set to test the routing annotation on the Echo method." + ] + }, + "EchoRequest:other_header": { + "paramName": "other_header", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. This field can be set to test the routing annotation on the Echo method." + ] + }, + "EchoResponse:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The content specified in the request." + ] + }, + "EchoResponse:severity": { + "paramName": "severity", + "paramType": ".google.showcase.v1beta1.Severity", + "comments": [ + " The severity specified in the request." + ] + }, + "ExpandRequest:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The content that will be split into words and returned on the stream." + ] + }, + "ExpandRequest:error": { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error that is thrown after all words are sent on the stream." + ] + }, + "PagedExpandRequest:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The string to expand." + ], + "fieldBehavior": 2 + }, + "PagedExpandRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The number of words to returned in each page." + ] + }, + "PagedExpandRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The position of the page to be returned." + ] + }, + "PagedExpandLegacyRequest:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The string to expand." + ], + "fieldBehavior": 2 + }, + "PagedExpandLegacyRequest:max_results": { + "paramName": "max_results", + "paramType": "TYPE_INT32", + "comments": [ + " The number of words to returned in each page.", + " (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that", + " violates aip.dev/158. Ordinarily, this should be page_size. --)" + ] + }, + "PagedExpandLegacyRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The position of the page to be returned." + ] + }, + "PagedExpandResponse:responses": { + "paramName": "responses", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The words that were expanded." + ] + }, + "PagedExpandResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The next page token." + ] + }, + "PagedExpandResponseList:words": { + "paramName": "words", + "paramType": "TYPE_STRING[]", + "comments": [] + }, + "PagedExpandLegacyMappedResponse:alphabetized": { + "paramName": "alphabetized", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The words that were expanded, indexed by their initial character.", + " (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates", + " aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --)" + ] + }, + "PagedExpandLegacyMappedResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The next page token." + ] + }, + "WaitRequest:end_time": { + "paramName": "end_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The time that this operation will complete." + ] + }, + "WaitRequest:ttl": { + "paramName": "ttl", + "paramType": ".google.protobuf.Duration", + "comments": [ + " The duration of this operation." + ] + }, + "WaitRequest:error": { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error that will be returned by the server. If this code is specified", + " to be the OK rpc code, an empty response will be returned." + ] + }, + "WaitRequest:success": { + "paramName": "success", + "paramType": ".google.showcase.v1beta1.WaitResponse", + "comments": [ + " The response to be returned on operation completion." + ] + }, + "WaitResponse:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " This content of the result." + ] + }, + "WaitMetadata:end_time": { + "paramName": "end_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The time that this operation will complete." + ] + }, + "BlockRequest:response_delay": { + "paramName": "response_delay", + "paramType": ".google.protobuf.Duration", + "comments": [ + " The amount of time to block before returning a response." + ] + }, + "BlockRequest:error": { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error that will be returned by the server. If this code is specified", + " to be the OK rpc code, an empty response will be returned." + ] + }, + "BlockRequest:success": { + "paramName": "success", + "paramType": ".google.showcase.v1beta1.BlockResponse", + "comments": [ + " The response to be returned that will signify successful method call." + ] + }, + "BlockResponse:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " This content can contain anything, the server will not depend on a value", + " here." + ] + }, + "ResourceDescriptor:type": { + "paramName": "type", + "paramType": "TYPE_STRING", + "comments": [ + " The resource type. It must be in the format of", + " {service_name}/{resource_type_kind}. The `resource_type_kind` must be", + " singular and must not include version numbers.", + "", + " Example: `storage.googleapis.com/Bucket`", + "", + " The value of the resource_type_kind must follow the regular expression", + " /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and", + " should use PascalCase (UpperCamelCase). The maximum number of", + " characters allowed for the `resource_type_kind` is 100." + ] + }, + "ResourceDescriptor:pattern": { + "paramName": "pattern", + "paramType": "TYPE_STRING[]", + "comments": [ + " Optional. The relative resource name pattern associated with this resource", + " type. The DNS prefix of the full resource name shouldn't be specified here.", + "", + " The path pattern must follow the syntax, which aligns with HTTP binding", + " syntax:", + "", + " Template = Segment { \"/\" Segment } ;", + " Segment = LITERAL | Variable ;", + " Variable = \"{\" LITERAL \"}\" ;", + "", + " Examples:", + "", + " - \"projects/{project}/topics/{topic}\"", + " - \"projects/{project}/knowledgeBases/{knowledge_base}\"", + "", + " The components in braces correspond to the IDs for each resource in the", + " hierarchy. It is expected that, if multiple patterns are provided,", + " the same component name (e.g. \"project\") refers to IDs of the same", + " type of resource." + ] + }, + "ResourceDescriptor:name_field": { + "paramName": "name_field", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. The field on the resource that designates the resource name", + " field. If omitted, this is assumed to be \"name\"." + ] + }, + "ResourceDescriptor:history": { + "paramName": "history", + "paramType": ".google.api.ResourceDescriptor.History", + "comments": [ + " Optional. The historical or future-looking state of the resource pattern.", + "", + " Example:", + "", + " // The InspectTemplate message originally only supported resource", + " // names with organization, and project was added later.", + " message InspectTemplate {", + " option (google.api.resource) = {", + " type: \"dlp.googleapis.com/InspectTemplate\"", + " pattern:", + " \"organizations/{organization}/inspectTemplates/{inspect_template}\"", + " pattern: \"projects/{project}/inspectTemplates/{inspect_template}\"", + " history: ORIGINALLY_SINGLE_PATTERN", + " };", + " }" + ] + }, + "ResourceDescriptor:plural": { + "paramName": "plural", + "paramType": "TYPE_STRING", + "comments": [ + " The plural name used in the resource name and permission names, such as", + " 'projects' for the resource name of 'projects/{project}' and the permission", + " name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same", + " concept of the `plural` field in k8s CRD spec", + " https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/", + "", + " Note: The plural form is required even for singleton resources. See", + " https://aip.dev/156" + ] + }, + "ResourceDescriptor:singular": { + "paramName": "singular", + "paramType": "TYPE_STRING", + "comments": [ + " The same concept of the `singular` field in k8s CRD spec", + " https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/", + " Such as \"project\" for the `resourcemanager.googleapis.com/Project` type." + ] + }, + "ResourceDescriptor:style": { + "paramName": "style", + "paramType": "TYPE_ENUM[]", + "comments": [ + " Style flag(s) for this resource.", + " These indicate that a resource is expected to conform to a given", + " style. See the specific style flags for additional information." + ] + }, + "ResourceReference:type": { + "paramName": "type", + "paramType": "TYPE_STRING", + "comments": [ + " The resource type that the annotated field references.", + "", + " Example:", + "", + " message Subscription {", + " string topic = 2 [(google.api.resource_reference) = {", + " type: \"pubsub.googleapis.com/Topic\"", + " }];", + " }", + "", + " Occasionally, a field may reference an arbitrary resource. In this case,", + " APIs use the special value * in their resource reference.", + "", + " Example:", + "", + " message GetIamPolicyRequest {", + " string resource = 2 [(google.api.resource_reference) = {", + " type: \"*\"", + " }];", + " }" + ] + }, + "ResourceReference:child_type": { + "paramName": "child_type", + "paramType": "TYPE_STRING", + "comments": [ + " The resource type of a child collection that the annotated field", + " references. This is useful for annotating the `parent` field that", + " doesn't have a fixed resource type.", + "", + " Example:", + "", + " message ListLogEntriesRequest {", + " string parent = 1 [(google.api.resource_reference) = {", + " child_type: \"logging.googleapis.com/LogEntry\"", + " };", + " }" + ] + }, + "FieldMask:paths": { + "paramName": "paths", + "paramType": "TYPE_STRING[]", + "comments": [ + " The set of field mask paths." + ] + }, + "Identity": { + "paramName": "", + "paramType": "", + "comments": [ + " A simple identity service." + ] + }, + "Identity:CreateUser": { + "paramName": "", + "paramType": "", + "comments": [ + " Creates a user.", + "" + ] + }, + "Identity:GetUser": { + "paramName": "", + "paramType": "", + "comments": [ + " Retrieves the User with the given uri.", + "" + ] + }, + "Identity:UpdateUser": { + "paramName": "", + "paramType": "", + "comments": [ + " Updates a user.", + "" + ] + }, + "Identity:DeleteUser": { + "paramName": "", + "paramType": "", + "comments": [ + " Deletes a user, their profile, and all of their authored messages.", + "" + ] + }, + "Identity:ListUsers": { + "paramName": "", + "paramType": "", + "comments": [ + " Lists all users.", + "" + ] + }, + "User:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the user." + ] + }, + "User:display_name": { + "paramName": "display_name", + "paramType": "TYPE_STRING", + "comments": [ + " The display_name of the user." + ], + "fieldBehavior": 2 + }, + "User:email": { + "paramName": "email", + "paramType": "TYPE_STRING", + "comments": [ + " The email address of the user." + ], + "fieldBehavior": 2 + }, + "User:create_time": { + "paramName": "create_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The timestamp at which the user was created." + ], + "fieldBehavior": 3 + }, + "User:update_time": { + "paramName": "update_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The latest timestamp at which the user was updated." + ], + "fieldBehavior": 3 + }, + "User:age": { + "paramName": "age", + "paramType": "TYPE_INT32", + "comments": [ + " The age of the user in years." + ] + }, + "User:height_feet": { + "paramName": "height_feet", + "paramType": "TYPE_DOUBLE", + "comments": [ + " The height of the user in feet." + ] + }, + "User:nickname": { + "paramName": "nickname", + "paramType": "TYPE_STRING", + "comments": [ + " The nickname of the user.", + "", + " (-- aip.dev/not-precedent: An empty string is a valid nickname.", + " Ordinarily, proto3_optional should not be used on a `string` field. --)" + ] + }, + "User:enable_notifications": { + "paramName": "enable_notifications", + "paramType": "TYPE_BOOL", + "comments": [ + " Enables the receiving of notifications. The default is true if unset.", + "", + " (-- aip.dev/not-precedent: The default for the feature is true.", + " Ordinarily, the default for a `bool` field should be false. --)" + ] + }, + "CreateUserRequest:user": { + "paramName": "user", + "paramType": ".google.showcase.v1beta1.User", + "comments": [ + " The user to create." + ] + }, + "GetUserRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested user." + ], + "fieldBehavior": 2 + }, + "UpdateUserRequest:user": { + "paramName": "user", + "paramType": ".google.showcase.v1beta1.User", + "comments": [ + " The user to update." + ] + }, + "UpdateUserRequest:update_mask": { + "paramName": "update_mask", + "paramType": ".google.protobuf.FieldMask", + "comments": [ + " The field mask to determine which fields are to be updated. If empty, the", + " server will assume all fields are to be updated." + ] + }, + "DeleteUserRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the user to delete." + ], + "fieldBehavior": 2 + }, + "ListUsersRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of users to return. Server may return fewer users", + " than requested. If unspecified, server will pick an appropriate default." + ] + }, + "ListUsersRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The value of google.showcase.v1beta1.ListUsersResponse.next_page_token", + " returned from the previous call to", + " `google.showcase.v1beta1.Identity\\ListUsers` method." + ] + }, + "ListUsersResponse:users": { + "paramName": "users", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The list of users." + ] + }, + "ListUsersResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " A token to retrieve next page of results.", + " Pass this value in ListUsersRequest.page_token field in the subsequent", + " call to `google.showcase.v1beta1.Message\\ListUsers` method to retrieve the", + " next page of results." + ] + }, + "ErrorInfo:reason": { + "paramName": "reason", + "paramType": "TYPE_STRING", + "comments": [ + " The reason of the error. This is a constant value that identifies the", + " proximate cause of the error. Error reasons are unique within a particular", + " domain of errors. This should be at most 63 characters and match a", + " regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents", + " UPPER_SNAKE_CASE." + ] + }, + "ErrorInfo:domain": { + "paramName": "domain", + "paramType": "TYPE_STRING", + "comments": [ + " The logical grouping to which the \"reason\" belongs. The error domain", + " is typically the registered service name of the tool or product that", + " generates the error. Example: \"pubsub.googleapis.com\". If the error is", + " generated by some common infrastructure, the error domain must be a", + " globally unique value that identifies the infrastructure. For Google API", + " infrastructure, the error domain is \"googleapis.com\"." + ] + }, + "ErrorInfo:metadata": { + "paramName": "metadata", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Additional structured details about this error.", + "", + " Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in", + " length. When identifying the current value of an exceeded limit, the units", + " should be contained in the key, not the value. For example, rather than", + " {\"instanceLimit\": \"100/request\"}, should be returned as,", + " {\"instanceLimitPerRequest\": \"100\"}, if the client exceeds the number of", + " instances that can be created in a single (batch) request." + ] + }, + "RetryInfo:retry_delay": { + "paramName": "retry_delay", + "paramType": ".google.protobuf.Duration", + "comments": [ + " Clients should wait at least this long between retrying the same request." + ] + }, + "DebugInfo:stack_entries": { + "paramName": "stack_entries", + "paramType": "TYPE_STRING[]", + "comments": [ + " The stack trace entries indicating where the error occurred." + ] + }, + "DebugInfo:detail": { + "paramName": "detail", + "paramType": "TYPE_STRING", + "comments": [ + " Additional debugging information provided by the server." + ] + }, + "QuotaFailure:violations": { + "paramName": "violations", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Describes all quota violations." + ] + }, + "PreconditionFailure:violations": { + "paramName": "violations", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Describes all precondition violations." + ] + }, + "BadRequest:field_violations": { + "paramName": "field_violations", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Describes all violations in a client request." + ] + }, + "RequestInfo:request_id": { + "paramName": "request_id", + "paramType": "TYPE_STRING", + "comments": [ + " An opaque string that should only be interpreted by the service generating", + " it. For example, it can be used to identify requests in the service's logs." + ] + }, + "RequestInfo:serving_data": { + "paramName": "serving_data", + "paramType": "TYPE_STRING", + "comments": [ + " Any data that was used to serve this request. For example, an encrypted", + " stack trace that can be sent back to the service provider for debugging." + ] + }, + "ResourceInfo:resource_type": { + "paramName": "resource_type", + "paramType": "TYPE_STRING", + "comments": [ + " A name for the type of resource being accessed, e.g. \"sql table\",", + " \"cloud storage bucket\", \"file\", \"Google calendar\"; or the type URL", + " of the resource: e.g. \"type.googleapis.com/google.pubsub.v1.Topic\"." + ] + }, + "ResourceInfo:resource_name": { + "paramName": "resource_name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the resource being accessed. For example, a shared calendar", + " name: \"example.com_4fghdhgsrgh@group.calendar.google.com\", if the current", + " error is", + " [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED]." + ] + }, + "ResourceInfo:owner": { + "paramName": "owner", + "paramType": "TYPE_STRING", + "comments": [ + " The owner of the resource (optional).", + " For example, \"user:\" or \"project:\"." + ] + }, + "ResourceInfo:description": { + "paramName": "description", + "paramType": "TYPE_STRING", + "comments": [ + " Describes what error is encountered when accessing this resource.", + " For example, updating a cloud project may require the `writer` permission", + " on the developer console project." + ] + }, + "Help:links": { + "paramName": "links", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " URL(s) pointing to additional information on handling the current error." + ] + }, + "LocalizedMessage:locale": { + "paramName": "locale", + "paramType": "TYPE_STRING", + "comments": [ + " The locale used following the specification defined at", + " https://www.rfc-editor.org/rfc/bcp/bcp47.txt.", + " Examples are: \"en-US\", \"fr-CH\", \"es-MX\"" + ] + }, + "LocalizedMessage:message": { + "paramName": "message", + "paramType": "TYPE_STRING", + "comments": [ + " The localized error message in the above locale." + ] + }, + "Messaging": { + "paramName": "", + "paramType": "", + "comments": [ + " A simple messaging service that implements chat rooms and profile posts.", + "", + " This messaging service showcases the features that API clients", + " generated by gapic-generators implement." + ] + }, + "Messaging:CreateRoom": { + "paramName": "", + "paramType": "", + "comments": [ + " Creates a room.", + "" + ] + }, + "Messaging:GetRoom": { + "paramName": "", + "paramType": "", + "comments": [ + " Retrieves the Room with the given resource name.", + "" + ] + }, + "Messaging:UpdateRoom": { + "paramName": "", + "paramType": "", + "comments": [ + " Updates a room.", + "" + ] + }, + "Messaging:DeleteRoom": { + "paramName": "", + "paramType": "", + "comments": [ + " Deletes a room and all of its blurbs.", + "" + ] + }, + "Messaging:ListRooms": { + "paramName": "", + "paramType": "", + "comments": [ + " Lists all chat rooms.", + "" + ] + }, + "Messaging:CreateBlurb": { + "paramName": "", + "paramType": "", + "comments": [ + " Creates a blurb. If the parent is a room, the blurb is understood to be a", + " message in that room. If the parent is a profile, the blurb is understood", + " to be a post on the profile.", + "" + ] + }, + "Messaging:GetBlurb": { + "paramName": "", + "paramType": "", + "comments": [ + " Retrieves the Blurb with the given resource name.", + "" + ] + }, + "Messaging:UpdateBlurb": { + "paramName": "", + "paramType": "", + "comments": [ + " Updates a blurb.", + "" + ] + }, + "Messaging:DeleteBlurb": { + "paramName": "", + "paramType": "", + "comments": [ + " Deletes a blurb.", + "" + ] + }, + "Messaging:ListBlurbs": { + "paramName": "", + "paramType": "", + "comments": [ + " Lists blurbs for a specific chat room or user profile depending on the", + " parent resource name.", + "" + ] + }, + "Messaging:SearchBlurbs": { + "paramName": "", + "paramType": "", + "comments": [ + " This method searches through all blurbs across all rooms and profiles", + " for blurbs containing to words found in the query. Only posts that", + " contain an exact match of a queried word will be returned.", + "" + ] + }, + "Messaging:StreamBlurbs": { + "paramName": "", + "paramType": "", + "comments": [ + " This returns a stream that emits the blurbs that are created for a", + " particular chat room or user profile.", + "" + ] + }, + "Messaging:SendBlurbs": { + "paramName": "", + "paramType": "", + "comments": [ + " This is a stream to create multiple blurbs. If an invalid blurb is", + " requested to be created, the stream will close with an error.", + "" + ] + }, + "Messaging:Connect": { + "paramName": "", + "paramType": "", + "comments": [ + " This method starts a bidirectional stream that receives all blurbs that", + " are being created after the stream has started and sends requests to create", + " blurbs. If an invalid blurb is requested to be created, the stream will", + " close with an error.", + "" + ] + }, + "Room:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the chat room." + ] + }, + "Room:display_name": { + "paramName": "display_name", + "paramType": "TYPE_STRING", + "comments": [ + " The human readable name of the chat room." + ], + "fieldBehavior": 2 + }, + "Room:description": { + "paramName": "description", + "paramType": "TYPE_STRING", + "comments": [ + " The description of the chat room." + ] + }, + "Room:create_time": { + "paramName": "create_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The timestamp at which the room was created." + ], + "fieldBehavior": 3 + }, + "Room:update_time": { + "paramName": "update_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The latest timestamp at which the room was updated." + ], + "fieldBehavior": 3 + }, + "CreateRoomRequest:room": { + "paramName": "room", + "paramType": ".google.showcase.v1beta1.Room", + "comments": [ + " The room to create." + ] + }, + "GetRoomRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested room." + ], + "fieldBehavior": 2 + }, + "UpdateRoomRequest:room": { + "paramName": "room", + "paramType": ".google.showcase.v1beta1.Room", + "comments": [ + " The room to update." + ] + }, + "UpdateRoomRequest:update_mask": { + "paramName": "update_mask", + "paramType": ".google.protobuf.FieldMask", + "comments": [ + " The field mask to determine which fields are to be updated. If empty, the", + " server will assume all fields are to be updated." + ] + }, + "DeleteRoomRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested room." + ], + "fieldBehavior": 2 + }, + "ListRoomsRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of rooms return. Server may return fewer rooms", + " than requested. If unspecified, server will pick an appropriate default." + ] + }, + "ListRoomsRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The value of google.showcase.v1beta1.ListRoomsResponse.next_page_token", + " returned from the previous call to", + " `google.showcase.v1beta1.Messaging\\ListRooms` method." + ] + }, + "ListRoomsResponse:rooms": { + "paramName": "rooms", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The list of rooms." + ] + }, + "ListRoomsResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " A token to retrieve next page of results.", + " Pass this value in ListRoomsRequest.page_token field in the subsequent", + " call to `google.showcase.v1beta1.Messaging\\ListRooms` method to retrieve", + " the next page of results." + ] + }, + "Blurb:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the chat room." + ] + }, + "Blurb:user": { + "paramName": "user", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the blurb's author." + ], + "fieldBehavior": 2 + }, + "Blurb:text": { + "paramName": "text", + "paramType": "TYPE_STRING", + "comments": [ + " The textual content of this blurb." + ] + }, + "Blurb:image": { + "paramName": "image", + "paramType": "TYPE_BYTES", + "comments": [ + " The image content of this blurb." + ] + }, + "Blurb:create_time": { + "paramName": "create_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The timestamp at which the blurb was created." + ], + "fieldBehavior": 3 + }, + "Blurb:update_time": { + "paramName": "update_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The latest timestamp at which the blurb was updated." + ], + "fieldBehavior": 3 + }, + "Blurb:legacy_room_id": { + "paramName": "legacy_room_id", + "paramType": "TYPE_STRING", + "comments": [ + " The legacy id of the room. This field is used to signal", + " the use of the compound resource pattern", + " `rooms/{room}/blurbs/legacy/{legacy_room}.{blurb}`" + ] + }, + "Blurb:legacy_user_id": { + "paramName": "legacy_user_id", + "paramType": "TYPE_STRING", + "comments": [ + " The legacy id of the user. This field is used to signal", + " the use of the compound resource pattern", + " `users/{user}/profile/blurbs/legacy/{legacy_user}~{blurb}`" + ] + }, + "CreateBlurbRequest:parent": { + "paramName": "parent", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the chat room or user profile that this blurb will", + " be tied to." + ], + "fieldBehavior": 2 + }, + "CreateBlurbRequest:blurb": { + "paramName": "blurb", + "paramType": ".google.showcase.v1beta1.Blurb", + "comments": [ + " The blurb to create." + ] + }, + "GetBlurbRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested blurb." + ], + "fieldBehavior": 2 + }, + "UpdateBlurbRequest:blurb": { + "paramName": "blurb", + "paramType": ".google.showcase.v1beta1.Blurb", + "comments": [ + " The blurb to update." + ] + }, + "UpdateBlurbRequest:update_mask": { + "paramName": "update_mask", + "paramType": ".google.protobuf.FieldMask", + "comments": [ + " The field mask to determine wich fields are to be updated. If empty, the", + " server will assume all fields are to be updated." + ] + }, + "DeleteBlurbRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested blurb." + ], + "fieldBehavior": 2 + }, + "ListBlurbsRequest:parent": { + "paramName": "parent", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested room or profile whos blurbs to list." + ], + "fieldBehavior": 2 + }, + "ListBlurbsRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of blurbs to return. Server may return fewer", + " blurbs than requested. If unspecified, server will pick an appropriate", + " default." + ] + }, + "ListBlurbsRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The value of google.showcase.v1beta1.ListBlurbsResponse.next_page_token", + " returned from the previous call to", + " `google.showcase.v1beta1.Messaging\\ListBlurbs` method." + ] + }, + "ListBlurbsResponse:blurbs": { + "paramName": "blurbs", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The list of blurbs." + ] + }, + "ListBlurbsResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " A token to retrieve next page of results.", + " Pass this value in ListBlurbsRequest.page_token field in the subsequent", + " call to `google.showcase.v1beta1.Blurb\\ListBlurbs` method to retrieve", + " the next page of results." + ] + }, + "SearchBlurbsRequest:query": { + "paramName": "query", + "paramType": "TYPE_STRING", + "comments": [ + " The query used to search for blurbs containing to words of this string.", + " Only posts that contain an exact match of a queried word will be returned." + ], + "fieldBehavior": 2 + }, + "SearchBlurbsRequest:parent": { + "paramName": "parent", + "paramType": "TYPE_STRING", + "comments": [ + " The rooms or profiles to search. If unset, `SearchBlurbs` will search all", + " rooms and all profiles." + ] + }, + "SearchBlurbsRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of blurbs return. Server may return fewer", + " blurbs than requested. If unspecified, server will pick an appropriate", + " default." + ] + }, + "SearchBlurbsRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The value of", + " google.showcase.v1beta1.SearchBlurbsResponse.next_page_token", + " returned from the previous call to", + " `google.showcase.v1beta1.Messaging\\SearchBlurbs` method." + ] + }, + "SearchBlurbsMetadata:retry_info": { + "paramName": "retry_info", + "paramType": ".google.rpc.RetryInfo", + "comments": [ + " This signals to the client when to next poll for response." + ] + }, + "SearchBlurbsResponse:blurbs": { + "paramName": "blurbs", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Blurbs that matched the search query." + ] + }, + "SearchBlurbsResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " A token to retrieve next page of results.", + " Pass this value in SearchBlurbsRequest.page_token field in the subsequent", + " call to `google.showcase.v1beta1.Blurb\\SearchBlurbs` method to", + " retrieve the next page of results." + ] + }, + "StreamBlurbsRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of a chat room or user profile whose blurbs to stream." + ], + "fieldBehavior": 2 + }, + "StreamBlurbsRequest:expire_time": { + "paramName": "expire_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The time at which this stream will close." + ], + "fieldBehavior": 2 + }, + "StreamBlurbsResponse:blurb": { + "paramName": "blurb", + "paramType": ".google.showcase.v1beta1.Blurb", + "comments": [ + " The blurb that was either created, updated, or deleted." + ] + }, + "StreamBlurbsResponse:action": { + "paramName": "action", + "paramType": ".google.showcase.v1beta1.StreamBlurbsResponse.Action", + "comments": [ + " The action that triggered the blurb to be returned." + ] + }, + "SendBlurbsResponse:names": { + "paramName": "names", + "paramType": "TYPE_STRING[]", + "comments": [ + " The names of successful blurb creations." + ] + }, + "ConnectRequest:config": { + "paramName": "config", + "paramType": ".google.showcase.v1beta1.ConnectRequest.ConnectConfig", + "comments": [ + " Provides information that specifies how to process subsequent requests.", + " The first `ConnectRequest` message must contain a `config` message." + ] + }, + "ConnectRequest:blurb": { + "paramName": "blurb", + "paramType": ".google.showcase.v1beta1.Blurb", + "comments": [ + " The blurb to be created." + ] + }, + "SequenceService": { + "paramName": "", + "paramType": "", + "comments": [] + }, + "SequenceService:CreateSequence": { + "paramName": "", + "paramType": "", + "comments": [ + " Creates a sequence.", + "" + ] + }, + "SequenceService:GetSequenceReport": { + "paramName": "", + "paramType": "", + "comments": [ + " Retrieves a sequence.", + "" + ] + }, + "SequenceService:AttemptSequence": { + "paramName": "", + "paramType": "", + "comments": [ + " Attempts a sequence.", + "" + ] + }, + "Sequence:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [], + "fieldBehavior": 3 + }, + "Sequence:responses": { + "paramName": "responses", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Sequence of responses to return in order for each attempt. If empty, the", + " default response is an immediate OK." + ] + }, + "SequenceReport:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [], + "fieldBehavior": 3 + }, + "SequenceReport:attempts": { + "paramName": "attempts", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The set of RPC attempts received by the server for a Sequence." + ] + }, + "CreateSequenceRequest:sequence": { + "paramName": "sequence", + "paramType": ".google.showcase.v1beta1.Sequence", + "comments": [] + }, + "AttemptSequenceRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [], + "fieldBehavior": 2 + }, + "GetSequenceReportRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [], + "fieldBehavior": 2 + }, + "Testing": { + "paramName": "", + "paramType": "", + "comments": [ + " A service to facilitate running discrete sets of tests", + " against Showcase." + ] + }, + "Testing:CreateSession": { + "paramName": "", + "paramType": "", + "comments": [ + " Creates a new testing session.", + "" + ] + }, + "Testing:GetSession": { + "paramName": "", + "paramType": "", + "comments": [ + " Gets a testing session.", + "" + ] + }, + "Testing:ListSessions": { + "paramName": "", + "paramType": "", + "comments": [ + " Lists the current test sessions.", + "" + ] + }, + "Testing:DeleteSession": { + "paramName": "", + "paramType": "", + "comments": [ + " Delete a test session.", + "" + ] + }, + "Testing:ReportSession": { + "paramName": "", + "paramType": "", + "comments": [ + " Report on the status of a session.", + " This generates a report detailing which tests have been completed,", + " and an overall rollup.", + "" + ] + }, + "Testing:ListTests": { + "paramName": "", + "paramType": "", + "comments": [ + " List the tests of a sessesion.", + "" + ] + }, + "Testing:DeleteTest": { + "paramName": "", + "paramType": "", + "comments": [ + " Explicitly decline to implement a test.", + "", + " This removes the test from subsequent `ListTests` calls, and", + " attempting to do the test will error.", + "", + " This method will error if attempting to delete a required test.", + "" + ] + }, + "Testing:VerifyTest": { + "paramName": "", + "paramType": "", + "comments": [ + " Register a response to a test.", + "", + " In cases where a test involves registering a final answer at the", + " end of the test, this method provides the means to do so.", + "" + ] + }, + "Session:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the session. The ID must conform to ^[a-z]+$", + " If this is not provided, Showcase chooses one at random." + ] + }, + "Session:version": { + "paramName": "version", + "paramType": ".google.showcase.v1beta1.Session.Version", + "comments": [ + " Required. The version this session is using." + ] + }, + "CreateSessionRequest:session": { + "paramName": "session", + "paramType": ".google.showcase.v1beta1.Session", + "comments": [ + " The session to be created.", + " Sessions are immutable once they are created (although they can", + " be deleted)." + ] + }, + "GetSessionRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The session to be retrieved." + ] + }, + "ListSessionsRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of sessions to return per page." + ] + }, + "ListSessionsRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The page token, for retrieving subsequent pages." + ] + }, + "ListSessionsResponse:sessions": { + "paramName": "sessions", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The sessions being returned." + ] + }, + "ListSessionsResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The next page token, if any.", + " An empty value here means the last page has been reached." + ] + }, + "DeleteSessionRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The session to be deleted." + ] + }, + "ReportSessionRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The session to be reported on." + ] + }, + "ReportSessionResponse:result": { + "paramName": "result", + "paramType": ".google.showcase.v1beta1.ReportSessionResponse.Result", + "comments": [ + " The state of the report." + ] + }, + "ReportSessionResponse:test_runs": { + "paramName": "test_runs", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The test runs of this session." + ] + }, + "Test:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the test.", + " The tests/* portion of the names are hard-coded, and do not change", + " from session to session." + ] + }, + "Test:expectation_level": { + "paramName": "expectation_level", + "paramType": ".google.showcase.v1beta1.Test.ExpectationLevel", + "comments": [ + " The expectation level for this test." + ] + }, + "Test:description": { + "paramName": "description", + "paramType": "TYPE_STRING", + "comments": [ + " A description of the test." + ] + }, + "Test:blueprints": { + "paramName": "blueprints", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The blueprints that will satisfy this test. There may be multiple blueprints", + " that can signal to the server that this test case is being exercised. Although", + " multiple blueprints are specified, only a single blueprint needs to be run to", + " signal that the test case was exercised." + ] + }, + "Issue:type": { + "paramName": "type", + "paramType": ".google.showcase.v1beta1.Issue.Type", + "comments": [ + " The type of the issue." + ] + }, + "Issue:severity": { + "paramName": "severity", + "paramType": ".google.showcase.v1beta1.Issue.Severity", + "comments": [ + " The severity of the issue." + ] + }, + "Issue:description": { + "paramName": "description", + "paramType": "TYPE_STRING", + "comments": [ + " A description of the issue." + ] + }, + "ListTestsRequest:parent": { + "paramName": "parent", + "paramType": "TYPE_STRING", + "comments": [ + " The session." + ] + }, + "ListTestsRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of tests to return per page." + ] + }, + "ListTestsRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The page token, for retrieving subsequent pages." + ] + }, + "ListTestsResponse:tests": { + "paramName": "tests", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The tests being returned." + ] + }, + "ListTestsResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The next page token, if any.", + " An empty value here means the last page has been reached." + ] + }, + "TestRun:test": { + "paramName": "test", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the test.", + " The tests/* portion of the names are hard-coded, and do not change", + " from session to session." + ] + }, + "TestRun:issue": { + "paramName": "issue", + "paramType": ".google.showcase.v1beta1.Issue", + "comments": [ + " An issue found with the test run. If empty, this test run was successful." + ] + }, + "DeleteTestRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The test to be deleted." + ] + }, + "VerifyTestRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The test to have an answer registered to it." + ] + }, + "VerifyTestRequest:answer": { + "paramName": "answer", + "paramType": "TYPE_BYTES", + "comments": [ + " The answer from the test." + ] + }, + "VerifyTestRequest:answers": { + "paramName": "answers", + "paramType": "TYPE_BYTES[]", + "comments": [ + " The answers from the test if multiple are to be checked" + ] + }, + "VerifyTestResponse:issue": { + "paramName": "issue", + "paramType": ".google.showcase.v1beta1.Issue", + "comments": [ + " An issue if check answer was unsuccessful. This will be empty if the check answer succeeded." + ] + } + } + }, + "retryableCodeMap": { + "codeEnumMapping": { + "0": "OK", + "1": "CANCELLED", + "2": "UNKNOWN", + "3": "INVALID_ARGUMENT", + "4": "DEADLINE_EXCEEDED", + "5": "NOT_FOUND", + "6": "ALREADY_EXISTS", + "7": "PERMISSION_DENIED", + "8": "RESOURCE_EXHAUSTED", + "9": "FAILED_PRECONDITION", + "10": "ABORTED", + "11": "OUT_OF_RANGE", + "12": "UNIMPLEMENTED", + "13": "INTERNAL", + "14": "UNAVAILABLE", + "15": "DATA_LOSS", + "16": "UNAUTHENTICATED", + "OK": "0", + "CANCELLED": "1", + "UNKNOWN": "2", + "INVALID_ARGUMENT": "3", + "DEADLINE_EXCEEDED": "4", + "NOT_FOUND": "5", + "ALREADY_EXISTS": "6", + "PERMISSION_DENIED": "7", + "RESOURCE_EXHAUSTED": "8", + "FAILED_PRECONDITION": "9", + "ABORTED": "10", + "OUT_OF_RANGE": "11", + "UNIMPLEMENTED": "12", + "INTERNAL": "13", + "UNAVAILABLE": "14", + "DATA_LOSS": "15", + "UNAUTHENTICATED": "16" + }, + "uniqueCodesNamesMap": { + "": "non_idempotent", + "deadline_exceeded_unavailable": "idempotent" + }, + "prettyCodesNamesMap": { + "non_idempotent": [], + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ] + }, + "uniqueParamsNamesMap": { + "94312e9926796a52a8fcbbedaac41972e07ccd1c": "default" + }, + "prettyParamNamesMap": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + } + } + }, + "grpcServiceConfig": {}, + "bundleConfigs": [], + "bundleConfigsMethods": [], + "simpleMethods": [ + { + "inputInterface": ".google.showcase.v1beta1.CreateSequenceRequest", + "outputInterface": ".google.showcase.v1beta1.Sequence", + "comments": [ + " Creates a sequence.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "CreateSequence", + "inputType": ".google.showcase.v1beta1.CreateSequenceRequest", + "outputType": ".google.showcase.v1beta1.Sequence", + "options": { + ".google.api.methodSignature": [ + "sequence" + ], + ".google.api.http": { + "post": "/v1beta1/sequences", + "body": "sequence", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "sequence", + "paramType": ".google.showcase.v1beta1.Sequence", + "comments": [] + } + ], + "headerRequestParams": [] + }, + { + "inputInterface": ".google.showcase.v1beta1.GetSequenceReportRequest", + "outputInterface": ".google.showcase.v1beta1.SequenceReport", + "comments": [ + " Retrieves a sequence.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "GetSequenceReport", + "inputType": ".google.showcase.v1beta1.GetSequenceReportRequest", + "outputType": ".google.showcase.v1beta1.SequenceReport", + "options": { + ".google.api.methodSignature": [ + "name" + ], + ".google.api.http": { + "get": "/v1beta1/{name=sequences/*/sequenceReport}", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [], + "fieldBehavior": 2 + } + ], + "headerRequestParams": [ + [ + "name" + ] + ] + }, + { + "inputInterface": ".google.showcase.v1beta1.AttemptSequenceRequest", + "outputInterface": ".google.protobuf.Empty", + "comments": [ + " Attempts a sequence.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "AttemptSequence", + "inputType": ".google.showcase.v1beta1.AttemptSequenceRequest", + "outputType": ".google.protobuf.Empty", + "options": { + ".google.api.methodSignature": [ + "name" + ], + ".google.api.http": { + "post": "/v1beta1/{name=sequences/*}", + "body": "*", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [], + "fieldBehavior": 2 + } + ], + "headerRequestParams": [ + [ + "name" + ] + ] + } + ], + "longRunning": [], + "diregapicLRO": [], + "streaming": [], + "clientStreaming": [], + "serverStreaming": [], + "bidiStreaming": [], + "paging": [], + "hostname": "localhost", + "port": 7469, + "oauthScopes": [], + "pathTemplates": [ + { + "name": "Blueprint", + "params": [ + "session", + "test", + "blueprint" + ], + "type": "showcase.googleapis.com/Blueprint", + "pattern": [ + "sessions/{session}/tests/{test}/blueprints/{blueprint}" + ] + }, + { + "name": "Room", + "params": [ + "room" + ], + "type": "showcase.googleapis.com/Room", + "pattern": [ + "rooms/{room}" + ] + }, + { + "name": "room_blurb", + "params": [ + "room", + "blurb" + ], + "pattern": [ + "rooms/{room}/blurbs/{blurb}" + ], + "type": "showcase.googleapis.com/Blurb" + }, + { + "name": "room_blurbs_legacy_room_blurb", + "params": [ + "room", + "legacy_room", + "blurb" + ], + "pattern": [ + "rooms/{room}/blurbs/legacy/{legacy_room}.{blurb}" + ], + "type": "showcase.googleapis.com/Blurb" + }, + { + "name": "Sequence", + "params": [ + "sequence" + ], + "type": "showcase.googleapis.com/Sequence", + "pattern": [ + "sequences/{sequence}" + ] + }, + { + "name": "SequenceReport", + "params": [ + "sequence" + ], + "type": "showcase.googleapis.com/SequenceReport", + "pattern": [ + "sequences/{sequence}/sequenceReport" + ] + }, + { + "name": "Session", + "params": [ + "session" + ], + "type": "showcase.googleapis.com/Session", + "pattern": [ + "sessions/{session}" + ] + }, + { + "name": "Test", + "params": [ + "session", + "test" + ], + "type": "showcase.googleapis.com/Test", + "pattern": [ + "sessions/{session}/tests/{test}" + ] + }, + { + "name": "User", + "params": [ + "user" + ], + "type": "showcase.googleapis.com/User", + "pattern": [ + "users/{user}" + ] + }, + { + "name": "user_profile_blurb", + "params": [ + "user", + "blurb" + ], + "pattern": [ + "users/{user}/profile/blurbs/{blurb}" + ], + "type": "showcase.googleapis.com/Blurb" + }, + { + "name": "user_profile_blurbs_legacy_user_blurb", + "params": [ + "user", + "legacy_user", + "blurb" + ], + "pattern": [ + "users/{user}/profile/blurbs/legacy/{legacy_user}~{blurb}" + ], + "type": "showcase.googleapis.com/Blurb" + } + ] + }, + { + "name": "Testing", + "method": [ + { + "inputInterface": ".google.showcase.v1beta1.CreateSessionRequest", + "outputInterface": ".google.showcase.v1beta1.Session", + "comments": [ + " Creates a new testing session.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "CreateSession", + "inputType": ".google.showcase.v1beta1.CreateSessionRequest", + "outputType": ".google.showcase.v1beta1.Session", + "options": { + ".google.api.http": { + "post": "/v1beta1/sessions", + "body": "session", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "session", + "paramType": ".google.showcase.v1beta1.Session", + "comments": [ + " The session to be created.", + " Sessions are immutable once they are created (although they can", + " be deleted)." + ] + } + ], + "headerRequestParams": [] + }, + { + "inputInterface": ".google.showcase.v1beta1.GetSessionRequest", + "outputInterface": ".google.showcase.v1beta1.Session", + "comments": [ + " Gets a testing session.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "GetSession", + "inputType": ".google.showcase.v1beta1.GetSessionRequest", + "outputType": ".google.showcase.v1beta1.Session", + "options": { + ".google.api.http": { + "get": "/v1beta1/{name=sessions/*}", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The session to be retrieved." + ] + } + ], + "headerRequestParams": [ + [ + "name" + ] + ] + }, + { + "pagingFieldName": "sessions", + "pagingResponseType": ".google.showcase.v1beta1.Session", + "inputInterface": ".google.showcase.v1beta1.ListSessionsRequest", + "outputInterface": ".google.showcase.v1beta1.ListSessionsResponse", + "comments": [ + " Lists the current test sessions.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "ListSessions", + "inputType": ".google.showcase.v1beta1.ListSessionsRequest", + "outputType": ".google.showcase.v1beta1.ListSessionsResponse", + "options": { + ".google.api.http": { + "get": "/v1beta1/sessions", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of sessions to return per page." + ] + }, + { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The page token, for retrieving subsequent pages." + ] + } + ], + "headerRequestParams": [] + }, + { + "inputInterface": ".google.showcase.v1beta1.DeleteSessionRequest", + "outputInterface": ".google.protobuf.Empty", + "comments": [ + " Delete a test session.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "DeleteSession", + "inputType": ".google.showcase.v1beta1.DeleteSessionRequest", + "outputType": ".google.protobuf.Empty", + "options": { + ".google.api.http": { + "delete": "/v1beta1/{name=sessions/*}", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The session to be deleted." + ] + } + ], + "headerRequestParams": [ + [ + "name" + ] + ] + }, + { + "inputInterface": ".google.showcase.v1beta1.ReportSessionRequest", + "outputInterface": ".google.showcase.v1beta1.ReportSessionResponse", + "comments": [ + " Report on the status of a session.", + " This generates a report detailing which tests have been completed,", + " and an overall rollup.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "ReportSession", + "inputType": ".google.showcase.v1beta1.ReportSessionRequest", + "outputType": ".google.showcase.v1beta1.ReportSessionResponse", + "options": { + ".google.api.http": { + "post": "/v1beta1/{name=sessions/*}:report", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The session to be reported on." + ] + } + ], + "headerRequestParams": [ + [ + "name" + ] + ] + }, + { + "pagingFieldName": "tests", + "pagingResponseType": ".google.showcase.v1beta1.Test", + "inputInterface": ".google.showcase.v1beta1.ListTestsRequest", + "outputInterface": ".google.showcase.v1beta1.ListTestsResponse", + "comments": [ + " List the tests of a sessesion.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "ListTests", + "inputType": ".google.showcase.v1beta1.ListTestsRequest", + "outputType": ".google.showcase.v1beta1.ListTestsResponse", + "options": { + ".google.api.http": { + "get": "/v1beta1/{parent=sessions/*}/tests", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "parent", + "paramType": "TYPE_STRING", + "comments": [ + " The session." + ] + }, + { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of tests to return per page." + ] + }, + { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The page token, for retrieving subsequent pages." + ] + } + ], + "headerRequestParams": [ + [ + "parent" + ] + ] + }, + { + "inputInterface": ".google.showcase.v1beta1.DeleteTestRequest", + "outputInterface": ".google.protobuf.Empty", + "comments": [ + " Explicitly decline to implement a test.", + "", + " This removes the test from subsequent `ListTests` calls, and", + " attempting to do the test will error.", + "", + " This method will error if attempting to delete a required test.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "DeleteTest", + "inputType": ".google.showcase.v1beta1.DeleteTestRequest", + "outputType": ".google.protobuf.Empty", + "options": { + ".google.api.http": { + "delete": "/v1beta1/{name=sessions/*/tests/*}", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The test to be deleted." + ] + } + ], + "headerRequestParams": [ + [ + "name" + ] + ] + }, + { + "inputInterface": ".google.showcase.v1beta1.VerifyTestRequest", + "outputInterface": ".google.showcase.v1beta1.VerifyTestResponse", + "comments": [ + " Register a response to a test.", + "", + " In cases where a test involves registering a final answer at the", + " end of the test, this method provides the means to do so.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "VerifyTest", + "inputType": ".google.showcase.v1beta1.VerifyTestRequest", + "outputType": ".google.showcase.v1beta1.VerifyTestResponse", + "options": { + ".google.api.http": { + "post": "/v1beta1/{name=sessions/*/tests/*}:check", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The test to have an answer registered to it." + ] + }, + { + "paramName": "answer", + "paramType": "TYPE_BYTES", + "comments": [ + " The answer from the test." + ] + }, + { + "paramName": "answers", + "paramType": "TYPE_BYTES[]", + "comments": [ + " The answers from the test if multiple are to be checked" + ] + } + ], + "headerRequestParams": [ + [ + "name" + ] + ] + } + ], + "options": { + ".google.api.defaultHost": "localhost:7469" + }, + "packageName": "google.showcase.v1beta1", + "protoFile": "google/showcase/v1beta1/testing.proto", + "IAMPolicyMixin": 0, + "LocationMixin": 0, + "comments": [ + " A service to facilitate running discrete sets of tests", + " against Showcase." + ], + "commentsMap": { + "comments": { + "Http:rules": { + "paramName": "rules", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " A list of HTTP configuration rules that apply to individual API methods.", + "", + " **NOTE:** All service configuration rules follow \"last one wins\" order." + ] + }, + "Http:fully_decode_reserved_expansion": { + "paramName": "fully_decode_reserved_expansion", + "paramType": "TYPE_BOOL", + "comments": [ + " When set to true, URL path parameters will be fully URI-decoded except in", + " cases of single segment matches in reserved expansion, where \"%2F\" will be", + " left encoded.", + "", + " The default behavior is to not decode RFC 6570 reserved characters in multi", + " segment matches." + ] + }, + "HttpRule:selector": { + "paramName": "selector", + "paramType": "TYPE_STRING", + "comments": [ + " Selects a method to which this rule applies.", + "", + " Refer to [selector][google.api.DocumentationRule.selector] for syntax", + " details." + ] + }, + "HttpRule:get": { + "paramName": "get", + "paramType": "TYPE_STRING", + "comments": [ + " Maps to HTTP GET. Used for listing and getting information about", + " resources." + ] + }, + "HttpRule:put": { + "paramName": "put", + "paramType": "TYPE_STRING", + "comments": [ + " Maps to HTTP PUT. Used for replacing a resource." + ] + }, + "HttpRule:post": { + "paramName": "post", + "paramType": "TYPE_STRING", + "comments": [ + " Maps to HTTP POST. Used for creating a resource or performing an action." + ] + }, + "HttpRule:delete": { + "paramName": "delete", + "paramType": "TYPE_STRING", + "comments": [ + " Maps to HTTP DELETE. Used for deleting a resource." + ] + }, + "HttpRule:patch": { + "paramName": "patch", + "paramType": "TYPE_STRING", + "comments": [ + " Maps to HTTP PATCH. Used for updating a resource." + ] + }, + "HttpRule:custom": { + "paramName": "custom", + "paramType": ".google.api.CustomHttpPattern", + "comments": [ + " The custom pattern is used for specifying an HTTP method that is not", + " included in the `pattern` field, such as HEAD, or \"*\" to leave the", + " HTTP method unspecified for this rule. The wild-card rule is useful", + " for services that provide content to Web (HTML) clients." + ] + }, + "HttpRule:body": { + "paramName": "body", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the request field whose value is mapped to the HTTP request", + " body, or `*` for mapping all request fields not captured by the path", + " pattern to the HTTP body, or omitted for not having any HTTP request body.", + "", + " NOTE: the referred field must be present at the top-level of the request", + " message type." + ] + }, + "HttpRule:response_body": { + "paramName": "response_body", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. The name of the response field whose value is mapped to the HTTP", + " response body. When omitted, the entire response message will be used", + " as the HTTP response body.", + "", + " NOTE: The referred field must be present at the top-level of the response", + " message type." + ] + }, + "HttpRule:additional_bindings": { + "paramName": "additional_bindings", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Additional HTTP bindings for the selector. Nested bindings must", + " not contain an `additional_bindings` field themselves (that is,", + " the nesting may only be one level deep)." + ] + }, + "CustomHttpPattern:kind": { + "paramName": "kind", + "paramType": "TYPE_STRING", + "comments": [ + " The name of this custom HTTP verb." + ] + }, + "CustomHttpPattern:path": { + "paramName": "path", + "paramType": "TYPE_STRING", + "comments": [ + " The path matched by this custom verb." + ] + }, + "FileDescriptorSet:file": { + "paramName": "file", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "FileDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "FileDescriptorProto:package": { + "paramName": "package", + "paramType": "TYPE_STRING", + "comments": [] + }, + "FileDescriptorProto:dependency": { + "paramName": "dependency", + "paramType": "TYPE_STRING[]", + "comments": [ + " Names of files imported by this file." + ] + }, + "FileDescriptorProto:public_dependency": { + "paramName": "public_dependency", + "paramType": "TYPE_INT32[]", + "comments": [ + " Indexes of the public imported files in the dependency list above." + ] + }, + "FileDescriptorProto:weak_dependency": { + "paramName": "weak_dependency", + "paramType": "TYPE_INT32[]", + "comments": [ + " Indexes of the weak imported files in the dependency list.", + " For Google-internal migration only. Do not use." + ] + }, + "FileDescriptorProto:message_type": { + "paramName": "message_type", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " All top-level definitions in this file." + ] + }, + "FileDescriptorProto:enum_type": { + "paramName": "enum_type", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "FileDescriptorProto:service": { + "paramName": "service", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "FileDescriptorProto:extension": { + "paramName": "extension", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "FileDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.FileOptions", + "comments": [] + }, + "FileDescriptorProto:source_code_info": { + "paramName": "source_code_info", + "paramType": ".google.protobuf.SourceCodeInfo", + "comments": [ + " This field contains optional information about the original source code.", + " You may safely remove this entire field without harming runtime", + " functionality of the descriptors -- the information is needed only by", + " development tools." + ] + }, + "FileDescriptorProto:syntax": { + "paramName": "syntax", + "paramType": "TYPE_STRING", + "comments": [ + " The syntax of the proto file.", + " The supported values are \"proto2\", \"proto3\", and \"editions\".", + "", + " If `edition` is present, this value must be \"editions\"." + ] + }, + "FileDescriptorProto:edition": { + "paramName": "edition", + "paramType": "TYPE_STRING", + "comments": [ + " The edition of the proto file, which is an opaque string." + ] + }, + "DescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "DescriptorProto:field": { + "paramName": "field", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:extension": { + "paramName": "extension", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:nested_type": { + "paramName": "nested_type", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:enum_type": { + "paramName": "enum_type", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:extension_range": { + "paramName": "extension_range", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:oneof_decl": { + "paramName": "oneof_decl", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.MessageOptions", + "comments": [] + }, + "DescriptorProto:reserved_range": { + "paramName": "reserved_range", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "DescriptorProto:reserved_name": { + "paramName": "reserved_name", + "paramType": "TYPE_STRING[]", + "comments": [ + " Reserved field names, which may not be used by fields in the same message.", + " A given name may only be reserved once." + ] + }, + "ExtensionRangeOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "ExtensionRangeOptions:declaration": { + "paramName": "declaration", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " For external users: DO NOT USE. We are in the process of open sourcing", + " extension declaration and executing internal cleanups before it can be", + " used externally." + ] + }, + "ExtensionRangeOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "ExtensionRangeOptions:verification": { + "paramName": "verification", + "paramType": ".google.protobuf.ExtensionRangeOptions.VerificationState", + "comments": [ + " The verification state of the range.", + " TODO(b/278783756): flip the default to DECLARATION once all empty ranges", + " are marked as UNVERIFIED." + ] + }, + "FieldDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "FieldDescriptorProto:number": { + "paramName": "number", + "paramType": "TYPE_INT32", + "comments": [] + }, + "FieldDescriptorProto:label": { + "paramName": "label", + "paramType": ".google.protobuf.FieldDescriptorProto.Label", + "comments": [] + }, + "FieldDescriptorProto:type": { + "paramName": "type", + "paramType": ".google.protobuf.FieldDescriptorProto.Type", + "comments": [ + " If type_name is set, this need not be set. If both this and type_name", + " are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP." + ] + }, + "FieldDescriptorProto:type_name": { + "paramName": "type_name", + "paramType": "TYPE_STRING", + "comments": [ + " For message and enum types, this is the name of the type. If the name", + " starts with a '.', it is fully-qualified. Otherwise, C++-like scoping", + " rules are used to find the type (i.e. first the nested types within this", + " message are searched, then within the parent, on up to the root", + " namespace)." + ] + }, + "FieldDescriptorProto:extendee": { + "paramName": "extendee", + "paramType": "TYPE_STRING", + "comments": [ + " For extensions, this is the name of the type being extended. It is", + " resolved in the same manner as type_name." + ] + }, + "FieldDescriptorProto:default_value": { + "paramName": "default_value", + "paramType": "TYPE_STRING", + "comments": [ + " For numeric types, contains the original text representation of the value.", + " For booleans, \"true\" or \"false\".", + " For strings, contains the default text contents (not escaped in any way).", + " For bytes, contains the C escaped value. All bytes >= 128 are escaped." + ] + }, + "FieldDescriptorProto:oneof_index": { + "paramName": "oneof_index", + "paramType": "TYPE_INT32", + "comments": [ + " If set, gives the index of a oneof in the containing type's oneof_decl", + " list. This field is a member of that oneof." + ] + }, + "FieldDescriptorProto:json_name": { + "paramName": "json_name", + "paramType": "TYPE_STRING", + "comments": [ + " JSON name of this field. The value is set by protocol compiler. If the", + " user has set a \"json_name\" option on this field, that option's value", + " will be used. Otherwise, it's deduced from the field's name by converting", + " it to camelCase." + ] + }, + "FieldDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.FieldOptions", + "comments": [] + }, + "FieldDescriptorProto:proto3_optional": { + "paramName": "proto3_optional", + "paramType": "TYPE_BOOL", + "comments": [ + " If true, this is a proto3 \"optional\". When a proto3 field is optional, it", + " tracks presence regardless of field type.", + "", + " When proto3_optional is true, this field must be belong to a oneof to", + " signal to old proto3 clients that presence is tracked for this field. This", + " oneof is known as a \"synthetic\" oneof, and this field must be its sole", + " member (each proto3 optional field gets its own synthetic oneof). Synthetic", + " oneofs exist in the descriptor only, and do not generate any API. Synthetic", + " oneofs must be ordered after all \"real\" oneofs.", + "", + " For message fields, proto3_optional doesn't create any semantic change,", + " since non-repeated message fields always track presence. However it still", + " indicates the semantic detail of whether the user wrote \"optional\" or not.", + " This can be useful for round-tripping the .proto file. For consistency we", + " give message fields a synthetic oneof also, even though it is not required", + " to track presence. This is especially important because the parser can't", + " tell if a field is a message or an enum, so it must always create a", + " synthetic oneof.", + "", + " Proto2 optional fields do not set this flag, because they already indicate", + " optional with `LABEL_OPTIONAL`." + ] + }, + "OneofDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "OneofDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.OneofOptions", + "comments": [] + }, + "EnumDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "EnumDescriptorProto:value": { + "paramName": "value", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "EnumDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.EnumOptions", + "comments": [] + }, + "EnumDescriptorProto:reserved_range": { + "paramName": "reserved_range", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Range of reserved numeric values. Reserved numeric values may not be used", + " by enum values in the same enum declaration. Reserved ranges may not", + " overlap." + ] + }, + "EnumDescriptorProto:reserved_name": { + "paramName": "reserved_name", + "paramType": "TYPE_STRING[]", + "comments": [ + " Reserved enum value names, which may not be reused. A given name may only", + " be reserved once." + ] + }, + "EnumValueDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "EnumValueDescriptorProto:number": { + "paramName": "number", + "paramType": "TYPE_INT32", + "comments": [] + }, + "EnumValueDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.EnumValueOptions", + "comments": [] + }, + "ServiceDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ServiceDescriptorProto:method": { + "paramName": "method", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "ServiceDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.ServiceOptions", + "comments": [] + }, + "MethodDescriptorProto:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "MethodDescriptorProto:input_type": { + "paramName": "input_type", + "paramType": "TYPE_STRING", + "comments": [ + " Input and output type names. These are resolved in the same way as", + " FieldDescriptorProto.type_name, but must refer to a message type." + ] + }, + "MethodDescriptorProto:output_type": { + "paramName": "output_type", + "paramType": "TYPE_STRING", + "comments": [] + }, + "MethodDescriptorProto:options": { + "paramName": "options", + "paramType": ".google.protobuf.MethodOptions", + "comments": [] + }, + "MethodDescriptorProto:client_streaming": { + "paramName": "client_streaming", + "paramType": "TYPE_BOOL", + "comments": [ + " Identifies if client streams multiple client messages" + ] + }, + "MethodDescriptorProto:server_streaming": { + "paramName": "server_streaming", + "paramType": "TYPE_BOOL", + "comments": [ + " Identifies if server streams multiple server messages" + ] + }, + "FileOptions:java_package": { + "paramName": "java_package", + "paramType": "TYPE_STRING", + "comments": [ + " Sets the Java package where classes generated from this .proto will be", + " placed. By default, the proto package is used, but this is often", + " inappropriate because proto packages do not normally start with backwards", + " domain names." + ] + }, + "FileOptions:java_outer_classname": { + "paramName": "java_outer_classname", + "paramType": "TYPE_STRING", + "comments": [ + " Controls the name of the wrapper Java class generated for the .proto file.", + " That class will always contain the .proto file's getDescriptor() method as", + " well as any top-level extensions defined in the .proto file.", + " If java_multiple_files is disabled, then all the other classes from the", + " .proto file will be nested inside the single wrapper outer class." + ] + }, + "FileOptions:java_multiple_files": { + "paramName": "java_multiple_files", + "paramType": "TYPE_BOOL", + "comments": [ + " If enabled, then the Java code generator will generate a separate .java", + " file for each top-level message, enum, and service defined in the .proto", + " file. Thus, these types will *not* be nested inside the wrapper class", + " named by java_outer_classname. However, the wrapper class will still be", + " generated to contain the file's getDescriptor() method as well as any", + " top-level extensions defined in the file." + ] + }, + "FileOptions:java_generate_equals_and_hash": { + "paramName": "java_generate_equals_and_hash", + "paramType": "TYPE_BOOL", + "comments": [ + " This option does nothing." + ] + }, + "FileOptions:java_string_check_utf8": { + "paramName": "java_string_check_utf8", + "paramType": "TYPE_BOOL", + "comments": [ + " If set true, then the Java2 code generator will generate code that", + " throws an exception whenever an attempt is made to assign a non-UTF-8", + " byte sequence to a string field.", + " Message reflection will do the same.", + " However, an extension field still accepts non-UTF-8 byte sequences.", + " This option has no effect on when used with the lite runtime." + ] + }, + "FileOptions:optimize_for": { + "paramName": "optimize_for", + "paramType": ".google.protobuf.FileOptions.OptimizeMode", + "comments": [] + }, + "FileOptions:go_package": { + "paramName": "go_package", + "paramType": "TYPE_STRING", + "comments": [ + " Sets the Go package where structs generated from this .proto will be", + " placed. If omitted, the Go package will be derived from the following:", + " - The basename of the package import path, if provided.", + " - Otherwise, the package statement in the .proto file, if present.", + " - Otherwise, the basename of the .proto file, without extension." + ] + }, + "FileOptions:cc_generic_services": { + "paramName": "cc_generic_services", + "paramType": "TYPE_BOOL", + "comments": [ + " Should generic services be generated in each language? \"Generic\" services", + " are not specific to any particular RPC system. They are generated by the", + " main code generators in each language (without additional plugins).", + " Generic services were the only kind of service generation supported by", + " early versions of google.protobuf.", + "", + " Generic services are now considered deprecated in favor of using plugins", + " that generate code specific to your particular RPC system. Therefore,", + " these default to false. Old code which depends on generic services should", + " explicitly set them to true." + ] + }, + "FileOptions:java_generic_services": { + "paramName": "java_generic_services", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "FileOptions:py_generic_services": { + "paramName": "py_generic_services", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "FileOptions:php_generic_services": { + "paramName": "php_generic_services", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "FileOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this file deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for everything in the file, or it will be completely ignored; in the very", + " least, this is a formalization for deprecating files." + ] + }, + "FileOptions:cc_enable_arenas": { + "paramName": "cc_enable_arenas", + "paramType": "TYPE_BOOL", + "comments": [ + " Enables the use of arenas for the proto messages in this file. This applies", + " only to generated classes for C++." + ] + }, + "FileOptions:objc_class_prefix": { + "paramName": "objc_class_prefix", + "paramType": "TYPE_STRING", + "comments": [ + " Sets the objective c class prefix which is prepended to all objective c", + " generated classes from this .proto. There is no default." + ] + }, + "FileOptions:csharp_namespace": { + "paramName": "csharp_namespace", + "paramType": "TYPE_STRING", + "comments": [ + " Namespace for generated classes; defaults to the package." + ] + }, + "FileOptions:swift_prefix": { + "paramName": "swift_prefix", + "paramType": "TYPE_STRING", + "comments": [ + " By default Swift generators will take the proto package and CamelCase it", + " replacing '.' with underscore and use that to prefix the types/symbols", + " defined. When this options is provided, they will use this value instead", + " to prefix the types/symbols defined." + ] + }, + "FileOptions:php_class_prefix": { + "paramName": "php_class_prefix", + "paramType": "TYPE_STRING", + "comments": [ + " Sets the php class prefix which is prepended to all php generated classes", + " from this .proto. Default is empty." + ] + }, + "FileOptions:php_namespace": { + "paramName": "php_namespace", + "paramType": "TYPE_STRING", + "comments": [ + " Use this option to change the namespace of php generated classes. Default", + " is empty. When this option is empty, the package name will be used for", + " determining the namespace." + ] + }, + "FileOptions:php_metadata_namespace": { + "paramName": "php_metadata_namespace", + "paramType": "TYPE_STRING", + "comments": [ + " Use this option to change the namespace of php generated metadata classes.", + " Default is empty. When this option is empty, the proto file name will be", + " used for determining the namespace." + ] + }, + "FileOptions:ruby_package": { + "paramName": "ruby_package", + "paramType": "TYPE_STRING", + "comments": [ + " Use this option to change the package of ruby generated classes. Default", + " is empty. When this option is not set, the package name will be used for", + " determining the ruby package." + ] + }, + "FileOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "FileOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here.", + " See the documentation for the \"Options\" section above." + ] + }, + "MessageOptions:message_set_wire_format": { + "paramName": "message_set_wire_format", + "paramType": "TYPE_BOOL", + "comments": [ + " Set true to use the old proto1 MessageSet wire format for extensions.", + " This is provided for backwards-compatibility with the MessageSet wire", + " format. You should not use this for any other reason: It's less", + " efficient, has fewer features, and is more complicated.", + "", + " The message must be defined exactly as follows:", + " message Foo {", + " option message_set_wire_format = true;", + " extensions 4 to max;", + " }", + " Note that the message cannot have any defined fields; MessageSets only", + " have extensions.", + "", + " All extensions of your type must be singular messages; e.g. they cannot", + " be int32s, enums, or repeated messages.", + "", + " Because this is an option, the above two restrictions are not enforced by", + " the protocol compiler." + ] + }, + "MessageOptions:no_standard_descriptor_accessor": { + "paramName": "no_standard_descriptor_accessor", + "paramType": "TYPE_BOOL", + "comments": [ + " Disables the generation of the standard \"descriptor()\" accessor, which can", + " conflict with a field of the same name. This is meant to make migration", + " from proto1 easier; new code should avoid fields named \"descriptor\"." + ] + }, + "MessageOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this message deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for the message, or it will be completely ignored; in the very least,", + " this is a formalization for deprecating messages." + ] + }, + "MessageOptions:map_entry": { + "paramName": "map_entry", + "paramType": "TYPE_BOOL", + "comments": [ + " NOTE: Do not set the option in .proto files. Always use the maps syntax", + " instead. The option should only be implicitly set by the proto compiler", + " parser.", + "", + " Whether the message is an automatically generated map entry type for the", + " maps field.", + "", + " For maps fields:", + " map map_field = 1;", + " The parsed descriptor looks like:", + " message MapFieldEntry {", + " option map_entry = true;", + " optional KeyType key = 1;", + " optional ValueType value = 2;", + " }", + " repeated MapFieldEntry map_field = 1;", + "", + " Implementations may choose not to generate the map_entry=true message, but", + " use a native map in the target language to hold the keys and values.", + " The reflection APIs in such implementations still need to work as", + " if the field is a repeated message field." + ] + }, + "MessageOptions:deprecated_legacy_json_field_conflicts": { + "paramName": "deprecated_legacy_json_field_conflicts", + "paramType": "TYPE_BOOL", + "comments": [ + " Enable the legacy handling of JSON field name conflicts. This lowercases", + " and strips underscored from the fields before comparison in proto3 only.", + " The new behavior takes `json_name` into account and applies to proto2 as", + " well.", + "", + " This should only be used as a temporary measure against broken builds due", + " to the change in behavior for JSON field name conflicts.", + "", + " TODO(b/261750190) This is legacy behavior we plan to remove once downstream", + " teams have had time to migrate." + ] + }, + "MessageOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "MessageOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "FieldOptions:ctype": { + "paramName": "ctype", + "paramType": ".google.protobuf.FieldOptions.CType", + "comments": [ + " The ctype option instructs the C++ code generator to use a different", + " representation of the field than it normally would. See the specific", + " options below. This option is only implemented to support use of", + " [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of", + " type \"bytes\" in the open source release -- sorry, we'll try to include", + " other types in a future version!" + ] + }, + "FieldOptions:packed": { + "paramName": "packed", + "paramType": "TYPE_BOOL", + "comments": [ + " The packed option can be enabled for repeated primitive fields to enable", + " a more efficient representation on the wire. Rather than repeatedly", + " writing the tag and type for each element, the entire array is encoded as", + " a single length-delimited blob. In proto3, only explicit setting it to", + " false will avoid using packed encoding." + ] + }, + "FieldOptions:jstype": { + "paramName": "jstype", + "paramType": ".google.protobuf.FieldOptions.JSType", + "comments": [ + " The jstype option determines the JavaScript type used for values of the", + " field. The option is permitted only for 64 bit integral and fixed types", + " (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING", + " is represented as JavaScript string, which avoids loss of precision that", + " can happen when a large value is converted to a floating point JavaScript.", + " Specifying JS_NUMBER for the jstype causes the generated JavaScript code to", + " use the JavaScript \"number\" type. The behavior of the default option", + " JS_NORMAL is implementation dependent.", + "", + " This option is an enum to permit additional types to be added, e.g.", + " goog.math.Integer." + ] + }, + "FieldOptions:lazy": { + "paramName": "lazy", + "paramType": "TYPE_BOOL", + "comments": [ + " Should this field be parsed lazily? Lazy applies only to message-type", + " fields. It means that when the outer message is initially parsed, the", + " inner message's contents will not be parsed but instead stored in encoded", + " form. The inner message will actually be parsed when it is first accessed.", + "", + " This is only a hint. Implementations are free to choose whether to use", + " eager or lazy parsing regardless of the value of this option. However,", + " setting this option true suggests that the protocol author believes that", + " using lazy parsing on this field is worth the additional bookkeeping", + " overhead typically needed to implement it.", + "", + " This option does not affect the public interface of any generated code;", + " all method signatures remain the same. Furthermore, thread-safety of the", + " interface is not affected by this option; const methods remain safe to", + " call from multiple threads concurrently, while non-const methods continue", + " to require exclusive access.", + "", + " Note that implementations may choose not to check required fields within", + " a lazy sub-message. That is, calling IsInitialized() on the outer message", + " may return true even if the inner message has missing required fields.", + " This is necessary because otherwise the inner message would have to be", + " parsed in order to perform the check, defeating the purpose of lazy", + " parsing. An implementation which chooses not to check required fields", + " must be consistent about it. That is, for any particular sub-message, the", + " implementation must either *always* check its required fields, or *never*", + " check its required fields, regardless of whether or not the message has", + " been parsed.", + "", + " As of May 2022, lazy verifies the contents of the byte stream during", + " parsing. An invalid byte stream will cause the overall parsing to fail." + ] + }, + "FieldOptions:unverified_lazy": { + "paramName": "unverified_lazy", + "paramType": "TYPE_BOOL", + "comments": [ + " unverified_lazy does no correctness checks on the byte stream. This should", + " only be used where lazy with verification is prohibitive for performance", + " reasons." + ] + }, + "FieldOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this field deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for accessors, or it will be completely ignored; in the very least, this", + " is a formalization for deprecating fields." + ] + }, + "FieldOptions:weak": { + "paramName": "weak", + "paramType": "TYPE_BOOL", + "comments": [ + " For Google-internal migration only. Do not use." + ] + }, + "FieldOptions:debug_redact": { + "paramName": "debug_redact", + "paramType": "TYPE_BOOL", + "comments": [ + " Indicate that the field value should not be printed out when using debug", + " formats, e.g. when the field contains sensitive credentials." + ] + }, + "FieldOptions:retention": { + "paramName": "retention", + "paramType": ".google.protobuf.FieldOptions.OptionRetention", + "comments": [] + }, + "FieldOptions:targets": { + "paramName": "targets", + "paramType": "TYPE_ENUM[]", + "comments": [] + }, + "FieldOptions:edition_defaults": { + "paramName": "edition_defaults", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "FieldOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "FieldOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "OneofOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "OneofOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "EnumOptions:allow_alias": { + "paramName": "allow_alias", + "paramType": "TYPE_BOOL", + "comments": [ + " Set this option to true to allow mapping different tag names to the same", + " value." + ] + }, + "EnumOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this enum deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for the enum, or it will be completely ignored; in the very least, this", + " is a formalization for deprecating enums." + ] + }, + "EnumOptions:deprecated_legacy_json_field_conflicts": { + "paramName": "deprecated_legacy_json_field_conflicts", + "paramType": "TYPE_BOOL", + "comments": [ + " Enable the legacy handling of JSON field name conflicts. This lowercases", + " and strips underscored from the fields before comparison in proto3 only.", + " The new behavior takes `json_name` into account and applies to proto2 as", + " well.", + " TODO(b/261750190) Remove this legacy behavior once downstream teams have", + " had time to migrate." + ] + }, + "EnumOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "EnumOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "EnumValueOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this enum value deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for the enum value, or it will be completely ignored; in the very least,", + " this is a formalization for deprecating enum values." + ] + }, + "EnumValueOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "EnumValueOptions:debug_redact": { + "paramName": "debug_redact", + "paramType": "TYPE_BOOL", + "comments": [ + " Indicate that fields annotated with this enum value should not be printed", + " out when using debug formats, e.g. when the field contains sensitive", + " credentials." + ] + }, + "EnumValueOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "ServiceOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "ServiceOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this service deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for the service, or it will be completely ignored; in the very least,", + " this is a formalization for deprecating services." + ] + }, + "ServiceOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "MethodOptions:deprecated": { + "paramName": "deprecated", + "paramType": "TYPE_BOOL", + "comments": [ + " Is this method deprecated?", + " Depending on the target platform, this can emit Deprecated annotations", + " for the method, or it will be completely ignored; in the very least,", + " this is a formalization for deprecating methods." + ] + }, + "MethodOptions:idempotency_level": { + "paramName": "idempotency_level", + "paramType": ".google.protobuf.MethodOptions.IdempotencyLevel", + "comments": [] + }, + "MethodOptions:features": { + "paramName": "features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [ + " Any features defined in the specific edition." + ] + }, + "MethodOptions:uninterpreted_option": { + "paramName": "uninterpreted_option", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The parser stores options it doesn't recognize here. See above." + ] + }, + "UninterpretedOption:name": { + "paramName": "name", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "UninterpretedOption:identifier_value": { + "paramName": "identifier_value", + "paramType": "TYPE_STRING", + "comments": [ + " The value of the uninterpreted option, in whatever type the tokenizer", + " identified it as during parsing. Exactly one of these should be set." + ] + }, + "UninterpretedOption:positive_int_value": { + "paramName": "positive_int_value", + "paramType": "TYPE_UINT64", + "comments": [] + }, + "UninterpretedOption:negative_int_value": { + "paramName": "negative_int_value", + "paramType": "TYPE_INT64", + "comments": [] + }, + "UninterpretedOption:double_value": { + "paramName": "double_value", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "UninterpretedOption:string_value": { + "paramName": "string_value", + "paramType": "TYPE_BYTES", + "comments": [] + }, + "UninterpretedOption:aggregate_value": { + "paramName": "aggregate_value", + "paramType": "TYPE_STRING", + "comments": [] + }, + "FeatureSet:field_presence": { + "paramName": "field_presence", + "paramType": ".google.protobuf.FeatureSet.FieldPresence", + "comments": [] + }, + "FeatureSet:enum_type": { + "paramName": "enum_type", + "paramType": ".google.protobuf.FeatureSet.EnumType", + "comments": [] + }, + "FeatureSet:repeated_field_encoding": { + "paramName": "repeated_field_encoding", + "paramType": ".google.protobuf.FeatureSet.RepeatedFieldEncoding", + "comments": [] + }, + "FeatureSet:string_field_validation": { + "paramName": "string_field_validation", + "paramType": ".google.protobuf.FeatureSet.StringFieldValidation", + "comments": [] + }, + "FeatureSet:message_encoding": { + "paramName": "message_encoding", + "paramType": ".google.protobuf.FeatureSet.MessageEncoding", + "comments": [] + }, + "FeatureSet:json_format": { + "paramName": "json_format", + "paramType": ".google.protobuf.FeatureSet.JsonFormat", + "comments": [] + }, + "FeatureSet:raw_features": { + "paramName": "raw_features", + "paramType": ".google.protobuf.FeatureSet", + "comments": [] + }, + "SourceCodeInfo:location": { + "paramName": "location", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " A Location identifies a piece of source code in a .proto file which", + " corresponds to a particular definition. This information is intended", + " to be useful to IDEs, code indexers, documentation generators, and similar", + " tools.", + "", + " For example, say we have a file like:", + " message Foo {", + " optional string foo = 1;", + " }", + " Let's look at just the field definition:", + " optional string foo = 1;", + " ^ ^^ ^^ ^ ^^^", + " a bc de f ghi", + " We have the following locations:", + " span path represents", + " [a,i) [ 4, 0, 2, 0 ] The whole field definition.", + " [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).", + " [c,d) [ 4, 0, 2, 0, 5 ] The type (string).", + " [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).", + " [g,h) [ 4, 0, 2, 0, 3 ] The number (1).", + "", + " Notes:", + " - A location may refer to a repeated field itself (i.e. not to any", + " particular index within it). This is used whenever a set of elements are", + " logically enclosed in a single code segment. For example, an entire", + " extend block (possibly containing multiple extension definitions) will", + " have an outer location whose path refers to the \"extensions\" repeated", + " field without an index.", + " - Multiple locations may have the same path. This happens when a single", + " logical declaration is spread out across multiple places. The most", + " obvious example is the \"extend\" block again -- there may be multiple", + " extend blocks in the same scope, each of which will have the same path.", + " - A location's span is not always a subset of its parent's span. For", + " example, the \"extendee\" of an extension declaration appears at the", + " beginning of the \"extend\" block and is shared by all extensions within", + " the block.", + " - Just because a location's span is a subset of some other location's span", + " does not mean that it is a descendant. For example, a \"group\" defines", + " both a type and a field in a single declaration. Thus, the locations", + " corresponding to the type and field and their components will overlap.", + " - Code which tries to interpret locations should probably be designed to", + " ignore those that it doesn't understand, as more types of locations could", + " be recorded in the future." + ] + }, + "GeneratedCodeInfo:annotation": { + "paramName": "annotation", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " An Annotation connects some span of text in generated code to an element", + " of its generating .proto file." + ] + }, + "Duration:seconds": { + "paramName": "seconds", + "paramType": "TYPE_INT64", + "comments": [ + " Signed seconds of the span of time. Must be from -315,576,000,000", + " to +315,576,000,000 inclusive. Note: these bounds are computed from:", + " 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years" + ] + }, + "Duration:nanos": { + "paramName": "nanos", + "paramType": "TYPE_INT32", + "comments": [ + " Signed fractions of a second at nanosecond resolution of the span", + " of time. Durations less than one second are represented with a 0", + " `seconds` field and a positive or negative `nanos` field. For durations", + " of one second or more, a non-zero value for the `nanos` field must be", + " of the same sign as the `seconds` field. Must be from -999,999,999", + " to +999,999,999 inclusive." + ] + }, + "CommonLanguageSettings:reference_docs_uri": { + "paramName": "reference_docs_uri", + "paramType": "TYPE_STRING", + "comments": [ + " Link to automatically generated reference documentation. Example:", + " https://cloud.google.com/nodejs/docs/reference/asset/latest" + ] + }, + "CommonLanguageSettings:destinations": { + "paramName": "destinations", + "paramType": "TYPE_ENUM[]", + "comments": [ + " The destination where API teams want this client library to be published." + ] + }, + "ClientLibrarySettings:version": { + "paramName": "version", + "paramType": "TYPE_STRING", + "comments": [ + " Version of the API to apply these settings to. This is the full protobuf", + " package for the API, ending in the version element.", + " Examples: \"google.cloud.speech.v1\" and \"google.spanner.admin.database.v1\"." + ] + }, + "ClientLibrarySettings:launch_stage": { + "paramName": "launch_stage", + "paramType": ".google.api.LaunchStage", + "comments": [ + " Launch stage of this version of the API." + ] + }, + "ClientLibrarySettings:rest_numeric_enums": { + "paramName": "rest_numeric_enums", + "paramType": "TYPE_BOOL", + "comments": [ + " When using transport=rest, the client request will encode enums as", + " numbers rather than strings." + ] + }, + "ClientLibrarySettings:java_settings": { + "paramName": "java_settings", + "paramType": ".google.api.JavaSettings", + "comments": [ + " Settings for legacy Java features, supported in the Service YAML." + ] + }, + "ClientLibrarySettings:cpp_settings": { + "paramName": "cpp_settings", + "paramType": ".google.api.CppSettings", + "comments": [ + " Settings for C++ client libraries." + ] + }, + "ClientLibrarySettings:php_settings": { + "paramName": "php_settings", + "paramType": ".google.api.PhpSettings", + "comments": [ + " Settings for PHP client libraries." + ] + }, + "ClientLibrarySettings:python_settings": { + "paramName": "python_settings", + "paramType": ".google.api.PythonSettings", + "comments": [ + " Settings for Python client libraries." + ] + }, + "ClientLibrarySettings:node_settings": { + "paramName": "node_settings", + "paramType": ".google.api.NodeSettings", + "comments": [ + " Settings for Node client libraries." + ] + }, + "ClientLibrarySettings:dotnet_settings": { + "paramName": "dotnet_settings", + "paramType": ".google.api.DotnetSettings", + "comments": [ + " Settings for .NET client libraries." + ] + }, + "ClientLibrarySettings:ruby_settings": { + "paramName": "ruby_settings", + "paramType": ".google.api.RubySettings", + "comments": [ + " Settings for Ruby client libraries." + ] + }, + "ClientLibrarySettings:go_settings": { + "paramName": "go_settings", + "paramType": ".google.api.GoSettings", + "comments": [ + " Settings for Go client libraries." + ] + }, + "Publishing:method_settings": { + "paramName": "method_settings", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " A list of API method settings, e.g. the behavior for methods that use the", + " long-running operation pattern." + ] + }, + "Publishing:new_issue_uri": { + "paramName": "new_issue_uri", + "paramType": "TYPE_STRING", + "comments": [ + " Link to a *public* URI where users can report issues. Example:", + " https://issuetracker.google.com/issues/new?component=190865&template=1161103" + ] + }, + "Publishing:documentation_uri": { + "paramName": "documentation_uri", + "paramType": "TYPE_STRING", + "comments": [ + " Link to product home page. Example:", + " https://cloud.google.com/asset-inventory/docs/overview" + ] + }, + "Publishing:api_short_name": { + "paramName": "api_short_name", + "paramType": "TYPE_STRING", + "comments": [ + " Used as a tracking tag when collecting data about the APIs developer", + " relations artifacts like docs, packages delivered to package managers,", + " etc. Example: \"speech\"." + ] + }, + "Publishing:github_label": { + "paramName": "github_label", + "paramType": "TYPE_STRING", + "comments": [ + " GitHub label to apply to issues and pull requests opened for this API." + ] + }, + "Publishing:codeowner_github_teams": { + "paramName": "codeowner_github_teams", + "paramType": "TYPE_STRING[]", + "comments": [ + " GitHub teams to be added to CODEOWNERS in the directory in GitHub", + " containing source code for the client libraries for this API." + ] + }, + "Publishing:doc_tag_prefix": { + "paramName": "doc_tag_prefix", + "paramType": "TYPE_STRING", + "comments": [ + " A prefix used in sample code when demarking regions to be included in", + " documentation." + ] + }, + "Publishing:organization": { + "paramName": "organization", + "paramType": ".google.api.ClientLibraryOrganization", + "comments": [ + " For whom the client library is being published." + ] + }, + "Publishing:library_settings": { + "paramName": "library_settings", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Client library settings. If the same version string appears multiple", + " times in this list, then the last one wins. Settings from earlier", + " settings with the same version string are discarded." + ] + }, + "Publishing:proto_reference_documentation_uri": { + "paramName": "proto_reference_documentation_uri", + "paramType": "TYPE_STRING", + "comments": [ + " Optional link to proto reference documentation. Example:", + " https://cloud.google.com/pubsub/lite/docs/reference/rpc" + ] + }, + "JavaSettings:library_package": { + "paramName": "library_package", + "paramType": "TYPE_STRING", + "comments": [ + " The package name to use in Java. Clobbers the java_package option", + " set in the protobuf. This should be used **only** by APIs", + " who have already set the language_settings.java.package_name\" field", + " in gapic.yaml. API teams should use the protobuf java_package option", + " where possible.", + "", + " Example of a YAML configuration::", + "", + " publishing:", + " java_settings:", + " library_package: com.google.cloud.pubsub.v1" + ] + }, + "JavaSettings:service_class_names": { + "paramName": "service_class_names", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Configure the Java class name to use instead of the service's for its", + " corresponding generated GAPIC client. Keys are fully-qualified", + " service names as they appear in the protobuf (including the full", + " the language_settings.java.interface_names\" field in gapic.yaml. API", + " teams should otherwise use the service name as it appears in the", + " protobuf.", + "", + " Example of a YAML configuration::", + "", + " publishing:", + " java_settings:", + " service_class_names:", + " - google.pubsub.v1.Publisher: TopicAdmin", + " - google.pubsub.v1.Subscriber: SubscriptionAdmin" + ] + }, + "JavaSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "CppSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "PhpSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "PythonSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "NodeSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "DotnetSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "DotnetSettings:renamed_services": { + "paramName": "renamed_services", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Map from original service names to renamed versions.", + " This is used when the default generated types", + " would cause a naming conflict. (Neither name is", + " fully-qualified.)", + " Example: Subscriber to SubscriberServiceApi." + ] + }, + "DotnetSettings:renamed_resources": { + "paramName": "renamed_resources", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Map from full resource types to the effective short name", + " for the resource. This is used when otherwise resource", + " named from different services would cause naming collisions.", + " Example entry:", + " \"datalabeling.googleapis.com/Dataset\": \"DataLabelingDataset\"" + ] + }, + "DotnetSettings:ignored_resources": { + "paramName": "ignored_resources", + "paramType": "TYPE_STRING[]", + "comments": [ + " List of full resource types to ignore during generation.", + " This is typically used for API-specific Location resources,", + " which should be handled by the generator as if they were actually", + " the common Location resources.", + " Example entry: \"documentai.googleapis.com/Location\"" + ] + }, + "DotnetSettings:forced_namespace_aliases": { + "paramName": "forced_namespace_aliases", + "paramType": "TYPE_STRING[]", + "comments": [ + " Namespaces which must be aliased in snippets due to", + " a known (but non-generator-predictable) naming collision" + ] + }, + "DotnetSettings:handwritten_signatures": { + "paramName": "handwritten_signatures", + "paramType": "TYPE_STRING[]", + "comments": [ + " Method signatures (in the form \"service.method(signature)\")", + " which are provided separately, so shouldn't be generated.", + " Snippets *calling* these methods are still generated, however." + ] + }, + "RubySettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "GoSettings:common": { + "paramName": "common", + "paramType": ".google.api.CommonLanguageSettings", + "comments": [ + " Some settings." + ] + }, + "MethodSettings:selector": { + "paramName": "selector", + "paramType": "TYPE_STRING", + "comments": [ + " The fully qualified name of the method, for which the options below apply.", + " This is used to find the method to apply the options." + ] + }, + "MethodSettings:long_running": { + "paramName": "long_running", + "paramType": ".google.api.MethodSettings.LongRunning", + "comments": [ + " Describes settings to use for long-running operations when generating", + " API methods for RPCs. Complements RPCs that use the annotations in", + " google/longrunning/operations.proto.", + "", + " Example of a YAML configuration::", + "", + " publishing:", + " method_settings:", + " - selector: google.cloud.speech.v2.Speech.BatchRecognize", + " long_running:", + " initial_poll_delay:", + " seconds: 60 # 1 minute", + " poll_delay_multiplier: 1.5", + " max_poll_delay:", + " seconds: 360 # 6 minutes", + " total_poll_timeout:", + " seconds: 54000 # 90 minutes" + ] + }, + "Compliance": { + "paramName": "", + "paramType": "", + "comments": [ + " This service is used to test that GAPICs implement various REST-related features correctly. This mostly means transcoding proto3 requests to REST format", + " correctly for various types of HTTP annotations, but it also includes verifying that unknown (numeric) enums received by clients can be round-tripped", + " correctly." + ] + }, + "Compliance:RepeatDataBody": { + "paramName": "", + "paramType": "", + "comments": [ + " This method echoes the ComplianceData request. This method exercises", + " sending the entire request object in the REST body.", + "" + ] + }, + "Compliance:RepeatDataBodyInfo": { + "paramName": "", + "paramType": "", + "comments": [ + " This method echoes the ComplianceData request. This method exercises", + " sending the a message-type field in the REST body. Per AIP-127, only", + " top-level, non-repeated fields can be sent this way.", + "" + ] + }, + "Compliance:RepeatDataQuery": { + "paramName": "", + "paramType": "", + "comments": [ + " This method echoes the ComplianceData request. This method exercises", + " sending all request fields as query parameters.", + "" + ] + }, + "Compliance:RepeatDataSimplePath": { + "paramName": "", + "paramType": "", + "comments": [ + " This method echoes the ComplianceData request. This method exercises", + " sending some parameters as \"simple\" path variables (i.e., of the form", + " \"/bar/{foo}\" rather than \"/{foo=bar/*}\"), and the rest as query parameters.", + "" + ] + }, + "Compliance:RepeatDataPathResource": { + "paramName": "", + "paramType": "", + "comments": [ + " Same as RepeatDataSimplePath, but with a path resource.", + "" + ] + }, + "Compliance:RepeatDataPathTrailingResource": { + "paramName": "", + "paramType": "", + "comments": [ + " Same as RepeatDataSimplePath, but with a trailing resource.", + "" + ] + }, + "Compliance:RepeatDataBodyPut": { + "paramName": "", + "paramType": "", + "comments": [ + " This method echoes the ComplianceData request, using the HTTP PUT method.", + "" + ] + }, + "Compliance:RepeatDataBodyPatch": { + "paramName": "", + "paramType": "", + "comments": [ + " This method echoes the ComplianceData request, using the HTTP PATCH method.", + "" + ] + }, + "Compliance:GetEnum": { + "paramName": "", + "paramType": "", + "comments": [ + " This method requests an enum value from the server. Depending on the contents of EnumRequest, the enum value returned will be a known enum declared in the", + " .proto file, or a made-up enum value the is unknown to the client. To verify that clients can round-trip unknown enum vaues they receive, use the", + " response from this RPC as the request to VerifyEnum()", + "", + " The values of enums sent by the server when a known or unknown value is requested will be the same within a single Showcase server run (this is needed for", + " VerifyEnum() to work) but are not guaranteed to be the same across separate Showcase server runs.", + "" + ] + }, + "Compliance:VerifyEnum": { + "paramName": "", + "paramType": "", + "comments": [ + " This method is used to verify that clients can round-trip enum values, which is particularly important for unknown enum values over REST. VerifyEnum()", + " verifies that its request, which is presumably the response that the client previously got to a GetEnum(), contains the correct data. If so, it responds", + " with the same EnumResponse; otherwise, the RPC errors.", + "", + " This works because the values of enums sent by the server when a known or unknown value is requested will be the same within a single Showcase server run,", + " although they are not guaranteed to be the same across separate Showcase server runs.", + "" + ] + }, + "RepeatRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "RepeatRequest:info": { + "paramName": "info", + "paramType": ".google.showcase.v1beta1.ComplianceData", + "comments": [] + }, + "RepeatRequest:server_verify": { + "paramName": "server_verify", + "paramType": "TYPE_BOOL", + "comments": [ + " If true, the server will verify that the received request matches", + " the request with the same name in the compliance test suite." + ] + }, + "RepeatRequest:intended_binding_uri": { + "paramName": "intended_binding_uri", + "paramType": "TYPE_STRING", + "comments": [ + " The URI template this request is expected to be bound to server-side." + ] + }, + "RepeatRequest:f_int32": { + "paramName": "f_int32", + "paramType": "TYPE_INT32", + "comments": [ + " Some top level fields, to test that these are encoded correctly", + " in query params." + ] + }, + "RepeatRequest:f_int64": { + "paramName": "f_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + "RepeatRequest:f_double": { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "RepeatRequest:p_int32": { + "paramName": "p_int32", + "paramType": "TYPE_INT32", + "comments": [] + }, + "RepeatRequest:p_int64": { + "paramName": "p_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + "RepeatRequest:p_double": { + "paramName": "p_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "RepeatResponse:request": { + "paramName": "request", + "paramType": ".google.showcase.v1beta1.RepeatRequest", + "comments": [] + }, + "RepeatResponse:binding_uri": { + "paramName": "binding_uri", + "paramType": "TYPE_STRING", + "comments": [ + " The URI template the request was bound to server-side." + ] + }, + "ComplianceSuite:group": { + "paramName": "group", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "ComplianceGroup:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ComplianceGroup:rpcs": { + "paramName": "rpcs", + "paramType": "TYPE_STRING[]", + "comments": [] + }, + "ComplianceGroup:requests": { + "paramName": "requests", + "paramType": "TYPE_MESSAGE[]", + "comments": [] + }, + "ComplianceData:f_string": { + "paramName": "f_string", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ComplianceData:f_int32": { + "paramName": "f_int32", + "paramType": "TYPE_INT32", + "comments": [] + }, + "ComplianceData:f_sint32": { + "paramName": "f_sint32", + "paramType": "TYPE_SINT32", + "comments": [] + }, + "ComplianceData:f_sfixed32": { + "paramName": "f_sfixed32", + "paramType": "TYPE_SFIXED32", + "comments": [] + }, + "ComplianceData:f_uint32": { + "paramName": "f_uint32", + "paramType": "TYPE_UINT32", + "comments": [] + }, + "ComplianceData:f_fixed32": { + "paramName": "f_fixed32", + "paramType": "TYPE_FIXED32", + "comments": [] + }, + "ComplianceData:f_int64": { + "paramName": "f_int64", + "paramType": "TYPE_INT64", + "comments": [] + }, + "ComplianceData:f_sint64": { + "paramName": "f_sint64", + "paramType": "TYPE_SINT64", + "comments": [] + }, + "ComplianceData:f_sfixed64": { + "paramName": "f_sfixed64", + "paramType": "TYPE_SFIXED64", + "comments": [] + }, + "ComplianceData:f_uint64": { + "paramName": "f_uint64", + "paramType": "TYPE_UINT64", + "comments": [] + }, + "ComplianceData:f_fixed64": { + "paramName": "f_fixed64", + "paramType": "TYPE_FIXED64", + "comments": [] + }, + "ComplianceData:f_double": { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "ComplianceData:f_float": { + "paramName": "f_float", + "paramType": "TYPE_FLOAT", + "comments": [] + }, + "ComplianceData:f_bool": { + "paramName": "f_bool", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "ComplianceData:f_bytes": { + "paramName": "f_bytes", + "paramType": "TYPE_BYTES", + "comments": [] + }, + "ComplianceData:f_kingdom": { + "paramName": "f_kingdom", + "paramType": ".google.showcase.v1beta1.ComplianceData.LifeKingdom", + "comments": [] + }, + "ComplianceData:f_child": { + "paramName": "f_child", + "paramType": ".google.showcase.v1beta1.ComplianceDataChild", + "comments": [] + }, + "ComplianceData:p_string": { + "paramName": "p_string", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ComplianceData:p_int32": { + "paramName": "p_int32", + "paramType": "TYPE_INT32", + "comments": [] + }, + "ComplianceData:p_double": { + "paramName": "p_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "ComplianceData:p_bool": { + "paramName": "p_bool", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "ComplianceData:p_kingdom": { + "paramName": "p_kingdom", + "paramType": ".google.showcase.v1beta1.ComplianceData.LifeKingdom", + "comments": [] + }, + "ComplianceData:p_child": { + "paramName": "p_child", + "paramType": ".google.showcase.v1beta1.ComplianceDataChild", + "comments": [] + }, + "ComplianceDataChild:f_string": { + "paramName": "f_string", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ComplianceDataChild:f_float": { + "paramName": "f_float", + "paramType": "TYPE_FLOAT", + "comments": [] + }, + "ComplianceDataChild:f_double": { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "ComplianceDataChild:f_bool": { + "paramName": "f_bool", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "ComplianceDataChild:f_continent": { + "paramName": "f_continent", + "paramType": ".google.showcase.v1beta1.Continent", + "comments": [] + }, + "ComplianceDataChild:f_child": { + "paramName": "f_child", + "paramType": ".google.showcase.v1beta1.ComplianceDataGrandchild", + "comments": [] + }, + "ComplianceDataChild:p_string": { + "paramName": "p_string", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ComplianceDataChild:p_float": { + "paramName": "p_float", + "paramType": "TYPE_FLOAT", + "comments": [] + }, + "ComplianceDataChild:p_double": { + "paramName": "p_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "ComplianceDataChild:p_bool": { + "paramName": "p_bool", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "ComplianceDataChild:p_continent": { + "paramName": "p_continent", + "paramType": ".google.showcase.v1beta1.Continent", + "comments": [] + }, + "ComplianceDataChild:p_child": { + "paramName": "p_child", + "paramType": ".google.showcase.v1beta1.ComplianceDataGrandchild", + "comments": [] + }, + "ComplianceDataGrandchild:f_string": { + "paramName": "f_string", + "paramType": "TYPE_STRING", + "comments": [] + }, + "ComplianceDataGrandchild:f_double": { + "paramName": "f_double", + "paramType": "TYPE_DOUBLE", + "comments": [] + }, + "ComplianceDataGrandchild:f_bool": { + "paramName": "f_bool", + "paramType": "TYPE_BOOL", + "comments": [] + }, + "EnumRequest:unknown_enum": { + "paramName": "unknown_enum", + "paramType": "TYPE_BOOL", + "comments": [ + " Whether the client is requesting a new, unknown enum value or a known enum value already declard in this proto file." + ] + }, + "EnumResponse:request": { + "paramName": "request", + "paramType": ".google.showcase.v1beta1.EnumRequest", + "comments": [ + " The original request for a known or unknown enum from the server." + ] + }, + "EnumResponse:continent": { + "paramName": "continent", + "paramType": ".google.showcase.v1beta1.Continent", + "comments": [ + " The actual enum the server provided." + ] + }, + "RoutingRule:routing_parameters": { + "paramName": "routing_parameters", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " A collection of Routing Parameter specifications.", + " **NOTE:** If multiple Routing Parameters describe the same key", + " (via the `path_template` field or via the `field` field when", + " `path_template` is not provided), \"last one wins\" rule", + " determines which Parameter gets used.", + " See the examples for more details." + ] + }, + "RoutingParameter:field": { + "paramName": "field", + "paramType": "TYPE_STRING", + "comments": [ + " A request field to extract the header key-value pair from." + ] + }, + "RoutingParameter:path_template": { + "paramName": "path_template", + "paramType": "TYPE_STRING", + "comments": [ + " A pattern matching the key-value field. Optional.", + " If not specified, the whole field specified in the `field` field will be", + " taken as value, and its name used as key. If specified, it MUST contain", + " exactly one named segment (along with any number of unnamed segments) The", + " pattern will be matched over the field specified in the `field` field, then", + " if the match is successful:", + " - the name of the single named segment will be used as a header name,", + " - the match value of the segment will be used as a header value;", + " if the match is NOT successful, nothing will be sent.", + "", + " Example:", + "", + " -- This is a field in the request message", + " | that the header value will be extracted from.", + " |", + " | -- This is the key name in the", + " | | routing header.", + " V |", + " field: \"table_name\" v", + " path_template: \"projects/*/{table_location=instances/*}/tables/*\"", + " ^ ^", + " | |", + " In the {} brackets is the pattern that -- |", + " specifies what to extract from the |", + " field as a value to be sent. |", + " |", + " The string in the field must match the whole pattern --", + " before brackets, inside brackets, after brackets.", + "", + " When looking at this specific example, we can see that:", + " - A key-value pair with the key `table_location`", + " and the value matching `instances/*` should be added", + " to the x-goog-request-params routing header.", + " - The value is extracted from the request message's `table_name` field", + " if it matches the full pattern specified:", + " `projects/*/instances/*/tables/*`.", + "", + " **NB:** If the `path_template` field is not provided, the key name is", + " equal to the field name, and the whole field should be sent as a value.", + " This makes the pattern for the field and the value functionally equivalent", + " to `**`, and the configuration", + "", + " {", + " field: \"table_name\"", + " }", + "", + " is a functionally equivalent shorthand to:", + "", + " {", + " field: \"table_name\"", + " path_template: \"{table_name=**}\"", + " }", + "", + " See Example 1 for more details." + ] + }, + "Any:type_url": { + "paramName": "type_url", + "paramType": "TYPE_STRING", + "comments": [ + " A URL/resource name that uniquely identifies the type of the serialized", + " protocol buffer message. This string must contain at least", + " one \"/\" character. The last segment of the URL's path must represent", + " the fully qualified name of the type (as in", + " `path/google.protobuf.Duration`). The name should be in a canonical form", + " (e.g., leading \".\" is not accepted).", + "", + " In practice, teams usually precompile into the binary all types that they", + " expect it to use in the context of Any. However, for URLs which use the", + " scheme `http`, `https`, or no scheme, one can optionally set up a type", + " server that maps type URLs to message definitions as follows:", + "", + " * If no scheme is provided, `https` is assumed.", + " * An HTTP GET on the URL must yield a [google.protobuf.Type][]", + " value in binary format, or produce an error.", + " * Applications are allowed to cache lookup results based on the", + " URL, or have them precompiled into a binary to avoid any", + " lookup. Therefore, binary compatibility needs to be preserved", + " on changes to types. (Use versioned type names to manage", + " breaking changes.)", + "", + " Note: this functionality is not currently available in the official", + " protobuf release, and it is not used for type URLs beginning with", + " type.googleapis.com. As of May 2023, there are no widely used type server", + " implementations and no plans to implement one.", + "", + " Schemes other than `http`, `https` (or the empty scheme) might be", + " used with implementation specific semantics.", + "" + ] + }, + "Any:value": { + "paramName": "value", + "paramType": "TYPE_BYTES", + "comments": [ + " Must be a valid serialized protocol buffer of the above specified type." + ] + }, + "Status:code": { + "paramName": "code", + "paramType": "TYPE_INT32", + "comments": [ + " The status code, which should be an enum value of", + " [google.rpc.Code][google.rpc.Code]." + ] + }, + "Status:message": { + "paramName": "message", + "paramType": "TYPE_STRING", + "comments": [ + " A developer-facing error message, which should be in English. Any", + " user-facing error message should be localized and sent in the", + " [google.rpc.Status.details][google.rpc.Status.details] field, or localized", + " by the client." + ] + }, + "Status:details": { + "paramName": "details", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " A list of messages that carry the error details. There is a common set of", + " message types for APIs to use." + ] + }, + "Operations": { + "paramName": "", + "paramType": "", + "comments": [ + " Manages long-running operations with an API service.", + "", + " When an API method normally takes long time to complete, it can be designed", + " to return [Operation][google.longrunning.Operation] to the client, and the client can use this", + " interface to receive the real response asynchronously by polling the", + " operation resource, or pass the operation resource to another API (such as", + " Google Cloud Pub/Sub API) to receive the response. Any API service that", + " returns long-running operations should implement the `Operations` interface", + " so developers can have a consistent client experience." + ] + }, + "Operations:ListOperations": { + "paramName": "", + "paramType": "", + "comments": [ + " Lists operations that match the specified filter in the request. If the", + " server doesn't support this method, it returns `UNIMPLEMENTED`.", + "", + " NOTE: the `name` binding allows API services to override the binding", + " to use different resource name schemes, such as `users/*/operations`. To", + " override the binding, API services can add a binding such as", + " `\"/v1/{name=users/*}/operations\"` to their service configuration.", + " For backwards compatibility, the default name includes the operations", + " collection id, however overriding users must ensure the name binding", + " is the parent resource, without the operations collection id.", + "" + ] + }, + "Operations:GetOperation": { + "paramName": "", + "paramType": "", + "comments": [ + " Gets the latest state of a long-running operation. Clients can use this", + " method to poll the operation result at intervals as recommended by the API", + " service.", + "" + ] + }, + "Operations:DeleteOperation": { + "paramName": "", + "paramType": "", + "comments": [ + " Deletes a long-running operation. This method indicates that the client is", + " no longer interested in the operation result. It does not cancel the", + " operation. If the server doesn't support this method, it returns", + " `google.rpc.Code.UNIMPLEMENTED`.", + "" + ] + }, + "Operations:CancelOperation": { + "paramName": "", + "paramType": "", + "comments": [ + " Starts asynchronous cancellation on a long-running operation. The server", + " makes a best effort to cancel the operation, but success is not", + " guaranteed. If the server doesn't support this method, it returns", + " `google.rpc.Code.UNIMPLEMENTED`. Clients can use", + " [Operations.GetOperation][google.longrunning.Operations.GetOperation] or", + " other methods to check whether the cancellation succeeded or whether the", + " operation completed despite cancellation. On successful cancellation,", + " the operation is not deleted; instead, it becomes an operation with", + " an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,", + " corresponding to `Code.CANCELLED`.", + "" + ] + }, + "Operations:WaitOperation": { + "paramName": "", + "paramType": "", + "comments": [ + " Waits until the specified long-running operation is done or reaches at most", + " a specified timeout, returning the latest state. If the operation is", + " already done, the latest state is immediately returned. If the timeout", + " specified is greater than the default HTTP/RPC timeout, the HTTP/RPC", + " timeout is used. If the server does not support this method, it returns", + " `google.rpc.Code.UNIMPLEMENTED`.", + " Note that this method is on a best-effort basis. It may return the latest", + " state before the specified timeout (including immediately), meaning even an", + " immediate response is no guarantee that the operation is done.", + "" + ] + }, + "Operation:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The server-assigned name, which is only unique within the same service that", + " originally returns it. If you use the default HTTP mapping, the", + " `name` should be a resource name ending with `operations/{unique_id}`." + ] + }, + "Operation:metadata": { + "paramName": "metadata", + "paramType": ".google.protobuf.Any", + "comments": [ + " Service-specific metadata associated with the operation. It typically", + " contains progress information and common metadata such as create time.", + " Some services might not provide such metadata. Any method that returns a", + " long-running operation should document the metadata type, if any." + ] + }, + "Operation:done": { + "paramName": "done", + "paramType": "TYPE_BOOL", + "comments": [ + " If the value is `false`, it means the operation is still in progress.", + " If `true`, the operation is completed, and either `error` or `response` is", + " available." + ] + }, + "Operation:error": { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error result of the operation in case of failure or cancellation." + ] + }, + "Operation:response": { + "paramName": "response", + "paramType": ".google.protobuf.Any", + "comments": [ + " The normal response of the operation in case of success. If the original", + " method returns no data on success, such as `Delete`, the response is", + " `google.protobuf.Empty`. If the original method is standard", + " `Get`/`Create`/`Update`, the response should be the resource. For other", + " methods, the response should have the type `XxxResponse`, where `Xxx`", + " is the original method name. For example, if the original method name", + " is `TakeSnapshot()`, the inferred response type is", + " `TakeSnapshotResponse`." + ] + }, + "GetOperationRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the operation resource." + ] + }, + "ListOperationsRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the operation's parent resource." + ] + }, + "ListOperationsRequest:filter": { + "paramName": "filter", + "paramType": "TYPE_STRING", + "comments": [ + " The standard list filter." + ] + }, + "ListOperationsRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The standard list page size." + ] + }, + "ListOperationsRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The standard list page token." + ] + }, + "ListOperationsResponse:operations": { + "paramName": "operations", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " A list of operations that matches the specified filter in the request." + ] + }, + "ListOperationsResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The standard List next-page token." + ] + }, + "CancelOperationRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the operation resource to be cancelled." + ] + }, + "DeleteOperationRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the operation resource to be deleted." + ] + }, + "WaitOperationRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the operation resource to wait on." + ] + }, + "WaitOperationRequest:timeout": { + "paramName": "timeout", + "paramType": ".google.protobuf.Duration", + "comments": [ + " The maximum duration to wait before timing out. If left blank, the wait", + " will be at most the time permitted by the underlying HTTP/RPC protocol.", + " If RPC context deadline is also specified, the shorter one will be used." + ] + }, + "OperationInfo:response_type": { + "paramName": "response_type", + "paramType": "TYPE_STRING", + "comments": [ + " Required. The message name of the primary return type for this", + " long-running operation.", + " This type will be used to deserialize the LRO's response.", + "", + " If the response is in a different package from the rpc, a fully-qualified", + " message name must be used (e.g. `google.protobuf.Struct`).", + "", + " Note: Altering this value constitutes a breaking change." + ] + }, + "OperationInfo:metadata_type": { + "paramName": "metadata_type", + "paramType": "TYPE_STRING", + "comments": [ + " Required. The message name of the metadata type for this long-running", + " operation.", + "", + " If the response is in a different package from the rpc, a fully-qualified", + " message name must be used (e.g. `google.protobuf.Struct`).", + "", + " Note: Altering this value constitutes a breaking change." + ] + }, + "Timestamp:seconds": { + "paramName": "seconds", + "paramType": "TYPE_INT64", + "comments": [ + " Represents seconds of UTC time since Unix epoch", + " 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to", + " 9999-12-31T23:59:59Z inclusive." + ] + }, + "Timestamp:nanos": { + "paramName": "nanos", + "paramType": "TYPE_INT32", + "comments": [ + " Non-negative fractions of a second at nanosecond resolution. Negative", + " second values with fractions must still have non-negative nanos values", + " that count forward in time. Must be from 0 to 999,999,999", + " inclusive." + ] + }, + "Echo": { + "paramName": "", + "paramType": "", + "comments": [ + " This service is used showcase the four main types of rpcs - unary, server", + " side streaming, client side streaming, and bidirectional streaming. This", + " service also exposes methods that explicitly implement server delay, and", + " paginated calls. Set the 'showcase-trailer' metadata key on any method", + " to have the values echoed in the response trailers. Set the ", + " 'x-goog-request-params' metadata key on any method to have the values", + " echoed in the response headers." + ] + }, + "Echo:Expand": { + "paramName": "", + "paramType": "", + "comments": [ + " This method splits the given content into words and will pass each word back", + " through the stream. This method showcases server-side streaming RPCs.", + "" + ] + }, + "Echo:Collect": { + "paramName": "", + "paramType": "", + "comments": [ + " This method will collect the words given to it. When the stream is closed", + " by the client, this method will return the a concatenation of the strings", + " passed to it. This method showcases client-side streaming RPCs.", + "" + ] + }, + "Echo:Chat": { + "paramName": "", + "paramType": "", + "comments": [ + " This method, upon receiving a request on the stream, will pass the same", + " content back on the stream. This method showcases bidirectional", + " streaming RPCs.", + "" + ] + }, + "Echo:PagedExpand": { + "paramName": "", + "paramType": "", + "comments": [ + " This is similar to the Expand method but instead of returning a stream of", + " expanded words, this method returns a paged list of expanded words.", + "" + ] + }, + "Echo:PagedExpandLegacy": { + "paramName": "", + "paramType": "", + "comments": [ + " This is similar to the PagedExpand except that it uses", + " max_results instead of page_size, as some legacy APIs still", + " do. New APIs should NOT use this pattern.", + "" + ] + }, + "Echo:PagedExpandLegacyMapped": { + "paramName": "", + "paramType": "", + "comments": [ + " This method returns a map containing lists of words that appear in the input, keyed by their", + " initial character. The only words returned are the ones included in the current page,", + " as determined by page_token and page_size, which both refer to the word indices in the", + " input. This paging result consisting of a map of lists is a pattern used by some legacy", + " APIs. New APIs should NOT use this pattern.", + "" + ] + }, + "Echo:Wait": { + "paramName": "", + "paramType": "", + "comments": [ + " This method will wait for the requested amount of time and then return.", + " This method showcases how a client handles a request timeout.", + "" + ] + }, + "Echo:Block": { + "paramName": "", + "paramType": "", + "comments": [ + " This method will block (wait) for the requested amount of time", + " and then return the response or error.", + " This method showcases how a client handles delays or retries.", + "" + ] + }, + "EchoRequest:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The content to be echoed by the server." + ] + }, + "EchoRequest:error": { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error to be thrown by the server." + ] + }, + "EchoRequest:severity": { + "paramName": "severity", + "paramType": ".google.showcase.v1beta1.Severity", + "comments": [ + " The severity to be echoed by the server." + ] + }, + "EchoRequest:header": { + "paramName": "header", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. This field can be set to test the routing annotation on the Echo method." + ] + }, + "EchoRequest:other_header": { + "paramName": "other_header", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. This field can be set to test the routing annotation on the Echo method." + ] + }, + "EchoResponse:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The content specified in the request." + ] + }, + "EchoResponse:severity": { + "paramName": "severity", + "paramType": ".google.showcase.v1beta1.Severity", + "comments": [ + " The severity specified in the request." + ] + }, + "ExpandRequest:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The content that will be split into words and returned on the stream." + ] + }, + "ExpandRequest:error": { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error that is thrown after all words are sent on the stream." + ] + }, + "PagedExpandRequest:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The string to expand." + ], + "fieldBehavior": 2 + }, + "PagedExpandRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The number of words to returned in each page." + ] + }, + "PagedExpandRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The position of the page to be returned." + ] + }, + "PagedExpandLegacyRequest:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " The string to expand." + ], + "fieldBehavior": 2 + }, + "PagedExpandLegacyRequest:max_results": { + "paramName": "max_results", + "paramType": "TYPE_INT32", + "comments": [ + " The number of words to returned in each page.", + " (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that", + " violates aip.dev/158. Ordinarily, this should be page_size. --)" + ] + }, + "PagedExpandLegacyRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The position of the page to be returned." + ] + }, + "PagedExpandResponse:responses": { + "paramName": "responses", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The words that were expanded." + ] + }, + "PagedExpandResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The next page token." + ] + }, + "PagedExpandResponseList:words": { + "paramName": "words", + "paramType": "TYPE_STRING[]", + "comments": [] + }, + "PagedExpandLegacyMappedResponse:alphabetized": { + "paramName": "alphabetized", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The words that were expanded, indexed by their initial character.", + " (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates", + " aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --)" + ] + }, + "PagedExpandLegacyMappedResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The next page token." + ] + }, + "WaitRequest:end_time": { + "paramName": "end_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The time that this operation will complete." + ] + }, + "WaitRequest:ttl": { + "paramName": "ttl", + "paramType": ".google.protobuf.Duration", + "comments": [ + " The duration of this operation." + ] + }, + "WaitRequest:error": { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error that will be returned by the server. If this code is specified", + " to be the OK rpc code, an empty response will be returned." + ] + }, + "WaitRequest:success": { + "paramName": "success", + "paramType": ".google.showcase.v1beta1.WaitResponse", + "comments": [ + " The response to be returned on operation completion." + ] + }, + "WaitResponse:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " This content of the result." + ] + }, + "WaitMetadata:end_time": { + "paramName": "end_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The time that this operation will complete." + ] + }, + "BlockRequest:response_delay": { + "paramName": "response_delay", + "paramType": ".google.protobuf.Duration", + "comments": [ + " The amount of time to block before returning a response." + ] + }, + "BlockRequest:error": { + "paramName": "error", + "paramType": ".google.rpc.Status", + "comments": [ + " The error that will be returned by the server. If this code is specified", + " to be the OK rpc code, an empty response will be returned." + ] + }, + "BlockRequest:success": { + "paramName": "success", + "paramType": ".google.showcase.v1beta1.BlockResponse", + "comments": [ + " The response to be returned that will signify successful method call." + ] + }, + "BlockResponse:content": { + "paramName": "content", + "paramType": "TYPE_STRING", + "comments": [ + " This content can contain anything, the server will not depend on a value", + " here." + ] + }, + "ResourceDescriptor:type": { + "paramName": "type", + "paramType": "TYPE_STRING", + "comments": [ + " The resource type. It must be in the format of", + " {service_name}/{resource_type_kind}. The `resource_type_kind` must be", + " singular and must not include version numbers.", + "", + " Example: `storage.googleapis.com/Bucket`", + "", + " The value of the resource_type_kind must follow the regular expression", + " /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and", + " should use PascalCase (UpperCamelCase). The maximum number of", + " characters allowed for the `resource_type_kind` is 100." + ] + }, + "ResourceDescriptor:pattern": { + "paramName": "pattern", + "paramType": "TYPE_STRING[]", + "comments": [ + " Optional. The relative resource name pattern associated with this resource", + " type. The DNS prefix of the full resource name shouldn't be specified here.", + "", + " The path pattern must follow the syntax, which aligns with HTTP binding", + " syntax:", + "", + " Template = Segment { \"/\" Segment } ;", + " Segment = LITERAL | Variable ;", + " Variable = \"{\" LITERAL \"}\" ;", + "", + " Examples:", + "", + " - \"projects/{project}/topics/{topic}\"", + " - \"projects/{project}/knowledgeBases/{knowledge_base}\"", + "", + " The components in braces correspond to the IDs for each resource in the", + " hierarchy. It is expected that, if multiple patterns are provided,", + " the same component name (e.g. \"project\") refers to IDs of the same", + " type of resource." + ] + }, + "ResourceDescriptor:name_field": { + "paramName": "name_field", + "paramType": "TYPE_STRING", + "comments": [ + " Optional. The field on the resource that designates the resource name", + " field. If omitted, this is assumed to be \"name\"." + ] + }, + "ResourceDescriptor:history": { + "paramName": "history", + "paramType": ".google.api.ResourceDescriptor.History", + "comments": [ + " Optional. The historical or future-looking state of the resource pattern.", + "", + " Example:", + "", + " // The InspectTemplate message originally only supported resource", + " // names with organization, and project was added later.", + " message InspectTemplate {", + " option (google.api.resource) = {", + " type: \"dlp.googleapis.com/InspectTemplate\"", + " pattern:", + " \"organizations/{organization}/inspectTemplates/{inspect_template}\"", + " pattern: \"projects/{project}/inspectTemplates/{inspect_template}\"", + " history: ORIGINALLY_SINGLE_PATTERN", + " };", + " }" + ] + }, + "ResourceDescriptor:plural": { + "paramName": "plural", + "paramType": "TYPE_STRING", + "comments": [ + " The plural name used in the resource name and permission names, such as", + " 'projects' for the resource name of 'projects/{project}' and the permission", + " name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same", + " concept of the `plural` field in k8s CRD spec", + " https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/", + "", + " Note: The plural form is required even for singleton resources. See", + " https://aip.dev/156" + ] + }, + "ResourceDescriptor:singular": { + "paramName": "singular", + "paramType": "TYPE_STRING", + "comments": [ + " The same concept of the `singular` field in k8s CRD spec", + " https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/", + " Such as \"project\" for the `resourcemanager.googleapis.com/Project` type." + ] + }, + "ResourceDescriptor:style": { + "paramName": "style", + "paramType": "TYPE_ENUM[]", + "comments": [ + " Style flag(s) for this resource.", + " These indicate that a resource is expected to conform to a given", + " style. See the specific style flags for additional information." + ] + }, + "ResourceReference:type": { + "paramName": "type", + "paramType": "TYPE_STRING", + "comments": [ + " The resource type that the annotated field references.", + "", + " Example:", + "", + " message Subscription {", + " string topic = 2 [(google.api.resource_reference) = {", + " type: \"pubsub.googleapis.com/Topic\"", + " }];", + " }", + "", + " Occasionally, a field may reference an arbitrary resource. In this case,", + " APIs use the special value * in their resource reference.", + "", + " Example:", + "", + " message GetIamPolicyRequest {", + " string resource = 2 [(google.api.resource_reference) = {", + " type: \"*\"", + " }];", + " }" + ] + }, + "ResourceReference:child_type": { + "paramName": "child_type", + "paramType": "TYPE_STRING", + "comments": [ + " The resource type of a child collection that the annotated field", + " references. This is useful for annotating the `parent` field that", + " doesn't have a fixed resource type.", + "", + " Example:", + "", + " message ListLogEntriesRequest {", + " string parent = 1 [(google.api.resource_reference) = {", + " child_type: \"logging.googleapis.com/LogEntry\"", + " };", + " }" + ] + }, + "FieldMask:paths": { + "paramName": "paths", + "paramType": "TYPE_STRING[]", + "comments": [ + " The set of field mask paths." + ] + }, + "Identity": { + "paramName": "", + "paramType": "", + "comments": [ + " A simple identity service." + ] + }, + "Identity:CreateUser": { + "paramName": "", + "paramType": "", + "comments": [ + " Creates a user.", + "" + ] + }, + "Identity:GetUser": { + "paramName": "", + "paramType": "", + "comments": [ + " Retrieves the User with the given uri.", + "" + ] + }, + "Identity:UpdateUser": { + "paramName": "", + "paramType": "", + "comments": [ + " Updates a user.", + "" + ] + }, + "Identity:DeleteUser": { + "paramName": "", + "paramType": "", + "comments": [ + " Deletes a user, their profile, and all of their authored messages.", + "" + ] + }, + "Identity:ListUsers": { + "paramName": "", + "paramType": "", + "comments": [ + " Lists all users.", + "" + ] + }, + "User:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the user." + ] + }, + "User:display_name": { + "paramName": "display_name", + "paramType": "TYPE_STRING", + "comments": [ + " The display_name of the user." + ], + "fieldBehavior": 2 + }, + "User:email": { + "paramName": "email", + "paramType": "TYPE_STRING", + "comments": [ + " The email address of the user." + ], + "fieldBehavior": 2 + }, + "User:create_time": { + "paramName": "create_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The timestamp at which the user was created." + ], + "fieldBehavior": 3 + }, + "User:update_time": { + "paramName": "update_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The latest timestamp at which the user was updated." + ], + "fieldBehavior": 3 + }, + "User:age": { + "paramName": "age", + "paramType": "TYPE_INT32", + "comments": [ + " The age of the user in years." + ] + }, + "User:height_feet": { + "paramName": "height_feet", + "paramType": "TYPE_DOUBLE", + "comments": [ + " The height of the user in feet." + ] + }, + "User:nickname": { + "paramName": "nickname", + "paramType": "TYPE_STRING", + "comments": [ + " The nickname of the user.", + "", + " (-- aip.dev/not-precedent: An empty string is a valid nickname.", + " Ordinarily, proto3_optional should not be used on a `string` field. --)" + ] + }, + "User:enable_notifications": { + "paramName": "enable_notifications", + "paramType": "TYPE_BOOL", + "comments": [ + " Enables the receiving of notifications. The default is true if unset.", + "", + " (-- aip.dev/not-precedent: The default for the feature is true.", + " Ordinarily, the default for a `bool` field should be false. --)" + ] + }, + "CreateUserRequest:user": { + "paramName": "user", + "paramType": ".google.showcase.v1beta1.User", + "comments": [ + " The user to create." + ] + }, + "GetUserRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested user." + ], + "fieldBehavior": 2 + }, + "UpdateUserRequest:user": { + "paramName": "user", + "paramType": ".google.showcase.v1beta1.User", + "comments": [ + " The user to update." + ] + }, + "UpdateUserRequest:update_mask": { + "paramName": "update_mask", + "paramType": ".google.protobuf.FieldMask", + "comments": [ + " The field mask to determine which fields are to be updated. If empty, the", + " server will assume all fields are to be updated." + ] + }, + "DeleteUserRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the user to delete." + ], + "fieldBehavior": 2 + }, + "ListUsersRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of users to return. Server may return fewer users", + " than requested. If unspecified, server will pick an appropriate default." + ] + }, + "ListUsersRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The value of google.showcase.v1beta1.ListUsersResponse.next_page_token", + " returned from the previous call to", + " `google.showcase.v1beta1.Identity\\ListUsers` method." + ] + }, + "ListUsersResponse:users": { + "paramName": "users", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The list of users." + ] + }, + "ListUsersResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " A token to retrieve next page of results.", + " Pass this value in ListUsersRequest.page_token field in the subsequent", + " call to `google.showcase.v1beta1.Message\\ListUsers` method to retrieve the", + " next page of results." + ] + }, + "ErrorInfo:reason": { + "paramName": "reason", + "paramType": "TYPE_STRING", + "comments": [ + " The reason of the error. This is a constant value that identifies the", + " proximate cause of the error. Error reasons are unique within a particular", + " domain of errors. This should be at most 63 characters and match a", + " regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents", + " UPPER_SNAKE_CASE." + ] + }, + "ErrorInfo:domain": { + "paramName": "domain", + "paramType": "TYPE_STRING", + "comments": [ + " The logical grouping to which the \"reason\" belongs. The error domain", + " is typically the registered service name of the tool or product that", + " generates the error. Example: \"pubsub.googleapis.com\". If the error is", + " generated by some common infrastructure, the error domain must be a", + " globally unique value that identifies the infrastructure. For Google API", + " infrastructure, the error domain is \"googleapis.com\"." + ] + }, + "ErrorInfo:metadata": { + "paramName": "metadata", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Additional structured details about this error.", + "", + " Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in", + " length. When identifying the current value of an exceeded limit, the units", + " should be contained in the key, not the value. For example, rather than", + " {\"instanceLimit\": \"100/request\"}, should be returned as,", + " {\"instanceLimitPerRequest\": \"100\"}, if the client exceeds the number of", + " instances that can be created in a single (batch) request." + ] + }, + "RetryInfo:retry_delay": { + "paramName": "retry_delay", + "paramType": ".google.protobuf.Duration", + "comments": [ + " Clients should wait at least this long between retrying the same request." + ] + }, + "DebugInfo:stack_entries": { + "paramName": "stack_entries", + "paramType": "TYPE_STRING[]", + "comments": [ + " The stack trace entries indicating where the error occurred." + ] + }, + "DebugInfo:detail": { + "paramName": "detail", + "paramType": "TYPE_STRING", + "comments": [ + " Additional debugging information provided by the server." + ] + }, + "QuotaFailure:violations": { + "paramName": "violations", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Describes all quota violations." + ] + }, + "PreconditionFailure:violations": { + "paramName": "violations", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Describes all precondition violations." + ] + }, + "BadRequest:field_violations": { + "paramName": "field_violations", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Describes all violations in a client request." + ] + }, + "RequestInfo:request_id": { + "paramName": "request_id", + "paramType": "TYPE_STRING", + "comments": [ + " An opaque string that should only be interpreted by the service generating", + " it. For example, it can be used to identify requests in the service's logs." + ] + }, + "RequestInfo:serving_data": { + "paramName": "serving_data", + "paramType": "TYPE_STRING", + "comments": [ + " Any data that was used to serve this request. For example, an encrypted", + " stack trace that can be sent back to the service provider for debugging." + ] + }, + "ResourceInfo:resource_type": { + "paramName": "resource_type", + "paramType": "TYPE_STRING", + "comments": [ + " A name for the type of resource being accessed, e.g. \"sql table\",", + " \"cloud storage bucket\", \"file\", \"Google calendar\"; or the type URL", + " of the resource: e.g. \"type.googleapis.com/google.pubsub.v1.Topic\"." + ] + }, + "ResourceInfo:resource_name": { + "paramName": "resource_name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the resource being accessed. For example, a shared calendar", + " name: \"example.com_4fghdhgsrgh@group.calendar.google.com\", if the current", + " error is", + " [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED]." + ] + }, + "ResourceInfo:owner": { + "paramName": "owner", + "paramType": "TYPE_STRING", + "comments": [ + " The owner of the resource (optional).", + " For example, \"user:\" or \"project:\"." + ] + }, + "ResourceInfo:description": { + "paramName": "description", + "paramType": "TYPE_STRING", + "comments": [ + " Describes what error is encountered when accessing this resource.", + " For example, updating a cloud project may require the `writer` permission", + " on the developer console project." + ] + }, + "Help:links": { + "paramName": "links", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " URL(s) pointing to additional information on handling the current error." + ] + }, + "LocalizedMessage:locale": { + "paramName": "locale", + "paramType": "TYPE_STRING", + "comments": [ + " The locale used following the specification defined at", + " https://www.rfc-editor.org/rfc/bcp/bcp47.txt.", + " Examples are: \"en-US\", \"fr-CH\", \"es-MX\"" + ] + }, + "LocalizedMessage:message": { + "paramName": "message", + "paramType": "TYPE_STRING", + "comments": [ + " The localized error message in the above locale." + ] + }, + "Messaging": { + "paramName": "", + "paramType": "", + "comments": [ + " A simple messaging service that implements chat rooms and profile posts.", + "", + " This messaging service showcases the features that API clients", + " generated by gapic-generators implement." + ] + }, + "Messaging:CreateRoom": { + "paramName": "", + "paramType": "", + "comments": [ + " Creates a room.", + "" + ] + }, + "Messaging:GetRoom": { + "paramName": "", + "paramType": "", + "comments": [ + " Retrieves the Room with the given resource name.", + "" + ] + }, + "Messaging:UpdateRoom": { + "paramName": "", + "paramType": "", + "comments": [ + " Updates a room.", + "" + ] + }, + "Messaging:DeleteRoom": { + "paramName": "", + "paramType": "", + "comments": [ + " Deletes a room and all of its blurbs.", + "" + ] + }, + "Messaging:ListRooms": { + "paramName": "", + "paramType": "", + "comments": [ + " Lists all chat rooms.", + "" + ] + }, + "Messaging:CreateBlurb": { + "paramName": "", + "paramType": "", + "comments": [ + " Creates a blurb. If the parent is a room, the blurb is understood to be a", + " message in that room. If the parent is a profile, the blurb is understood", + " to be a post on the profile.", + "" + ] + }, + "Messaging:GetBlurb": { + "paramName": "", + "paramType": "", + "comments": [ + " Retrieves the Blurb with the given resource name.", + "" + ] + }, + "Messaging:UpdateBlurb": { + "paramName": "", + "paramType": "", + "comments": [ + " Updates a blurb.", + "" + ] + }, + "Messaging:DeleteBlurb": { + "paramName": "", + "paramType": "", + "comments": [ + " Deletes a blurb.", + "" + ] + }, + "Messaging:ListBlurbs": { + "paramName": "", + "paramType": "", + "comments": [ + " Lists blurbs for a specific chat room or user profile depending on the", + " parent resource name.", + "" + ] + }, + "Messaging:SearchBlurbs": { + "paramName": "", + "paramType": "", + "comments": [ + " This method searches through all blurbs across all rooms and profiles", + " for blurbs containing to words found in the query. Only posts that", + " contain an exact match of a queried word will be returned.", + "" + ] + }, + "Messaging:StreamBlurbs": { + "paramName": "", + "paramType": "", + "comments": [ + " This returns a stream that emits the blurbs that are created for a", + " particular chat room or user profile.", + "" + ] + }, + "Messaging:SendBlurbs": { + "paramName": "", + "paramType": "", + "comments": [ + " This is a stream to create multiple blurbs. If an invalid blurb is", + " requested to be created, the stream will close with an error.", + "" + ] + }, + "Messaging:Connect": { + "paramName": "", + "paramType": "", + "comments": [ + " This method starts a bidirectional stream that receives all blurbs that", + " are being created after the stream has started and sends requests to create", + " blurbs. If an invalid blurb is requested to be created, the stream will", + " close with an error.", + "" + ] + }, + "Room:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the chat room." + ] + }, + "Room:display_name": { + "paramName": "display_name", + "paramType": "TYPE_STRING", + "comments": [ + " The human readable name of the chat room." + ], + "fieldBehavior": 2 + }, + "Room:description": { + "paramName": "description", + "paramType": "TYPE_STRING", + "comments": [ + " The description of the chat room." + ] + }, + "Room:create_time": { + "paramName": "create_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The timestamp at which the room was created." + ], + "fieldBehavior": 3 + }, + "Room:update_time": { + "paramName": "update_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The latest timestamp at which the room was updated." + ], + "fieldBehavior": 3 + }, + "CreateRoomRequest:room": { + "paramName": "room", + "paramType": ".google.showcase.v1beta1.Room", + "comments": [ + " The room to create." + ] + }, + "GetRoomRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested room." + ], + "fieldBehavior": 2 + }, + "UpdateRoomRequest:room": { + "paramName": "room", + "paramType": ".google.showcase.v1beta1.Room", + "comments": [ + " The room to update." + ] + }, + "UpdateRoomRequest:update_mask": { + "paramName": "update_mask", + "paramType": ".google.protobuf.FieldMask", + "comments": [ + " The field mask to determine which fields are to be updated. If empty, the", + " server will assume all fields are to be updated." + ] + }, + "DeleteRoomRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested room." + ], + "fieldBehavior": 2 + }, + "ListRoomsRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of rooms return. Server may return fewer rooms", + " than requested. If unspecified, server will pick an appropriate default." + ] + }, + "ListRoomsRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The value of google.showcase.v1beta1.ListRoomsResponse.next_page_token", + " returned from the previous call to", + " `google.showcase.v1beta1.Messaging\\ListRooms` method." + ] + }, + "ListRoomsResponse:rooms": { + "paramName": "rooms", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The list of rooms." + ] + }, + "ListRoomsResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " A token to retrieve next page of results.", + " Pass this value in ListRoomsRequest.page_token field in the subsequent", + " call to `google.showcase.v1beta1.Messaging\\ListRooms` method to retrieve", + " the next page of results." + ] + }, + "Blurb:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the chat room." + ] + }, + "Blurb:user": { + "paramName": "user", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the blurb's author." + ], + "fieldBehavior": 2 + }, + "Blurb:text": { + "paramName": "text", + "paramType": "TYPE_STRING", + "comments": [ + " The textual content of this blurb." + ] + }, + "Blurb:image": { + "paramName": "image", + "paramType": "TYPE_BYTES", + "comments": [ + " The image content of this blurb." + ] + }, + "Blurb:create_time": { + "paramName": "create_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The timestamp at which the blurb was created." + ], + "fieldBehavior": 3 + }, + "Blurb:update_time": { + "paramName": "update_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The latest timestamp at which the blurb was updated." + ], + "fieldBehavior": 3 + }, + "Blurb:legacy_room_id": { + "paramName": "legacy_room_id", + "paramType": "TYPE_STRING", + "comments": [ + " The legacy id of the room. This field is used to signal", + " the use of the compound resource pattern", + " `rooms/{room}/blurbs/legacy/{legacy_room}.{blurb}`" + ] + }, + "Blurb:legacy_user_id": { + "paramName": "legacy_user_id", + "paramType": "TYPE_STRING", + "comments": [ + " The legacy id of the user. This field is used to signal", + " the use of the compound resource pattern", + " `users/{user}/profile/blurbs/legacy/{legacy_user}~{blurb}`" + ] + }, + "CreateBlurbRequest:parent": { + "paramName": "parent", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the chat room or user profile that this blurb will", + " be tied to." + ], + "fieldBehavior": 2 + }, + "CreateBlurbRequest:blurb": { + "paramName": "blurb", + "paramType": ".google.showcase.v1beta1.Blurb", + "comments": [ + " The blurb to create." + ] + }, + "GetBlurbRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested blurb." + ], + "fieldBehavior": 2 + }, + "UpdateBlurbRequest:blurb": { + "paramName": "blurb", + "paramType": ".google.showcase.v1beta1.Blurb", + "comments": [ + " The blurb to update." + ] + }, + "UpdateBlurbRequest:update_mask": { + "paramName": "update_mask", + "paramType": ".google.protobuf.FieldMask", + "comments": [ + " The field mask to determine wich fields are to be updated. If empty, the", + " server will assume all fields are to be updated." + ] + }, + "DeleteBlurbRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested blurb." + ], + "fieldBehavior": 2 + }, + "ListBlurbsRequest:parent": { + "paramName": "parent", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of the requested room or profile whos blurbs to list." + ], + "fieldBehavior": 2 + }, + "ListBlurbsRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of blurbs to return. Server may return fewer", + " blurbs than requested. If unspecified, server will pick an appropriate", + " default." + ] + }, + "ListBlurbsRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The value of google.showcase.v1beta1.ListBlurbsResponse.next_page_token", + " returned from the previous call to", + " `google.showcase.v1beta1.Messaging\\ListBlurbs` method." + ] + }, + "ListBlurbsResponse:blurbs": { + "paramName": "blurbs", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The list of blurbs." + ] + }, + "ListBlurbsResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " A token to retrieve next page of results.", + " Pass this value in ListBlurbsRequest.page_token field in the subsequent", + " call to `google.showcase.v1beta1.Blurb\\ListBlurbs` method to retrieve", + " the next page of results." + ] + }, + "SearchBlurbsRequest:query": { + "paramName": "query", + "paramType": "TYPE_STRING", + "comments": [ + " The query used to search for blurbs containing to words of this string.", + " Only posts that contain an exact match of a queried word will be returned." + ], + "fieldBehavior": 2 + }, + "SearchBlurbsRequest:parent": { + "paramName": "parent", + "paramType": "TYPE_STRING", + "comments": [ + " The rooms or profiles to search. If unset, `SearchBlurbs` will search all", + " rooms and all profiles." + ] + }, + "SearchBlurbsRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of blurbs return. Server may return fewer", + " blurbs than requested. If unspecified, server will pick an appropriate", + " default." + ] + }, + "SearchBlurbsRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The value of", + " google.showcase.v1beta1.SearchBlurbsResponse.next_page_token", + " returned from the previous call to", + " `google.showcase.v1beta1.Messaging\\SearchBlurbs` method." + ] + }, + "SearchBlurbsMetadata:retry_info": { + "paramName": "retry_info", + "paramType": ".google.rpc.RetryInfo", + "comments": [ + " This signals to the client when to next poll for response." + ] + }, + "SearchBlurbsResponse:blurbs": { + "paramName": "blurbs", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Blurbs that matched the search query." + ] + }, + "SearchBlurbsResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " A token to retrieve next page of results.", + " Pass this value in SearchBlurbsRequest.page_token field in the subsequent", + " call to `google.showcase.v1beta1.Blurb\\SearchBlurbs` method to", + " retrieve the next page of results." + ] + }, + "StreamBlurbsRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The resource name of a chat room or user profile whose blurbs to stream." + ], + "fieldBehavior": 2 + }, + "StreamBlurbsRequest:expire_time": { + "paramName": "expire_time", + "paramType": ".google.protobuf.Timestamp", + "comments": [ + " The time at which this stream will close." + ], + "fieldBehavior": 2 + }, + "StreamBlurbsResponse:blurb": { + "paramName": "blurb", + "paramType": ".google.showcase.v1beta1.Blurb", + "comments": [ + " The blurb that was either created, updated, or deleted." + ] + }, + "StreamBlurbsResponse:action": { + "paramName": "action", + "paramType": ".google.showcase.v1beta1.StreamBlurbsResponse.Action", + "comments": [ + " The action that triggered the blurb to be returned." + ] + }, + "SendBlurbsResponse:names": { + "paramName": "names", + "paramType": "TYPE_STRING[]", + "comments": [ + " The names of successful blurb creations." + ] + }, + "ConnectRequest:config": { + "paramName": "config", + "paramType": ".google.showcase.v1beta1.ConnectRequest.ConnectConfig", + "comments": [ + " Provides information that specifies how to process subsequent requests.", + " The first `ConnectRequest` message must contain a `config` message." + ] + }, + "ConnectRequest:blurb": { + "paramName": "blurb", + "paramType": ".google.showcase.v1beta1.Blurb", + "comments": [ + " The blurb to be created." + ] + }, + "SequenceService": { + "paramName": "", + "paramType": "", + "comments": [] + }, + "SequenceService:CreateSequence": { + "paramName": "", + "paramType": "", + "comments": [ + " Creates a sequence.", + "" + ] + }, + "SequenceService:GetSequenceReport": { + "paramName": "", + "paramType": "", + "comments": [ + " Retrieves a sequence.", + "" + ] + }, + "SequenceService:AttemptSequence": { + "paramName": "", + "paramType": "", + "comments": [ + " Attempts a sequence.", + "" + ] + }, + "Sequence:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [], + "fieldBehavior": 3 + }, + "Sequence:responses": { + "paramName": "responses", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " Sequence of responses to return in order for each attempt. If empty, the", + " default response is an immediate OK." + ] + }, + "SequenceReport:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [], + "fieldBehavior": 3 + }, + "SequenceReport:attempts": { + "paramName": "attempts", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The set of RPC attempts received by the server for a Sequence." + ] + }, + "CreateSequenceRequest:sequence": { + "paramName": "sequence", + "paramType": ".google.showcase.v1beta1.Sequence", + "comments": [] + }, + "AttemptSequenceRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [], + "fieldBehavior": 2 + }, + "GetSequenceReportRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [], + "fieldBehavior": 2 + }, + "Testing": { + "paramName": "", + "paramType": "", + "comments": [ + " A service to facilitate running discrete sets of tests", + " against Showcase." + ] + }, + "Testing:CreateSession": { + "paramName": "", + "paramType": "", + "comments": [ + " Creates a new testing session.", + "" + ] + }, + "Testing:GetSession": { + "paramName": "", + "paramType": "", + "comments": [ + " Gets a testing session.", + "" + ] + }, + "Testing:ListSessions": { + "paramName": "", + "paramType": "", + "comments": [ + " Lists the current test sessions.", + "" + ] + }, + "Testing:DeleteSession": { + "paramName": "", + "paramType": "", + "comments": [ + " Delete a test session.", + "" + ] + }, + "Testing:ReportSession": { + "paramName": "", + "paramType": "", + "comments": [ + " Report on the status of a session.", + " This generates a report detailing which tests have been completed,", + " and an overall rollup.", + "" + ] + }, + "Testing:ListTests": { + "paramName": "", + "paramType": "", + "comments": [ + " List the tests of a sessesion.", + "" + ] + }, + "Testing:DeleteTest": { + "paramName": "", + "paramType": "", + "comments": [ + " Explicitly decline to implement a test.", + "", + " This removes the test from subsequent `ListTests` calls, and", + " attempting to do the test will error.", + "", + " This method will error if attempting to delete a required test.", + "" + ] + }, + "Testing:VerifyTest": { + "paramName": "", + "paramType": "", + "comments": [ + " Register a response to a test.", + "", + " In cases where a test involves registering a final answer at the", + " end of the test, this method provides the means to do so.", + "" + ] + }, + "Session:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the session. The ID must conform to ^[a-z]+$", + " If this is not provided, Showcase chooses one at random." + ] + }, + "Session:version": { + "paramName": "version", + "paramType": ".google.showcase.v1beta1.Session.Version", + "comments": [ + " Required. The version this session is using." + ] + }, + "CreateSessionRequest:session": { + "paramName": "session", + "paramType": ".google.showcase.v1beta1.Session", + "comments": [ + " The session to be created.", + " Sessions are immutable once they are created (although they can", + " be deleted)." + ] + }, + "GetSessionRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The session to be retrieved." + ] + }, + "ListSessionsRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of sessions to return per page." + ] + }, + "ListSessionsRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The page token, for retrieving subsequent pages." + ] + }, + "ListSessionsResponse:sessions": { + "paramName": "sessions", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The sessions being returned." + ] + }, + "ListSessionsResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The next page token, if any.", + " An empty value here means the last page has been reached." + ] + }, + "DeleteSessionRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The session to be deleted." + ] + }, + "ReportSessionRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The session to be reported on." + ] + }, + "ReportSessionResponse:result": { + "paramName": "result", + "paramType": ".google.showcase.v1beta1.ReportSessionResponse.Result", + "comments": [ + " The state of the report." + ] + }, + "ReportSessionResponse:test_runs": { + "paramName": "test_runs", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The test runs of this session." + ] + }, + "Test:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the test.", + " The tests/* portion of the names are hard-coded, and do not change", + " from session to session." + ] + }, + "Test:expectation_level": { + "paramName": "expectation_level", + "paramType": ".google.showcase.v1beta1.Test.ExpectationLevel", + "comments": [ + " The expectation level for this test." + ] + }, + "Test:description": { + "paramName": "description", + "paramType": "TYPE_STRING", + "comments": [ + " A description of the test." + ] + }, + "Test:blueprints": { + "paramName": "blueprints", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The blueprints that will satisfy this test. There may be multiple blueprints", + " that can signal to the server that this test case is being exercised. Although", + " multiple blueprints are specified, only a single blueprint needs to be run to", + " signal that the test case was exercised." + ] + }, + "Issue:type": { + "paramName": "type", + "paramType": ".google.showcase.v1beta1.Issue.Type", + "comments": [ + " The type of the issue." + ] + }, + "Issue:severity": { + "paramName": "severity", + "paramType": ".google.showcase.v1beta1.Issue.Severity", + "comments": [ + " The severity of the issue." + ] + }, + "Issue:description": { + "paramName": "description", + "paramType": "TYPE_STRING", + "comments": [ + " A description of the issue." + ] + }, + "ListTestsRequest:parent": { + "paramName": "parent", + "paramType": "TYPE_STRING", + "comments": [ + " The session." + ] + }, + "ListTestsRequest:page_size": { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of tests to return per page." + ] + }, + "ListTestsRequest:page_token": { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The page token, for retrieving subsequent pages." + ] + }, + "ListTestsResponse:tests": { + "paramName": "tests", + "paramType": "TYPE_MESSAGE[]", + "comments": [ + " The tests being returned." + ] + }, + "ListTestsResponse:next_page_token": { + "paramName": "next_page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The next page token, if any.", + " An empty value here means the last page has been reached." + ] + }, + "TestRun:test": { + "paramName": "test", + "paramType": "TYPE_STRING", + "comments": [ + " The name of the test.", + " The tests/* portion of the names are hard-coded, and do not change", + " from session to session." + ] + }, + "TestRun:issue": { + "paramName": "issue", + "paramType": ".google.showcase.v1beta1.Issue", + "comments": [ + " An issue found with the test run. If empty, this test run was successful." + ] + }, + "DeleteTestRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The test to be deleted." + ] + }, + "VerifyTestRequest:name": { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The test to have an answer registered to it." + ] + }, + "VerifyTestRequest:answer": { + "paramName": "answer", + "paramType": "TYPE_BYTES", + "comments": [ + " The answer from the test." + ] + }, + "VerifyTestRequest:answers": { + "paramName": "answers", + "paramType": "TYPE_BYTES[]", + "comments": [ + " The answers from the test if multiple are to be checked" + ] + }, + "VerifyTestResponse:issue": { + "paramName": "issue", + "paramType": ".google.showcase.v1beta1.Issue", + "comments": [ + " An issue if check answer was unsuccessful. This will be empty if the check answer succeeded." + ] + } + } + }, + "retryableCodeMap": { + "codeEnumMapping": { + "0": "OK", + "1": "CANCELLED", + "2": "UNKNOWN", + "3": "INVALID_ARGUMENT", + "4": "DEADLINE_EXCEEDED", + "5": "NOT_FOUND", + "6": "ALREADY_EXISTS", + "7": "PERMISSION_DENIED", + "8": "RESOURCE_EXHAUSTED", + "9": "FAILED_PRECONDITION", + "10": "ABORTED", + "11": "OUT_OF_RANGE", + "12": "UNIMPLEMENTED", + "13": "INTERNAL", + "14": "UNAVAILABLE", + "15": "DATA_LOSS", + "16": "UNAUTHENTICATED", + "OK": "0", + "CANCELLED": "1", + "UNKNOWN": "2", + "INVALID_ARGUMENT": "3", + "DEADLINE_EXCEEDED": "4", + "NOT_FOUND": "5", + "ALREADY_EXISTS": "6", + "PERMISSION_DENIED": "7", + "RESOURCE_EXHAUSTED": "8", + "FAILED_PRECONDITION": "9", + "ABORTED": "10", + "OUT_OF_RANGE": "11", + "UNIMPLEMENTED": "12", + "INTERNAL": "13", + "UNAVAILABLE": "14", + "DATA_LOSS": "15", + "UNAUTHENTICATED": "16" + }, + "uniqueCodesNamesMap": { + "": "non_idempotent", + "deadline_exceeded_unavailable": "idempotent" + }, + "prettyCodesNamesMap": { + "non_idempotent": [], + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ] + }, + "uniqueParamsNamesMap": { + "94312e9926796a52a8fcbbedaac41972e07ccd1c": "default" + }, + "prettyParamNamesMap": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + } + } + }, + "grpcServiceConfig": {}, + "bundleConfigs": [], + "bundleConfigsMethods": [], + "simpleMethods": [ + { + "inputInterface": ".google.showcase.v1beta1.CreateSessionRequest", + "outputInterface": ".google.showcase.v1beta1.Session", + "comments": [ + " Creates a new testing session.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "CreateSession", + "inputType": ".google.showcase.v1beta1.CreateSessionRequest", + "outputType": ".google.showcase.v1beta1.Session", + "options": { + ".google.api.http": { + "post": "/v1beta1/sessions", + "body": "session", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "session", + "paramType": ".google.showcase.v1beta1.Session", + "comments": [ + " The session to be created.", + " Sessions are immutable once they are created (although they can", + " be deleted)." + ] + } + ], + "headerRequestParams": [] + }, + { + "inputInterface": ".google.showcase.v1beta1.GetSessionRequest", + "outputInterface": ".google.showcase.v1beta1.Session", + "comments": [ + " Gets a testing session.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "GetSession", + "inputType": ".google.showcase.v1beta1.GetSessionRequest", + "outputType": ".google.showcase.v1beta1.Session", + "options": { + ".google.api.http": { + "get": "/v1beta1/{name=sessions/*}", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The session to be retrieved." + ] + } + ], + "headerRequestParams": [ + [ + "name" + ] + ] + }, + { + "inputInterface": ".google.showcase.v1beta1.DeleteSessionRequest", + "outputInterface": ".google.protobuf.Empty", + "comments": [ + " Delete a test session.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "DeleteSession", + "inputType": ".google.showcase.v1beta1.DeleteSessionRequest", + "outputType": ".google.protobuf.Empty", + "options": { + ".google.api.http": { + "delete": "/v1beta1/{name=sessions/*}", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The session to be deleted." + ] + } + ], + "headerRequestParams": [ + [ + "name" + ] + ] + }, + { + "inputInterface": ".google.showcase.v1beta1.ReportSessionRequest", + "outputInterface": ".google.showcase.v1beta1.ReportSessionResponse", + "comments": [ + " Report on the status of a session.", + " This generates a report detailing which tests have been completed,", + " and an overall rollup.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "ReportSession", + "inputType": ".google.showcase.v1beta1.ReportSessionRequest", + "outputType": ".google.showcase.v1beta1.ReportSessionResponse", + "options": { + ".google.api.http": { + "post": "/v1beta1/{name=sessions/*}:report", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The session to be reported on." + ] + } + ], + "headerRequestParams": [ + [ + "name" + ] + ] + }, + { + "inputInterface": ".google.showcase.v1beta1.DeleteTestRequest", + "outputInterface": ".google.protobuf.Empty", + "comments": [ + " Explicitly decline to implement a test.", + "", + " This removes the test from subsequent `ListTests` calls, and", + " attempting to do the test will error.", + "", + " This method will error if attempting to delete a required test.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "DeleteTest", + "inputType": ".google.showcase.v1beta1.DeleteTestRequest", + "outputType": ".google.protobuf.Empty", + "options": { + ".google.api.http": { + "delete": "/v1beta1/{name=sessions/*/tests/*}", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The test to be deleted." + ] + } + ], + "headerRequestParams": [ + [ + "name" + ] + ] + }, + { + "inputInterface": ".google.showcase.v1beta1.VerifyTestRequest", + "outputInterface": ".google.showcase.v1beta1.VerifyTestResponse", + "comments": [ + " Register a response to a test.", + "", + " In cases where a test involves registering a final answer at the", + " end of the test, this method provides the means to do so.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "VerifyTest", + "inputType": ".google.showcase.v1beta1.VerifyTestRequest", + "outputType": ".google.showcase.v1beta1.VerifyTestResponse", + "options": { + ".google.api.http": { + "post": "/v1beta1/{name=sessions/*/tests/*}:check", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "name", + "paramType": "TYPE_STRING", + "comments": [ + " The test to have an answer registered to it." + ] + }, + { + "paramName": "answer", + "paramType": "TYPE_BYTES", + "comments": [ + " The answer from the test." + ] + }, + { + "paramName": "answers", + "paramType": "TYPE_BYTES[]", + "comments": [ + " The answers from the test if multiple are to be checked" + ] + } + ], + "headerRequestParams": [ + [ + "name" + ] + ] + } + ], + "longRunning": [], + "diregapicLRO": [], + "streaming": [], + "clientStreaming": [], + "serverStreaming": [], + "bidiStreaming": [], + "paging": [ + { + "pagingFieldName": "sessions", + "pagingResponseType": ".google.showcase.v1beta1.Session", + "inputInterface": ".google.showcase.v1beta1.ListSessionsRequest", + "outputInterface": ".google.showcase.v1beta1.ListSessionsResponse", + "comments": [ + " Lists the current test sessions.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "ListSessions", + "inputType": ".google.showcase.v1beta1.ListSessionsRequest", + "outputType": ".google.showcase.v1beta1.ListSessionsResponse", + "options": { + ".google.api.http": { + "get": "/v1beta1/sessions", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of sessions to return per page." + ] + }, + { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The page token, for retrieving subsequent pages." + ] + } + ], + "headerRequestParams": [] + }, + { + "pagingFieldName": "tests", + "pagingResponseType": ".google.showcase.v1beta1.Test", + "inputInterface": ".google.showcase.v1beta1.ListTestsRequest", + "outputInterface": ".google.showcase.v1beta1.ListTestsResponse", + "comments": [ + " List the tests of a sessesion.", + "" + ], + "methodConfig": {}, + "retryableCodesName": "non_idempotent", + "retryParamsName": "default", + "name": "ListTests", + "inputType": ".google.showcase.v1beta1.ListTestsRequest", + "outputType": ".google.showcase.v1beta1.ListTestsResponse", + "options": { + ".google.api.http": { + "get": "/v1beta1/{parent=sessions/*}/tests", + "additionalBindings": [] + } + }, + "paramComment": [ + { + "paramName": "parent", + "paramType": "TYPE_STRING", + "comments": [ + " The session." + ] + }, + { + "paramName": "page_size", + "paramType": "TYPE_INT32", + "comments": [ + " The maximum number of tests to return per page." + ] + }, + { + "paramName": "page_token", + "paramType": "TYPE_STRING", + "comments": [ + " The page token, for retrieving subsequent pages." + ] + } + ], + "headerRequestParams": [ + [ + "parent" + ] + ] + } + ], + "hostname": "localhost", + "port": 7469, + "oauthScopes": [], + "pathTemplates": [ + { + "name": "Blueprint", + "params": [ + "session", + "test", + "blueprint" + ], + "type": "showcase.googleapis.com/Blueprint", + "pattern": [ + "sessions/{session}/tests/{test}/blueprints/{blueprint}" + ] + }, + { + "name": "Room", + "params": [ + "room" + ], + "type": "showcase.googleapis.com/Room", + "pattern": [ + "rooms/{room}" + ] + }, + { + "name": "room_blurb", + "params": [ + "room", + "blurb" + ], + "pattern": [ + "rooms/{room}/blurbs/{blurb}" + ], + "type": "showcase.googleapis.com/Blurb" + }, + { + "name": "room_blurbs_legacy_room_blurb", + "params": [ + "room", + "legacy_room", + "blurb" + ], + "pattern": [ + "rooms/{room}/blurbs/legacy/{legacy_room}.{blurb}" + ], + "type": "showcase.googleapis.com/Blurb" + }, + { + "name": "Sequence", + "params": [ + "sequence" + ], + "type": "showcase.googleapis.com/Sequence", + "pattern": [ + "sequences/{sequence}" + ] + }, + { + "name": "SequenceReport", + "params": [ + "sequence" + ], + "type": "showcase.googleapis.com/SequenceReport", + "pattern": [ + "sequences/{sequence}/sequenceReport" + ] + }, + { + "name": "Session", + "params": [ + "session" + ], + "type": "showcase.googleapis.com/Session", + "pattern": [ + "sessions/{session}" + ] + }, + { + "name": "Test", + "params": [ + "session", + "test" + ], + "type": "showcase.googleapis.com/Test", + "pattern": [ + "sessions/{session}/tests/{test}" + ] + }, + { + "name": "User", + "params": [ + "user" + ], + "type": "showcase.googleapis.com/User", + "pattern": [ + "users/{user}" + ] + }, + { + "name": "user_profile_blurb", + "params": [ + "user", + "blurb" + ], + "pattern": [ + "users/{user}/profile/blurbs/{blurb}" + ], + "type": "showcase.googleapis.com/Blurb" + }, + { + "name": "user_profile_blurbs_legacy_user_blurb", + "params": [ + "user", + "legacy_user", + "blurb" + ], + "pattern": [ + "users/{user}/profile/blurbs/legacy/{legacy_user}~{blurb}" + ], + "type": "showcase.googleapis.com/Blurb" + } + ] + } + ], + "diregapic": false, + "handwrittenLayer": false, + "legacyProtoLoad": false +} diff --git a/baselines/showcase-api-dump/protos/google/cloud/common_resources.proto.baseline b/baselines/showcase-api-dump/protos/google/cloud/common_resources.proto.baseline new file mode 100755 index 000000000..a2f46cea3 --- /dev/null +++ b/baselines/showcase-api-dump/protos/google/cloud/common_resources.proto.baseline @@ -0,0 +1,52 @@ +// Copyright 2020 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// This file contains stub messages for common resources in GCP. +// It is not intended to be directly generated, and is instead used by +// other tooling to be able to match common resource patterns. +syntax = "proto3"; + +package google.cloud; + +import "google/api/resource.proto"; + + +option (google.api.resource_definition) = { + type: "cloudresourcemanager.googleapis.com/Project" + pattern: "projects/{project}" +}; + + +option (google.api.resource_definition) = { + type: "cloudresourcemanager.googleapis.com/Organization" + pattern: "organizations/{organization}" +}; + + +option (google.api.resource_definition) = { + type: "cloudresourcemanager.googleapis.com/Folder" + pattern: "folders/{folder}" +}; + + +option (google.api.resource_definition) = { + type: "cloudbilling.googleapis.com/BillingAccount" + pattern: "billingAccounts/{billing_account}" +}; + +option (google.api.resource_definition) = { + type: "locations.googleapis.com/Location" + pattern: "projects/{project}/locations/{location}" +}; + diff --git a/baselines/showcase-api-dump/protos/google/showcase/v1beta1/compliance.proto.baseline b/baselines/showcase-api-dump/protos/google/showcase/v1beta1/compliance.proto.baseline new file mode 100755 index 000000000..9b6c0b7d7 --- /dev/null +++ b/baselines/showcase-api-dump/protos/google/showcase/v1beta1/compliance.proto.baseline @@ -0,0 +1,269 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; + +package google.showcase.v1beta1; + +option go_package = "github.com/googleapis/gapic-showcase/server/genproto"; +option java_package = "com.google.showcase.v1beta1"; +option java_multiple_files = true; +option ruby_package = "Google::Showcase::V1beta1"; + +// This service is used to test that GAPICs implement various REST-related features correctly. This mostly means transcoding proto3 requests to REST format +// correctly for various types of HTTP annotations, but it also includes verifying that unknown (numeric) enums received by clients can be round-tripped +// correctly. +service Compliance { + // This service is meant to only run locally on the port 7469 (keypad digits + // for "show"). + option (google.api.default_host) = "localhost:7469"; + + // This method echoes the ComplianceData request. This method exercises + // sending the entire request object in the REST body. + rpc RepeatDataBody(RepeatRequest) returns (RepeatResponse) { + option (google.api.http) = { + post: "/v1beta1/repeat:body" + body: "*" + }; + } + + // This method echoes the ComplianceData request. This method exercises + // sending the a message-type field in the REST body. Per AIP-127, only + // top-level, non-repeated fields can be sent this way. + rpc RepeatDataBodyInfo(RepeatRequest) returns (RepeatResponse) { + option (google.api.http) = { + post: "/v1beta1/repeat:bodyinfo" + body: "info" + }; + } + + // This method echoes the ComplianceData request. This method exercises + // sending all request fields as query parameters. + rpc RepeatDataQuery(RepeatRequest) returns (RepeatResponse) { + option (google.api.http) = { + get: "/v1beta1/repeat:query" + }; + } + + // This method echoes the ComplianceData request. This method exercises + // sending some parameters as "simple" path variables (i.e., of the form + // "/bar/{foo}" rather than "/{foo=bar/*}"), and the rest as query parameters. + rpc RepeatDataSimplePath(RepeatRequest) returns (RepeatResponse) { + option (google.api.http) = { + get: "/v1beta1/repeat/{info.f_string}/{info.f_int32}/{info.f_double}/{info.f_bool}/{info.f_kingdom}:simplepath" + }; + } + + // Same as RepeatDataSimplePath, but with a path resource. + rpc RepeatDataPathResource(RepeatRequest) returns (RepeatResponse) { + option (google.api.http) = { + get: "/v1beta1/repeat/{info.f_string=first/*}/{info.f_child.f_string=second/*}/bool/{info.f_bool}:pathresource" + additional_bindings { + get: "/v1beta1/repeat/{info.f_child.f_string=first/*}/{info.f_string=second/*}/bool/{info.f_bool}:childfirstpathresource" + } + }; + } + + // Same as RepeatDataSimplePath, but with a trailing resource. + rpc RepeatDataPathTrailingResource(RepeatRequest) returns (RepeatResponse) { + option (google.api.http) = { + get: "/v1beta1/repeat/{info.f_string=first/*}/{info.f_child.f_string=second/**}:pathtrailingresource" + }; + } + + // This method echoes the ComplianceData request, using the HTTP PUT method. + rpc RepeatDataBodyPut(RepeatRequest) returns (RepeatResponse) { + option (google.api.http) = { + put: "/v1beta1/repeat:bodyput" + body: "*" + }; + } + + // This method echoes the ComplianceData request, using the HTTP PATCH method. + rpc RepeatDataBodyPatch(RepeatRequest) returns (RepeatResponse) { + option (google.api.http) = { + patch: "/v1beta1/repeat:bodypatch" + body: "*" + }; + } + + // This method requests an enum value from the server. Depending on the contents of EnumRequest, the enum value returned will be a known enum declared in the + // .proto file, or a made-up enum value the is unknown to the client. To verify that clients can round-trip unknown enum vaues they receive, use the + // response from this RPC as the request to VerifyEnum() + // + // The values of enums sent by the server when a known or unknown value is requested will be the same within a single Showcase server run (this is needed for + // VerifyEnum() to work) but are not guaranteed to be the same across separate Showcase server runs. + rpc GetEnum(EnumRequest) returns (EnumResponse) { + option (google.api.http) = { + get: "/v1beta1/compliance/enum" + }; + } + + // This method is used to verify that clients can round-trip enum values, which is particularly important for unknown enum values over REST. VerifyEnum() + // verifies that its request, which is presumably the response that the client previously got to a GetEnum(), contains the correct data. If so, it responds + // with the same EnumResponse; otherwise, the RPC errors. + // + // This works because the values of enums sent by the server when a known or unknown value is requested will be the same within a single Showcase server run, + // although they are not guaranteed to be the same across separate Showcase server runs. + rpc VerifyEnum(EnumResponse) returns (EnumResponse) { + option (google.api.http) = { + post: "/v1beta1/compliance/enum" + }; + } + +} + +message RepeatRequest { + string name = 1; + ComplianceData info = 2; + + // If true, the server will verify that the received request matches + // the request with the same name in the compliance test suite. + bool server_verify = 3; + + // The URI template this request is expected to be bound to server-side. + optional string intended_binding_uri = 10; + + // Some top level fields, to test that these are encoded correctly + // in query params. + int32 f_int32 = 4; + int64 f_int64 = 5; + double f_double = 6; + + optional int32 p_int32 = 7; + optional int64 p_int64 = 8; + optional double p_double = 9; +} + +message RepeatResponse { + RepeatRequest request = 1; + + // The URI template the request was bound to server-side. + string binding_uri = 2; +} + +// ComplianceSuite contains a set of requests that microgenerators should issue +// over REST to the Compliance service to test their gRPC-to-REST transcoding +// implementation. +message ComplianceSuite { + repeated ComplianceGroup group = 1; +} + +// ComplianceGroups encapsulates a group of RPC requests to the Compliance +// server: one request for each combination of elements of `rpcs` and of +// `requests`. +message ComplianceGroup { + string name = 1; + repeated string rpcs = 2; + repeated RepeatRequest requests = 3; +} + +// ComplianceData is a message used for testing REST transcoding of +// different data types. +message ComplianceData { + enum LifeKingdom { + LIFE_KINGDOM_UNSPECIFIED = 0; + ARCHAEBACTERIA = 1; + EUBACTERIA = 2; + PROTISTA = 3; + FUNGI = 4; + PLANTAE = 5; + ANIMALIA = 6; +} + // scalar types + + string f_string = 1; + + int32 f_int32 = 2; + sint32 f_sint32 = 3; + sfixed32 f_sfixed32 = 4; + + uint32 f_uint32 = 5; + fixed32 f_fixed32 = 6; + + int64 f_int64 = 7; + sint64 f_sint64 = 8; + sfixed64 f_sfixed64 = 9; + + uint64 f_uint64 = 10; + fixed64 f_fixed64 = 11; + + double f_double = 12; + float f_float = 13; + + bool f_bool = 14; + + bytes f_bytes = 15; + + LifeKingdom f_kingdom = 22; + + ComplianceDataChild f_child = 16; + + // optional fields + + optional string p_string = 17; + optional int32 p_int32 = 18; + optional double p_double = 19; + optional bool p_bool = 20; + optional LifeKingdom p_kingdom = 23; + optional ComplianceDataChild p_child = 21; +} + +message ComplianceDataChild { + string f_string = 1; + float f_float = 2; + double f_double = 3; + bool f_bool = 4; + Continent f_continent = 11; + ComplianceDataGrandchild f_child = 5; + + optional string p_string = 6; + optional float p_float = 7; + optional double p_double = 8; + optional bool p_bool = 9; + Continent p_continent = 12; + optional ComplianceDataGrandchild p_child = 10; +} + +message ComplianceDataGrandchild { + string f_string = 1; + double f_double = 2; + bool f_bool = 3; +} + +enum Continent { + CONTINENT_UNSPECIFIED = 0; + AFRICA = 1; + AMERICA = 2; + ANTARTICA = 3; + AUSTRALIA = 4; + EUROPE = 5; +} + + +message EnumRequest { + // Whether the client is requesting a new, unknown enum value or a known enum value already declard in this proto file. + bool unknown_enum = 1; +} + +message EnumResponse { + // The original request for a known or unknown enum from the server. + EnumRequest request = 1; + + // The actual enum the server provided. + Continent continent = 2; +} diff --git a/baselines/showcase-api-dump/protos/google/showcase/v1beta1/echo.proto.baseline b/baselines/showcase-api-dump/protos/google/showcase/v1beta1/echo.proto.baseline new file mode 100755 index 000000000..1b1b160f0 --- /dev/null +++ b/baselines/showcase-api-dump/protos/google/showcase/v1beta1/echo.proto.baseline @@ -0,0 +1,322 @@ +// Copyright 2018 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/routing.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; + +package google.showcase.v1beta1; + +option go_package = "github.com/googleapis/gapic-showcase/server/genproto"; +option java_package = "com.google.showcase.v1beta1"; +option java_multiple_files = true; +option ruby_package = "Google::Showcase::V1beta1"; + +// This service is used showcase the four main types of rpcs - unary, server +// side streaming, client side streaming, and bidirectional streaming. This +// service also exposes methods that explicitly implement server delay, and +// paginated calls. Set the 'showcase-trailer' metadata key on any method +// to have the values echoed in the response trailers. Set the +// 'x-goog-request-params' metadata key on any method to have the values +// echoed in the response headers. +service Echo { + // This service is meant to only run locally on the port 7469 (keypad digits + // for "show"). + option (google.api.default_host) = "localhost:7469"; + + // This method simply echoes the request. This method showcases unary RPCs. + rpc Echo(EchoRequest) returns (EchoResponse) { + option (google.api.http) = { + post: "/v1beta1/echo:echo" + body: "*" + }; + option (google.api.routing) = { + routing_parameters{ + field: "header" + } + routing_parameters{ + field: "header" + path_template: "{routing_id=**}" + } + routing_parameters{ + field: "header" + path_template: "{table_name=regions/*/zones/*/**}" + } + routing_parameters{ + field: "header" + path_template: "{super_id=projects/*}/**" + } + routing_parameters{ + field: "header" + path_template: "{table_name=projects/*/instances/*/**}" + } + routing_parameters{ + field: "header" + path_template: "projects/*/{instance_id=instances/*}/**" + } + routing_parameters{ + field: "other_header" + path_template: "{baz=**}" + } + routing_parameters{ + field: "other_header" + path_template: "{qux=projects/*}/**" + } + }; + } + + // This method splits the given content into words and will pass each word back + // through the stream. This method showcases server-side streaming RPCs. + rpc Expand(ExpandRequest) returns (stream EchoResponse) { + option (google.api.http) = { + post: "/v1beta1/echo:expand" + body: "*" + }; + // TODO(landrito): change this to be `fields: ["content", "error"]` once + // github.com/dcodeIO/protobuf.js/issues/1094 has been resolved. + option (google.api.method_signature) = "content,error"; + } + + // This method will collect the words given to it. When the stream is closed + // by the client, this method will return the a concatenation of the strings + // passed to it. This method showcases client-side streaming RPCs. + rpc Collect(stream EchoRequest) returns (EchoResponse) { + option (google.api.http) = { + post: "/v1beta1/echo:collect" + body: "*" + }; + } + + // This method, upon receiving a request on the stream, will pass the same + // content back on the stream. This method showcases bidirectional + // streaming RPCs. + rpc Chat(stream EchoRequest) returns (stream EchoResponse); + + // This is similar to the Expand method but instead of returning a stream of + // expanded words, this method returns a paged list of expanded words. + rpc PagedExpand(PagedExpandRequest) returns (PagedExpandResponse) { + option (google.api.http) = { + post: "/v1beta1/echo:pagedExpand" + body: "*" + }; + } + + // This is similar to the PagedExpand except that it uses + // max_results instead of page_size, as some legacy APIs still + // do. New APIs should NOT use this pattern. + rpc PagedExpandLegacy(PagedExpandLegacyRequest) returns (PagedExpandResponse) { + option (google.api.http) = { + post: "/v1beta1/echo:pagedExpandLegacy" + body: "*" + }; + } + + // This method returns a map containing lists of words that appear in the input, keyed by their + // initial character. The only words returned are the ones included in the current page, + // as determined by page_token and page_size, which both refer to the word indices in the + // input. This paging result consisting of a map of lists is a pattern used by some legacy + // APIs. New APIs should NOT use this pattern. + rpc PagedExpandLegacyMapped(PagedExpandRequest) returns (PagedExpandLegacyMappedResponse) { + option (google.api.http) = { + post: "/v1beta1/echo:pagedExpandLegacyMapped" + body: "*" + }; + } + + // This method will wait for the requested amount of time and then return. + // This method showcases how a client handles a request timeout. + rpc Wait(WaitRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/echo:wait" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "WaitResponse" + metadata_type: "WaitMetadata" + }; + } + + // This method will block (wait) for the requested amount of time + // and then return the response or error. + // This method showcases how a client handles delays or retries. + rpc Block(BlockRequest) returns (BlockResponse) { + option (google.api.http) = { + post: "/v1beta1/echo:block" + body: "*" + }; + }; +} + +// A severity enum used to test enum capabilities in GAPIC surfaces. +enum Severity { + UNNECESSARY = 0; + NECESSARY = 1; + URGENT = 2; + CRITICAL = 3; +} + + +// The request message used for the Echo, Collect and Chat methods. +// If content or opt are set in this message then the request will succeed. +// If status is set in this message then the status will be returned as an +// error. +message EchoRequest { + oneof response { + // The content to be echoed by the server. + string content = 1; + + // The error to be thrown by the server. + google.rpc.Status error = 2; + } + + // The severity to be echoed by the server. + Severity severity = 3; + + // Optional. This field can be set to test the routing annotation on the Echo method. + string header = 4; + + // Optional. This field can be set to test the routing annotation on the Echo method. + string other_header = 5; +} + +// The response message for the Echo methods. +message EchoResponse { + // The content specified in the request. + string content = 1; + + // The severity specified in the request. + Severity severity = 2; +} + +// The request message for the Expand method. +message ExpandRequest { + // The content that will be split into words and returned on the stream. + string content = 1; + + // The error that is thrown after all words are sent on the stream. + google.rpc.Status error = 2; +} + +// The request for the PagedExpand method. +message PagedExpandRequest { + // The string to expand. + string content = 1 [(google.api.field_behavior) = REQUIRED]; + + // The number of words to returned in each page. + int32 page_size = 2; + + // The position of the page to be returned. + string page_token = 3; +} + +// The request for the PagedExpandLegacy method. This is a pattern used by some legacy APIs. New +// APIs should NOT use this pattern, but rather something like PagedExpandRequest which conforms to +// aip.dev/158. +message PagedExpandLegacyRequest { + // The string to expand. + string content = 1 [(google.api.field_behavior) = REQUIRED]; + + // The number of words to returned in each page. + // (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that + // violates aip.dev/158. Ordinarily, this should be page_size. --) + int32 max_results = 2; + + // The position of the page to be returned. + string page_token = 3; +} + +// The response for the PagedExpand method. +message PagedExpandResponse { + // The words that were expanded. + repeated EchoResponse responses = 1; + + // The next page token. + string next_page_token = 2; +} + +// A list of words. +message PagedExpandResponseList { + repeated string words = 1; +} + +message PagedExpandLegacyMappedResponse { + // The words that were expanded, indexed by their initial character. + // (-- aip.dev/not-precedent: This is a legacy, non-standard pattern that violates + // aip.dev/158. Ordinarily, this should be a `repeated` field, as in PagedExpandResponse. --) + map alphabetized = 1; + + // The next page token. + string next_page_token = 2; +} + +// The request for Wait method. +message WaitRequest { + oneof end { + // The time that this operation will complete. + google.protobuf.Timestamp end_time = 1; + + // The duration of this operation. + google.protobuf.Duration ttl = 4; + } + + oneof response { + // The error that will be returned by the server. If this code is specified + // to be the OK rpc code, an empty response will be returned. + google.rpc.Status error = 2; + + // The response to be returned on operation completion. + WaitResponse success = 3; + } +} + +// The result of the Wait operation. +message WaitResponse { + // This content of the result. + string content = 1; +} + +// The metadata for Wait operation. +message WaitMetadata { + // The time that this operation will complete. + google.protobuf.Timestamp end_time =1; +} + +// The request for Block method. +message BlockRequest { + // The amount of time to block before returning a response. + google.protobuf.Duration response_delay = 1; + + oneof response { + // The error that will be returned by the server. If this code is specified + // to be the OK rpc code, an empty response will be returned. + google.rpc.Status error = 2; + + // The response to be returned that will signify successful method call. + BlockResponse success = 3; + } +} + +// The response for Block method. +message BlockResponse { + // This content can contain anything, the server will not depend on a value + // here. + string content = 1; +} diff --git a/baselines/showcase-api-dump/protos/google/showcase/v1beta1/identity.proto.baseline b/baselines/showcase-api-dump/protos/google/showcase/v1beta1/identity.proto.baseline new file mode 100755 index 000000000..569c604d7 --- /dev/null +++ b/baselines/showcase-api-dump/protos/google/showcase/v1beta1/identity.proto.baseline @@ -0,0 +1,186 @@ +// Copyright 2018 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +package google.showcase.v1beta1; + +option go_package = "github.com/googleapis/gapic-showcase/server/genproto"; +option java_package = "com.google.showcase.v1beta1"; +option java_multiple_files = true; +option ruby_package = "Google::Showcase::V1beta1"; + +// A simple identity service. +service Identity { + // This service is meant to only run locally on the port 7469 (keypad digits + // for "show"). + option (google.api.default_host) = "localhost:7469"; + + // Creates a user. + rpc CreateUser(CreateUserRequest) returns (User) { + option (google.api.http) = { + post: "/v1beta1/users" + body: "*" + }; + option (google.api.method_signature) = "user.display_name,user.email"; + option (google.api.method_signature) = + "user.display_name,user.email,user.age,user.nickname,user.enable_notifications,user.height_feet"; + } + + // Retrieves the User with the given uri. + rpc GetUser(GetUserRequest) returns (User) { + option (google.api.http) = { + get: "/v1beta1/{name=users/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates a user. + rpc UpdateUser(UpdateUserRequest) returns (User) { + option (google.api.http) = { + patch: "/v1beta1/{user.name=users/*}" + body: "user" + }; + } + + // Deletes a user, their profile, and all of their authored messages. + rpc DeleteUser(DeleteUserRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1beta1/{name=users/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists all users. + rpc ListUsers(ListUsersRequest) returns (ListUsersResponse) { + option (google.api.http) = { + get: "/v1beta1/users" + }; + } +} + +// A user. +message User { + option (google.api.resource) = { + type: "showcase.googleapis.com/User" + pattern: "users/{user}" + }; + + // The resource name of the user. + string name = 1; + + // The display_name of the user. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // The email address of the user. + string email = 3 [(google.api.field_behavior) = REQUIRED]; + + // The timestamp at which the user was created. + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The latest timestamp at which the user was updated. + google.protobuf.Timestamp update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The age of the user in years. + optional int32 age = 6; + + // The height of the user in feet. + optional double height_feet = 7; + + // The nickname of the user. + // + // (-- aip.dev/not-precedent: An empty string is a valid nickname. + // Ordinarily, proto3_optional should not be used on a `string` field. --) + optional string nickname = 8; + + // Enables the receiving of notifications. The default is true if unset. + // + // (-- aip.dev/not-precedent: The default for the feature is true. + // Ordinarily, the default for a `bool` field should be false. --) + optional bool enable_notifications = 9; +} + +// The request message for the google.showcase.v1beta1.Identity\CreateUser +// method. +message CreateUserRequest { + // The user to create. + User user = 1; +} + +// The request message for the google.showcase.v1beta1.Identity\GetUser +// method. +message GetUserRequest { + // The resource name of the requested user. + string name = 1 [ + (google.api.resource_reference).type = "showcase.googleapis.com/User", + (google.api.field_behavior) = REQUIRED + ]; +} + +// The request message for the google.showcase.v1beta1.Identity\UpdateUser +// method. +message UpdateUserRequest { + // The user to update. + User user = 1; + + // The field mask to determine which fields are to be updated. If empty, the + // server will assume all fields are to be updated. + google.protobuf.FieldMask update_mask = 2; +} + +// The request message for the google.showcase.v1beta1.Identity\DeleteUser +// method. +message DeleteUserRequest { + // The resource name of the user to delete. + string name = 1 [ + (google.api.resource_reference).type = "showcase.googleapis.com/User", + (google.api.field_behavior) = REQUIRED + ]; +} + +// The request message for the google.showcase.v1beta1.Identity\ListUsers +// method. +message ListUsersRequest { + // The maximum number of users to return. Server may return fewer users + // than requested. If unspecified, server will pick an appropriate default. + int32 page_size = 1; + + // The value of google.showcase.v1beta1.ListUsersResponse.next_page_token + // returned from the previous call to + // `google.showcase.v1beta1.Identity\ListUsers` method. + string page_token = 2; +} + +// The response message for the google.showcase.v1beta1.Identity\ListUsers +// method. +message ListUsersResponse { + // The list of users. + repeated User users = 1; + + // A token to retrieve next page of results. + // Pass this value in ListUsersRequest.page_token field in the subsequent + // call to `google.showcase.v1beta1.Message\ListUsers` method to retrieve the + // next page of results. + string next_page_token = 2; +} diff --git a/baselines/showcase-api-dump/protos/google/showcase/v1beta1/messaging.proto.baseline b/baselines/showcase-api-dump/protos/google/showcase/v1beta1/messaging.proto.baseline new file mode 100755 index 000000000..62196dfce --- /dev/null +++ b/baselines/showcase-api-dump/protos/google/showcase/v1beta1/messaging.proto.baseline @@ -0,0 +1,520 @@ +// Copyright 2018 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/error_details.proto"; + +package google.showcase.v1beta1; + +option go_package = "github.com/googleapis/gapic-showcase/server/genproto"; +option java_package = "com.google.showcase.v1beta1"; +option java_multiple_files = true; +option ruby_package = "Google::Showcase::V1beta1"; + +// A simple messaging service that implements chat rooms and profile posts. +// +// This messaging service showcases the features that API clients +// generated by gapic-generators implement. +service Messaging { + // This service is meant to only run locally on the port 7469 (keypad digits + // for "show"). + option (google.api.default_host) = "localhost:7469"; + + // Creates a room. + rpc CreateRoom(CreateRoomRequest) returns (Room) { + option (google.api.http) = { + post: "/v1beta1/rooms" + body: "*" + }; + option (google.api.method_signature) = "room.display_name,room.description"; + } + + // Retrieves the Room with the given resource name. + rpc GetRoom(GetRoomRequest) returns (Room) { + option (google.api.http) = { + get: "/v1beta1/{name=rooms/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates a room. + rpc UpdateRoom(UpdateRoomRequest) returns (Room) { + option (google.api.http) = { + patch: "/v1beta1/{room.name=rooms/*}" + body: "room" + }; + } + + // Deletes a room and all of its blurbs. + rpc DeleteRoom(DeleteRoomRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1beta1/{name=rooms/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists all chat rooms. + rpc ListRooms(ListRoomsRequest) returns (ListRoomsResponse) { + option (google.api.http) = { + get: "/v1beta1/rooms" + }; + } + + // Creates a blurb. If the parent is a room, the blurb is understood to be a + // message in that room. If the parent is a profile, the blurb is understood + // to be a post on the profile. + rpc CreateBlurb(CreateBlurbRequest) returns (Blurb) { + option (google.api.http) = { + post: "/v1beta1/{parent=rooms/*}/blurbs" + body: "*" + additional_bindings: { + post: "/v1beta1/{parent=users/*/profile}/blurbs" + body: "*" + } + }; + option (google.api.method_signature) = "parent,blurb.user,blurb.text"; + option (google.api.method_signature) = "parent,blurb.user,blurb.image"; + } + + // Retrieves the Blurb with the given resource name. + rpc GetBlurb(GetBlurbRequest) returns (Blurb) { + option (google.api.http) = { + get: "/v1beta1/{name=rooms/*/blurbs/*}" + additional_bindings: { get: "/v1beta1/{name=users/*/profile/blurbs/*}" } + }; + option (google.api.method_signature) = "name"; + } + + // Updates a blurb. + rpc UpdateBlurb(UpdateBlurbRequest) returns (Blurb) { + option (google.api.http) = { + patch: "/v1beta1/{blurb.name=rooms/*/blurbs/*}" + body: "blurb" + additional_bindings: { + patch: "/v1beta1/{blurb.name=users/*/profile/blurbs/*}" + body: "blurb" + } + }; + } + + // Deletes a blurb. + rpc DeleteBlurb(DeleteBlurbRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1beta1/{name=rooms/*/blurbs/*}" + additional_bindings: { + delete: "/v1beta1/{name=users/*/profile/blurbs/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Lists blurbs for a specific chat room or user profile depending on the + // parent resource name. + rpc ListBlurbs(ListBlurbsRequest) returns (ListBlurbsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=rooms/*}/blurbs" + additional_bindings: { get: "/v1beta1/{parent=users/*/profile}/blurbs" } + }; + option (google.api.method_signature) = "parent"; + } + + // This method searches through all blurbs across all rooms and profiles + // for blurbs containing to words found in the query. Only posts that + // contain an exact match of a queried word will be returned. + rpc SearchBlurbs(SearchBlurbsRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{parent=rooms/*}/blurbs:search" + body: "*" + additional_bindings: { + post: "/v1beta1/{parent=users/*/profile}/blurbs:search" + } + }; + option (google.longrunning.operation_info) = { + response_type: "SearchBlurbsResponse" + metadata_type: "SearchBlurbsMetadata" + }; + option (google.api.method_signature) = "parent,query"; + } + + // This returns a stream that emits the blurbs that are created for a + // particular chat room or user profile. + rpc StreamBlurbs(StreamBlurbsRequest) returns (stream StreamBlurbsResponse) { + option (google.api.http) = { + post: "/v1beta1/{name=rooms/*}/blurbs:stream" + body: "*" + additional_bindings: { + post: "/v1beta1/{name=users/*/profile}/blurbs:stream" + body: "*" + } + }; + } + + // This is a stream to create multiple blurbs. If an invalid blurb is + // requested to be created, the stream will close with an error. + rpc SendBlurbs(stream CreateBlurbRequest) returns (SendBlurbsResponse) { + option (google.api.http) = { + post: "/v1beta1/{parent=rooms/*}/blurbs:send" + body: "*" + additional_bindings: { + post: "/v1beta1/{parent=users/*/profile}/blurbs:send" + body: "*" + } + }; + } + + // This method starts a bidirectional stream that receives all blurbs that + // are being created after the stream has started and sends requests to create + // blurbs. If an invalid blurb is requested to be created, the stream will + // close with an error. + rpc Connect(stream ConnectRequest) returns (stream StreamBlurbsResponse); +} + +// A chat room. +message Room { + option (google.api.resource) = { + type: "showcase.googleapis.com/Room" + pattern: "rooms/{room}" + }; + + // The resource name of the chat room. + string name = 1; + + // The human readable name of the chat room. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // The description of the chat room. + string description = 3; + + // The timestamp at which the room was created. + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The latest timestamp at which the room was updated. + google.protobuf.Timestamp update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The request message for the google.showcase.v1beta1.Messaging\CreateRoom +// method. +message CreateRoomRequest { + // The room to create. + Room room = 1; +} + +// The request message for the google.showcase.v1beta1.Messaging\GetRoom +// method. +message GetRoomRequest { + // The resource name of the requested room. + string name = 1 [ + (google.api.resource_reference).type = "showcase.googleapis.com/Room", + (google.api.field_behavior) = REQUIRED + ]; +} + +// The request message for the google.showcase.v1beta1.Messaging\UpdateRoom +// method. +message UpdateRoomRequest { + // The room to update. + Room room = 1; + + // The field mask to determine which fields are to be updated. If empty, the + // server will assume all fields are to be updated. + google.protobuf.FieldMask update_mask = 2; +} + +// The request message for the google.showcase.v1beta1.Messaging\DeleteRoom +// method. +message DeleteRoomRequest { + // The resource name of the requested room. + string name = 1 [ + (google.api.resource_reference).type = "showcase.googleapis.com/Room", + (google.api.field_behavior) = REQUIRED + ]; +} + +// The request message for the google.showcase.v1beta1.Messaging\ListRooms +// method. +message ListRoomsRequest { + // The maximum number of rooms return. Server may return fewer rooms + // than requested. If unspecified, server will pick an appropriate default. + int32 page_size = 1; + + // The value of google.showcase.v1beta1.ListRoomsResponse.next_page_token + // returned from the previous call to + // `google.showcase.v1beta1.Messaging\ListRooms` method. + string page_token = 2; +} + +// The response message for the google.showcase.v1beta1.Messaging\ListRooms +// method. +message ListRoomsResponse { + // The list of rooms. + repeated Room rooms = 1; + + // A token to retrieve next page of results. + // Pass this value in ListRoomsRequest.page_token field in the subsequent + // call to `google.showcase.v1beta1.Messaging\ListRooms` method to retrieve + // the next page of results. + string next_page_token = 2; +} + +// This protocol buffer message represents a blurb sent to a chat room or +// posted on a user profile. +message Blurb { + option (google.api.resource) = { + type: "showcase.googleapis.com/Blurb" + pattern: "users/{user}/profile/blurbs/legacy/{legacy_user}~{blurb}" + pattern: "users/{user}/profile/blurbs/{blurb}" + pattern: "rooms/{room}/blurbs/{blurb}" + pattern: "rooms/{room}/blurbs/legacy/{legacy_room}.{blurb}" + }; + + // The resource name of the chat room. + string name = 1; + + // The resource name of the blurb's author. + string user = 2 [ + (google.api.resource_reference).type = "showcase.googleapis.com/User", + (google.api.field_behavior) = REQUIRED + ]; + + oneof content { + // The textual content of this blurb. + string text = 3; + + // The image content of this blurb. + bytes image = 4; + } + + // The timestamp at which the blurb was created. + google.protobuf.Timestamp create_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The latest timestamp at which the blurb was updated. + google.protobuf.Timestamp update_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // (-- aip.dev/not-precedent: This is designed for testing non-slash + // resource patterns. Ordinarily, non-slash separators are discouraged. + // --) + oneof legacy_id { + // The legacy id of the room. This field is used to signal + // the use of the compound resource pattern + // `rooms/{room}/blurbs/legacy/{legacy_room}.{blurb}` + string legacy_room_id = 7; + + // The legacy id of the user. This field is used to signal + // the use of the compound resource pattern + // `users/{user}/profile/blurbs/legacy/{legacy_user}~{blurb}` + string legacy_user_id = 8; + } +} + +// The request message for the google.showcase.v1beta1.Messaging\CreateBlurb +// method. +message CreateBlurbRequest { + // The resource name of the chat room or user profile that this blurb will + // be tied to. + string parent = 1 [ + (google.api.resource_reference).child_type = + "showcase.googleapis.com/Blurb", + (google.api.field_behavior) = REQUIRED + ]; + + // The blurb to create. + Blurb blurb = 2; +} + +// The request message for the google.showcase.v1beta1.Messaging\GetBlurb +// method. +message GetBlurbRequest { + // The resource name of the requested blurb. + string name = 1 [ + (google.api.resource_reference).type = "showcase.googleapis.com/Blurb", + (google.api.field_behavior) = REQUIRED + ]; +} + +// The request message for the google.showcase.v1beta1.Messaging\UpdateBlurb +// method. +message UpdateBlurbRequest { + // The blurb to update. + Blurb blurb = 1; + + // The field mask to determine wich fields are to be updated. If empty, the + // server will assume all fields are to be updated. + google.protobuf.FieldMask update_mask = 2; +} + +// The request message for the google.showcase.v1beta1.Messaging\DeleteBlurb +// method. +message DeleteBlurbRequest { + // The resource name of the requested blurb. + string name = 1 [ + (google.api.resource_reference).type = "showcase.googleapis.com/Blurb", + (google.api.field_behavior) = REQUIRED + ]; +} + +// The request message for the google.showcase.v1beta1.Messaging\ListBlurbs +// method. +message ListBlurbsRequest { + // The resource name of the requested room or profile whos blurbs to list. + string parent = 1 [ + (google.api.resource_reference).child_type = + "showcase.googleapis.com/Blurb", + (google.api.field_behavior) = REQUIRED + ]; + + // The maximum number of blurbs to return. Server may return fewer + // blurbs than requested. If unspecified, server will pick an appropriate + // default. + int32 page_size = 2; + + // The value of google.showcase.v1beta1.ListBlurbsResponse.next_page_token + // returned from the previous call to + // `google.showcase.v1beta1.Messaging\ListBlurbs` method. + string page_token = 3; +} + +// The response message for the google.showcase.v1beta1.Messaging\ListBlurbs +// method. +message ListBlurbsResponse { + // The list of blurbs. + repeated Blurb blurbs = 1; + + // A token to retrieve next page of results. + // Pass this value in ListBlurbsRequest.page_token field in the subsequent + // call to `google.showcase.v1beta1.Blurb\ListBlurbs` method to retrieve + // the next page of results. + string next_page_token = 2; +} + +// The request message for the google.showcase.v1beta1.Messaging\SearchBlurbs +// method. +message SearchBlurbsRequest { + // The query used to search for blurbs containing to words of this string. + // Only posts that contain an exact match of a queried word will be returned. + string query = 1 [(google.api.field_behavior) = REQUIRED]; + + // The rooms or profiles to search. If unset, `SearchBlurbs` will search all + // rooms and all profiles. + string parent = 2 [(google.api.resource_reference).child_type = + "showcase.googleapis.com/Blurb"]; + + // The maximum number of blurbs return. Server may return fewer + // blurbs than requested. If unspecified, server will pick an appropriate + // default. + int32 page_size = 3; + + // The value of + // google.showcase.v1beta1.SearchBlurbsResponse.next_page_token + // returned from the previous call to + // `google.showcase.v1beta1.Messaging\SearchBlurbs` method. + string page_token = 4; +} + +// The operation metadata message for the +// google.showcase.v1beta1.Messaging\SearchBlurbs method. +message SearchBlurbsMetadata { + // This signals to the client when to next poll for response. + google.rpc.RetryInfo retry_info = 1; +} + +// The operation response message for the +// google.showcase.v1beta1.Messaging\SearchBlurbs method. +message SearchBlurbsResponse { + // Blurbs that matched the search query. + repeated Blurb blurbs = 1; + + // A token to retrieve next page of results. + // Pass this value in SearchBlurbsRequest.page_token field in the subsequent + // call to `google.showcase.v1beta1.Blurb\SearchBlurbs` method to + // retrieve the next page of results. + string next_page_token = 2; +} + +// The request message for the google.showcase.v1beta1.Messaging\StreamBlurbs +// method. +message StreamBlurbsRequest { + // The resource name of a chat room or user profile whose blurbs to stream. + string name = 1 [ + (google.api.resource_reference).child_type = + "showcase.googleapis.com/Blurb", + (google.api.field_behavior) = REQUIRED + ]; + + // The time at which this stream will close. + google.protobuf.Timestamp expire_time = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// The response message for the google.showcase.v1beta1.Messaging\StreamBlurbs +// method. +message StreamBlurbsResponse { + // The blurb that was either created, updated, or deleted. + Blurb blurb = 1; + + // The action that triggered the blurb to be returned. + enum Action { + ACTION_UNSPECIFIED = 0; + + // Specifies that the blurb was created. + CREATE = 1; + + // Specifies that the blurb was updated. + UPDATE = 2; + + // Specifies that the blurb was deleted. + DELETE = 3; + } + + // The action that triggered the blurb to be returned. + Action action = 2; +} + +// The response message for the google.showcase.v1beta1.Messaging\SendBlurbs +// method. +message SendBlurbsResponse { + // The names of successful blurb creations. + repeated string names = 1; +} + +// The request message for the google.showcase.v1beta1.Messaging\Connect +// method. +message ConnectRequest { + message ConnectConfig { + // The room or profile to follow and create messages for. + string parent = 1 [(google.api.resource_reference).child_type = + "showcase.googleapis.com/Blurb"]; + } + + oneof request { + // Provides information that specifies how to process subsequent requests. + // The first `ConnectRequest` message must contain a `config` message. + ConnectConfig config = 1; + + // The blurb to be created. + Blurb blurb = 2; + } +} diff --git a/baselines/showcase-api-dump/protos/google/showcase/v1beta1/sequence.proto.baseline b/baselines/showcase-api-dump/protos/google/showcase/v1beta1/sequence.proto.baseline new file mode 100755 index 000000000..26158fdd8 --- /dev/null +++ b/baselines/showcase-api-dump/protos/google/showcase/v1beta1/sequence.proto.baseline @@ -0,0 +1,136 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; + +package google.showcase.v1beta1; + +option go_package = "github.com/googleapis/gapic-showcase/server/genproto"; +option java_package = "com.google.showcase.v1beta1"; +option java_multiple_files = true; +option ruby_package = "Google::Showcase::V1beta1"; + +service SequenceService { + // This service is meant to only run locally on the port 7469 (keypad digits + // for "show"). + option (google.api.default_host) = "localhost:7469"; + + // Creates a sequence. + rpc CreateSequence(CreateSequenceRequest) returns (Sequence) { + option (google.api.http) = { + post: "/v1beta1/sequences" + body: "sequence" + }; + option (google.api.method_signature) = "sequence"; + }; + + // Retrieves a sequence. + rpc GetSequenceReport(GetSequenceReportRequest) returns (SequenceReport) { + option (google.api.http) = { + get: "/v1beta1/{name=sequences/*/sequenceReport}" + }; + option (google.api.method_signature) = "name"; + }; + + // Attempts a sequence. + rpc AttemptSequence(AttemptSequenceRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1beta1/{name=sequences/*}" + body: "*" + }; + option (google.api.method_signature) = "name"; + }; +} + +message Sequence { + option (google.api.resource) = { + type: "showcase.googleapis.com/Sequence" + pattern: "sequences/{sequence}" + }; + + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // A server response to an RPC Attempt in a sequence. + message Response { + // The status to return for an individual attempt. + google.rpc.Status status = 1; + + // The amount of time to delay sending the response. + google.protobuf.Duration delay = 2; + } + + // Sequence of responses to return in order for each attempt. If empty, the + // default response is an immediate OK. + repeated Response responses = 2; +} + +message SequenceReport { + option (google.api.resource) = { + type: "showcase.googleapis.com/SequenceReport" + pattern: "sequences/{sequence}/sequenceReport" + }; + + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Contains metrics on individual RPC Attempts in a sequence. + message Attempt { + // The attempt number - starting at 0. + int32 attempt_number = 1; + + // The deadline dictated by the attempt to the server. + google.protobuf.Timestamp attempt_deadline = 2; + + // The time that the server responded to the RPC attempt. Used for + // calculating attempt_delay. + google.protobuf.Timestamp response_time = 3; + + // The server perceived delay between sending the last response and + // receiving this attempt. Used for validating attempt delay backoff. + google.protobuf.Duration attempt_delay = 4; + + // The status returned to the attempt. + google.rpc.Status status = 5; + } + + // The set of RPC attempts received by the server for a Sequence. + repeated Attempt attempts = 2; +} + +message CreateSequenceRequest { + Sequence sequence = 1; +} + +message AttemptSequenceRequest { + string name = 1 [ + (google.api.resource_reference).type = "showcase.googleapis.com/Sequence", + (google.api.field_behavior) = REQUIRED + ]; +} + +message GetSequenceReportRequest { + string name = 1 [ + (google.api.resource_reference).type = + "showcase.googleapis.com/SequenceReport", + (google.api.field_behavior) = REQUIRED + ]; +} diff --git a/baselines/showcase-api-dump/protos/google/showcase/v1beta1/testing.proto.baseline b/baselines/showcase-api-dump/protos/google/showcase/v1beta1/testing.proto.baseline new file mode 100755 index 000000000..56e85e97e --- /dev/null +++ b/baselines/showcase-api-dump/protos/google/showcase/v1beta1/testing.proto.baseline @@ -0,0 +1,386 @@ +// Copyright 2018 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/resource.proto"; +import "google/protobuf/empty.proto"; + +package google.showcase.v1beta1; + +option go_package = "github.com/googleapis/gapic-showcase/server/genproto"; +option java_package = "com.google.showcase.v1beta1"; +option java_multiple_files = true; +option ruby_package = "Google::Showcase::V1beta1"; + +// A service to facilitate running discrete sets of tests +// against Showcase. +service Testing { + // This service is meant to only run locally on the port 7469 (keypad digits + // for "show"). + option (google.api.default_host) = "localhost:7469"; + + // Creates a new testing session. + rpc CreateSession(CreateSessionRequest) returns (Session) { + option (google.api.http) = { + post: "/v1beta1/sessions" + body: "session" + }; + } + + // Gets a testing session. + rpc GetSession(GetSessionRequest) returns (Session) { + option (google.api.http) = { + get: "/v1beta1/{name=sessions/*}" + }; + } + + // Lists the current test sessions. + rpc ListSessions(ListSessionsRequest) returns (ListSessionsResponse) { + option (google.api.http) = { + get: "/v1beta1/sessions" + }; + } + + // Delete a test session. + rpc DeleteSession(DeleteSessionRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1beta1/{name=sessions/*}" + }; + } + + // Report on the status of a session. + // This generates a report detailing which tests have been completed, + // and an overall rollup. + rpc ReportSession(ReportSessionRequest) returns (ReportSessionResponse) { + option (google.api.http) = { + post: "/v1beta1/{name=sessions/*}:report" + }; + } + + // List the tests of a sessesion. + rpc ListTests(ListTestsRequest) returns (ListTestsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=sessions/*}/tests" + }; + } + + // Explicitly decline to implement a test. + // + // This removes the test from subsequent `ListTests` calls, and + // attempting to do the test will error. + // + // This method will error if attempting to delete a required test. + rpc DeleteTest(DeleteTestRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1beta1/{name=sessions/*/tests/*}" + }; + } + + // Register a response to a test. + // + // In cases where a test involves registering a final answer at the + // end of the test, this method provides the means to do so. + rpc VerifyTest(VerifyTestRequest) returns (VerifyTestResponse) { + option (google.api.http) = { + post: "/v1beta1/{name=sessions/*/tests/*}:check" + }; + } +} + +// A session is a suite of tests, generally being made in the context +// of testing code generation. +// +// A session defines tests it may expect, based on which version of the +// code generation spec is in use. +message Session { + option (google.api.resource) = { + type: "showcase.googleapis.com/Session" + pattern: "sessions/{session}" + }; + + // The name of the session. The ID must conform to ^[a-z]+$ + // If this is not provided, Showcase chooses one at random. + string name = 1; + + // The specification versions understood by Showcase. + enum Version { + // Unspecified version. If passed on creation, the session will default + // to using the latest stable release. + VERSION_UNSPECIFIED = 0; + + // The latest v1. Currently, this is v1.0. + V1_LATEST = 1; + + // v1.0. (Until the spec is "GA", this will be a moving target.) + V1_0 = 2; + } + + // Required. The version this session is using. + Version version = 2; +} + +// The request for the CreateSession method. +message CreateSessionRequest { + // The session to be created. + // Sessions are immutable once they are created (although they can + // be deleted). + Session session = 1; +} + +// The request for the GetSession method. +message GetSessionRequest { + // The session to be retrieved. + string name = 1 [ + (google.api.resource_reference).type = "showcase.googleapis.com/Session"]; +} + +// The request for the ListSessions method. +message ListSessionsRequest { + // The maximum number of sessions to return per page. + int32 page_size = 1; + + // The page token, for retrieving subsequent pages. + string page_token = 2; +} + +// Response for the ListSessions method. +message ListSessionsResponse { + // The sessions being returned. + repeated Session sessions = 1; + + // The next page token, if any. + // An empty value here means the last page has been reached. + string next_page_token = 2; +} + +// Request for the DeleteSession method. +message DeleteSessionRequest { + // The session to be deleted. + string name = 1 [ + (google.api.resource_reference).type = "showcase.googleapis.com/Session"]; +} + +// Request message for reporting on a session. +message ReportSessionRequest { + // The session to be reported on. + string name = 1 [ + (google.api.resource_reference).type = "showcase.googleapis.com/Session"]; +} + +// Response message for reporting on a session. +message ReportSessionResponse { + // The topline state of the report. + enum Result { + RESULT_UNSPECIFIED = 0; + + // The session is complete, and everything passed. + PASSED = 1; + + // The session had an explicit failure. + FAILED = 2; + + // The session is incomplete. This is a failure response. + INCOMPLETE = 3; + } + + // The state of the report. + Result result = 1; + + // The test runs of this session. + repeated TestRun test_runs = 2; +} + +message Test { + option (google.api.resource) = { + type: "showcase.googleapis.com/Test" + pattern: "sessions/{session}/tests/{test}" + }; + + // The name of the test. + // The tests/* portion of the names are hard-coded, and do not change + // from session to session. + string name = 1; + + // Whether or not a test is required, recommended, or optional. + enum ExpectationLevel { + EXPECTATION_LEVEL_UNSPECIFIED = 0; + + // This test is strictly required. + REQUIRED = 1; + + // This test is recommended. + // + // If a generator explicitly ignores a recommended test (see `DeleteTest`), + // then the report may still pass, but with a warning. + // + // If a generator skips a recommended test and does not explicitly + // express that intention, the report will fail. + RECOMMENDED = 2; + + // This test is optional. + // + // If a generator explicitly ignores an optional test (see `DeleteTest`), + // then the report may still pass, and no warning will be issued. + // + // If a generator skips an optional test and does not explicitly + // express that intention, the report may still pass, but with a + // warning. + OPTIONAL = 3; + } + + // The expectation level for this test. + ExpectationLevel expectation_level = 2; + + // A description of the test. + string description = 3; + + // A blueprint is an explicit definition of methods and requests that are needed + // to be made to test this specific test case. Ideally this would be represented + // by something more robust like CEL, but as of writing this, I am unsure if CEL + // is ready. + message Blueprint { + option (google.api.resource) = { + type: "showcase.googleapis.com/Blueprint" + pattern: "sessions/{session}/tests/{test}/blueprints/{blueprint}" + }; + + // The name of this blueprint. + string name = 1; + + // A description of this blueprint. + string description = 2; + + // A message representing a method invocation. + message Invocation { + // The fully qualified name of the showcase method to be invoked. + string method = 1; + + // The request to be made if a specific request is necessary. + bytes serialized_request = 2; + } + + // The initial request to trigger this test. + Invocation request = 3; + + // An ordered list of method calls that can be called to trigger this test. + repeated Invocation additional_requests = 4; + } + + // The blueprints that will satisfy this test. There may be multiple blueprints + // that can signal to the server that this test case is being exercised. Although + // multiple blueprints are specified, only a single blueprint needs to be run to + // signal that the test case was exercised. + repeated Blueprint blueprints = 4; +} + +// An issue found in the test. +message Issue { + // The different potential types of issues. + enum Type { + TYPE_UNSPECIFIED = 0; + + // The test was never instrumented. + SKIPPED = 1; + + // The test was started but never confirmed. + PENDING = 2; + + // The test was instrumented, but Showcase got an unexpected + // value when the generator tried to confirm success. + INCORRECT_CONFIRMATION = 3; + } + + // The type of the issue. + Type type = 1; + + // Severity levels. + enum Severity { + SEVERITY_UNSPECIFIED = 0; + + // Errors. + ERROR = 1; + + // Warnings. + WARNING = 2; + } + + // The severity of the issue. + Severity severity = 2; + + // A description of the issue. + string description = 3; +} + +// The request for the ListTests method. +message ListTestsRequest { + // The session. + string parent = 1 [ + (google.api.resource_reference).type = "showcase.googleapis.com/Session"]; + + // The maximum number of tests to return per page. + int32 page_size = 2; + + // The page token, for retrieving subsequent pages. + string page_token = 3; +} + +// The response for the ListTests method. +message ListTestsResponse { + // The tests being returned. + repeated Test tests = 1; + + // The next page token, if any. + // An empty value here means the last page has been reached. + string next_page_token = 2; +} + +// A TestRun is the result of running a Test. +message TestRun { + // The name of the test. + // The tests/* portion of the names are hard-coded, and do not change + // from session to session. + string test = 1 [ + (google.api.resource_reference).type = "showcase.googleapis.com/Test"]; + + + // An issue found with the test run. If empty, this test run was successful. + Issue issue = 2; +} + +// Request message for deleting a test. +message DeleteTestRequest { + // The test to be deleted. + string name = 1 [ + (google.api.resource_reference).type = "showcase.googleapis.com/Test"]; +} + +message VerifyTestRequest { + // The test to have an answer registered to it. + string name = 1 [ + (google.api.resource_reference).type = "showcase.googleapis.com/Test"]; + + // The answer from the test. + bytes answer = 2; + + // The answers from the test if multiple are to be checked + repeated bytes answers = 3; +} + +message VerifyTestResponse { + // An issue if check answer was unsuccessful. This will be empty if the check answer succeeded. + Issue issue = 1; +} diff --git a/baselines/showcase-esm/esm/src/v1beta1/echo_client.ts.baseline b/baselines/showcase-esm/esm/src/v1beta1/echo_client.ts.baseline index 4a6d83dbe..c5dc8edfb 100644 --- a/baselines/showcase-esm/esm/src/v1beta1/echo_client.ts.baseline +++ b/baselines/showcase-esm/esm/src/v1beta1/echo_client.ts.baseline @@ -407,6 +407,8 @@ export class EchoClient { * The request object that will be sent. * @param {string} request.content * The content to be echoed by the server. + * @param {string} request.requestId + * A random request_id to test autopopulation * @param {google.rpc.Status} request.error * The error to be thrown by the server. * @param {google.showcase.v1beta1.Severity} request.severity @@ -459,6 +461,9 @@ export class EchoClient { protos.google.showcase.v1beta1.IEchoRequest|undefined, {}|undefined ]>|void { request = request || {}; + if (!request.requestId) { + request.requestId = gax.makeUUID(); + } let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; diff --git a/baselines/showcase-esm/esm/test/gapic_echo_v1beta1.ts.baseline b/baselines/showcase-esm/esm/test/gapic_echo_v1beta1.ts.baseline index 74cbcc80c..42257b316 100644 --- a/baselines/showcase-esm/esm/test/gapic_echo_v1beta1.ts.baseline +++ b/baselines/showcase-esm/esm/test/gapic_echo_v1beta1.ts.baseline @@ -277,7 +277,9 @@ describe('v1beta1.EchoClient', () => { assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = (client.innerApiCalls.echo as SinonStub) .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + assert.match((client.innerApiCalls.echo as SinonStub) + .getCall(0).args[0].requestId, /[a-z0-9-]{36}/) }); it('invokes echo without error using callback', async () => { @@ -314,7 +316,9 @@ describe('v1beta1.EchoClient', () => { assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = (client.innerApiCalls.echo as SinonStub) .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + assert.match((client.innerApiCalls.echo as SinonStub) + .getCall(0).args[0].requestId, /[a-z0-9-]{36}/) }); it('invokes echo with error', async () => { @@ -337,7 +341,9 @@ describe('v1beta1.EchoClient', () => { assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = (client.innerApiCalls.echo as SinonStub) .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + assert.match((client.innerApiCalls.echo as SinonStub) + .getCall(0).args[0].requestId, /[a-z0-9-]{36}/) }); it('invokes echo with closed client', async () => { diff --git a/baselines/showcase-esm/package.json b/baselines/showcase-esm/package.json index 1a8f8de72..bac611d06 100644 --- a/baselines/showcase-esm/package.json +++ b/baselines/showcase-esm/package.json @@ -68,7 +68,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.1.0" + "google-gax": "^4.2.1" }, "devDependencies": { "@babel/cli": "^7.23.0", diff --git a/baselines/showcase-esm/protos/google/showcase/v1beta1/echo.proto.baseline b/baselines/showcase-esm/protos/google/showcase/v1beta1/echo.proto.baseline index 1b1b160f0..5e2ba2765 100755 --- a/baselines/showcase-esm/protos/google/showcase/v1beta1/echo.proto.baseline +++ b/baselines/showcase-esm/protos/google/showcase/v1beta1/echo.proto.baseline @@ -17,6 +17,7 @@ syntax = "proto3"; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; import "google/api/routing.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/duration.proto"; @@ -183,18 +184,21 @@ message EchoRequest { // The content to be echoed by the server. string content = 1; + // A random request_id to test autopopulation + string request_id = 2 [(google.api.field_info).format = UUID4]; + // The error to be thrown by the server. - google.rpc.Status error = 2; + google.rpc.Status error = 3; } // The severity to be echoed by the server. - Severity severity = 3; + Severity severity = 4; // Optional. This field can be set to test the routing annotation on the Echo method. - string header = 4; + string header = 5; // Optional. This field can be set to test the routing annotation on the Echo method. - string other_header = 5; + string other_header = 6; } // The response message for the Echo methods. diff --git a/baselines/showcase-legacy-esm/esm/src/v1beta1/echo_client.ts.baseline b/baselines/showcase-legacy-esm/esm/src/v1beta1/echo_client.ts.baseline index 435510c8b..411d30d06 100644 --- a/baselines/showcase-legacy-esm/esm/src/v1beta1/echo_client.ts.baseline +++ b/baselines/showcase-legacy-esm/esm/src/v1beta1/echo_client.ts.baseline @@ -338,6 +338,8 @@ export class EchoClient { * The request object that will be sent. * @param {string} request.content * The content to be echoed by the server. + * @param {string} request.requestId + * A random request_id to test autopopulation * @param {google.rpc.Status} request.error * The error to be thrown by the server. * @param {google.showcase.v1beta1.Severity} request.severity diff --git a/baselines/showcase-legacy-esm/package.json b/baselines/showcase-legacy-esm/package.json index 45a9602c6..924af0a3b 100644 --- a/baselines/showcase-legacy-esm/package.json +++ b/baselines/showcase-legacy-esm/package.json @@ -63,7 +63,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.1.0" + "google-gax": "^4.2.1" }, "devDependencies": { "@babel/cli": "^7.23.0", diff --git a/baselines/showcase-legacy-esm/protos/google/showcase/v1beta1/echo.proto.baseline b/baselines/showcase-legacy-esm/protos/google/showcase/v1beta1/echo.proto.baseline index 1b1b160f0..5e2ba2765 100755 --- a/baselines/showcase-legacy-esm/protos/google/showcase/v1beta1/echo.proto.baseline +++ b/baselines/showcase-legacy-esm/protos/google/showcase/v1beta1/echo.proto.baseline @@ -17,6 +17,7 @@ syntax = "proto3"; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; import "google/api/routing.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/duration.proto"; @@ -183,18 +184,21 @@ message EchoRequest { // The content to be echoed by the server. string content = 1; + // A random request_id to test autopopulation + string request_id = 2 [(google.api.field_info).format = UUID4]; + // The error to be thrown by the server. - google.rpc.Status error = 2; + google.rpc.Status error = 3; } // The severity to be echoed by the server. - Severity severity = 3; + Severity severity = 4; // Optional. This field can be set to test the routing annotation on the Echo method. - string header = 4; + string header = 5; // Optional. This field can be set to test the routing annotation on the Echo method. - string other_header = 5; + string other_header = 6; } // The response message for the Echo methods. diff --git a/baselines/showcase-legacy-esm/samples/generated/v1beta1/echo.chat.js.baseline b/baselines/showcase-legacy-esm/samples/generated/v1beta1/echo.chat.js.baseline index 67a029a28..610b8fac8 100644 --- a/baselines/showcase-legacy-esm/samples/generated/v1beta1/echo.chat.js.baseline +++ b/baselines/showcase-legacy-esm/samples/generated/v1beta1/echo.chat.js.baseline @@ -32,6 +32,10 @@ function main() { * The content to be echoed by the server. */ // const content = 'abc123' + /** + * A random request_id to test autopopulation + */ + // const requestId = 'abc123' /** * The error to be thrown by the server. */ diff --git a/baselines/showcase-legacy-esm/samples/generated/v1beta1/echo.collect.js.baseline b/baselines/showcase-legacy-esm/samples/generated/v1beta1/echo.collect.js.baseline index 51e5c405c..cfee129c6 100644 --- a/baselines/showcase-legacy-esm/samples/generated/v1beta1/echo.collect.js.baseline +++ b/baselines/showcase-legacy-esm/samples/generated/v1beta1/echo.collect.js.baseline @@ -32,6 +32,10 @@ function main() { * The content to be echoed by the server. */ // const content = 'abc123' + /** + * A random request_id to test autopopulation + */ + // const requestId = 'abc123' /** * The error to be thrown by the server. */ diff --git a/baselines/showcase-legacy-esm/samples/generated/v1beta1/echo.echo.js.baseline b/baselines/showcase-legacy-esm/samples/generated/v1beta1/echo.echo.js.baseline index 1483d47b7..9c5f8861b 100644 --- a/baselines/showcase-legacy-esm/samples/generated/v1beta1/echo.echo.js.baseline +++ b/baselines/showcase-legacy-esm/samples/generated/v1beta1/echo.echo.js.baseline @@ -32,6 +32,10 @@ function main() { * The content to be echoed by the server. */ // const content = 'abc123' + /** + * A random request_id to test autopopulation + */ + // const requestId = 'abc123' /** * The error to be thrown by the server. */ diff --git a/baselines/showcase-legacy-esm/samples/generated/v1beta1/snippet_metadata_google.showcase.v1beta1.json.baseline b/baselines/showcase-legacy-esm/samples/generated/v1beta1/snippet_metadata_google.showcase.v1beta1.json.baseline index b632872dd..c3ab72c90 100644 --- a/baselines/showcase-legacy-esm/samples/generated/v1beta1/snippet_metadata_google.showcase.v1beta1.json.baseline +++ b/baselines/showcase-legacy-esm/samples/generated/v1beta1/snippet_metadata_google.showcase.v1beta1.json.baseline @@ -22,7 +22,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 72, "type": "FULL" } ], @@ -35,6 +35,10 @@ "name": "content", "type": "TYPE_STRING" }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, { "name": "error", "type": ".google.rpc.Status" @@ -122,7 +126,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 73, "type": "FULL" } ], @@ -135,6 +139,10 @@ "name": "content", "type": "TYPE_STRING" }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, { "name": "error", "type": ".google.rpc.Status" @@ -178,7 +186,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 76, "type": "FULL" } ], @@ -191,6 +199,10 @@ "name": "content", "type": "TYPE_STRING" }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, { "name": "error", "type": ".google.rpc.Status" diff --git a/baselines/showcase-legacy/package.json b/baselines/showcase-legacy/package.json index 423608fa5..9e997d6cb 100644 --- a/baselines/showcase-legacy/package.json +++ b/baselines/showcase-legacy/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.1.0" + "google-gax": "^4.2.1" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/showcase-legacy/protos/google/showcase/v1beta1/echo.proto.baseline b/baselines/showcase-legacy/protos/google/showcase/v1beta1/echo.proto.baseline index 1b1b160f0..5e2ba2765 100755 --- a/baselines/showcase-legacy/protos/google/showcase/v1beta1/echo.proto.baseline +++ b/baselines/showcase-legacy/protos/google/showcase/v1beta1/echo.proto.baseline @@ -17,6 +17,7 @@ syntax = "proto3"; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; import "google/api/routing.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/duration.proto"; @@ -183,18 +184,21 @@ message EchoRequest { // The content to be echoed by the server. string content = 1; + // A random request_id to test autopopulation + string request_id = 2 [(google.api.field_info).format = UUID4]; + // The error to be thrown by the server. - google.rpc.Status error = 2; + google.rpc.Status error = 3; } // The severity to be echoed by the server. - Severity severity = 3; + Severity severity = 4; // Optional. This field can be set to test the routing annotation on the Echo method. - string header = 4; + string header = 5; // Optional. This field can be set to test the routing annotation on the Echo method. - string other_header = 5; + string other_header = 6; } // The response message for the Echo methods. diff --git a/baselines/showcase-legacy/samples/generated/v1beta1/echo.chat.js.baseline b/baselines/showcase-legacy/samples/generated/v1beta1/echo.chat.js.baseline index 67a029a28..610b8fac8 100644 --- a/baselines/showcase-legacy/samples/generated/v1beta1/echo.chat.js.baseline +++ b/baselines/showcase-legacy/samples/generated/v1beta1/echo.chat.js.baseline @@ -32,6 +32,10 @@ function main() { * The content to be echoed by the server. */ // const content = 'abc123' + /** + * A random request_id to test autopopulation + */ + // const requestId = 'abc123' /** * The error to be thrown by the server. */ diff --git a/baselines/showcase-legacy/samples/generated/v1beta1/echo.collect.js.baseline b/baselines/showcase-legacy/samples/generated/v1beta1/echo.collect.js.baseline index 51e5c405c..cfee129c6 100644 --- a/baselines/showcase-legacy/samples/generated/v1beta1/echo.collect.js.baseline +++ b/baselines/showcase-legacy/samples/generated/v1beta1/echo.collect.js.baseline @@ -32,6 +32,10 @@ function main() { * The content to be echoed by the server. */ // const content = 'abc123' + /** + * A random request_id to test autopopulation + */ + // const requestId = 'abc123' /** * The error to be thrown by the server. */ diff --git a/baselines/showcase-legacy/samples/generated/v1beta1/echo.echo.js.baseline b/baselines/showcase-legacy/samples/generated/v1beta1/echo.echo.js.baseline index 1483d47b7..9c5f8861b 100644 --- a/baselines/showcase-legacy/samples/generated/v1beta1/echo.echo.js.baseline +++ b/baselines/showcase-legacy/samples/generated/v1beta1/echo.echo.js.baseline @@ -32,6 +32,10 @@ function main() { * The content to be echoed by the server. */ // const content = 'abc123' + /** + * A random request_id to test autopopulation + */ + // const requestId = 'abc123' /** * The error to be thrown by the server. */ diff --git a/baselines/showcase-legacy/samples/generated/v1beta1/snippet_metadata_google.showcase.v1beta1.json.baseline b/baselines/showcase-legacy/samples/generated/v1beta1/snippet_metadata_google.showcase.v1beta1.json.baseline index b632872dd..c3ab72c90 100644 --- a/baselines/showcase-legacy/samples/generated/v1beta1/snippet_metadata_google.showcase.v1beta1.json.baseline +++ b/baselines/showcase-legacy/samples/generated/v1beta1/snippet_metadata_google.showcase.v1beta1.json.baseline @@ -22,7 +22,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 72, "type": "FULL" } ], @@ -35,6 +35,10 @@ "name": "content", "type": "TYPE_STRING" }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, { "name": "error", "type": ".google.rpc.Status" @@ -122,7 +126,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 73, "type": "FULL" } ], @@ -135,6 +139,10 @@ "name": "content", "type": "TYPE_STRING" }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, { "name": "error", "type": ".google.rpc.Status" @@ -178,7 +186,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 76, "type": "FULL" } ], @@ -191,6 +199,10 @@ "name": "content", "type": "TYPE_STRING" }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, { "name": "error", "type": ".google.rpc.Status" diff --git a/baselines/showcase-legacy/src/v1beta1/echo_client.ts.baseline b/baselines/showcase-legacy/src/v1beta1/echo_client.ts.baseline index dae3a139b..7777e4829 100644 --- a/baselines/showcase-legacy/src/v1beta1/echo_client.ts.baseline +++ b/baselines/showcase-legacy/src/v1beta1/echo_client.ts.baseline @@ -21,6 +21,7 @@ import type {Callback, CallOptions, Descriptors, ClientOptions, GrpcClientOption import {Transform, PassThrough} from 'stream'; import * as protos from '../../protos/protos'; import * as path from 'path'; + /** * Client JSON configuration object, loaded from * `src/v1beta1/echo_client_config.json`. @@ -323,6 +324,8 @@ export class EchoClient { * The request object that will be sent. * @param {string} request.content * The content to be echoed by the server. + * @param {string} request.requestId + * A random request_id to test autopopulation * @param {google.rpc.Status} request.error * The error to be thrown by the server. * @param {google.showcase.v1beta1.Severity} request.severity diff --git a/baselines/showcase/package.json b/baselines/showcase/package.json index 408c99bde..dfcb52082 100644 --- a/baselines/showcase/package.json +++ b/baselines/showcase/package.json @@ -40,7 +40,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.1.0" + "google-gax": "^4.2.1" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/showcase/protos/google/showcase/v1beta1/echo.proto.baseline b/baselines/showcase/protos/google/showcase/v1beta1/echo.proto.baseline index 1b1b160f0..5e2ba2765 100755 --- a/baselines/showcase/protos/google/showcase/v1beta1/echo.proto.baseline +++ b/baselines/showcase/protos/google/showcase/v1beta1/echo.proto.baseline @@ -17,6 +17,7 @@ syntax = "proto3"; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; import "google/api/routing.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/duration.proto"; @@ -183,18 +184,21 @@ message EchoRequest { // The content to be echoed by the server. string content = 1; + // A random request_id to test autopopulation + string request_id = 2 [(google.api.field_info).format = UUID4]; + // The error to be thrown by the server. - google.rpc.Status error = 2; + google.rpc.Status error = 3; } // The severity to be echoed by the server. - Severity severity = 3; + Severity severity = 4; // Optional. This field can be set to test the routing annotation on the Echo method. - string header = 4; + string header = 5; // Optional. This field can be set to test the routing annotation on the Echo method. - string other_header = 5; + string other_header = 6; } // The response message for the Echo methods. diff --git a/baselines/showcase/src/v1beta1/compliance_client.ts.baseline b/baselines/showcase/src/v1beta1/compliance_client.ts.baseline index 998caa36b..d6109b334 100644 --- a/baselines/showcase/src/v1beta1/compliance_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/compliance_client.ts.baseline @@ -22,6 +22,7 @@ import type {Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); + /** * Client JSON configuration object, loaded from * `src/v1beta1/compliance_client_config.json`. diff --git a/baselines/showcase/src/v1beta1/echo_client.ts.baseline b/baselines/showcase/src/v1beta1/echo_client.ts.baseline index f581e3a87..99d7e1dcc 100644 --- a/baselines/showcase/src/v1beta1/echo_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/echo_client.ts.baseline @@ -17,11 +17,12 @@ // ** All changes to this file may be overwritten. ** /* global window */ -import type * as gax from 'google-gax'; +import * as gax from 'google-gax'; import type {Callback, CallOptions, Descriptors, ClientOptions, GrpcClientOptions, LROperation, PaginationCallback, GaxCall} from 'google-gax'; import {Transform, PassThrough} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); + /** * Client JSON configuration object, loaded from * `src/v1beta1/echo_client_config.json`. @@ -390,6 +391,8 @@ export class EchoClient { * The request object that will be sent. * @param {string} request.content * The content to be echoed by the server. + * @param {string} request.requestId + * A random request_id to test autopopulation * @param {google.rpc.Status} request.error * The error to be thrown by the server. * @param {google.showcase.v1beta1.Severity} request.severity @@ -441,7 +444,10 @@ export class EchoClient { protos.google.showcase.v1beta1.IEchoResponse, protos.google.showcase.v1beta1.IEchoRequest|undefined, {}|undefined ]>|void { - request = request || {}; + request = request || {}; + if (!request.requestId) { + request.requestId = gax.makeUUID(); + } let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; diff --git a/baselines/showcase/src/v1beta1/identity_client.ts.baseline b/baselines/showcase/src/v1beta1/identity_client.ts.baseline index 207a33828..a825f9244 100644 --- a/baselines/showcase/src/v1beta1/identity_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/identity_client.ts.baseline @@ -22,6 +22,7 @@ import type {Callback, CallOptions, Descriptors, ClientOptions, PaginationCallba import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); + /** * Client JSON configuration object, loaded from * `src/v1beta1/identity_client_config.json`. diff --git a/baselines/showcase/src/v1beta1/messaging_client.ts.baseline b/baselines/showcase/src/v1beta1/messaging_client.ts.baseline index ecc13c808..1bb6bf685 100644 --- a/baselines/showcase/src/v1beta1/messaging_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/messaging_client.ts.baseline @@ -22,6 +22,7 @@ import type {Callback, CallOptions, Descriptors, ClientOptions, GrpcClientOption import {Transform, PassThrough} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); + /** * Client JSON configuration object, loaded from * `src/v1beta1/messaging_client_config.json`. diff --git a/baselines/showcase/src/v1beta1/sequence_service_client.ts.baseline b/baselines/showcase/src/v1beta1/sequence_service_client.ts.baseline index e59e518f0..343793c55 100644 --- a/baselines/showcase/src/v1beta1/sequence_service_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/sequence_service_client.ts.baseline @@ -22,6 +22,7 @@ import type {Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); + /** * Client JSON configuration object, loaded from * `src/v1beta1/sequence_service_client_config.json`. diff --git a/baselines/showcase/src/v1beta1/testing_client.ts.baseline b/baselines/showcase/src/v1beta1/testing_client.ts.baseline index 00cdc7d8e..91df25962 100644 --- a/baselines/showcase/src/v1beta1/testing_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/testing_client.ts.baseline @@ -22,6 +22,7 @@ import type {Callback, CallOptions, Descriptors, ClientOptions, PaginationCallba import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); + /** * Client JSON configuration object, loaded from * `src/v1beta1/testing_client_config.json`. diff --git a/baselines/showcase/test/gapic_echo_v1beta1.ts.baseline b/baselines/showcase/test/gapic_echo_v1beta1.ts.baseline index 899759c30..65a1f0a63 100644 --- a/baselines/showcase/test/gapic_echo_v1beta1.ts.baseline +++ b/baselines/showcase/test/gapic_echo_v1beta1.ts.baseline @@ -268,7 +268,9 @@ describe('v1beta1.EchoClient', () => { assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = (client.innerApiCalls.echo as SinonStub) .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + assert.match((client.innerApiCalls.echo as SinonStub) + .getCall(0).args[0].requestId, /[a-z0-9-]{36}/) }); it('invokes echo without error using callback', async () => { @@ -305,7 +307,9 @@ describe('v1beta1.EchoClient', () => { assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = (client.innerApiCalls.echo as SinonStub) .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + assert.match((client.innerApiCalls.echo as SinonStub) + .getCall(0).args[0].requestId, /[a-z0-9-]{36}/) }); it('invokes echo with error', async () => { @@ -328,7 +332,9 @@ describe('v1beta1.EchoClient', () => { assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = (client.innerApiCalls.echo as SinonStub) .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + assert.match((client.innerApiCalls.echo as SinonStub) + .getCall(0).args[0].requestId, /[a-z0-9-]{36}/) }); it('invokes echo with closed client', async () => { diff --git a/baselines/tasks-esm/package.json b/baselines/tasks-esm/package.json index 653d4bf3e..9bbd227d4 100644 --- a/baselines/tasks-esm/package.json +++ b/baselines/tasks-esm/package.json @@ -63,7 +63,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.1.0" + "google-gax": "^4.2.1" }, "devDependencies": { "@babel/cli": "^7.23.0", diff --git a/baselines/tasks/package.json b/baselines/tasks/package.json index 04e18ef1e..00199fe5e 100644 --- a/baselines/tasks/package.json +++ b/baselines/tasks/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.1.0" + "google-gax": "^4.2.1" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/tasks/src/v2/cloud_tasks_client.ts.baseline b/baselines/tasks/src/v2/cloud_tasks_client.ts.baseline index 061cef3fd..c2b400692 100644 --- a/baselines/tasks/src/v2/cloud_tasks_client.ts.baseline +++ b/baselines/tasks/src/v2/cloud_tasks_client.ts.baseline @@ -22,6 +22,7 @@ import type {Callback, CallOptions, Descriptors, ClientOptions, PaginationCallba import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); + /** * Client JSON configuration object, loaded from * `src/v2/cloud_tasks_client_config.json`. diff --git a/baselines/texttospeech-esm/package.json b/baselines/texttospeech-esm/package.json index ed26c438e..10f5c3807 100644 --- a/baselines/texttospeech-esm/package.json +++ b/baselines/texttospeech-esm/package.json @@ -63,7 +63,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.1.0" + "google-gax": "^4.2.1" }, "devDependencies": { "@babel/cli": "^7.23.0", diff --git a/baselines/texttospeech/package.json b/baselines/texttospeech/package.json index 83286ab3c..40056f64f 100644 --- a/baselines/texttospeech/package.json +++ b/baselines/texttospeech/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.1.0" + "google-gax": "^4.2.1" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/texttospeech/src/v1/text_to_speech_client.ts.baseline b/baselines/texttospeech/src/v1/text_to_speech_client.ts.baseline index 1bc14f613..7f3af74fb 100644 --- a/baselines/texttospeech/src/v1/text_to_speech_client.ts.baseline +++ b/baselines/texttospeech/src/v1/text_to_speech_client.ts.baseline @@ -22,6 +22,7 @@ import type {Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); + /** * Client JSON configuration object, loaded from * `src/v1/text_to_speech_client_config.json`. diff --git a/baselines/translate-esm/package.json b/baselines/translate-esm/package.json index b08ab7e3f..5e8f76c42 100644 --- a/baselines/translate-esm/package.json +++ b/baselines/translate-esm/package.json @@ -63,7 +63,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.1.0" + "google-gax": "^4.2.1" }, "devDependencies": { "@babel/cli": "^7.23.0", diff --git a/baselines/translate/package.json b/baselines/translate/package.json index 547b2149b..8b6d91e28 100644 --- a/baselines/translate/package.json +++ b/baselines/translate/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.1.0" + "google-gax": "^4.2.1" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/translate/src/v3beta1/translation_service_client.ts.baseline b/baselines/translate/src/v3beta1/translation_service_client.ts.baseline index ba9510ed1..743ed60e3 100644 --- a/baselines/translate/src/v3beta1/translation_service_client.ts.baseline +++ b/baselines/translate/src/v3beta1/translation_service_client.ts.baseline @@ -22,6 +22,7 @@ import type {Callback, CallOptions, Descriptors, ClientOptions, GrpcClientOption import {Transform} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); + /** * Client JSON configuration object, loaded from * `src/v3beta1/translation_service_client_config.json`. diff --git a/baselines/videointelligence-esm/package.json b/baselines/videointelligence-esm/package.json index 2156cb3fe..6ffaff49a 100644 --- a/baselines/videointelligence-esm/package.json +++ b/baselines/videointelligence-esm/package.json @@ -63,7 +63,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.1.0" + "google-gax": "^4.2.1" }, "devDependencies": { "@babel/cli": "^7.23.0", diff --git a/baselines/videointelligence/package.json b/baselines/videointelligence/package.json index e529aa05d..4db6af4f2 100644 --- a/baselines/videointelligence/package.json +++ b/baselines/videointelligence/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.1.0" + "google-gax": "^4.2.1" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/videointelligence/src/v1/video_intelligence_service_client.ts.baseline b/baselines/videointelligence/src/v1/video_intelligence_service_client.ts.baseline index f1b75b1b0..65f6dbf4c 100644 --- a/baselines/videointelligence/src/v1/video_intelligence_service_client.ts.baseline +++ b/baselines/videointelligence/src/v1/video_intelligence_service_client.ts.baseline @@ -22,6 +22,7 @@ import type {Callback, CallOptions, Descriptors, ClientOptions, GrpcClientOption import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); + /** * Client JSON configuration object, loaded from * `src/v1/video_intelligence_service_client_config.json`. diff --git a/package-lock.json b/package-lock.json index 177957015..ef190af32 100644 --- a/package-lock.json +++ b/package-lock.json @@ -33,7 +33,7 @@ "@types/yargs": "^17.0.32", "espower-typescript": "^10.0.1", "gapic-tools": "^0.3.0", - "google-gax": "^4.1.0", + "google-gax": "^4.2.1", "gts": "^5.2.0", "mocha": "^10.2.0", "typescript": "5.1.6" @@ -3523,9 +3523,9 @@ "dev": true }, "node_modules/google-gax": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/google-gax/-/google-gax-4.1.0.tgz", - "integrity": "sha512-VP5MYsIXEoXmdeHZl1Qsjv89PvE+LT8fw/2jxpFQtFed22YYAHgiTUuMfj2RWlGJUmRaYEMxBRBDWj+q/hOGQg==", + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/google-gax/-/google-gax-4.2.1.tgz", + "integrity": "sha512-Yal4oh2GMHBsFX8zunxwaRuD2bP7rrA7Oz/ooXK8uOMGnP71jNVRl6fUv8chYLkPTqEzBSij9TZw49B86SDVTg==", "dev": true, "dependencies": { "@grpc/grpc-js": "~1.9.6", @@ -3537,37 +3537,14 @@ "node-fetch": "^2.6.1", "object-hash": "^3.0.0", "proto3-json-serializer": "^2.0.0", - "protobufjs": "7.2.5", - "retry-request": "^7.0.0" + "protobufjs": "7.2.6", + "retry-request": "^7.0.0", + "uuid": "^9.0.1" }, "engines": { "node": ">=14" } }, - "node_modules/google-gax/node_modules/protobufjs": { - "version": "7.2.5", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.5.tgz", - "integrity": "sha512-gGXRSXvxQ7UiPgfw8gevrfRWcTlSbOFg+p/N+JVJEK5VhueL2miT6qTymqAmjr1Q5WbOCyJbyrk6JfWKwlFn6A==", - "dev": true, - "hasInstallScript": true, - "dependencies": { - "@protobufjs/aspromise": "^1.1.2", - "@protobufjs/base64": "^1.1.2", - "@protobufjs/codegen": "^2.0.4", - "@protobufjs/eventemitter": "^1.1.0", - "@protobufjs/fetch": "^1.1.0", - "@protobufjs/float": "^1.0.2", - "@protobufjs/inquire": "^1.1.0", - "@protobufjs/path": "^1.1.2", - "@protobufjs/pool": "^1.1.0", - "@protobufjs/utf8": "^1.1.0", - "@types/node": ">=13.7.0", - "long": "^5.0.0" - }, - "engines": { - "node": ">=12.0.0" - } - }, "node_modules/google-proto-files": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/google-proto-files/-/google-proto-files-4.1.0.tgz", diff --git a/package.json b/package.json index 0402304e0..8d46eff1f 100644 --- a/package.json +++ b/package.json @@ -28,8 +28,8 @@ "clean": "bazel clean && rm -rf build", "codecov": "c8 --reporter=lcov mocha bazel-bin/typescript/test/unit && c8 report", "compile": "bazel build //...", - "compile-protos-json": "pbjs -t json -o protos/protos.json -p node_modules/google-gax/build/protos -p protos google/api/annotations.proto google/api/field_behavior.proto google/api/resource.proto google/api/routing.proto google/longrunning/operations.proto google/protobuf/compiler/plugin.proto service_config.proto snippet_index.proto", - "compile-protos-js": "pbjs -t static-module -o protos/index.js -p node_modules/google-gax/build/protos -p protos google/api/annotations.proto google/api/field_behavior.proto google/api/resource.proto google/api/routing.proto google/longrunning/operations.proto google/protobuf/compiler/plugin.proto service_config.proto snippet_index.proto", + "compile-protos-json": "pbjs -t json -o protos/protos.json -p node_modules/google-gax/build/protos -p protos google/api/annotations.proto google/api/field_behavior.proto google/api/field_info.proto google/api/resource.proto google/api/routing.proto google/longrunning/operations.proto google/protobuf/compiler/plugin.proto service_config.proto snippet_index.proto", + "compile-protos-js": "pbjs -t static-module -o protos/index.js -p node_modules/google-gax/build/protos -p protos google/api/annotations.proto google/api/field_behavior.proto google/api/field_info.proto google/api/resource.proto google/api/routing.proto google/longrunning/operations.proto google/protobuf/compiler/plugin.proto service_config.proto snippet_index.proto", "compile-protos-dts": "pbts protos/index.js -o protos/index.d.ts", "docker-test": "sh docker/test.sh", "fix": "gts fix", @@ -61,7 +61,7 @@ "@types/yargs": "^17.0.32", "espower-typescript": "^10.0.1", "gapic-tools": "^0.3.0", - "google-gax": "^4.1.0", + "google-gax": "^4.2.1", "gts": "^5.2.0", "mocha": "^10.2.0", "typescript": "5.1.6" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 10e34caa7..c4839fcb6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -45,7 +45,7 @@ devDependencies: version: 2.0.4 '@types/node': specifier: ^18.11.18 - version: 18.13.0 + version: 18.19.8 '@types/nunjucks': specifier: ^3.2.6 version: 3.2.6 @@ -57,13 +57,13 @@ devDependencies: version: 17.0.32 espower-typescript: specifier: ^10.0.1 - version: 10.0.1(@types/node@18.13.0)(typescript@5.1.6) + version: 10.0.1(@types/node@18.19.8)(typescript@5.1.6) gapic-tools: specifier: ^0.3.0 version: 0.3.0(protobufjs@7.2.6) google-gax: - specifier: ^4.1.0 - version: 4.1.0 + specifier: ^4.2.1 + version: 4.2.1 gts: specifier: ^5.2.0 version: 5.2.0(typescript@5.1.6) @@ -86,37 +86,37 @@ packages: engines: {node: '>=6.0.0'} dependencies: '@jridgewell/gen-mapping': 0.3.3 - '@jridgewell/trace-mapping': 0.3.19 + '@jridgewell/trace-mapping': 0.3.22 dev: true - /@babel/code-frame@7.22.13: - resolution: {integrity: sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==} + /@babel/code-frame@7.23.5: + resolution: {integrity: sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/highlight': 7.22.13 + '@babel/highlight': 7.23.4 chalk: 2.4.2 dev: true - /@babel/compat-data@7.22.20: - resolution: {integrity: sha512-BQYjKbpXjoXwFW5jGqiizJQQT/aC7pFm9Ok1OWssonuguICi264lbgMzRp2ZMmRSlfkX6DsWDDcsrctK8Rwfiw==} + /@babel/compat-data@7.23.5: + resolution: {integrity: sha512-uU27kfDRlhfKl+w1U6vp16IuvSLtjAxdArVXPa9BvLkrr7CYIsxH5adpHObeAGY/41+syctUWOZ140a2Rvkgjw==} engines: {node: '>=6.9.0'} dev: true - /@babel/core@7.22.20: - resolution: {integrity: sha512-Y6jd1ahLubuYweD/zJH+vvOY141v4f9igNQAQ+MBgq9JlHS2iTsZKn1aMsb3vGccZsXI16VzTBw52Xx0DWmtnA==} + /@babel/core@7.23.7: + resolution: {integrity: sha512-+UpDgowcmqe36d4NwqvKsyPMlOLNGMsfMmQ5WGCu+siCe3t3dfe9njrzGfdN4qq+bcNUt0+Vw6haRxBOycs4dw==} engines: {node: '>=6.9.0'} dependencies: '@ampproject/remapping': 2.2.1 - '@babel/code-frame': 7.22.13 - '@babel/generator': 7.22.15 - '@babel/helper-compilation-targets': 7.22.15 - '@babel/helper-module-transforms': 7.22.20(@babel/core@7.22.20) - '@babel/helpers': 7.22.15 - '@babel/parser': 7.22.16 + '@babel/code-frame': 7.23.5 + '@babel/generator': 7.23.6 + '@babel/helper-compilation-targets': 7.23.6 + '@babel/helper-module-transforms': 7.23.3(@babel/core@7.23.7) + '@babel/helpers': 7.23.8 + '@babel/parser': 7.23.6 '@babel/template': 7.22.15 - '@babel/traverse': 7.22.20 - '@babel/types': 7.22.19 - convert-source-map: 1.9.0 + '@babel/traverse': 7.23.7 + '@babel/types': 7.23.6 + convert-source-map: 2.0.0 debug: 4.3.4(supports-color@8.1.1) gensync: 1.0.0-beta.2 json5: 2.2.3 @@ -125,23 +125,23 @@ packages: - supports-color dev: true - /@babel/generator@7.22.15: - resolution: {integrity: sha512-Zu9oWARBqeVOW0dZOjXc3JObrzuqothQ3y/n1kUtrjCoCPLkXUwMvOo/F/TCfoHMbWIFlWwpZtkZVb9ga4U2pA==} + /@babel/generator@7.23.6: + resolution: {integrity: sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.22.19 + '@babel/types': 7.23.6 '@jridgewell/gen-mapping': 0.3.3 - '@jridgewell/trace-mapping': 0.3.19 + '@jridgewell/trace-mapping': 0.3.22 jsesc: 2.5.2 dev: true - /@babel/helper-compilation-targets@7.22.15: - resolution: {integrity: sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw==} + /@babel/helper-compilation-targets@7.23.6: + resolution: {integrity: sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ==} engines: {node: '>=6.9.0'} dependencies: - '@babel/compat-data': 7.22.20 - '@babel/helper-validator-option': 7.22.15 - browserslist: 4.21.10 + '@babel/compat-data': 7.23.5 + '@babel/helper-validator-option': 7.23.5 + browserslist: 4.22.2 lru-cache: 5.1.1 semver: 6.3.1 dev: true @@ -151,35 +151,35 @@ packages: engines: {node: '>=6.9.0'} dev: true - /@babel/helper-function-name@7.22.5: - resolution: {integrity: sha512-wtHSq6jMRE3uF2otvfuD3DIvVhOsSNshQl0Qrd7qC9oQJzHvOL4qQXlQn2916+CXGywIjpGuIkoyZRRxHPiNQQ==} + /@babel/helper-function-name@7.23.0: + resolution: {integrity: sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==} engines: {node: '>=6.9.0'} dependencies: '@babel/template': 7.22.15 - '@babel/types': 7.22.19 + '@babel/types': 7.23.6 dev: true /@babel/helper-hoist-variables@7.22.5: resolution: {integrity: sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.22.19 + '@babel/types': 7.23.6 dev: true /@babel/helper-module-imports@7.22.15: resolution: {integrity: sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.22.19 + '@babel/types': 7.23.6 dev: true - /@babel/helper-module-transforms@7.22.20(@babel/core@7.22.20): - resolution: {integrity: sha512-dLT7JVWIUUxKOs1UnJUBR3S70YK+pKX6AbJgB2vMIvEkZkrfJDbYDJesnPshtKV4LhDOR3Oc5YULeDizRek+5A==} + /@babel/helper-module-transforms@7.23.3(@babel/core@7.23.7): + resolution: {integrity: sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0 dependencies: - '@babel/core': 7.22.20 + '@babel/core': 7.23.7 '@babel/helper-environment-visitor': 7.22.20 '@babel/helper-module-imports': 7.22.15 '@babel/helper-simple-access': 7.22.5 @@ -191,42 +191,42 @@ packages: resolution: {integrity: sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.22.19 + '@babel/types': 7.23.6 dev: true /@babel/helper-split-export-declaration@7.22.6: resolution: {integrity: sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.22.19 + '@babel/types': 7.23.6 dev: true - /@babel/helper-string-parser@7.22.5: - resolution: {integrity: sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==} + /@babel/helper-string-parser@7.23.4: + resolution: {integrity: sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==} engines: {node: '>=6.9.0'} /@babel/helper-validator-identifier@7.22.20: resolution: {integrity: sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==} engines: {node: '>=6.9.0'} - /@babel/helper-validator-option@7.22.15: - resolution: {integrity: sha512-bMn7RmyFjY/mdECUbgn9eoSY4vqvacUnS9i9vGAGttgFWesO6B4CYWA7XlpbWgBt71iv/hfbPlynohStqnu5hA==} + /@babel/helper-validator-option@7.23.5: + resolution: {integrity: sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==} engines: {node: '>=6.9.0'} dev: true - /@babel/helpers@7.22.15: - resolution: {integrity: sha512-7pAjK0aSdxOwR+CcYAqgWOGy5dcfvzsTIfFTb2odQqW47MDfv14UaJDY6eng8ylM2EaeKXdxaSWESbkmaQHTmw==} + /@babel/helpers@7.23.8: + resolution: {integrity: sha512-KDqYz4PiOWvDFrdHLPhKtCThtIcKVy6avWD2oG4GEvyQ+XDZwHD4YQd+H2vNMnq2rkdxsDkU82T+Vk8U/WXHRQ==} engines: {node: '>=6.9.0'} dependencies: '@babel/template': 7.22.15 - '@babel/traverse': 7.22.20 - '@babel/types': 7.22.19 + '@babel/traverse': 7.23.7 + '@babel/types': 7.23.6 transitivePeerDependencies: - supports-color dev: true - /@babel/highlight@7.22.13: - resolution: {integrity: sha512-C/BaXcnnvBCmHTpz/VGZ8jgtE2aYlW4hxDhseJAWZb7gqGM/qtCK6iZUb0TyKFf7BOUsBH7Q7fkRsDRhg1XklQ==} + /@babel/highlight@7.23.4: + resolution: {integrity: sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==} engines: {node: '>=6.9.0'} dependencies: '@babel/helper-validator-identifier': 7.22.20 @@ -234,45 +234,45 @@ packages: js-tokens: 4.0.0 dev: true - /@babel/parser@7.22.16: - resolution: {integrity: sha512-+gPfKv8UWeKKeJTUxe59+OobVcrYHETCsORl61EmSkmgymguYk/X5bp7GuUIXaFsc6y++v8ZxPsLSSuujqDphA==} + /@babel/parser@7.23.6: + resolution: {integrity: sha512-Z2uID7YJ7oNvAI20O9X0bblw7Qqs8Q2hFy0R9tAfnfLkp5MW0UH9eUvnDSnFwKZ0AvgS1ucqR4KzvVHgnke1VQ==} engines: {node: '>=6.0.0'} hasBin: true dependencies: - '@babel/types': 7.22.19 + '@babel/types': 7.23.6 /@babel/template@7.22.15: resolution: {integrity: sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.22.13 - '@babel/parser': 7.22.16 - '@babel/types': 7.22.19 + '@babel/code-frame': 7.23.5 + '@babel/parser': 7.23.6 + '@babel/types': 7.23.6 dev: true - /@babel/traverse@7.22.20: - resolution: {integrity: sha512-eU260mPZbU7mZ0N+X10pxXhQFMGTeLb9eFS0mxehS8HZp9o1uSnFeWQuG1UPrlxgA7QoUzFhOnilHDp0AXCyHw==} + /@babel/traverse@7.23.7: + resolution: {integrity: sha512-tY3mM8rH9jM0YHFGyfC0/xf+SB5eKUu7HPj7/k3fpi9dAlsMc5YbQvDi0Sh2QTPXqMhyaAtzAr807TIyfQrmyg==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.22.13 - '@babel/generator': 7.22.15 + '@babel/code-frame': 7.23.5 + '@babel/generator': 7.23.6 '@babel/helper-environment-visitor': 7.22.20 - '@babel/helper-function-name': 7.22.5 + '@babel/helper-function-name': 7.23.0 '@babel/helper-hoist-variables': 7.22.5 '@babel/helper-split-export-declaration': 7.22.6 - '@babel/parser': 7.22.16 - '@babel/types': 7.22.19 + '@babel/parser': 7.23.6 + '@babel/types': 7.23.6 debug: 4.3.4(supports-color@8.1.1) globals: 11.12.0 transitivePeerDependencies: - supports-color dev: true - /@babel/types@7.22.19: - resolution: {integrity: sha512-P7LAw/LbojPzkgp5oznjE6tQEIWbp4PkkfrZDINTro9zgBRtI324/EYsiSI7lhPbpIQ+DCeR2NNmMWANGGfZsg==} + /@babel/types@7.23.6: + resolution: {integrity: sha512-+uarb83brBzPKN38NX1MkB6vb6+mwvR6amUulqAE7ccQw1pEl+bCia9TbdG1lsnFP7lZySvUn37CHyXQdfTwzg==} engines: {node: '>=6.9.0'} dependencies: - '@babel/helper-string-parser': 7.22.5 + '@babel/helper-string-parser': 7.23.4 '@babel/helper-validator-identifier': 7.22.20 to-fast-properties: 2.0.0 @@ -298,20 +298,20 @@ packages: eslint-visitor-keys: 3.4.3 dev: true - /@eslint-community/regexpp@4.8.0: - resolution: {integrity: sha512-JylOEEzDiOryeUnFbQz+oViCXS0KsvR1mvHkoMiu5+UiBvy+RYX7tzlIIIEstF/gVa2tj9AQXk3dgnxv6KxhFg==} + /@eslint-community/regexpp@4.10.0: + resolution: {integrity: sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==} engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} dev: true - /@eslint/eslintrc@2.1.2: - resolution: {integrity: sha512-+wvgpDsrB1YqAMdEUCcnTlpfVBH7Vqn6A/NT3D8WVXFIaKMlErPIZT3oCIAVCOtarRpMtelZLqJeU3t7WY6X6g==} + /@eslint/eslintrc@2.1.4: + resolution: {integrity: sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: ajv: 6.12.6 debug: 4.3.4(supports-color@8.1.1) espree: 9.6.1 - globals: 13.21.0 - ignore: 5.2.4 + globals: 13.24.0 + ignore: 5.3.0 import-fresh: 3.3.0 js-yaml: 4.1.0 minimatch: 3.1.2 @@ -325,31 +325,30 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /@grpc/grpc-js@1.9.6: - resolution: {integrity: sha512-yq3qTy23u++8zdvf+h4mz4ohDFi681JAkMZZPTKh8zmUVh0AKLisFlgxcn22FMNowXz15oJ6pqgwT7DJ+PdJvg==} + /@grpc/grpc-js@1.9.14: + resolution: {integrity: sha512-nOpuzZ2G3IuMFN+UPPpKrC6NsLmWsTqSsm66IRfnBt1D4pwTqE27lmbpcPM+l2Ua4gE7PfjRHI6uedAy7hoXUw==} engines: {node: ^8.13.0 || >=10.10.0} dependencies: - '@grpc/proto-loader': 0.7.8 - '@types/node': 18.13.0 + '@grpc/proto-loader': 0.7.10 + '@types/node': 18.19.8 dev: true - /@grpc/proto-loader@0.7.8: - resolution: {integrity: sha512-GU12e2c8dmdXb7XUlOgYWZ2o2i+z9/VeACkxTA/zzAe2IjclC5PnVL0lpgjhrqfpDYHzM8B1TF6pqWegMYAzlA==} + /@grpc/proto-loader@0.7.10: + resolution: {integrity: sha512-CAqDfoaQ8ykFd9zqBDn4k6iWT9loLAlc2ETmDFS9JCD70gDcnA4L3AFEo2iV7KyAtAAHFW9ftq1Fz+Vsgq80RQ==} engines: {node: '>=6'} hasBin: true dependencies: - '@types/long': 4.0.2 lodash.camelcase: 4.3.0 - long: 4.0.0 + long: 5.2.3 protobufjs: 7.2.6 yargs: 17.7.2 dev: true - /@humanwhocodes/config-array@0.11.11: - resolution: {integrity: sha512-N2brEuAadi0CcdeMXUkhbZB84eskAc8MEX1By6qEchoVywSgXPIjou4rYsl0V3Hj0ZnuGycGCjdNgockbzeWNA==} + /@humanwhocodes/config-array@0.11.14: + resolution: {integrity: sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==} engines: {node: '>=10.10.0'} dependencies: - '@humanwhocodes/object-schema': 1.2.1 + '@humanwhocodes/object-schema': 2.0.2 debug: 4.3.4(supports-color@8.1.1) minimatch: 3.1.2 transitivePeerDependencies: @@ -361,8 +360,8 @@ packages: engines: {node: '>=12.22'} dev: true - /@humanwhocodes/object-schema@1.2.1: - resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==} + /@humanwhocodes/object-schema@2.0.2: + resolution: {integrity: sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw==} dev: true /@isaacs/cliui@8.0.2: @@ -382,12 +381,12 @@ packages: engines: {node: '>=6.0.0'} dependencies: '@jridgewell/set-array': 1.1.2 - '@jridgewell/sourcemap-codec': 1.4.14 - '@jridgewell/trace-mapping': 0.3.19 + '@jridgewell/sourcemap-codec': 1.4.15 + '@jridgewell/trace-mapping': 0.3.22 dev: true - /@jridgewell/resolve-uri@3.1.0: - resolution: {integrity: sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==} + /@jridgewell/resolve-uri@3.1.1: + resolution: {integrity: sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==} engines: {node: '>=6.0.0'} dev: true @@ -396,26 +395,26 @@ packages: engines: {node: '>=6.0.0'} dev: true - /@jridgewell/sourcemap-codec@1.4.14: - resolution: {integrity: sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==} + /@jridgewell/sourcemap-codec@1.4.15: + resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==} dev: true - /@jridgewell/trace-mapping@0.3.19: - resolution: {integrity: sha512-kf37QtfW+Hwx/buWGMPcR60iF9ziHa6r/CZJIHbmcm4+0qrXiVdxegAH0F6yddEVQ7zdkjcGCgCzUu+BcbhQxw==} + /@jridgewell/trace-mapping@0.3.22: + resolution: {integrity: sha512-Wf963MzWtA2sjrNt+g18IAln9lKnlRp+K2eH4jjIoF1wYeq3aMREpG09xhlhdzS0EjwU7qmUJYangWa+151vZw==} dependencies: - '@jridgewell/resolve-uri': 3.1.0 - '@jridgewell/sourcemap-codec': 1.4.14 + '@jridgewell/resolve-uri': 3.1.1 + '@jridgewell/sourcemap-codec': 1.4.15 dev: true /@jridgewell/trace-mapping@0.3.9: resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==} dependencies: - '@jridgewell/resolve-uri': 3.1.0 - '@jridgewell/sourcemap-codec': 1.4.14 + '@jridgewell/resolve-uri': 3.1.1 + '@jridgewell/sourcemap-codec': 1.4.15 dev: true - /@jsdoc/salty@0.2.3: - resolution: {integrity: sha512-bbtCxCkxcnWhi50I+4Lj6mdz9w3pOXOgEQrID8TCZ/DF51fW7M9GCQW2y45SpBDdHd1Eirm1X/Cf6CkAAe8HPg==} + /@jsdoc/salty@0.2.7: + resolution: {integrity: sha512-mh8LbS9d4Jq84KLw8pzho7XC2q2/IJGiJss3xwRoLD1A+EE16SjN4PfaG4jRCzKegTFLlN0Zd8SdUPE6XdoPFg==} engines: {node: '>=v12.0.0'} dependencies: lodash: 4.17.21 @@ -438,7 +437,7 @@ packages: engines: {node: '>= 8'} dependencies: '@nodelib/fs.scandir': 2.1.5 - fastq: 1.15.0 + fastq: 1.16.0 dev: true /@pkgjs/parseargs@0.11.0: @@ -448,16 +447,9 @@ packages: dev: true optional: true - /@pkgr/utils@2.4.2: - resolution: {integrity: sha512-POgTXhjrTfbTV63DiFXav4lBHiICLKKwDeaKn9Nphwj7WH6m0hMMCaJkMyRWjgtPFyRKRVoMXXjczsTQRDEhYw==} + /@pkgr/core@0.1.1: + resolution: {integrity: sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==} engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} - dependencies: - cross-spawn: 7.0.3 - fast-glob: 3.3.1 - is-glob: 4.0.3 - open: 9.1.0 - picocolors: 1.0.0 - tslib: 2.6.2 dev: true /@protobufjs/aspromise@1.1.2: @@ -510,24 +502,24 @@ packages: resolution: {integrity: sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==} dev: true - /@tsconfig/node16@1.0.3: - resolution: {integrity: sha512-yOlFc+7UtL/89t2ZhjPvvB/DeAr3r+Dq58IgzsFkOAvVC6NMJXmCGjbptdXdR9qsX7pKcTL+s87FtYREi2dEEQ==} + /@tsconfig/node16@1.0.4: + resolution: {integrity: sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==} dev: true - /@types/caseless@0.12.4: - resolution: {integrity: sha512-2in/lrHRNmDvHPgyormtEralhPcN3An1gLjJzj2Bw145VBxkQ75JEXW6CTdMAwShiHQcYsl2d10IjQSdJSJz4g==} + /@types/caseless@0.12.5: + resolution: {integrity: sha512-hWtVTC2q7hc7xZ/RLbxapMvDMgUnDvKvMOpKal4DrMyfGBUfB1oKaZlIRr6mJL+If3bAP6sV/QneGzF6tJjZDg==} dev: true /@types/js-yaml@4.0.9: resolution: {integrity: sha512-k4MGaQl5TGo/iipqb2UDG2UwjXziSWkh0uysQelTlJpX1qGlpUZYm8PnO4DxG1qBomtJUdYJ6qR6xdIah10JLg==} dev: false - /@types/json-schema@7.0.12: - resolution: {integrity: sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==} + /@types/json-schema@7.0.15: + resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} dev: true - /@types/linkify-it@3.0.2: - resolution: {integrity: sha512-HZQYqbiFVWufzCwexrvh694SOim8z2d+xJl5UNamcvQFejLY/2YUtzXHYi3cHdI7PMlS8ejH2slRAOJQ32aNbA==} + /@types/linkify-it@3.0.5: + resolution: {integrity: sha512-yg6E+u0/+Zjva+buc3EIb+29XEg4wltq7cSmd4Uc2EE/1nUVmxyzpX6gUXD0V8jIrG0r7YeOGVIbYRkxeooCtw==} /@types/long@4.0.2: resolution: {integrity: sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==} @@ -536,14 +528,14 @@ packages: /@types/markdown-it@12.2.3: resolution: {integrity: sha512-GKMHFfv3458yYy+v/N8gjufHO6MSZKCOXpZc5GXIWWy8uldwfmPn98vp81gZ5f9SVw8YYBctgfJ22a2d7AOMeQ==} dependencies: - '@types/linkify-it': 3.0.2 - '@types/mdurl': 1.0.2 + '@types/linkify-it': 3.0.5 + '@types/mdurl': 1.0.5 - /@types/mdurl@1.0.2: - resolution: {integrity: sha512-eC4U9MlIcu2q0KQmXszyn5Akca/0jrQmwDRgpAMJai7qBWq4amIQhZyNau4VYGtCeALvW1/NtjzJJ567aZxfKA==} + /@types/mdurl@1.0.5: + resolution: {integrity: sha512-6L6VymKTzYSrEf4Nev4Xa1LCHKrlTlYCBMTlQKFuddo1CvQcE52I0mwfOJayueUC7MJuXOeHTcIU683lzd0cUA==} - /@types/minimist@1.2.2: - resolution: {integrity: sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==} + /@types/minimist@1.2.5: + resolution: {integrity: sha512-hov8bUuiLiyFPGyFPE1lwWhmzYbirOXQNNo40+y3zow8aFVTeyn3VWL0VFFfdNddA8S4Vf0Tc062rzyNr7Paag==} dev: true /@types/mocha@10.0.6: @@ -554,11 +546,13 @@ packages: resolution: {integrity: sha512-5+G/QXO/DvHZw60FjvbDzO4JmlD/nG5m2/vVGt25VN1eeP3w2bCoks1Wa7VuptMPM1TxJdx6RjO70N9Fw0nZPA==} dev: true - /@types/node@18.13.0: - resolution: {integrity: sha512-gC3TazRzGoOnoKAhUx+Q0t8S9Tzs74z7m0ipwGpSqQrleP14hKxP4/JUeEQcD3W1/aIpnWl8pHowI7WokuZpXg==} + /@types/node@18.19.8: + resolution: {integrity: sha512-g1pZtPhsvGVTwmeVoexWZLTQaOvXwoSq//pTL0DHeNzUDrFnir4fgETdhjhIxjVnN+hKOuh98+E1eMLnUXstFg==} + dependencies: + undici-types: 5.26.5 - /@types/normalize-package-data@2.4.1: - resolution: {integrity: sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==} + /@types/normalize-package-data@2.4.4: + resolution: {integrity: sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==} dev: true /@types/nunjucks@3.2.6: @@ -569,31 +563,31 @@ packages: resolution: {integrity: sha512-fOBV8C1FIu2ELinoILQ+ApxcUKz4ngq+IWUYrxSGjXzzjUALijilampwkMgEtJ+h2njAW3pi853QpzNVCHB73w==} dev: true - /@types/request@2.48.11: - resolution: {integrity: sha512-HuihY1+Vss5RS9ZHzRyTGIzwPTdrJBkCm/mAeLRYrOQu/MGqyezKXWOK1VhCnR+SDbp9G2mRUP+OVEqCrzpcfA==} + /@types/request@2.48.12: + resolution: {integrity: sha512-G3sY+NpsA9jnwm0ixhAFQSJ3Q9JkpLZpJbI3GMv0mIAT0y3mRabYeINzal5WOChIiaTEGQYlHOKgkaM9EisWHw==} dependencies: - '@types/caseless': 0.12.4 - '@types/node': 18.13.0 - '@types/tough-cookie': 4.0.4 + '@types/caseless': 0.12.5 + '@types/node': 18.19.8 + '@types/tough-cookie': 4.0.5 form-data: 2.5.1 dev: true - /@types/semver@7.5.1: - resolution: {integrity: sha512-cJRQXpObxfNKkFAZbJl2yjWtJCqELQIdShsogr1d2MilP8dKD9TE/nEKHkJgUNHdGKCQaf9HbIynuV2csLGVLg==} + /@types/semver@7.5.6: + resolution: {integrity: sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A==} dev: true - /@types/tough-cookie@4.0.4: - resolution: {integrity: sha512-95Sfz4nvMAb0Nl9DTxN3j64adfwfbBPEYq14VN7zT5J5O2M9V6iZMIIQU1U+pJyl9agHYHNCqhCXgyEtIRRa5A==} + /@types/tough-cookie@4.0.5: + resolution: {integrity: sha512-/Ad8+nIOV7Rl++6f1BdKxFSMgmoqEoYbHRpPcx3JEfv8VRsQe9Z4mCXeJBzxs7mbHY/XOZZuXlRNfhpVPbs6ZA==} dev: true - /@types/yargs-parser@21.0.0: - resolution: {integrity: sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==} + /@types/yargs-parser@21.0.3: + resolution: {integrity: sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==} dev: true /@types/yargs@17.0.32: resolution: {integrity: sha512-xQ67Yc/laOG5uMfX/093MRlGGCIBzZMarVa+gfNKJxWAIgykYpVGkBdbqEzGDDfCrVUj6Hiff4mTZ5BA6TmAog==} dependencies: - '@types/yargs-parser': 21.0.0 + '@types/yargs-parser': 21.0.3 dev: true /@typescript-eslint/eslint-plugin@5.62.0(@typescript-eslint/parser@5.62.0)(eslint@8.50.0)(typescript@5.1.6): @@ -607,7 +601,7 @@ packages: typescript: optional: true dependencies: - '@eslint-community/regexpp': 4.8.0 + '@eslint-community/regexpp': 4.10.0 '@typescript-eslint/parser': 5.62.0(eslint@8.50.0)(typescript@5.1.6) '@typescript-eslint/scope-manager': 5.62.0 '@typescript-eslint/type-utils': 5.62.0(eslint@8.50.0)(typescript@5.1.6) @@ -615,9 +609,9 @@ packages: debug: 4.3.4(supports-color@8.1.1) eslint: 8.50.0 graphemer: 1.4.0 - ignore: 5.2.4 + ignore: 5.3.0 natural-compare-lite: 1.4.0 - semver: 7.3.8 + semver: 7.5.4 tsutils: 3.21.0(typescript@5.1.6) typescript: 5.1.6 transitivePeerDependencies: @@ -691,7 +685,7 @@ packages: debug: 4.3.4(supports-color@8.1.1) globby: 11.1.0 is-glob: 4.0.3 - semver: 7.3.8 + semver: 7.5.4 tsutils: 3.21.0(typescript@5.1.6) typescript: 5.1.6 transitivePeerDependencies: @@ -705,14 +699,14 @@ packages: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@8.50.0) - '@types/json-schema': 7.0.12 - '@types/semver': 7.5.1 + '@types/json-schema': 7.0.15 + '@types/semver': 7.5.6 '@typescript-eslint/scope-manager': 5.62.0 '@typescript-eslint/types': 5.62.0 '@typescript-eslint/typescript-estree': 5.62.0(typescript@5.1.6) eslint: 8.50.0 eslint-scope: 5.1.1 - semver: 7.3.8 + semver: 7.5.4 transitivePeerDependencies: - supports-color - typescript @@ -741,15 +735,15 @@ packages: resolution: {integrity: sha512-7D+8kscFMf6F2t+8ZRYmv82CncDZETsaZ4dEl5lh3qQez7FVABk2Vz616SAbnIq1PbNsLVaZjl2oSkk5BWAKng==} dev: true - /acorn-jsx@5.3.2(acorn@8.10.0): + /acorn-jsx@5.3.2(acorn@8.11.3): resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: - acorn: 8.10.0 + acorn: 8.11.3 - /acorn-walk@8.2.0: - resolution: {integrity: sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==} + /acorn-walk@8.3.2: + resolution: {integrity: sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A==} engines: {node: '>=0.4.0'} dev: true @@ -759,8 +753,8 @@ packages: hasBin: true dev: true - /acorn@8.10.0: - resolution: {integrity: sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==} + /acorn@8.11.3: + resolution: {integrity: sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==} engines: {node: '>=0.4.0'} hasBin: true @@ -879,13 +873,8 @@ packages: resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} dev: true - /big-integer@1.6.51: - resolution: {integrity: sha512-GPEid2Y9QU1Exl1rpO9B2IPJGHPSupF5GnVIP0blYvNOMer2bTvSWs1jGOUg04hTmu67nmLsQ9TBo1puaotBHg==} - engines: {node: '>=0.6'} - dev: true - - /bignumber.js@9.1.1: - resolution: {integrity: sha512-pHm4LsMJ6lzgNGVfZHjMoO8sdoRhOzOH4MLmY65Jg70bpxCKu5iOHNJyfF6OyvYw7t8Fpf35RuzUyqnQsj8Vig==} + /bignumber.js@9.1.2: + resolution: {integrity: sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==} dev: true /binary-extensions@2.2.0: @@ -896,13 +885,6 @@ packages: /bluebird@3.7.2: resolution: {integrity: sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==} - /bplist-parser@0.2.0: - resolution: {integrity: sha512-z0M+byMThzQmD9NILRniCUXYsYpjwnlO8N5uCFaCqIOpqRsJCrQL9NK3JsD67CN5a08nF5oIL2bD6loTdHOuKw==} - engines: {node: '>= 5.10.0'} - dependencies: - big-integer: 1.6.51 - dev: true - /brace-expansion@1.1.11: resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==} dependencies: @@ -925,15 +907,15 @@ packages: resolution: {integrity: sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==} dev: true - /browserslist@4.21.10: - resolution: {integrity: sha512-bipEBdZfVH5/pwrvqc+Ub0kUPVfGUhlKxbvfD+z1BDnPEO/X98ruXGA1WP5ASpAFKan7Qr6j736IacbZQuAlKQ==} + /browserslist@4.22.2: + resolution: {integrity: sha512-0UgcrvQmBDvZHFGdYUehrCNIazki7/lUP3kkoi/r3YB2amZbFM9J43ZRkJTXBUZK4gmx56+Sqk9+Vs9mwZx9+A==} engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} hasBin: true dependencies: - caniuse-lite: 1.0.30001538 - electron-to-chromium: 1.4.525 - node-releases: 2.0.13 - update-browserslist-db: 1.0.11(browserslist@4.21.10) + caniuse-lite: 1.0.30001579 + electron-to-chromium: 1.4.643 + node-releases: 2.0.14 + update-browserslist-db: 1.0.13(browserslist@4.22.2) dev: true /buffer-equal-constant-time@1.0.1: @@ -944,25 +926,19 @@ packages: resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} dev: true - /bundle-name@3.0.0: - resolution: {integrity: sha512-PKA4BeSvBpQKQ8iPOGCSiell+N8P+Tf1DlwqmYhpe2gAhKPHn8EYOxVT+ShuGmhg8lN8XiSlS80yiExKXrURlw==} - engines: {node: '>=12'} + /call-bind@1.0.5: + resolution: {integrity: sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ==} dependencies: - run-applescript: 5.0.0 - dev: true - - /call-bind@1.0.2: - resolution: {integrity: sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==} - dependencies: - function-bind: 1.1.1 - get-intrinsic: 1.2.0 + function-bind: 1.1.2 + get-intrinsic: 1.2.2 + set-function-length: 1.2.0 dev: true /call-matcher@1.1.0: resolution: {integrity: sha512-IoQLeNwwf9KTNbtSA7aEBb1yfDbdnzwjCetjkC8io5oGeOmK2CBNdg0xr+tadRYKO0p7uQyZzvon0kXlZbvGrw==} dependencies: core-js: 2.6.12 - deep-equal: 1.1.1 + deep-equal: 1.1.2 espurify: 1.8.1 estraverse: 4.3.0 dev: true @@ -991,8 +967,8 @@ packages: engines: {node: '>=10'} dev: true - /caniuse-lite@1.0.30001538: - resolution: {integrity: sha512-HWJnhnID+0YMtGlzcp3T9drmBJUVDchPJ08tpUGFLs9CYlwWPH2uLgpHn8fND5pCgXVtnGS3H4QR9XLMHVNkHw==} + /caniuse-lite@1.0.30001579: + resolution: {integrity: sha512-u5AUVkixruKHJjw/pj9wISlcMpgFWzSrczLZbrqBSxukQixmg0SJ5sZTpvaFvxU0HoQKd4yoyAogyrAz9pzJnA==} dev: true /catharsis@0.9.0: @@ -1033,7 +1009,7 @@ packages: normalize-path: 3.0.0 readdirp: 3.6.0 optionalDependencies: - fsevents: 2.3.2 + fsevents: 2.3.3 dev: true /cli-cursor@3.1.0: @@ -1102,6 +1078,10 @@ packages: resolution: {integrity: sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==} dev: true + /convert-source-map@2.0.0: + resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} + dev: true + /core-js@2.6.12: resolution: {integrity: sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==} deprecated: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js. @@ -1159,48 +1139,36 @@ packages: engines: {node: '>=10'} dev: true - /deep-equal@1.1.1: - resolution: {integrity: sha512-yd9c5AdiqVcR+JjcwUQb9DkhJc8ngNr0MahEBGvDiJw8puWab2yZlh+nkasOnZP+EGTAP6rRp2JzJhJZzvNF8g==} + /deep-equal@1.1.2: + resolution: {integrity: sha512-5tdhKF6DbU7iIzrIOa1AOUt39ZRm13cmL1cGEh//aqR8x9+tNfbywRf0n5FD/18OKMdo7DNEtrX2t22ZAkI+eg==} + engines: {node: '>= 0.4'} dependencies: is-arguments: 1.1.1 is-date-object: 1.0.5 is-regex: 1.1.4 object-is: 1.1.5 object-keys: 1.1.1 - regexp.prototype.flags: 1.4.3 + regexp.prototype.flags: 1.5.1 dev: true /deep-is@0.1.4: resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} - /default-browser-id@3.0.0: - resolution: {integrity: sha512-OZ1y3y0SqSICtE8DE4S8YOE9UZOJ8wO16fKWVP5J1Qz42kV9jcnMVFrEE/noXb/ss3Q4pZIH79kxofzyNNtUNA==} - engines: {node: '>=12'} - dependencies: - bplist-parser: 0.2.0 - untildify: 4.0.0 - dev: true - - /default-browser@4.0.0: - resolution: {integrity: sha512-wX5pXO1+BrhMkSbROFsyxUm0i/cJEScyNhA4PPxc41ICuv05ZZB/MX28s8aZx6xjmatvebIapF6hLEKEcpneUA==} - engines: {node: '>=14.16'} + /define-data-property@1.1.1: + resolution: {integrity: sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ==} + engines: {node: '>= 0.4'} dependencies: - bundle-name: 3.0.0 - default-browser-id: 3.0.0 - execa: 7.2.0 - titleize: 3.0.0 - dev: true - - /define-lazy-prop@3.0.0: - resolution: {integrity: sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==} - engines: {node: '>=12'} + get-intrinsic: 1.2.2 + gopd: 1.0.1 + has-property-descriptors: 1.0.1 dev: true - /define-properties@1.2.0: - resolution: {integrity: sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==} + /define-properties@1.2.1: + resolution: {integrity: sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==} engines: {node: '>= 0.4'} dependencies: - has-property-descriptors: 1.0.0 + define-data-property: 1.1.1 + has-property-descriptors: 1.0.1 object-keys: 1.1.1 dev: true @@ -1239,7 +1207,7 @@ packages: end-of-stream: 1.4.4 inherits: 2.0.4 readable-stream: 3.6.2 - stream-shift: 1.0.1 + stream-shift: 1.0.3 dev: true /eastasianwidth@0.2.0: @@ -1252,8 +1220,8 @@ packages: safe-buffer: 5.2.1 dev: true - /electron-to-chromium@1.4.525: - resolution: {integrity: sha512-GIZ620hDK4YmIqAWkscG4W6RwY6gOx1y5J6f4JUQwctiJrqH2oxZYU4mXHi35oV32tr630UcepBzSBGJ/WYcZA==} + /electron-to-chromium@1.4.643: + resolution: {integrity: sha512-QHscvvS7gt155PtoRC0dR2ilhL8E9LHhfTQEq1uD5AL0524rBLAwpAREFH06f87/e45B9XkR6Ki5dbhbCsVEIg==} dev: true /emoji-regex@8.0.0: @@ -1417,9 +1385,9 @@ packages: eslint: 8.50.0 eslint-plugin-es: 3.0.1(eslint@8.50.0) eslint-utils: 2.1.0 - ignore: 5.2.4 + ignore: 5.3.0 minimatch: 3.1.2 - resolve: 1.22.4 + resolve: 1.22.8 semver: 6.3.1 dev: true @@ -1441,7 +1409,7 @@ packages: eslint-config-prettier: 9.0.0(eslint@8.50.0) prettier: 3.0.3 prettier-linter-helpers: 1.0.0 - synckit: 0.8.5 + synckit: 0.8.8 dev: true /eslint-scope@5.1.1: @@ -1482,10 +1450,10 @@ packages: hasBin: true dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@8.50.0) - '@eslint-community/regexpp': 4.8.0 - '@eslint/eslintrc': 2.1.2 + '@eslint-community/regexpp': 4.10.0 + '@eslint/eslintrc': 2.1.4 '@eslint/js': 8.50.0 - '@humanwhocodes/config-array': 0.11.11 + '@humanwhocodes/config-array': 0.11.14 '@humanwhocodes/module-importer': 1.0.1 '@nodelib/fs.walk': 1.2.8 ajv: 6.12.6 @@ -1503,9 +1471,9 @@ packages: file-entry-cache: 6.0.1 find-up: 5.0.0 glob-parent: 6.0.2 - globals: 13.21.0 + globals: 13.24.0 graphemer: 1.4.0 - ignore: 5.2.4 + ignore: 5.3.0 imurmurhash: 0.1.4 is-glob: 4.0.3 is-path-inside: 3.0.3 @@ -1548,7 +1516,7 @@ packages: xtend: 4.0.2 dev: true - /espower-typescript@10.0.1(@types/node@18.13.0)(typescript@5.1.6): + /espower-typescript@10.0.1(@types/node@18.19.8)(typescript@5.1.6): resolution: {integrity: sha512-Otz3g+JKQCPG3CxyUQnmcmr9LeYXe+bEU2F/WtBeaByIj+kgR+8lyYSa1Rcqh27b/sp9EjrDLDUTW+d7dsfJQw==} engines: {node: '>=10.17'} peerDependencies: @@ -1557,7 +1525,7 @@ packages: espower-source: 2.3.0 minimatch: 5.1.6 source-map-support: 0.5.21 - ts-node: 10.9.1(@types/node@18.13.0)(typescript@5.1.6) + ts-node: 10.9.2(@types/node@18.19.8)(typescript@5.1.6) typescript: 5.1.6 transitivePeerDependencies: - '@swc/core' @@ -1583,8 +1551,8 @@ packages: resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: - acorn: 8.10.0 - acorn-jsx: 5.3.2(acorn@8.10.0) + acorn: 8.11.3 + acorn-jsx: 5.3.2(acorn@8.11.3) eslint-visitor-keys: 3.4.3 /esprima@2.7.3: @@ -1657,21 +1625,6 @@ packages: strip-final-newline: 2.0.0 dev: true - /execa@7.2.0: - resolution: {integrity: sha512-UduyVP7TLB5IcAQl+OzLyLcS/l32W/GLg+AhHJ+ow40FOk2U3SAllPwR44v4vmdFwIWqpdwxxpQbF1n5ta9seA==} - engines: {node: ^14.18.0 || ^16.14.0 || >=18.0.0} - dependencies: - cross-spawn: 7.0.3 - get-stream: 6.0.1 - human-signals: 4.3.1 - is-stream: 3.0.0 - merge-stream: 2.0.0 - npm-run-path: 5.1.0 - onetime: 6.0.0 - signal-exit: 3.0.7 - strip-final-newline: 3.0.0 - dev: true - /ext@1.7.0: resolution: {integrity: sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==} dependencies: @@ -1699,8 +1652,8 @@ packages: resolution: {integrity: sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==} dev: true - /fast-glob@3.3.1: - resolution: {integrity: sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==} + /fast-glob@3.3.2: + resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==} engines: {node: '>=8.6.0'} dependencies: '@nodelib/fs.stat': 2.0.5 @@ -1717,8 +1670,8 @@ packages: /fast-levenshtein@2.0.6: resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} - /fastq@1.15.0: - resolution: {integrity: sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==} + /fastq@1.16.0: + resolution: {integrity: sha512-ifCoaXsDrsdkWTtiNJX5uzHDsrck5TzfKKDcuFFTIrrc/BS076qgEIfoIy1VeZqViznfKiysPYTh/QeHtnIsYA==} dependencies: reusify: 1.0.4 dev: true @@ -1734,7 +1687,7 @@ packages: resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==} engines: {node: ^10.12.0 || >=12.0.0} dependencies: - flat-cache: 3.1.0 + flat-cache: 3.2.0 dev: true /fill-range@7.0.1: @@ -1760,12 +1713,12 @@ packages: path-exists: 4.0.0 dev: true - /flat-cache@3.1.0: - resolution: {integrity: sha512-OHx4Qwrrt0E4jEIcI5/Xb+f+QmJYNj2rrK8wiIdQOIrB9WrrJL8cjZvXdXuBTkkEwEqLycb5BeZDV1o2i9bTew==} - engines: {node: '>=12.0.0'} + /flat-cache@3.2.0: + resolution: {integrity: sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==} + engines: {node: ^10.12.0 || >=12.0.0} dependencies: - flatted: 3.2.7 - keyv: 4.5.3 + flatted: 3.2.9 + keyv: 4.5.4 rimraf: 3.0.2 dev: true @@ -1774,8 +1727,8 @@ packages: hasBin: true dev: true - /flatted@3.2.7: - resolution: {integrity: sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==} + /flatted@3.2.9: + resolution: {integrity: sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==} dev: true /foreground-child@3.1.1: @@ -1798,16 +1751,16 @@ packages: /fs.realpath@1.0.0: resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} - /fsevents@2.3.2: - resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==} + /fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} os: [darwin] requiresBuild: true dev: true optional: true - /function-bind@1.1.1: - resolution: {integrity: sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==} + /function-bind@1.1.2: + resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} dev: true /functions-have-names@1.2.3: @@ -1819,12 +1772,12 @@ packages: engines: {node: '>=14'} hasBin: true dependencies: - '@babel/core': 7.22.20 - '@babel/traverse': 7.22.20 - google-gax: 4.1.0 + '@babel/core': 7.23.7 + '@babel/traverse': 7.23.7 + google-gax: 4.2.1 google-proto-files: 4.1.0 protobufjs-cli: 1.1.2(protobufjs@7.2.6) - rimraf: 5.0.1 + rimraf: 5.0.5 uglify-js: 3.17.4 walkdir: 0.4.1 transitivePeerDependencies: @@ -1833,24 +1786,24 @@ packages: - supports-color dev: true - /gaxios@6.0.4: - resolution: {integrity: sha512-mwKfHJn7f3pLRfahdEPNyvygXRwjwgsgDPaIIoBRIDkgP4SFyezkYGWQ2aLCfrAnzimSrP+mAg1aSUj5gidXvw==} + /gaxios@6.1.1: + resolution: {integrity: sha512-bw8smrX+XlAoo9o1JAksBwX+hi/RG15J+NTSxmNPIclKC3ZVK6C2afwY8OSdRvOK0+ZLecUJYtj2MmjOt3Dm0w==} engines: {node: '>=14'} dependencies: extend: 3.0.2 - https-proxy-agent: 7.0.1 + https-proxy-agent: 7.0.2 is-stream: 2.0.1 - node-fetch: 2.6.12 + node-fetch: 2.7.0 transitivePeerDependencies: - encoding - supports-color dev: true - /gcp-metadata@6.0.0: - resolution: {integrity: sha512-Ozxyi23/1Ar51wjUT2RDklK+3HxqDr8TLBNK8rBBFQ7T85iIGnXnVusauj06QyqCXRFZig8LZC+TUddWbndlpQ==} + /gcp-metadata@6.1.0: + resolution: {integrity: sha512-Jh/AIwwgaxan+7ZUUmRLCjtchyDiqh4KjBJ5tW3plBZb5iL/BPcso8A5DlzeD9qlw0duCamnNdpFjxwaT0KyKg==} engines: {node: '>=14'} dependencies: - gaxios: 6.0.4 + gaxios: 6.1.1 json-bigint: 1.0.0 transitivePeerDependencies: - encoding @@ -1866,12 +1819,13 @@ packages: resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} engines: {node: 6.* || 8.* || >= 10.*} - /get-intrinsic@1.2.0: - resolution: {integrity: sha512-L049y6nFOuom5wGyRc3/gdTLO94dySVKRACj1RmJZBQXlbTMhtNIgkWkUHq+jYmZvKf14EW1EoJnnjbmoHij0Q==} + /get-intrinsic@1.2.2: + resolution: {integrity: sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA==} dependencies: - function-bind: 1.1.1 - has: 1.0.3 + function-bind: 1.1.2 + has-proto: 1.0.1 has-symbols: 1.0.3 + hasown: 2.0.0 dev: true /get-stream@6.0.1: @@ -1893,15 +1847,15 @@ packages: is-glob: 4.0.3 dev: true - /glob@10.3.3: - resolution: {integrity: sha512-92vPiMb/iqpmEgsOoIDvTjc50wf9CCCvMzsi6W0JLPeUKE8TWP1a73PgqSrqy7iAZxaSD1YdzU7QZR5LF51MJw==} + /glob@10.3.10: + resolution: {integrity: sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==} engines: {node: '>=16 || 14 >=14.17'} hasBin: true dependencies: foreground-child: 3.1.1 - jackspeak: 2.2.2 + jackspeak: 2.3.6 minimatch: 9.0.3 - minipass: 7.0.2 + minipass: 7.0.4 path-scurry: 1.10.1 dev: true @@ -1941,8 +1895,8 @@ packages: engines: {node: '>=4'} dev: true - /globals@13.21.0: - resolution: {integrity: sha512-ybyme3s4yy/t/3s35bewwXKOf7cvzfreG2lH0lZl0JB7I4GxRP2ghxOK/Nb9EkRXdbBXZLfq/p/0W2JUONB/Gg==} + /globals@13.24.0: + resolution: {integrity: sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==} engines: {node: '>=8'} dependencies: type-fest: 0.20.2 @@ -1954,43 +1908,43 @@ packages: dependencies: array-union: 2.1.0 dir-glob: 3.0.1 - fast-glob: 3.3.1 - ignore: 5.2.4 + fast-glob: 3.3.2 + ignore: 5.3.0 merge2: 1.4.1 slash: 3.0.0 dev: true - /google-auth-library@9.0.0: - resolution: {integrity: sha512-IQGjgQoVUAfOk6khqTVMLvWx26R+yPw9uLyb1MNyMQpdKiKt0Fd9sp4NWoINjyGHR8S3iw12hMTYK7O8J07c6Q==} + /google-auth-library@9.4.2: + resolution: {integrity: sha512-rTLO4gjhqqo3WvYKL5IdtlCvRqeQ4hxUx/p4lObobY2xotFW3bCQC+Qf1N51CYOfiqfMecdMwW9RIo7dFWYjqw==} engines: {node: '>=14'} dependencies: base64-js: 1.5.1 ecdsa-sig-formatter: 1.0.11 - gaxios: 6.0.4 - gcp-metadata: 6.0.0 + gaxios: 6.1.1 + gcp-metadata: 6.1.0 gtoken: 7.0.1 jws: 4.0.0 - lru-cache: 6.0.0 transitivePeerDependencies: - encoding - supports-color dev: true - /google-gax@4.1.0: - resolution: {integrity: sha512-VP5MYsIXEoXmdeHZl1Qsjv89PvE+LT8fw/2jxpFQtFed22YYAHgiTUuMfj2RWlGJUmRaYEMxBRBDWj+q/hOGQg==} + /google-gax@4.2.1: + resolution: {integrity: sha512-Yal4oh2GMHBsFX8zunxwaRuD2bP7rrA7Oz/ooXK8uOMGnP71jNVRl6fUv8chYLkPTqEzBSij9TZw49B86SDVTg==} engines: {node: '>=14'} dependencies: - '@grpc/grpc-js': 1.9.6 - '@grpc/proto-loader': 0.7.8 + '@grpc/grpc-js': 1.9.14 + '@grpc/proto-loader': 0.7.10 '@types/long': 4.0.2 abort-controller: 3.0.0 duplexify: 4.1.2 - google-auth-library: 9.0.0 - node-fetch: 2.6.12 + google-auth-library: 9.4.2 + node-fetch: 2.7.0 object-hash: 3.0.0 proto3-json-serializer: 2.0.1 - protobufjs: 7.2.5 - retry-request: 7.0.1 + protobufjs: 7.2.6 + retry-request: 7.0.2 + uuid: 9.0.1 transitivePeerDependencies: - encoding - supports-color @@ -2004,8 +1958,14 @@ packages: walkdir: 0.4.1 dev: true - /graceful-fs@4.2.10: - resolution: {integrity: sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==} + /gopd@1.0.1: + resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==} + dependencies: + get-intrinsic: 1.2.2 + dev: true + + /graceful-fs@4.2.11: + resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} /graphemer@1.4.0: resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==} @@ -2015,7 +1975,7 @@ packages: resolution: {integrity: sha512-KcFVtoP1CVFtQu0aSk3AyAt2og66PFhZAlkUOuWKwzMLoulHXG5W5wE5xAnHb+yl3/wEFoqGW7/cDGMU8igDZQ==} engines: {node: '>=14.0.0'} dependencies: - gaxios: 6.0.4 + gaxios: 6.1.1 jws: 4.0.0 transitivePeerDependencies: - encoding @@ -2064,10 +2024,15 @@ packages: resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} engines: {node: '>=8'} - /has-property-descriptors@1.0.0: - resolution: {integrity: sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==} + /has-property-descriptors@1.0.1: + resolution: {integrity: sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg==} dependencies: - get-intrinsic: 1.2.0 + get-intrinsic: 1.2.2 + dev: true + + /has-proto@1.0.1: + resolution: {integrity: sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==} + engines: {node: '>= 0.4'} dev: true /has-symbols@1.0.3: @@ -2082,11 +2047,11 @@ packages: has-symbols: 1.0.3 dev: true - /has@1.0.3: - resolution: {integrity: sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==} - engines: {node: '>= 0.4.0'} + /hasown@2.0.0: + resolution: {integrity: sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==} + engines: {node: '>= 0.4'} dependencies: - function-bind: 1.1.1 + function-bind: 1.1.2 dev: true /he@1.2.0: @@ -2126,8 +2091,8 @@ packages: - supports-color dev: true - /https-proxy-agent@7.0.1: - resolution: {integrity: sha512-Eun8zV0kcYS1g19r78osiQLEFIRspRUDd9tIfBCTBPBeMieF/EsJNL8VI3xOIdYRDEkjQnqOYPsZ2DsWsVsFwQ==} + /https-proxy-agent@7.0.2: + resolution: {integrity: sha512-NmLNjm6ucYwtcUmL7JQC1ZQ57LmHP4lT15FQ8D61nak1rO6DH+fz5qNK2Ap5UN4ZapYICE3/0KodcLYSPsPbaA==} engines: {node: '>= 14'} dependencies: agent-base: 7.1.0 @@ -2141,11 +2106,6 @@ packages: engines: {node: '>=10.17.0'} dev: true - /human-signals@4.3.1: - resolution: {integrity: sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==} - engines: {node: '>=14.18.0'} - dev: true - /iconv-lite@0.4.24: resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==} engines: {node: '>=0.10.0'} @@ -2153,8 +2113,8 @@ packages: safer-buffer: 2.1.2 dev: true - /ignore@5.2.4: - resolution: {integrity: sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==} + /ignore@5.3.0: + resolution: {integrity: sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==} engines: {node: '>= 4'} dev: true @@ -2208,7 +2168,7 @@ packages: resolution: {integrity: sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 has-tostringtag: 1.0.0 dev: true @@ -2223,10 +2183,10 @@ packages: binary-extensions: 2.2.0 dev: true - /is-core-module@2.13.0: - resolution: {integrity: sha512-Z7dk6Qo8pOCp3l4tsX2C5ZVas4V+UxwQodwZhLopL91TX8UyyHEXafPcyoeeWuLrwzHcr3igO78wNLwHJHsMCQ==} + /is-core-module@2.13.1: + resolution: {integrity: sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==} dependencies: - has: 1.0.3 + hasown: 2.0.0 dev: true /is-date-object@1.0.5: @@ -2236,18 +2196,6 @@ packages: has-tostringtag: 1.0.0 dev: true - /is-docker@2.2.1: - resolution: {integrity: sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==} - engines: {node: '>=8'} - hasBin: true - dev: true - - /is-docker@3.0.0: - resolution: {integrity: sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - hasBin: true - dev: true - /is-extglob@2.1.1: resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} engines: {node: '>=0.10.0'} @@ -2264,14 +2212,6 @@ packages: is-extglob: 2.1.1 dev: true - /is-inside-container@1.0.0: - resolution: {integrity: sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==} - engines: {node: '>=14.16'} - hasBin: true - dependencies: - is-docker: 3.0.0 - dev: true - /is-number@7.0.0: resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} engines: {node: '>=0.12.0'} @@ -2296,7 +2236,7 @@ packages: resolution: {integrity: sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 has-tostringtag: 1.0.0 dev: true @@ -2305,11 +2245,6 @@ packages: engines: {node: '>=8'} dev: true - /is-stream@3.0.0: - resolution: {integrity: sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - dev: true - /is-unicode-supported@0.1.0: resolution: {integrity: sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==} engines: {node: '>=10'} @@ -2319,19 +2254,12 @@ packages: resolution: {integrity: sha512-ITvGim8FhRiYe4IQ5uHSkj7pVaPDrCTkNd3yq3cV7iZAcJdHTUMPMEHcqSOy9xZ9qFenQCvi+2wjH9a1nXqHww==} dev: true - /is-wsl@2.2.0: - resolution: {integrity: sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==} - engines: {node: '>=8'} - dependencies: - is-docker: 2.2.1 - dev: true - /isexe@2.0.0: resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} dev: true - /jackspeak@2.2.2: - resolution: {integrity: sha512-mgNtVv4vUuaKA97yxUHoA3+FkuhtxkjdXEWOyB/N76fjy0FjezEt34oy3epBtvCvS+7DyKwqCFWx/oJLV5+kCg==} + /jackspeak@2.3.6: + resolution: {integrity: sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==} engines: {node: '>=14'} dependencies: '@isaacs/cliui': 8.0.2 @@ -2354,13 +2282,13 @@ packages: dependencies: xmlcreate: 2.0.4 - /jsdoc@4.0.0: - resolution: {integrity: sha512-tzTgkklbWKrlaQL2+e3NNgLcZu3NaK2vsHRx7tyHQ+H5jcB9Gx0txSd2eJWlMC/xU1+7LQu4s58Ry0RkuaEQVg==} + /jsdoc@4.0.2: + resolution: {integrity: sha512-e8cIg2z62InH7azBBi3EsSEqrKx+nUtAS5bBcYTSpZFA+vhNPyhv8PTFZ0WsjOPDj04/dOLlm08EDcQJDqaGQg==} engines: {node: '>=12.0.0'} hasBin: true dependencies: - '@babel/parser': 7.22.16 - '@jsdoc/salty': 0.2.3 + '@babel/parser': 7.23.6 + '@jsdoc/salty': 0.2.7 '@types/markdown-it': 12.2.3 bluebird: 3.7.2 catharsis: 0.9.0 @@ -2368,8 +2296,8 @@ packages: js2xmlparser: 4.0.2 klaw: 3.0.0 markdown-it: 12.3.2 - markdown-it-anchor: 8.6.6(@types/markdown-it@12.2.3)(markdown-it@12.3.2) - marked: 4.2.12 + markdown-it-anchor: 8.6.7(@types/markdown-it@12.2.3)(markdown-it@12.3.2) + marked: 4.3.0 mkdirp: 1.0.4 requizzle: 0.2.4 strip-json-comments: 3.1.1 @@ -2384,7 +2312,7 @@ packages: /json-bigint@1.0.0: resolution: {integrity: sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==} dependencies: - bignumber.js: 9.1.1 + bignumber.js: 9.1.2 dev: true /json-buffer@3.0.1: @@ -2424,8 +2352,8 @@ packages: safe-buffer: 5.2.1 dev: true - /keyv@4.5.3: - resolution: {integrity: sha512-QCiSav9WaX1PgETJ+SpNnx2PRRapJ/oRSXM4VO5OGYGSjrxbKPVFVhB3l2OCbLCk329N8qyAtsJjSjvVBWzEug==} + /keyv@4.5.4: + resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==} dependencies: json-buffer: 3.0.1 dev: true @@ -2438,7 +2366,7 @@ packages: /klaw@3.0.0: resolution: {integrity: sha512-0Fo5oir+O9jnXu5EefYbVK+mHMBeEVEy2cmctR1O1NECcCkPRreJKrS6Qt/j3KC2C148Dfo9i3pCmCMsdqGr0g==} dependencies: - graceful-fs: 4.2.10 + graceful-fs: 4.2.11 /levn@0.3.0: resolution: {integrity: sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==} @@ -2497,15 +2425,11 @@ packages: is-unicode-supported: 0.1.0 dev: true - /long@4.0.0: - resolution: {integrity: sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==} - dev: true - /long@5.2.3: resolution: {integrity: sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==} - /lru-cache@10.0.0: - resolution: {integrity: sha512-svTf/fzsKHffP42sujkO/Rjs37BCIsQVRCeNYIm9WN8rgT7ffoUnRtZCqU+6BqcSBdv8gwJeTz8knJpgACeQMw==} + /lru-cache@10.1.0: + resolution: {integrity: sha512-/1clY/ui8CzjKFyjdvwPWJUYKiFVXG2I2cY0ssG7h4+hwk+XOIX7ZSG9Q7TW8TW3Kp3BUSqgFWBLgL4PJ+Blag==} engines: {node: 14 || >=16.14} dev: true @@ -2535,8 +2459,8 @@ packages: engines: {node: '>=8'} dev: true - /markdown-it-anchor@8.6.6(@types/markdown-it@12.2.3)(markdown-it@12.3.2): - resolution: {integrity: sha512-jRW30YGywD2ESXDc+l17AiritL0uVaSnWsb26f+68qaW9zgbIIr1f4v2Nsvc0+s0Z2N3uX6t/yAw7BwCQ1wMsA==} + /markdown-it-anchor@8.6.7(@types/markdown-it@12.2.3)(markdown-it@12.3.2): + resolution: {integrity: sha512-FlCHFwNnutLgVTflOYHPW2pPcl2AACqVzExlkGQNsi4CJgqOHN7YTgDd4LuhgN1BFO3TS0vLAruV1Td6dwWPJA==} peerDependencies: '@types/markdown-it': '*' markdown-it: '*' @@ -2554,8 +2478,8 @@ packages: mdurl: 1.0.1 uc.micro: 1.0.6 - /marked@4.2.12: - resolution: {integrity: sha512-yr8hSKa3Fv4D3jdZmtMMPghgVt6TWbk86WQaWhDloQjRSQhMMYCAro7jP7VDJrjjdV8pxVxMssXS8B8Y5DZ5aw==} + /marked@4.3.0: + resolution: {integrity: sha512-PRsaiG84bK+AMvxziE/lCFss8juXjNaWzVbN5tXAm4XjeaS9NAHhop+PjQxz2A9h8Q4M/xGmzP8vqNwy6JeK0A==} engines: {node: '>= 12'} hasBin: true @@ -2566,7 +2490,7 @@ packages: resolution: {integrity: sha512-+obSblOQmRhcyBt62furQqRAQpNyWXo8BuQ5bN7dG8wmwQ+vwHKp/rCFD4CrTP8CsDQD1sjoZ94K417XEUk8IQ==} engines: {node: '>=10'} dependencies: - '@types/minimist': 1.2.2 + '@types/minimist': 1.2.5 camelcase-keys: 6.2.2 decamelize: 1.2.0 decamelize-keys: 1.1.1 @@ -2577,7 +2501,7 @@ packages: redent: 3.0.0 trim-newlines: 3.0.1 type-fest: 0.18.1 - yargs-parser: 20.2.4 + yargs-parser: 20.2.9 dev: true /merge-estraverse-visitors@1.0.0: @@ -2620,11 +2544,6 @@ packages: engines: {node: '>=6'} dev: true - /mimic-fn@4.0.0: - resolution: {integrity: sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==} - engines: {node: '>=12'} - dev: true - /min-indent@1.0.1: resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==} engines: {node: '>=4'} @@ -2667,8 +2586,8 @@ packages: /minimist@1.2.8: resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} - /minipass@7.0.2: - resolution: {integrity: sha512-eL79dXrE1q9dBbDCLg7xfn/vl7MS4F1gvJAgjJrQli/jbQWdUttuVawphqpffoIYfRdq78LHx6GP4bU/EQ2ATA==} + /minipass@7.0.4: + resolution: {integrity: sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==} engines: {node: '>=16 || 14 >=14.17'} dev: true @@ -2746,8 +2665,8 @@ packages: resolution: {integrity: sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==} dev: true - /node-fetch@2.6.12: - resolution: {integrity: sha512-C/fGU2E8ToujUivIO0H+tpQ6HWo4eEmchoPIoXtxCrVghxdKq+QOHqEZW7tuP3KlV3bC8FRMO5nMCC7Zm1VP6g==} + /node-fetch@2.7.0: + resolution: {integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==} engines: {node: 4.x || >=6.0.0} peerDependencies: encoding: ^0.1.0 @@ -2758,15 +2677,15 @@ packages: whatwg-url: 5.0.0 dev: true - /node-releases@2.0.13: - resolution: {integrity: sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==} + /node-releases@2.0.14: + resolution: {integrity: sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==} dev: true /normalize-package-data@2.5.0: resolution: {integrity: sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==} dependencies: hosted-git-info: 2.8.9 - resolve: 1.22.4 + resolve: 1.22.8 semver: 5.7.2 validate-npm-package-license: 3.0.4 dev: true @@ -2776,8 +2695,8 @@ packages: engines: {node: '>=10'} dependencies: hosted-git-info: 4.1.0 - is-core-module: 2.13.0 - semver: 7.3.8 + is-core-module: 2.13.1 + semver: 7.5.4 validate-npm-package-license: 3.0.4 dev: true @@ -2793,13 +2712,6 @@ packages: path-key: 3.1.1 dev: true - /npm-run-path@5.1.0: - resolution: {integrity: sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - dependencies: - path-key: 4.0.0 - dev: true - /nunjucks@3.2.4: resolution: {integrity: sha512-26XRV6BhkgK0VOxfbU5cQI+ICFUtMLixv1noZn1tGU38kQH5A5nmmbk/O45xdyBhD1esk47nKrY0mvQpZIhRjQ==} engines: {node: '>= 6.9.0'} @@ -2823,8 +2735,8 @@ packages: resolution: {integrity: sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 - define-properties: 1.2.0 + call-bind: 1.0.5 + define-properties: 1.2.1 dev: true /object-keys@1.1.1: @@ -2844,23 +2756,6 @@ packages: mimic-fn: 2.1.0 dev: true - /onetime@6.0.0: - resolution: {integrity: sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==} - engines: {node: '>=12'} - dependencies: - mimic-fn: 4.0.0 - dev: true - - /open@9.1.0: - resolution: {integrity: sha512-OS+QTnw1/4vrf+9hh1jc1jnYjzSG4ttTBB8UxOwAnInG3Uo4ssetzC1ihqaIHjLJnA5GGlRl6QlZXOTQhRBUvg==} - engines: {node: '>=14.16'} - dependencies: - default-browser: 4.0.0 - define-lazy-prop: 3.0.0 - is-inside-container: 1.0.0 - is-wsl: 2.2.0 - dev: true - /optionator@0.8.3: resolution: {integrity: sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==} engines: {node: '>= 0.8.0'} @@ -2870,7 +2765,7 @@ packages: levn: 0.3.0 prelude-ls: 1.1.2 type-check: 0.3.2 - word-wrap: 1.2.4 + word-wrap: 1.2.5 /optionator@0.9.3: resolution: {integrity: sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==} @@ -2933,7 +2828,7 @@ packages: resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==} engines: {node: '>=8'} dependencies: - '@babel/code-frame': 7.22.13 + '@babel/code-frame': 7.23.5 error-ex: 1.3.2 json-parse-even-better-errors: 2.3.1 lines-and-columns: 1.2.4 @@ -2953,11 +2848,6 @@ packages: engines: {node: '>=8'} dev: true - /path-key@4.0.0: - resolution: {integrity: sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==} - engines: {node: '>=12'} - dev: true - /path-parse@1.0.7: resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} dev: true @@ -2966,8 +2856,8 @@ packages: resolution: {integrity: sha512-MkhCqzzBEpPvxxQ71Md0b1Kk51W01lrYvlMzSUaIzNsODdd7mqhiimSZlr+VegAz5Z6Vzt9Xg2ttE//XBhH3EQ==} engines: {node: '>=16 || 14 >=14.17'} dependencies: - lru-cache: 10.0.0 - minipass: 7.0.2 + lru-cache: 10.1.0 + minipass: 7.0.4 dev: true /path-type@4.0.0: @@ -3024,32 +2914,13 @@ packages: espree: 9.6.1 estraverse: 5.3.0 glob: 8.1.0 - jsdoc: 4.0.0 + jsdoc: 4.0.2 minimist: 1.2.8 protobufjs: 7.2.6 - semver: 7.3.8 + semver: 7.5.4 tmp: 0.2.1 uglify-js: 3.17.4 - /protobufjs@7.2.5: - resolution: {integrity: sha512-gGXRSXvxQ7UiPgfw8gevrfRWcTlSbOFg+p/N+JVJEK5VhueL2miT6qTymqAmjr1Q5WbOCyJbyrk6JfWKwlFn6A==} - engines: {node: '>=12.0.0'} - requiresBuild: true - dependencies: - '@protobufjs/aspromise': 1.1.2 - '@protobufjs/base64': 1.1.2 - '@protobufjs/codegen': 2.0.4 - '@protobufjs/eventemitter': 1.1.0 - '@protobufjs/fetch': 1.1.0 - '@protobufjs/float': 1.0.2 - '@protobufjs/inquire': 1.1.0 - '@protobufjs/path': 1.1.2 - '@protobufjs/pool': 1.1.0 - '@protobufjs/utf8': 1.1.0 - '@types/node': 18.13.0 - long: 5.2.3 - dev: true - /protobufjs@7.2.6: resolution: {integrity: sha512-dgJaEDDL6x8ASUZ1YqWciTRrdOuYNzoOf27oHNfdyvKqHr5i0FV7FSLU+aIeFjyFgVxrpTOtQUi0BLLBymZaBw==} engines: {node: '>=12.0.0'} @@ -3065,11 +2936,11 @@ packages: '@protobufjs/path': 1.1.2 '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.0 - '@types/node': 18.13.0 + '@types/node': 18.19.8 long: 5.2.3 - /punycode@2.3.0: - resolution: {integrity: sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==} + /punycode@2.3.1: + resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} engines: {node: '>=6'} dev: true @@ -3101,7 +2972,7 @@ packages: resolution: {integrity: sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==} engines: {node: '>=8'} dependencies: - '@types/normalize-package-data': 2.4.1 + '@types/normalize-package-data': 2.4.4 normalize-package-data: 2.5.0 parse-json: 5.2.0 type-fest: 0.6.0 @@ -3131,13 +3002,13 @@ packages: strip-indent: 3.0.0 dev: true - /regexp.prototype.flags@1.4.3: - resolution: {integrity: sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA==} + /regexp.prototype.flags@1.5.1: + resolution: {integrity: sha512-sy6TXMN+hnP/wMy+ISxg3krXx7BAtWVO4UouuCN/ziM9UEne0euamVNafDfvC83bRNr95y0V5iijeDQFUNpvrg==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 - define-properties: 1.2.0 - functions-have-names: 1.2.3 + call-bind: 1.0.5 + define-properties: 1.2.1 + set-function-name: 2.0.1 dev: true /regexpp@3.2.0: @@ -3159,11 +3030,11 @@ packages: engines: {node: '>=4'} dev: true - /resolve@1.22.4: - resolution: {integrity: sha512-PXNdCiPqDqeUou+w1C2eTQbNfxKSuMxqTCuvlmmMsk1NWHL5fRrhY6Pl0qEYYc6+QqGClco1Qj8XnjPego4wfg==} + /resolve@1.22.8: + resolution: {integrity: sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==} hasBin: true dependencies: - is-core-module: 2.13.0 + is-core-module: 2.13.1 path-parse: 1.0.7 supports-preserve-symlinks-flag: 1.0.0 dev: true @@ -3176,12 +3047,11 @@ packages: signal-exit: 3.0.7 dev: true - /retry-request@7.0.1: - resolution: {integrity: sha512-ZI6vJp9rfB71mrZpw+n9p/B6HCsd7QJlSEQftZ+xfJzr3cQ9EPGKw1FF0BnViJ0fYREX6FhymBD2CARpmsFciQ==} + /retry-request@7.0.2: + resolution: {integrity: sha512-dUOvLMJ0/JJYEn8NrpOaGNE7X3vpI5XlZS/u0ANjqtcZVKnIxP7IgCFwrKTxENw29emmwug53awKtaMm4i9g5w==} engines: {node: '>=14'} dependencies: - '@types/request': 2.48.11 - debug: 4.3.4(supports-color@8.1.1) + '@types/request': 2.48.12 extend: 3.0.2 teeny-request: 9.0.0 transitivePeerDependencies: @@ -3200,19 +3070,12 @@ packages: dependencies: glob: 7.2.3 - /rimraf@5.0.1: - resolution: {integrity: sha512-OfFZdwtd3lZ+XZzYP/6gTACubwFcHdLRqS9UX3UwpU2dnGQYkPFISRwvM3w9IiB2w7bW5qGo/uAwE4SmXXSKvg==} + /rimraf@5.0.5: + resolution: {integrity: sha512-CqDakW+hMe/Bz202FPEymy68P+G50RfMQK+Qo5YUqc9SPipvbGjCGKd0RSKEelbsfQuw3g5NZDSrlZZAJurH1A==} engines: {node: '>=14'} hasBin: true dependencies: - glob: 10.3.3 - dev: true - - /run-applescript@5.0.0: - resolution: {integrity: sha512-XcT5rBksx1QdIhlFOCtgZkB99ZEouFZ1E2Kc2LHqNW13U3/74YGdkQRmThTwxy4QIyookibDKYZOPqX//6BlAg==} - engines: {node: '>=12'} - dependencies: - execa: 5.1.1 + glob: 10.3.10 dev: true /run-async@2.4.1: @@ -3251,8 +3114,8 @@ packages: hasBin: true dev: true - /semver@7.3.8: - resolution: {integrity: sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==} + /semver@7.5.4: + resolution: {integrity: sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==} engines: {node: '>=10'} hasBin: true dependencies: @@ -3264,6 +3127,26 @@ packages: randombytes: 2.1.0 dev: true + /set-function-length@1.2.0: + resolution: {integrity: sha512-4DBHDoyHlM1IRPGYcoxexgh67y4ueR53FKV1yyxwFMY7aCqcN/38M1+SwZ/qJQ8iLv7+ck385ot4CcisOAPT9w==} + engines: {node: '>= 0.4'} + dependencies: + define-data-property: 1.1.1 + function-bind: 1.1.2 + get-intrinsic: 1.2.2 + gopd: 1.0.1 + has-property-descriptors: 1.0.1 + dev: true + + /set-function-name@2.0.1: + resolution: {integrity: sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA==} + engines: {node: '>= 0.4'} + dependencies: + define-data-property: 1.1.1 + functions-have-names: 1.2.3 + has-property-descriptors: 1.0.1 + dev: true + /shebang-command@2.0.0: resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} engines: {node: '>=8'} @@ -3317,7 +3200,7 @@ packages: resolution: {integrity: sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==} dependencies: spdx-expression-parse: 3.0.1 - spdx-license-ids: 3.0.13 + spdx-license-ids: 3.0.16 dev: true /spdx-exceptions@2.3.0: @@ -3328,11 +3211,11 @@ packages: resolution: {integrity: sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==} dependencies: spdx-exceptions: 2.3.0 - spdx-license-ids: 3.0.13 + spdx-license-ids: 3.0.16 dev: true - /spdx-license-ids@3.0.13: - resolution: {integrity: sha512-XkD+zwiqXHikFZm4AX/7JSCXA98U5Db4AFd5XUg/+9UNtnH75+Z9KxtpYiJZx36mUDVOwH83pl7yvCer6ewM3w==} + /spdx-license-ids@3.0.16: + resolution: {integrity: sha512-eWN+LnM3GR6gPu35WxNgbGl8rmY1AEmoMDvL/QD6zYmPWgywxWqJWNdLGT+ke8dKNWrcYgYjPpG5gbTfghP8rw==} dev: true /stream-events@1.0.5: @@ -3341,8 +3224,8 @@ packages: stubs: 3.0.0 dev: true - /stream-shift@1.0.1: - resolution: {integrity: sha512-AiisoFqQ0vbGcZgQPY1cdP2I76glaVA/RauYR4G4thNFgkTqr90yXTo4LYX60Jl+sIlPNHHdGSwo01AvbKUSVQ==} + /stream-shift@1.0.3: + resolution: {integrity: sha512-76ORR0DO1o1hlKwTbi/DM3EXWGf3ZJYO8cXX5RJwnul2DEg2oyoZyjLNoQM8WsvZiFKCRfC1O0J7iCvie3RZmQ==} dev: true /string-width@4.2.3: @@ -3386,11 +3269,6 @@ packages: engines: {node: '>=6'} dev: true - /strip-final-newline@3.0.0: - resolution: {integrity: sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==} - engines: {node: '>=12'} - dev: true - /strip-indent@3.0.0: resolution: {integrity: sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==} engines: {node: '>=8'} @@ -3431,11 +3309,11 @@ packages: engines: {node: '>= 0.4'} dev: true - /synckit@0.8.5: - resolution: {integrity: sha512-L1dapNV6vu2s/4Sputv8xGsCdAVlb5nRDMFU/E27D44l5U6cw1g0dGd45uLc+OXjNMmF4ntiMdCimzcjFKQI8Q==} + /synckit@0.8.8: + resolution: {integrity: sha512-HwOKAP7Wc5aRGYdKH+dw0PRRpbO841v2DENBtjnR5HFWoiNByAl7vrx3p0G/rCyYXQsrxqtX48TImFtPcIHSpQ==} engines: {node: ^14.18.0 || >=16.0.0} dependencies: - '@pkgr/utils': 2.4.2 + '@pkgr/core': 0.1.1 tslib: 2.6.2 dev: true @@ -3445,7 +3323,7 @@ packages: dependencies: http-proxy-agent: 5.0.0 https-proxy-agent: 5.0.1 - node-fetch: 2.6.12 + node-fetch: 2.7.0 stream-events: 1.0.5 uuid: 9.0.1 transitivePeerDependencies: @@ -3461,11 +3339,6 @@ packages: resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==} dev: true - /titleize@3.0.0: - resolution: {integrity: sha512-KxVu8EYHDPBdUYdKZdKtU2aj2XfEx9AfjXxE/Aj0vT06w2icA09Vus1rh6eSu1y01akYg6BjIK/hxyLJINoMLQ==} - engines: {node: '>=12'} - dev: true - /tmp@0.0.33: resolution: {integrity: sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==} engines: {node: '>=0.6.0'} @@ -3499,8 +3372,8 @@ packages: engines: {node: '>=8'} dev: true - /ts-node@10.9.1(@types/node@18.13.0)(typescript@5.1.6): - resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} + /ts-node@10.9.2(@types/node@18.19.8)(typescript@5.1.6): + resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} hasBin: true peerDependencies: '@swc/core': '>=1.2.50' @@ -3517,10 +3390,10 @@ packages: '@tsconfig/node10': 1.0.9 '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 - '@tsconfig/node16': 1.0.3 - '@types/node': 18.13.0 - acorn: 8.10.0 - acorn-walk: 8.2.0 + '@tsconfig/node16': 1.0.4 + '@types/node': 18.19.8 + acorn: 8.11.3 + acorn-walk: 8.3.2 arg: 4.1.3 create-require: 1.1.1 diff: 4.0.2 @@ -3615,18 +3488,16 @@ packages: /underscore@1.13.6: resolution: {integrity: sha512-+A5Sja4HP1M08MaXya7p5LvjuM7K6q/2EaC0+iovj/wOcMsTzMvDFbasi/oSapiwOlt252IqsKqPjCl7huKS0A==} - /untildify@4.0.0: - resolution: {integrity: sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==} - engines: {node: '>=8'} - dev: true + /undici-types@5.26.5: + resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} - /update-browserslist-db@1.0.11(browserslist@4.21.10): - resolution: {integrity: sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==} + /update-browserslist-db@1.0.13(browserslist@4.22.2): + resolution: {integrity: sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==} hasBin: true peerDependencies: browserslist: '>= 4.21.0' dependencies: - browserslist: 4.21.10 + browserslist: 4.22.2 escalade: 3.1.1 picocolors: 1.0.0 dev: true @@ -3634,7 +3505,7 @@ packages: /uri-js@4.4.1: resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} dependencies: - punycode: 2.3.0 + punycode: 2.3.1 dev: true /util-deprecate@1.0.2: @@ -3681,8 +3552,8 @@ packages: isexe: 2.0.0 dev: true - /word-wrap@1.2.4: - resolution: {integrity: sha512-2V81OA4ugVo5pRo46hAoD2ivUJx8jXmWXfUkY4KFNw0hEptvN0QfH3K4nHiwzGeKl5rFKedV48QVoqYavy4YpA==} + /word-wrap@1.2.5: + resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==} engines: {node: '>=0.10.0'} /workerpool@6.2.1: @@ -3741,6 +3612,11 @@ packages: engines: {node: '>=10'} dev: true + /yargs-parser@20.2.9: + resolution: {integrity: sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==} + engines: {node: '>=10'} + dev: true + /yargs-parser@21.1.1: resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==} engines: {node: '>=12'} diff --git a/protos/index.d.ts b/protos/index.d.ts index dd1d6b1da..dddece8b7 100644 --- a/protos/index.d.ts +++ b/protos/index.d.ts @@ -1697,7 +1697,117 @@ export namespace google { INPUT_ONLY = 4, IMMUTABLE = 5, UNORDERED_LIST = 6, - NON_EMPTY_DEFAULT = 7 + NON_EMPTY_DEFAULT = 7, + IDENTIFIER = 8 + } + + /** Properties of a FieldInfo. */ + interface IFieldInfo { + + /** FieldInfo format */ + format?: (google.api.FieldInfo.Format|null); + } + + /** Represents a FieldInfo. */ + class FieldInfo implements IFieldInfo { + + /** + * Constructs a new FieldInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IFieldInfo); + + /** FieldInfo format. */ + public format: google.api.FieldInfo.Format; + + /** + * Creates a new FieldInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns FieldInfo instance + */ + public static create(properties?: google.api.IFieldInfo): google.api.FieldInfo; + + /** + * Encodes the specified FieldInfo message. Does not implicitly {@link google.api.FieldInfo.verify|verify} messages. + * @param message FieldInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IFieldInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FieldInfo message, length delimited. Does not implicitly {@link google.api.FieldInfo.verify|verify} messages. + * @param message FieldInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.IFieldInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FieldInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FieldInfo + * @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): google.api.FieldInfo; + + /** + * Decodes a FieldInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FieldInfo + * @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)): google.api.FieldInfo; + + /** + * Verifies a FieldInfo 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 FieldInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FieldInfo + */ + public static fromObject(object: { [k: string]: any }): google.api.FieldInfo; + + /** + * Creates a plain object from a FieldInfo message. Also converts values to other types if specified. + * @param message FieldInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.FieldInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FieldInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FieldInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace FieldInfo { + + /** Format enum. */ + enum Format { + FORMAT_UNSPECIFIED = 0, + UUID4 = 1, + IPV4 = 2, + IPV6 = 3, + IPV4_OR_IPV6 = 4 + } } /** Properties of a ResourceDescriptor. */ @@ -2441,6 +2551,9 @@ export namespace google { /** Publishing librarySettings */ librarySettings?: (google.api.IClientLibrarySettings[]|null); + + /** Publishing protoReferenceDocumentationUri */ + protoReferenceDocumentationUri?: (string|null); } /** Represents a Publishing. */ @@ -2479,6 +2592,9 @@ export namespace google { /** Publishing librarySettings. */ public librarySettings: google.api.IClientLibrarySettings[]; + /** Publishing protoReferenceDocumentationUri. */ + public protoReferenceDocumentationUri: string; + /** * Creates a new Publishing instance using the specified properties. * @param [properties] Properties to set @@ -3059,6 +3175,21 @@ export namespace google { /** DotnetSettings common */ common?: (google.api.ICommonLanguageSettings|null); + + /** DotnetSettings renamedServices */ + renamedServices?: ({ [k: string]: string }|null); + + /** DotnetSettings renamedResources */ + renamedResources?: ({ [k: string]: string }|null); + + /** DotnetSettings ignoredResources */ + ignoredResources?: (string[]|null); + + /** DotnetSettings forcedNamespaceAliases */ + forcedNamespaceAliases?: (string[]|null); + + /** DotnetSettings handwrittenSignatures */ + handwrittenSignatures?: (string[]|null); } /** Represents a DotnetSettings. */ @@ -3073,6 +3204,21 @@ export namespace google { /** DotnetSettings common. */ public common?: (google.api.ICommonLanguageSettings|null); + /** DotnetSettings renamedServices. */ + public renamedServices: { [k: string]: string }; + + /** DotnetSettings renamedResources. */ + public renamedResources: { [k: string]: string }; + + /** DotnetSettings ignoredResources. */ + public ignoredResources: string[]; + + /** DotnetSettings forcedNamespaceAliases. */ + public forcedNamespaceAliases: string[]; + + /** DotnetSettings handwrittenSignatures. */ + public handwrittenSignatures: string[]; + /** * Creates a new DotnetSettings instance using the specified properties. * @param [properties] Properties to set @@ -3353,6 +3499,9 @@ export namespace google { /** MethodSettings longRunning */ longRunning?: (google.api.MethodSettings.ILongRunning|null); + + /** MethodSettings autoPopulatedFields */ + autoPopulatedFields?: (string[]|null); } /** Represents a MethodSettings. */ @@ -3370,6 +3519,9 @@ export namespace google { /** MethodSettings longRunning. */ public longRunning?: (google.api.MethodSettings.ILongRunning|null); + /** MethodSettings autoPopulatedFields. */ + public autoPopulatedFields: string[]; + /** * Creates a new MethodSettings instance using the specified properties. * @param [properties] Properties to set @@ -3572,7 +3724,10 @@ export namespace google { CLOUD = 1, ADS = 2, PHOTOS = 3, - STREET_VIEW = 4 + STREET_VIEW = 4, + SHOPPING = 5, + GEO = 6, + GENERATIVE_AI = 7 } /** ClientLibraryDestination enum. */ @@ -3695,6 +3850,21 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Edition enum. */ + enum Edition { + EDITION_UNKNOWN = 0, + EDITION_PROTO2 = 998, + EDITION_PROTO3 = 999, + EDITION_2023 = 1000, + EDITION_2024 = 1001, + EDITION_1_TEST_ONLY = 1, + EDITION_2_TEST_ONLY = 2, + EDITION_99997_TEST_ONLY = 99997, + EDITION_99998_TEST_ONLY = 99998, + EDITION_99999_TEST_ONLY = 99999, + EDITION_MAX = 2147483647 + } + /** Properties of a FileDescriptorProto. */ interface IFileDescriptorProto { @@ -3735,7 +3905,7 @@ export namespace google { syntax?: (string|null); /** FileDescriptorProto edition */ - edition?: (string|null); + edition?: (google.protobuf.Edition|null); } /** Represents a FileDescriptorProto. */ @@ -3784,7 +3954,7 @@ export namespace google { public syntax: string; /** FileDescriptorProto edition. */ - public edition: string; + public edition: google.protobuf.Edition; /** * Creates a new FileDescriptorProto instance using the specified properties. @@ -4235,6 +4405,15 @@ export namespace google { /** ExtensionRangeOptions uninterpretedOption */ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** ExtensionRangeOptions declaration */ + declaration?: (google.protobuf.ExtensionRangeOptions.IDeclaration[]|null); + + /** ExtensionRangeOptions features */ + features?: (google.protobuf.IFeatureSet|null); + + /** ExtensionRangeOptions verification */ + verification?: (google.protobuf.ExtensionRangeOptions.VerificationState|null); } /** Represents an ExtensionRangeOptions. */ @@ -4249,6 +4428,15 @@ export namespace google { /** ExtensionRangeOptions uninterpretedOption. */ public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** ExtensionRangeOptions declaration. */ + public declaration: google.protobuf.ExtensionRangeOptions.IDeclaration[]; + + /** ExtensionRangeOptions features. */ + public features?: (google.protobuf.IFeatureSet|null); + + /** ExtensionRangeOptions verification. */ + public verification: google.protobuf.ExtensionRangeOptions.VerificationState; + /** * Creates a new ExtensionRangeOptions instance using the specified properties. * @param [properties] Properties to set @@ -4327,6 +4515,136 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + namespace ExtensionRangeOptions { + + /** Properties of a Declaration. */ + interface IDeclaration { + + /** Declaration number */ + number?: (number|null); + + /** Declaration fullName */ + fullName?: (string|null); + + /** Declaration type */ + type?: (string|null); + + /** Declaration reserved */ + reserved?: (boolean|null); + + /** Declaration repeated */ + repeated?: (boolean|null); + } + + /** Represents a Declaration. */ + class Declaration implements IDeclaration { + + /** + * Constructs a new Declaration. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.ExtensionRangeOptions.IDeclaration); + + /** Declaration number. */ + public number: number; + + /** Declaration fullName. */ + public fullName: string; + + /** Declaration type. */ + public type: string; + + /** Declaration reserved. */ + public reserved: boolean; + + /** Declaration repeated. */ + public repeated: boolean; + + /** + * Creates a new Declaration instance using the specified properties. + * @param [properties] Properties to set + * @returns Declaration instance + */ + public static create(properties?: google.protobuf.ExtensionRangeOptions.IDeclaration): google.protobuf.ExtensionRangeOptions.Declaration; + + /** + * Encodes the specified Declaration message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages. + * @param message Declaration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.ExtensionRangeOptions.IDeclaration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Declaration message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages. + * @param message Declaration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.ExtensionRangeOptions.IDeclaration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Declaration message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Declaration + * @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): google.protobuf.ExtensionRangeOptions.Declaration; + + /** + * Decodes a Declaration message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Declaration + * @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)): google.protobuf.ExtensionRangeOptions.Declaration; + + /** + * Verifies a Declaration 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 Declaration message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Declaration + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions.Declaration; + + /** + * Creates a plain object from a Declaration message. Also converts values to other types if specified. + * @param message Declaration + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ExtensionRangeOptions.Declaration, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Declaration to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Declaration + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** VerificationState enum. */ + enum VerificationState { + DECLARATION = 0, + UNVERIFIED = 1 + } + } + /** Properties of a FieldDescriptorProto. */ interface IFieldDescriptorProto { @@ -4511,8 +4829,8 @@ export namespace google { /** Label enum. */ enum Label { LABEL_OPTIONAL = 1, - LABEL_REQUIRED = 2, - LABEL_REPEATED = 3 + LABEL_REPEATED = 3, + LABEL_REQUIRED = 2 } } @@ -5224,9 +5542,6 @@ export namespace google { /** FileOptions pyGenericServices */ pyGenericServices?: (boolean|null); - /** FileOptions phpGenericServices */ - phpGenericServices?: (boolean|null); - /** FileOptions deprecated */ deprecated?: (boolean|null); @@ -5254,6 +5569,9 @@ export namespace google { /** FileOptions rubyPackage */ rubyPackage?: (string|null); + /** FileOptions features */ + features?: (google.protobuf.IFeatureSet|null); + /** FileOptions uninterpretedOption */ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); @@ -5300,9 +5618,6 @@ export namespace google { /** FileOptions pyGenericServices. */ public pyGenericServices: boolean; - /** FileOptions phpGenericServices. */ - public phpGenericServices: boolean; - /** FileOptions deprecated. */ public deprecated: boolean; @@ -5330,6 +5645,9 @@ export namespace google { /** FileOptions rubyPackage. */ public rubyPackage: string; + /** FileOptions features. */ + public features?: (google.protobuf.IFeatureSet|null); + /** FileOptions uninterpretedOption. */ public uninterpretedOption: google.protobuf.IUninterpretedOption[]; @@ -5439,6 +5757,9 @@ export namespace google { /** MessageOptions deprecatedLegacyJsonFieldConflicts */ deprecatedLegacyJsonFieldConflicts?: (boolean|null); + /** MessageOptions features */ + features?: (google.protobuf.IFeatureSet|null); + /** MessageOptions uninterpretedOption */ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); @@ -5470,6 +5791,9 @@ export namespace google { /** MessageOptions deprecatedLegacyJsonFieldConflicts. */ public deprecatedLegacyJsonFieldConflicts: boolean; + /** MessageOptions features. */ + public features?: (google.protobuf.IFeatureSet|null); + /** MessageOptions uninterpretedOption. */ public uninterpretedOption: google.protobuf.IUninterpretedOption[]; @@ -5581,8 +5905,14 @@ export namespace google { /** FieldOptions retention */ retention?: (google.protobuf.FieldOptions.OptionRetention|null); - /** FieldOptions target */ - target?: (google.protobuf.FieldOptions.OptionTargetType|null); + /** FieldOptions targets */ + targets?: (google.protobuf.FieldOptions.OptionTargetType[]|null); + + /** FieldOptions editionDefaults */ + editionDefaults?: (google.protobuf.FieldOptions.IEditionDefault[]|null); + + /** FieldOptions features */ + features?: (google.protobuf.IFeatureSet|null); /** FieldOptions uninterpretedOption */ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); @@ -5590,6 +5920,9 @@ export namespace google { /** FieldOptions .google.api.fieldBehavior */ ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null); + /** FieldOptions .google.api.fieldInfo */ + ".google.api.fieldInfo"?: (google.api.IFieldInfo|null); + /** FieldOptions .google.api.resourceReference */ ".google.api.resourceReference"?: (google.api.IResourceReference|null); } @@ -5630,8 +5963,14 @@ export namespace google { /** FieldOptions retention. */ public retention: google.protobuf.FieldOptions.OptionRetention; - /** FieldOptions target. */ - public target: google.protobuf.FieldOptions.OptionTargetType; + /** FieldOptions targets. */ + public targets: google.protobuf.FieldOptions.OptionTargetType[]; + + /** FieldOptions editionDefaults. */ + public editionDefaults: google.protobuf.FieldOptions.IEditionDefault[]; + + /** FieldOptions features. */ + public features?: (google.protobuf.IFeatureSet|null); /** FieldOptions uninterpretedOption. */ public uninterpretedOption: google.protobuf.IUninterpretedOption[]; @@ -5750,11 +6089,117 @@ export namespace google { TARGET_TYPE_SERVICE = 8, TARGET_TYPE_METHOD = 9 } + + /** Properties of an EditionDefault. */ + interface IEditionDefault { + + /** EditionDefault edition */ + edition?: (google.protobuf.Edition|null); + + /** EditionDefault value */ + value?: (string|null); + } + + /** Represents an EditionDefault. */ + class EditionDefault implements IEditionDefault { + + /** + * Constructs a new EditionDefault. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.FieldOptions.IEditionDefault); + + /** EditionDefault edition. */ + public edition: google.protobuf.Edition; + + /** EditionDefault value. */ + public value: string; + + /** + * Creates a new EditionDefault instance using the specified properties. + * @param [properties] Properties to set + * @returns EditionDefault instance + */ + public static create(properties?: google.protobuf.FieldOptions.IEditionDefault): google.protobuf.FieldOptions.EditionDefault; + + /** + * Encodes the specified EditionDefault message. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages. + * @param message EditionDefault message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.FieldOptions.IEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages. + * @param message EditionDefault message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.FieldOptions.IEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EditionDefault message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EditionDefault + * @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): google.protobuf.FieldOptions.EditionDefault; + + /** + * Decodes an EditionDefault message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EditionDefault + * @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)): google.protobuf.FieldOptions.EditionDefault; + + /** + * Verifies an EditionDefault 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 EditionDefault message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EditionDefault + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions.EditionDefault; + + /** + * Creates a plain object from an EditionDefault message. Also converts values to other types if specified. + * @param message EditionDefault + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FieldOptions.EditionDefault, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EditionDefault to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EditionDefault + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } /** Properties of an OneofOptions. */ interface IOneofOptions { + /** OneofOptions features */ + features?: (google.protobuf.IFeatureSet|null); + /** OneofOptions uninterpretedOption */ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); } @@ -5768,6 +6213,9 @@ export namespace google { */ constructor(properties?: google.protobuf.IOneofOptions); + /** OneofOptions features. */ + public features?: (google.protobuf.IFeatureSet|null); + /** OneofOptions uninterpretedOption. */ public uninterpretedOption: google.protobuf.IUninterpretedOption[]; @@ -5861,6 +6309,9 @@ export namespace google { /** EnumOptions deprecatedLegacyJsonFieldConflicts */ deprecatedLegacyJsonFieldConflicts?: (boolean|null); + /** EnumOptions features */ + features?: (google.protobuf.IFeatureSet|null); + /** EnumOptions uninterpretedOption */ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); } @@ -5883,6 +6334,9 @@ export namespace google { /** EnumOptions deprecatedLegacyJsonFieldConflicts. */ public deprecatedLegacyJsonFieldConflicts: boolean; + /** EnumOptions features. */ + public features?: (google.protobuf.IFeatureSet|null); + /** EnumOptions uninterpretedOption. */ public uninterpretedOption: google.protobuf.IUninterpretedOption[]; @@ -5970,6 +6424,12 @@ export namespace google { /** EnumValueOptions deprecated */ deprecated?: (boolean|null); + /** EnumValueOptions features */ + features?: (google.protobuf.IFeatureSet|null); + + /** EnumValueOptions debugRedact */ + debugRedact?: (boolean|null); + /** EnumValueOptions uninterpretedOption */ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); } @@ -5986,6 +6446,12 @@ export namespace google { /** EnumValueOptions deprecated. */ public deprecated: boolean; + /** EnumValueOptions features. */ + public features?: (google.protobuf.IFeatureSet|null); + + /** EnumValueOptions debugRedact. */ + public debugRedact: boolean; + /** EnumValueOptions uninterpretedOption. */ public uninterpretedOption: google.protobuf.IUninterpretedOption[]; @@ -6070,6 +6536,9 @@ export namespace google { /** Properties of a ServiceOptions. */ interface IServiceOptions { + /** ServiceOptions features */ + features?: (google.protobuf.IFeatureSet|null); + /** ServiceOptions deprecated */ deprecated?: (boolean|null); @@ -6092,6 +6561,9 @@ export namespace google { */ constructor(properties?: google.protobuf.IServiceOptions); + /** ServiceOptions features. */ + public features?: (google.protobuf.IFeatureSet|null); + /** ServiceOptions deprecated. */ public deprecated: boolean; @@ -6185,6 +6657,9 @@ export namespace google { /** MethodOptions idempotencyLevel */ idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|null); + /** MethodOptions features */ + features?: (google.protobuf.IFeatureSet|null); + /** MethodOptions uninterpretedOption */ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); @@ -6216,6 +6691,9 @@ export namespace google { /** MethodOptions idempotencyLevel. */ public idempotencyLevel: google.protobuf.MethodOptions.IdempotencyLevel; + /** MethodOptions features. */ + public features?: (google.protobuf.IFeatureSet|null); + /** MethodOptions uninterpretedOption. */ public uninterpretedOption: google.protobuf.IUninterpretedOption[]; @@ -6546,6 +7024,394 @@ export namespace google { } } + /** Properties of a FeatureSet. */ + interface IFeatureSet { + + /** FeatureSet fieldPresence */ + fieldPresence?: (google.protobuf.FeatureSet.FieldPresence|null); + + /** FeatureSet enumType */ + enumType?: (google.protobuf.FeatureSet.EnumType|null); + + /** FeatureSet repeatedFieldEncoding */ + repeatedFieldEncoding?: (google.protobuf.FeatureSet.RepeatedFieldEncoding|null); + + /** FeatureSet utf8Validation */ + utf8Validation?: (google.protobuf.FeatureSet.Utf8Validation|null); + + /** FeatureSet messageEncoding */ + messageEncoding?: (google.protobuf.FeatureSet.MessageEncoding|null); + + /** FeatureSet jsonFormat */ + jsonFormat?: (google.protobuf.FeatureSet.JsonFormat|null); + } + + /** Represents a FeatureSet. */ + class FeatureSet implements IFeatureSet { + + /** + * Constructs a new FeatureSet. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFeatureSet); + + /** FeatureSet fieldPresence. */ + public fieldPresence: google.protobuf.FeatureSet.FieldPresence; + + /** FeatureSet enumType. */ + public enumType: google.protobuf.FeatureSet.EnumType; + + /** FeatureSet repeatedFieldEncoding. */ + public repeatedFieldEncoding: google.protobuf.FeatureSet.RepeatedFieldEncoding; + + /** FeatureSet utf8Validation. */ + public utf8Validation: google.protobuf.FeatureSet.Utf8Validation; + + /** FeatureSet messageEncoding. */ + public messageEncoding: google.protobuf.FeatureSet.MessageEncoding; + + /** FeatureSet jsonFormat. */ + public jsonFormat: google.protobuf.FeatureSet.JsonFormat; + + /** + * Creates a new FeatureSet instance using the specified properties. + * @param [properties] Properties to set + * @returns FeatureSet instance + */ + public static create(properties?: google.protobuf.IFeatureSet): google.protobuf.FeatureSet; + + /** + * Encodes the specified FeatureSet message. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages. + * @param message FeatureSet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFeatureSet, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FeatureSet message, length delimited. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages. + * @param message FeatureSet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFeatureSet, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FeatureSet message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FeatureSet + * @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): google.protobuf.FeatureSet; + + /** + * Decodes a FeatureSet message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FeatureSet + * @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)): google.protobuf.FeatureSet; + + /** + * Verifies a FeatureSet 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 FeatureSet message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FeatureSet + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSet; + + /** + * Creates a plain object from a FeatureSet message. Also converts values to other types if specified. + * @param message FeatureSet + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FeatureSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FeatureSet to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FeatureSet + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace FeatureSet { + + /** FieldPresence enum. */ + enum FieldPresence { + FIELD_PRESENCE_UNKNOWN = 0, + EXPLICIT = 1, + IMPLICIT = 2, + LEGACY_REQUIRED = 3 + } + + /** EnumType enum. */ + enum EnumType { + ENUM_TYPE_UNKNOWN = 0, + OPEN = 1, + CLOSED = 2 + } + + /** RepeatedFieldEncoding enum. */ + enum RepeatedFieldEncoding { + REPEATED_FIELD_ENCODING_UNKNOWN = 0, + PACKED = 1, + EXPANDED = 2 + } + + /** Utf8Validation enum. */ + enum Utf8Validation { + UTF8_VALIDATION_UNKNOWN = 0, + VERIFY = 2, + NONE = 3 + } + + /** MessageEncoding enum. */ + enum MessageEncoding { + MESSAGE_ENCODING_UNKNOWN = 0, + LENGTH_PREFIXED = 1, + DELIMITED = 2 + } + + /** JsonFormat enum. */ + enum JsonFormat { + JSON_FORMAT_UNKNOWN = 0, + ALLOW = 1, + LEGACY_BEST_EFFORT = 2 + } + } + + /** Properties of a FeatureSetDefaults. */ + interface IFeatureSetDefaults { + + /** FeatureSetDefaults defaults */ + defaults?: (google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault[]|null); + + /** FeatureSetDefaults minimumEdition */ + minimumEdition?: (google.protobuf.Edition|null); + + /** FeatureSetDefaults maximumEdition */ + maximumEdition?: (google.protobuf.Edition|null); + } + + /** Represents a FeatureSetDefaults. */ + class FeatureSetDefaults implements IFeatureSetDefaults { + + /** + * Constructs a new FeatureSetDefaults. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFeatureSetDefaults); + + /** FeatureSetDefaults defaults. */ + public defaults: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault[]; + + /** FeatureSetDefaults minimumEdition. */ + public minimumEdition: google.protobuf.Edition; + + /** FeatureSetDefaults maximumEdition. */ + public maximumEdition: google.protobuf.Edition; + + /** + * Creates a new FeatureSetDefaults instance using the specified properties. + * @param [properties] Properties to set + * @returns FeatureSetDefaults instance + */ + public static create(properties?: google.protobuf.IFeatureSetDefaults): google.protobuf.FeatureSetDefaults; + + /** + * Encodes the specified FeatureSetDefaults message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages. + * @param message FeatureSetDefaults message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFeatureSetDefaults, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FeatureSetDefaults message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages. + * @param message FeatureSetDefaults message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFeatureSetDefaults, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FeatureSetDefaults message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FeatureSetDefaults + * @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): google.protobuf.FeatureSetDefaults; + + /** + * Decodes a FeatureSetDefaults message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FeatureSetDefaults + * @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)): google.protobuf.FeatureSetDefaults; + + /** + * Verifies a FeatureSetDefaults 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 FeatureSetDefaults message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FeatureSetDefaults + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSetDefaults; + + /** + * Creates a plain object from a FeatureSetDefaults message. Also converts values to other types if specified. + * @param message FeatureSetDefaults + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FeatureSetDefaults, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FeatureSetDefaults to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FeatureSetDefaults + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace FeatureSetDefaults { + + /** Properties of a FeatureSetEditionDefault. */ + interface IFeatureSetEditionDefault { + + /** FeatureSetEditionDefault edition */ + edition?: (google.protobuf.Edition|null); + + /** FeatureSetEditionDefault features */ + features?: (google.protobuf.IFeatureSet|null); + } + + /** Represents a FeatureSetEditionDefault. */ + class FeatureSetEditionDefault implements IFeatureSetEditionDefault { + + /** + * Constructs a new FeatureSetEditionDefault. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault); + + /** FeatureSetEditionDefault edition. */ + public edition: google.protobuf.Edition; + + /** FeatureSetEditionDefault features. */ + public features?: (google.protobuf.IFeatureSet|null); + + /** + * Creates a new FeatureSetEditionDefault instance using the specified properties. + * @param [properties] Properties to set + * @returns FeatureSetEditionDefault instance + */ + public static create(properties?: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault; + + /** + * Encodes the specified FeatureSetEditionDefault message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages. + * @param message FeatureSetEditionDefault message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FeatureSetEditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages. + * @param message FeatureSetEditionDefault message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FeatureSetEditionDefault message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FeatureSetEditionDefault + * @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): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault; + + /** + * Decodes a FeatureSetEditionDefault message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FeatureSetEditionDefault + * @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)): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault; + + /** + * Verifies a FeatureSetEditionDefault 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 FeatureSetEditionDefault message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FeatureSetEditionDefault + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault; + + /** + * Creates a plain object from a FeatureSetEditionDefault message. Also converts values to other types if specified. + * @param message FeatureSetEditionDefault + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FeatureSetEditionDefault to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FeatureSetEditionDefault + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + /** Properties of a SourceCodeInfo. */ interface ISourceCodeInfo { @@ -7425,6 +8291,9 @@ export namespace google { /** CodeGeneratorRequest protoFile */ protoFile?: (google.protobuf.IFileDescriptorProto[]|null); + /** CodeGeneratorRequest sourceFileDescriptors */ + sourceFileDescriptors?: (google.protobuf.IFileDescriptorProto[]|null); + /** CodeGeneratorRequest compilerVersion */ compilerVersion?: (google.protobuf.compiler.IVersion|null); } @@ -7447,6 +8316,9 @@ export namespace google { /** CodeGeneratorRequest protoFile. */ public protoFile: google.protobuf.IFileDescriptorProto[]; + /** CodeGeneratorRequest sourceFileDescriptors. */ + public sourceFileDescriptors: google.protobuf.IFileDescriptorProto[]; + /** CodeGeneratorRequest compilerVersion. */ public compilerVersion?: (google.protobuf.compiler.IVersion|null); @@ -7537,6 +8409,12 @@ export namespace google { /** CodeGeneratorResponse supportedFeatures */ supportedFeatures?: (number|Long|null); + /** CodeGeneratorResponse minimumEdition */ + minimumEdition?: (number|null); + + /** CodeGeneratorResponse maximumEdition */ + maximumEdition?: (number|null); + /** CodeGeneratorResponse file */ file?: (google.protobuf.compiler.CodeGeneratorResponse.IFile[]|null); } @@ -7556,6 +8434,12 @@ export namespace google { /** CodeGeneratorResponse supportedFeatures. */ public supportedFeatures: (number|Long); + /** CodeGeneratorResponse minimumEdition. */ + public minimumEdition: number; + + /** CodeGeneratorResponse maximumEdition. */ + public maximumEdition: number; + /** CodeGeneratorResponse file. */ public file: google.protobuf.compiler.CodeGeneratorResponse.IFile[]; @@ -7642,7 +8526,8 @@ export namespace google { /** Feature enum. */ enum Feature { FEATURE_NONE = 0, - FEATURE_PROTO3_OPTIONAL = 1 + FEATURE_PROTO3_OPTIONAL = 1, + FEATURE_SUPPORTS_EDITIONS = 2 } /** Properties of a File. */ diff --git a/protos/index.js b/protos/index.js index 9cb8a451f..7ac2d202f 100644 --- a/protos/index.js +++ b/protos/index.js @@ -4532,6 +4532,7 @@ * @property {number} IMMUTABLE=5 IMMUTABLE value * @property {number} UNORDERED_LIST=6 UNORDERED_LIST value * @property {number} NON_EMPTY_DEFAULT=7 NON_EMPTY_DEFAULT value + * @property {number} IDENTIFIER=8 IDENTIFIER value */ api.FieldBehavior = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -4543,9 +4544,267 @@ values[valuesById[5] = "IMMUTABLE"] = 5; values[valuesById[6] = "UNORDERED_LIST"] = 6; values[valuesById[7] = "NON_EMPTY_DEFAULT"] = 7; + values[valuesById[8] = "IDENTIFIER"] = 8; return values; })(); + api.FieldInfo = (function() { + + /** + * Properties of a FieldInfo. + * @memberof google.api + * @interface IFieldInfo + * @property {google.api.FieldInfo.Format|null} [format] FieldInfo format + */ + + /** + * Constructs a new FieldInfo. + * @memberof google.api + * @classdesc Represents a FieldInfo. + * @implements IFieldInfo + * @constructor + * @param {google.api.IFieldInfo=} [properties] Properties to set + */ + function FieldInfo(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]]; + } + + /** + * FieldInfo format. + * @member {google.api.FieldInfo.Format} format + * @memberof google.api.FieldInfo + * @instance + */ + FieldInfo.prototype.format = 0; + + /** + * Creates a new FieldInfo instance using the specified properties. + * @function create + * @memberof google.api.FieldInfo + * @static + * @param {google.api.IFieldInfo=} [properties] Properties to set + * @returns {google.api.FieldInfo} FieldInfo instance + */ + FieldInfo.create = function create(properties) { + return new FieldInfo(properties); + }; + + /** + * Encodes the specified FieldInfo message. Does not implicitly {@link google.api.FieldInfo.verify|verify} messages. + * @function encode + * @memberof google.api.FieldInfo + * @static + * @param {google.api.IFieldInfo} message FieldInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.format != null && Object.hasOwnProperty.call(message, "format")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.format); + return writer; + }; + + /** + * Encodes the specified FieldInfo message, length delimited. Does not implicitly {@link google.api.FieldInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.FieldInfo + * @static + * @param {google.api.IFieldInfo} message FieldInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FieldInfo message from the specified reader or buffer. + * @function decode + * @memberof google.api.FieldInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.FieldInfo} FieldInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldInfo.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.google.api.FieldInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.format = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FieldInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.FieldInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.FieldInfo} FieldInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FieldInfo message. + * @function verify + * @memberof google.api.FieldInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FieldInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.format != null && message.hasOwnProperty("format")) + switch (message.format) { + default: + return "format: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + return null; + }; + + /** + * Creates a FieldInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.FieldInfo + * @static + * @param {Object.} object Plain object + * @returns {google.api.FieldInfo} FieldInfo + */ + FieldInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.FieldInfo) + return object; + var message = new $root.google.api.FieldInfo(); + switch (object.format) { + default: + if (typeof object.format === "number") { + message.format = object.format; + break; + } + break; + case "FORMAT_UNSPECIFIED": + case 0: + message.format = 0; + break; + case "UUID4": + case 1: + message.format = 1; + break; + case "IPV4": + case 2: + message.format = 2; + break; + case "IPV6": + case 3: + message.format = 3; + break; + case "IPV4_OR_IPV6": + case 4: + message.format = 4; + break; + } + return message; + }; + + /** + * Creates a plain object from a FieldInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.FieldInfo + * @static + * @param {google.api.FieldInfo} message FieldInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FieldInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.format = options.enums === String ? "FORMAT_UNSPECIFIED" : 0; + if (message.format != null && message.hasOwnProperty("format")) + object.format = options.enums === String ? $root.google.api.FieldInfo.Format[message.format] === undefined ? message.format : $root.google.api.FieldInfo.Format[message.format] : message.format; + return object; + }; + + /** + * Converts this FieldInfo to JSON. + * @function toJSON + * @memberof google.api.FieldInfo + * @instance + * @returns {Object.} JSON object + */ + FieldInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FieldInfo + * @function getTypeUrl + * @memberof google.api.FieldInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FieldInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.FieldInfo"; + }; + + /** + * Format enum. + * @name google.api.FieldInfo.Format + * @enum {number} + * @property {number} FORMAT_UNSPECIFIED=0 FORMAT_UNSPECIFIED value + * @property {number} UUID4=1 UUID4 value + * @property {number} IPV4=2 IPV4 value + * @property {number} IPV6=3 IPV6 value + * @property {number} IPV4_OR_IPV6=4 IPV4_OR_IPV6 value + */ + FieldInfo.Format = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "FORMAT_UNSPECIFIED"] = 0; + values[valuesById[1] = "UUID4"] = 1; + values[valuesById[2] = "IPV4"] = 2; + values[valuesById[3] = "IPV6"] = 3; + values[valuesById[4] = "IPV4_OR_IPV6"] = 4; + return values; + })(); + + return FieldInfo; + })(); + api.ResourceDescriptor = (function() { /** @@ -6494,6 +6753,7 @@ * @property {string|null} [docTagPrefix] Publishing docTagPrefix * @property {google.api.ClientLibraryOrganization|null} [organization] Publishing organization * @property {Array.|null} [librarySettings] Publishing librarySettings + * @property {string|null} [protoReferenceDocumentationUri] Publishing protoReferenceDocumentationUri */ /** @@ -6586,6 +6846,14 @@ */ Publishing.prototype.librarySettings = $util.emptyArray; + /** + * Publishing protoReferenceDocumentationUri. + * @member {string} protoReferenceDocumentationUri + * @memberof google.api.Publishing + * @instance + */ + Publishing.prototype.protoReferenceDocumentationUri = ""; + /** * Creates a new Publishing instance using the specified properties. * @function create @@ -6631,6 +6899,8 @@ if (message.librarySettings != null && message.librarySettings.length) for (var i = 0; i < message.librarySettings.length; ++i) $root.google.api.ClientLibrarySettings.encode(message.librarySettings[i], writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim(); + if (message.protoReferenceDocumentationUri != null && Object.hasOwnProperty.call(message, "protoReferenceDocumentationUri")) + writer.uint32(/* id 110, wireType 2 =*/882).string(message.protoReferenceDocumentationUri); return writer; }; @@ -6707,6 +6977,10 @@ message.librarySettings.push($root.google.api.ClientLibrarySettings.decode(reader, reader.uint32())); break; } + case 110: { + message.protoReferenceDocumentationUri = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -6782,6 +7056,9 @@ case 2: case 3: case 4: + case 5: + case 6: + case 7: break; } if (message.librarySettings != null && message.hasOwnProperty("librarySettings")) { @@ -6793,6 +7070,9 @@ return "librarySettings." + error; } } + if (message.protoReferenceDocumentationUri != null && message.hasOwnProperty("protoReferenceDocumentationUri")) + if (!$util.isString(message.protoReferenceDocumentationUri)) + return "protoReferenceDocumentationUri: string expected"; return null; }; @@ -6862,6 +7142,18 @@ case 4: message.organization = 4; break; + case "SHOPPING": + case 5: + message.organization = 5; + break; + case "GEO": + case 6: + message.organization = 6; + break; + case "GENERATIVE_AI": + case 7: + message.organization = 7; + break; } if (object.librarySettings) { if (!Array.isArray(object.librarySettings)) @@ -6873,6 +7165,8 @@ message.librarySettings[i] = $root.google.api.ClientLibrarySettings.fromObject(object.librarySettings[i]); } } + if (object.protoReferenceDocumentationUri != null) + message.protoReferenceDocumentationUri = String(object.protoReferenceDocumentationUri); return message; }; @@ -6901,6 +7195,7 @@ object.githubLabel = ""; object.docTagPrefix = ""; object.organization = options.enums === String ? "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED" : 0; + object.protoReferenceDocumentationUri = ""; } if (message.methodSettings && message.methodSettings.length) { object.methodSettings = []; @@ -6929,6 +7224,8 @@ for (var j = 0; j < message.librarySettings.length; ++j) object.librarySettings[j] = $root.google.api.ClientLibrarySettings.toObject(message.librarySettings[j], options); } + if (message.protoReferenceDocumentationUri != null && message.hasOwnProperty("protoReferenceDocumentationUri")) + object.protoReferenceDocumentationUri = message.protoReferenceDocumentationUri; return object; }; @@ -8091,6 +8388,11 @@ * @memberof google.api * @interface IDotnetSettings * @property {google.api.ICommonLanguageSettings|null} [common] DotnetSettings common + * @property {Object.|null} [renamedServices] DotnetSettings renamedServices + * @property {Object.|null} [renamedResources] DotnetSettings renamedResources + * @property {Array.|null} [ignoredResources] DotnetSettings ignoredResources + * @property {Array.|null} [forcedNamespaceAliases] DotnetSettings forcedNamespaceAliases + * @property {Array.|null} [handwrittenSignatures] DotnetSettings handwrittenSignatures */ /** @@ -8102,6 +8404,11 @@ * @param {google.api.IDotnetSettings=} [properties] Properties to set */ function DotnetSettings(properties) { + this.renamedServices = {}; + this.renamedResources = {}; + this.ignoredResources = []; + this.forcedNamespaceAliases = []; + this.handwrittenSignatures = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8116,6 +8423,46 @@ */ DotnetSettings.prototype.common = null; + /** + * DotnetSettings renamedServices. + * @member {Object.} renamedServices + * @memberof google.api.DotnetSettings + * @instance + */ + DotnetSettings.prototype.renamedServices = $util.emptyObject; + + /** + * DotnetSettings renamedResources. + * @member {Object.} renamedResources + * @memberof google.api.DotnetSettings + * @instance + */ + DotnetSettings.prototype.renamedResources = $util.emptyObject; + + /** + * DotnetSettings ignoredResources. + * @member {Array.} ignoredResources + * @memberof google.api.DotnetSettings + * @instance + */ + DotnetSettings.prototype.ignoredResources = $util.emptyArray; + + /** + * DotnetSettings forcedNamespaceAliases. + * @member {Array.} forcedNamespaceAliases + * @memberof google.api.DotnetSettings + * @instance + */ + DotnetSettings.prototype.forcedNamespaceAliases = $util.emptyArray; + + /** + * DotnetSettings handwrittenSignatures. + * @member {Array.} handwrittenSignatures + * @memberof google.api.DotnetSettings + * @instance + */ + DotnetSettings.prototype.handwrittenSignatures = $util.emptyArray; + /** * Creates a new DotnetSettings instance using the specified properties. * @function create @@ -8142,6 +8489,21 @@ writer = $Writer.create(); if (message.common != null && Object.hasOwnProperty.call(message, "common")) $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.renamedServices != null && Object.hasOwnProperty.call(message, "renamedServices")) + for (var keys = Object.keys(message.renamedServices), i = 0; i < keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.renamedServices[keys[i]]).ldelim(); + if (message.renamedResources != null && Object.hasOwnProperty.call(message, "renamedResources")) + for (var keys = Object.keys(message.renamedResources), i = 0; i < keys.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.renamedResources[keys[i]]).ldelim(); + if (message.ignoredResources != null && message.ignoredResources.length) + for (var i = 0; i < message.ignoredResources.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.ignoredResources[i]); + if (message.forcedNamespaceAliases != null && message.forcedNamespaceAliases.length) + for (var i = 0; i < message.forcedNamespaceAliases.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.forcedNamespaceAliases[i]); + if (message.handwrittenSignatures != null && message.handwrittenSignatures.length) + for (var i = 0; i < message.handwrittenSignatures.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.handwrittenSignatures[i]); return writer; }; @@ -8172,7 +8534,7 @@ DotnetSettings.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.google.api.DotnetSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.DotnetSettings(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -8180,6 +8542,70 @@ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); break; } + case 2: { + if (message.renamedServices === $util.emptyObject) + message.renamedServices = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.renamedServices[key] = value; + break; + } + case 3: { + if (message.renamedResources === $util.emptyObject) + message.renamedResources = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.renamedResources[key] = value; + break; + } + case 4: { + if (!(message.ignoredResources && message.ignoredResources.length)) + message.ignoredResources = []; + message.ignoredResources.push(reader.string()); + break; + } + case 5: { + if (!(message.forcedNamespaceAliases && message.forcedNamespaceAliases.length)) + message.forcedNamespaceAliases = []; + message.forcedNamespaceAliases.push(reader.string()); + break; + } + case 6: { + if (!(message.handwrittenSignatures && message.handwrittenSignatures.length)) + message.handwrittenSignatures = []; + message.handwrittenSignatures.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -8220,7 +8646,44 @@ if (error) return "common." + error; } - return null; + if (message.renamedServices != null && message.hasOwnProperty("renamedServices")) { + if (!$util.isObject(message.renamedServices)) + return "renamedServices: object expected"; + var key = Object.keys(message.renamedServices); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.renamedServices[key[i]])) + return "renamedServices: string{k:string} expected"; + } + if (message.renamedResources != null && message.hasOwnProperty("renamedResources")) { + if (!$util.isObject(message.renamedResources)) + return "renamedResources: object expected"; + var key = Object.keys(message.renamedResources); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.renamedResources[key[i]])) + return "renamedResources: string{k:string} expected"; + } + if (message.ignoredResources != null && message.hasOwnProperty("ignoredResources")) { + if (!Array.isArray(message.ignoredResources)) + return "ignoredResources: array expected"; + for (var i = 0; i < message.ignoredResources.length; ++i) + if (!$util.isString(message.ignoredResources[i])) + return "ignoredResources: string[] expected"; + } + if (message.forcedNamespaceAliases != null && message.hasOwnProperty("forcedNamespaceAliases")) { + if (!Array.isArray(message.forcedNamespaceAliases)) + return "forcedNamespaceAliases: array expected"; + for (var i = 0; i < message.forcedNamespaceAliases.length; ++i) + if (!$util.isString(message.forcedNamespaceAliases[i])) + return "forcedNamespaceAliases: string[] expected"; + } + if (message.handwrittenSignatures != null && message.hasOwnProperty("handwrittenSignatures")) { + if (!Array.isArray(message.handwrittenSignatures)) + return "handwrittenSignatures: array expected"; + for (var i = 0; i < message.handwrittenSignatures.length; ++i) + if (!$util.isString(message.handwrittenSignatures[i])) + return "handwrittenSignatures: string[] expected"; + } + return null; }; /** @@ -8240,6 +8703,41 @@ throw TypeError(".google.api.DotnetSettings.common: object expected"); message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); } + if (object.renamedServices) { + if (typeof object.renamedServices !== "object") + throw TypeError(".google.api.DotnetSettings.renamedServices: object expected"); + message.renamedServices = {}; + for (var keys = Object.keys(object.renamedServices), i = 0; i < keys.length; ++i) + message.renamedServices[keys[i]] = String(object.renamedServices[keys[i]]); + } + if (object.renamedResources) { + if (typeof object.renamedResources !== "object") + throw TypeError(".google.api.DotnetSettings.renamedResources: object expected"); + message.renamedResources = {}; + for (var keys = Object.keys(object.renamedResources), i = 0; i < keys.length; ++i) + message.renamedResources[keys[i]] = String(object.renamedResources[keys[i]]); + } + if (object.ignoredResources) { + if (!Array.isArray(object.ignoredResources)) + throw TypeError(".google.api.DotnetSettings.ignoredResources: array expected"); + message.ignoredResources = []; + for (var i = 0; i < object.ignoredResources.length; ++i) + message.ignoredResources[i] = String(object.ignoredResources[i]); + } + if (object.forcedNamespaceAliases) { + if (!Array.isArray(object.forcedNamespaceAliases)) + throw TypeError(".google.api.DotnetSettings.forcedNamespaceAliases: array expected"); + message.forcedNamespaceAliases = []; + for (var i = 0; i < object.forcedNamespaceAliases.length; ++i) + message.forcedNamespaceAliases[i] = String(object.forcedNamespaceAliases[i]); + } + if (object.handwrittenSignatures) { + if (!Array.isArray(object.handwrittenSignatures)) + throw TypeError(".google.api.DotnetSettings.handwrittenSignatures: array expected"); + message.handwrittenSignatures = []; + for (var i = 0; i < object.handwrittenSignatures.length; ++i) + message.handwrittenSignatures[i] = String(object.handwrittenSignatures[i]); + } return message; }; @@ -8256,10 +8754,45 @@ if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.ignoredResources = []; + object.forcedNamespaceAliases = []; + object.handwrittenSignatures = []; + } + if (options.objects || options.defaults) { + object.renamedServices = {}; + object.renamedResources = {}; + } if (options.defaults) object.common = null; if (message.common != null && message.hasOwnProperty("common")) object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); + var keys2; + if (message.renamedServices && (keys2 = Object.keys(message.renamedServices)).length) { + object.renamedServices = {}; + for (var j = 0; j < keys2.length; ++j) + object.renamedServices[keys2[j]] = message.renamedServices[keys2[j]]; + } + if (message.renamedResources && (keys2 = Object.keys(message.renamedResources)).length) { + object.renamedResources = {}; + for (var j = 0; j < keys2.length; ++j) + object.renamedResources[keys2[j]] = message.renamedResources[keys2[j]]; + } + if (message.ignoredResources && message.ignoredResources.length) { + object.ignoredResources = []; + for (var j = 0; j < message.ignoredResources.length; ++j) + object.ignoredResources[j] = message.ignoredResources[j]; + } + if (message.forcedNamespaceAliases && message.forcedNamespaceAliases.length) { + object.forcedNamespaceAliases = []; + for (var j = 0; j < message.forcedNamespaceAliases.length; ++j) + object.forcedNamespaceAliases[j] = message.forcedNamespaceAliases[j]; + } + if (message.handwrittenSignatures && message.handwrittenSignatures.length) { + object.handwrittenSignatures = []; + for (var j = 0; j < message.handwrittenSignatures.length; ++j) + object.handwrittenSignatures[j] = message.handwrittenSignatures[j]; + } return object; }; @@ -8716,6 +9249,7 @@ * @interface IMethodSettings * @property {string|null} [selector] MethodSettings selector * @property {google.api.MethodSettings.ILongRunning|null} [longRunning] MethodSettings longRunning + * @property {Array.|null} [autoPopulatedFields] MethodSettings autoPopulatedFields */ /** @@ -8727,6 +9261,7 @@ * @param {google.api.IMethodSettings=} [properties] Properties to set */ function MethodSettings(properties) { + this.autoPopulatedFields = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8749,6 +9284,14 @@ */ MethodSettings.prototype.longRunning = null; + /** + * MethodSettings autoPopulatedFields. + * @member {Array.} autoPopulatedFields + * @memberof google.api.MethodSettings + * @instance + */ + MethodSettings.prototype.autoPopulatedFields = $util.emptyArray; + /** * Creates a new MethodSettings instance using the specified properties. * @function create @@ -8777,6 +9320,9 @@ writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector); if (message.longRunning != null && Object.hasOwnProperty.call(message, "longRunning")) $root.google.api.MethodSettings.LongRunning.encode(message.longRunning, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.autoPopulatedFields != null && message.autoPopulatedFields.length) + for (var i = 0; i < message.autoPopulatedFields.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.autoPopulatedFields[i]); return writer; }; @@ -8819,6 +9365,12 @@ message.longRunning = $root.google.api.MethodSettings.LongRunning.decode(reader, reader.uint32()); break; } + case 3: { + if (!(message.autoPopulatedFields && message.autoPopulatedFields.length)) + message.autoPopulatedFields = []; + message.autoPopulatedFields.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -8862,6 +9414,13 @@ if (error) return "longRunning." + error; } + if (message.autoPopulatedFields != null && message.hasOwnProperty("autoPopulatedFields")) { + if (!Array.isArray(message.autoPopulatedFields)) + return "autoPopulatedFields: array expected"; + for (var i = 0; i < message.autoPopulatedFields.length; ++i) + if (!$util.isString(message.autoPopulatedFields[i])) + return "autoPopulatedFields: string[] expected"; + } return null; }; @@ -8884,6 +9443,13 @@ throw TypeError(".google.api.MethodSettings.longRunning: object expected"); message.longRunning = $root.google.api.MethodSettings.LongRunning.fromObject(object.longRunning); } + if (object.autoPopulatedFields) { + if (!Array.isArray(object.autoPopulatedFields)) + throw TypeError(".google.api.MethodSettings.autoPopulatedFields: array expected"); + message.autoPopulatedFields = []; + for (var i = 0; i < object.autoPopulatedFields.length; ++i) + message.autoPopulatedFields[i] = String(object.autoPopulatedFields[i]); + } return message; }; @@ -8900,6 +9466,8 @@ if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.autoPopulatedFields = []; if (options.defaults) { object.selector = ""; object.longRunning = null; @@ -8908,6 +9476,11 @@ object.selector = message.selector; if (message.longRunning != null && message.hasOwnProperty("longRunning")) object.longRunning = $root.google.api.MethodSettings.LongRunning.toObject(message.longRunning, options); + if (message.autoPopulatedFields && message.autoPopulatedFields.length) { + object.autoPopulatedFields = []; + for (var j = 0; j < message.autoPopulatedFields.length; ++j) + object.autoPopulatedFields[j] = message.autoPopulatedFields[j]; + } return object; }; @@ -9237,6 +9810,9 @@ * @property {number} ADS=2 ADS value * @property {number} PHOTOS=3 PHOTOS value * @property {number} STREET_VIEW=4 STREET_VIEW value + * @property {number} SHOPPING=5 SHOPPING value + * @property {number} GEO=6 GEO value + * @property {number} GENERATIVE_AI=7 GENERATIVE_AI value */ api.ClientLibraryOrganization = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -9245,6 +9821,9 @@ values[valuesById[2] = "ADS"] = 2; values[valuesById[3] = "PHOTOS"] = 3; values[valuesById[4] = "STREET_VIEW"] = 4; + values[valuesById[5] = "SHOPPING"] = 5; + values[valuesById[6] = "GEO"] = 6; + values[valuesById[7] = "GENERATIVE_AI"] = 7; return values; })(); @@ -9526,6 +10105,38 @@ return FileDescriptorSet; })(); + /** + * Edition enum. + * @name google.protobuf.Edition + * @enum {number} + * @property {number} EDITION_UNKNOWN=0 EDITION_UNKNOWN value + * @property {number} EDITION_PROTO2=998 EDITION_PROTO2 value + * @property {number} EDITION_PROTO3=999 EDITION_PROTO3 value + * @property {number} EDITION_2023=1000 EDITION_2023 value + * @property {number} EDITION_2024=1001 EDITION_2024 value + * @property {number} EDITION_1_TEST_ONLY=1 EDITION_1_TEST_ONLY value + * @property {number} EDITION_2_TEST_ONLY=2 EDITION_2_TEST_ONLY value + * @property {number} EDITION_99997_TEST_ONLY=99997 EDITION_99997_TEST_ONLY value + * @property {number} EDITION_99998_TEST_ONLY=99998 EDITION_99998_TEST_ONLY value + * @property {number} EDITION_99999_TEST_ONLY=99999 EDITION_99999_TEST_ONLY value + * @property {number} EDITION_MAX=2147483647 EDITION_MAX value + */ + protobuf.Edition = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "EDITION_UNKNOWN"] = 0; + values[valuesById[998] = "EDITION_PROTO2"] = 998; + values[valuesById[999] = "EDITION_PROTO3"] = 999; + values[valuesById[1000] = "EDITION_2023"] = 1000; + values[valuesById[1001] = "EDITION_2024"] = 1001; + values[valuesById[1] = "EDITION_1_TEST_ONLY"] = 1; + values[valuesById[2] = "EDITION_2_TEST_ONLY"] = 2; + values[valuesById[99997] = "EDITION_99997_TEST_ONLY"] = 99997; + values[valuesById[99998] = "EDITION_99998_TEST_ONLY"] = 99998; + values[valuesById[99999] = "EDITION_99999_TEST_ONLY"] = 99999; + values[valuesById[2147483647] = "EDITION_MAX"] = 2147483647; + return values; + })(); + protobuf.FileDescriptorProto = (function() { /** @@ -9544,7 +10155,7 @@ * @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options * @property {google.protobuf.ISourceCodeInfo|null} [sourceCodeInfo] FileDescriptorProto sourceCodeInfo * @property {string|null} [syntax] FileDescriptorProto syntax - * @property {string|null} [edition] FileDescriptorProto edition + * @property {google.protobuf.Edition|null} [edition] FileDescriptorProto edition */ /** @@ -9667,11 +10278,11 @@ /** * FileDescriptorProto edition. - * @member {string} edition + * @member {google.protobuf.Edition} edition * @memberof google.protobuf.FileDescriptorProto * @instance */ - FileDescriptorProto.prototype.edition = ""; + FileDescriptorProto.prototype.edition = 0; /** * Creates a new FileDescriptorProto instance using the specified properties. @@ -9729,7 +10340,7 @@ if (message.syntax != null && Object.hasOwnProperty.call(message, "syntax")) writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax); if (message.edition != null && Object.hasOwnProperty.call(message, "edition")) - writer.uint32(/* id 13, wireType 2 =*/106).string(message.edition); + writer.uint32(/* id 14, wireType 0 =*/112).int32(message.edition); return writer; }; @@ -9836,8 +10447,8 @@ message.syntax = reader.string(); break; } - case 13: { - message.edition = reader.string(); + case 14: { + message.edition = reader.int32(); break; } default: @@ -9952,8 +10563,22 @@ if (!$util.isString(message.syntax)) return "syntax: string expected"; if (message.edition != null && message.hasOwnProperty("edition")) - if (!$util.isString(message.edition)) - return "edition: string expected"; + switch (message.edition) { + default: + return "edition: enum value expected"; + case 0: + case 998: + case 999: + case 1000: + case 1001: + case 1: + case 2: + case 99997: + case 99998: + case 99999: + case 2147483647: + break; + } return null; }; @@ -10046,8 +10671,58 @@ } if (object.syntax != null) message.syntax = String(object.syntax); - if (object.edition != null) - message.edition = String(object.edition); + switch (object.edition) { + default: + if (typeof object.edition === "number") { + message.edition = object.edition; + break; + } + break; + case "EDITION_UNKNOWN": + case 0: + message.edition = 0; + break; + case "EDITION_PROTO2": + case 998: + message.edition = 998; + break; + case "EDITION_PROTO3": + case 999: + message.edition = 999; + break; + case "EDITION_2023": + case 1000: + message.edition = 1000; + break; + case "EDITION_2024": + case 1001: + message.edition = 1001; + break; + case "EDITION_1_TEST_ONLY": + case 1: + message.edition = 1; + break; + case "EDITION_2_TEST_ONLY": + case 2: + message.edition = 2; + break; + case "EDITION_99997_TEST_ONLY": + case 99997: + message.edition = 99997; + break; + case "EDITION_99998_TEST_ONLY": + case 99998: + message.edition = 99998; + break; + case "EDITION_99999_TEST_ONLY": + case 99999: + message.edition = 99999; + break; + case "EDITION_MAX": + case 2147483647: + message.edition = 2147483647; + break; + } return message; }; @@ -10079,7 +10754,7 @@ object.options = null; object.sourceCodeInfo = null; object.syntax = ""; - object.edition = ""; + object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -10127,7 +10802,7 @@ if (message.syntax != null && message.hasOwnProperty("syntax")) object.syntax = message.syntax; if (message.edition != null && message.hasOwnProperty("edition")) - object.edition = message.edition; + object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition; return object; }; @@ -11230,6 +11905,9 @@ * @memberof google.protobuf * @interface IExtensionRangeOptions * @property {Array.|null} [uninterpretedOption] ExtensionRangeOptions uninterpretedOption + * @property {Array.|null} [declaration] ExtensionRangeOptions declaration + * @property {google.protobuf.IFeatureSet|null} [features] ExtensionRangeOptions features + * @property {google.protobuf.ExtensionRangeOptions.VerificationState|null} [verification] ExtensionRangeOptions verification */ /** @@ -11242,6 +11920,7 @@ */ function ExtensionRangeOptions(properties) { this.uninterpretedOption = []; + this.declaration = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11256,6 +11935,30 @@ */ ExtensionRangeOptions.prototype.uninterpretedOption = $util.emptyArray; + /** + * ExtensionRangeOptions declaration. + * @member {Array.} declaration + * @memberof google.protobuf.ExtensionRangeOptions + * @instance + */ + ExtensionRangeOptions.prototype.declaration = $util.emptyArray; + + /** + * ExtensionRangeOptions features. + * @member {google.protobuf.IFeatureSet|null|undefined} features + * @memberof google.protobuf.ExtensionRangeOptions + * @instance + */ + ExtensionRangeOptions.prototype.features = null; + + /** + * ExtensionRangeOptions verification. + * @member {google.protobuf.ExtensionRangeOptions.VerificationState} verification + * @memberof google.protobuf.ExtensionRangeOptions + * @instance + */ + ExtensionRangeOptions.prototype.verification = 1; + /** * Creates a new ExtensionRangeOptions instance using the specified properties. * @function create @@ -11280,6 +11983,13 @@ ExtensionRangeOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.declaration != null && message.declaration.length) + for (var i = 0; i < message.declaration.length; ++i) + $root.google.protobuf.ExtensionRangeOptions.Declaration.encode(message.declaration[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.verification != null && Object.hasOwnProperty.call(message, "verification")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.verification); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 50, wireType 2 =*/402).fork()).ldelim(); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); @@ -11323,6 +12033,20 @@ message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); break; } + case 2: { + if (!(message.declaration && message.declaration.length)) + message.declaration = []; + message.declaration.push($root.google.protobuf.ExtensionRangeOptions.Declaration.decode(reader, reader.uint32())); + break; + } + case 50: { + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); + break; + } + case 3: { + message.verification = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -11367,6 +12091,28 @@ return "uninterpretedOption." + error; } } + if (message.declaration != null && message.hasOwnProperty("declaration")) { + if (!Array.isArray(message.declaration)) + return "declaration: array expected"; + for (var i = 0; i < message.declaration.length; ++i) { + var error = $root.google.protobuf.ExtensionRangeOptions.Declaration.verify(message.declaration[i]); + if (error) + return "declaration." + error; + } + } + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } + if (message.verification != null && message.hasOwnProperty("verification")) + switch (message.verification) { + default: + return "verification: enum value expected"; + case 0: + case 1: + break; + } return null; }; @@ -11392,6 +12138,37 @@ message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); } } + if (object.declaration) { + if (!Array.isArray(object.declaration)) + throw TypeError(".google.protobuf.ExtensionRangeOptions.declaration: array expected"); + message.declaration = []; + for (var i = 0; i < object.declaration.length; ++i) { + if (typeof object.declaration[i] !== "object") + throw TypeError(".google.protobuf.ExtensionRangeOptions.declaration: object expected"); + message.declaration[i] = $root.google.protobuf.ExtensionRangeOptions.Declaration.fromObject(object.declaration[i]); + } + } + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.ExtensionRangeOptions.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); + } + switch (object.verification) { + case "DECLARATION": + case 0: + message.verification = 0; + break; + default: + if (typeof object.verification === "number") { + message.verification = object.verification; + break; + } + break; + case "UNVERIFIED": + case 1: + message.verification = 1; + break; + } return message; }; @@ -11408,8 +12185,23 @@ if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) + if (options.arrays || options.defaults) { + object.declaration = []; object.uninterpretedOption = []; + } + if (options.defaults) { + object.verification = options.enums === String ? "UNVERIFIED" : 1; + object.features = null; + } + if (message.declaration && message.declaration.length) { + object.declaration = []; + for (var j = 0; j < message.declaration.length; ++j) + object.declaration[j] = $root.google.protobuf.ExtensionRangeOptions.Declaration.toObject(message.declaration[j], options); + } + if (message.verification != null && message.hasOwnProperty("verification")) + object.verification = options.enums === String ? $root.google.protobuf.ExtensionRangeOptions.VerificationState[message.verification] === undefined ? message.verification : $root.google.protobuf.ExtensionRangeOptions.VerificationState[message.verification] : message.verification; + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (var j = 0; j < message.uninterpretedOption.length; ++j) @@ -11444,114 +12236,424 @@ return typeUrlPrefix + "/google.protobuf.ExtensionRangeOptions"; }; - return ExtensionRangeOptions; - })(); - - protobuf.FieldDescriptorProto = (function() { - - /** - * Properties of a FieldDescriptorProto. - * @memberof google.protobuf - * @interface IFieldDescriptorProto - * @property {string|null} [name] FieldDescriptorProto name - * @property {number|null} [number] FieldDescriptorProto number - * @property {google.protobuf.FieldDescriptorProto.Label|null} [label] FieldDescriptorProto label - * @property {google.protobuf.FieldDescriptorProto.Type|null} [type] FieldDescriptorProto type - * @property {string|null} [typeName] FieldDescriptorProto typeName - * @property {string|null} [extendee] FieldDescriptorProto extendee - * @property {string|null} [defaultValue] FieldDescriptorProto defaultValue - * @property {number|null} [oneofIndex] FieldDescriptorProto oneofIndex - * @property {string|null} [jsonName] FieldDescriptorProto jsonName - * @property {google.protobuf.IFieldOptions|null} [options] FieldDescriptorProto options - * @property {boolean|null} [proto3Optional] FieldDescriptorProto proto3Optional - */ + ExtensionRangeOptions.Declaration = (function() { - /** - * Constructs a new FieldDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents a FieldDescriptorProto. - * @implements IFieldDescriptorProto - * @constructor - * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set - */ - function FieldDescriptorProto(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]]; - } + /** + * Properties of a Declaration. + * @memberof google.protobuf.ExtensionRangeOptions + * @interface IDeclaration + * @property {number|null} [number] Declaration number + * @property {string|null} [fullName] Declaration fullName + * @property {string|null} [type] Declaration type + * @property {boolean|null} [reserved] Declaration reserved + * @property {boolean|null} [repeated] Declaration repeated + */ - /** - * FieldDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.name = ""; + /** + * Constructs a new Declaration. + * @memberof google.protobuf.ExtensionRangeOptions + * @classdesc Represents a Declaration. + * @implements IDeclaration + * @constructor + * @param {google.protobuf.ExtensionRangeOptions.IDeclaration=} [properties] Properties to set + */ + function Declaration(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]]; + } - /** - * FieldDescriptorProto number. - * @member {number} number - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.number = 0; + /** + * Declaration number. + * @member {number} number + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @instance + */ + Declaration.prototype.number = 0; - /** - * FieldDescriptorProto label. - * @member {google.protobuf.FieldDescriptorProto.Label} label - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.label = 1; + /** + * Declaration fullName. + * @member {string} fullName + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @instance + */ + Declaration.prototype.fullName = ""; - /** - * FieldDescriptorProto type. - * @member {google.protobuf.FieldDescriptorProto.Type} type - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.type = 1; + /** + * Declaration type. + * @member {string} type + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @instance + */ + Declaration.prototype.type = ""; - /** - * FieldDescriptorProto typeName. - * @member {string} typeName - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.typeName = ""; + /** + * Declaration reserved. + * @member {boolean} reserved + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @instance + */ + Declaration.prototype.reserved = false; - /** - * FieldDescriptorProto extendee. - * @member {string} extendee - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.extendee = ""; + /** + * Declaration repeated. + * @member {boolean} repeated + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @instance + */ + Declaration.prototype.repeated = false; - /** - * FieldDescriptorProto defaultValue. - * @member {string} defaultValue - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.defaultValue = ""; + /** + * Creates a new Declaration instance using the specified properties. + * @function create + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @static + * @param {google.protobuf.ExtensionRangeOptions.IDeclaration=} [properties] Properties to set + * @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration instance + */ + Declaration.create = function create(properties) { + return new Declaration(properties); + }; - /** - * FieldDescriptorProto oneofIndex. - * @member {number} oneofIndex - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.oneofIndex = 0; + /** + * Encodes the specified Declaration message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @static + * @param {google.protobuf.ExtensionRangeOptions.IDeclaration} message Declaration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Declaration.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.number != null && Object.hasOwnProperty.call(message, "number")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.number); + if (message.fullName != null && Object.hasOwnProperty.call(message, "fullName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.fullName); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.type); + if (message.reserved != null && Object.hasOwnProperty.call(message, "reserved")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.reserved); + if (message.repeated != null && Object.hasOwnProperty.call(message, "repeated")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.repeated); + return writer; + }; - /** - * FieldDescriptorProto jsonName. - * @member {string} jsonName - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.jsonName = ""; + /** + * Encodes the specified Declaration message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @static + * @param {google.protobuf.ExtensionRangeOptions.IDeclaration} message Declaration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Declaration.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Declaration message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Declaration.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.google.protobuf.ExtensionRangeOptions.Declaration(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.number = reader.int32(); + break; + } + case 2: { + message.fullName = reader.string(); + break; + } + case 3: { + message.type = reader.string(); + break; + } + case 5: { + message.reserved = reader.bool(); + break; + } + case 6: { + message.repeated = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Declaration message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Declaration.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Declaration message. + * @function verify + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Declaration.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.number != null && message.hasOwnProperty("number")) + if (!$util.isInteger(message.number)) + return "number: integer expected"; + if (message.fullName != null && message.hasOwnProperty("fullName")) + if (!$util.isString(message.fullName)) + return "fullName: string expected"; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.reserved != null && message.hasOwnProperty("reserved")) + if (typeof message.reserved !== "boolean") + return "reserved: boolean expected"; + if (message.repeated != null && message.hasOwnProperty("repeated")) + if (typeof message.repeated !== "boolean") + return "repeated: boolean expected"; + return null; + }; + + /** + * Creates a Declaration message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration + */ + Declaration.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ExtensionRangeOptions.Declaration) + return object; + var message = new $root.google.protobuf.ExtensionRangeOptions.Declaration(); + if (object.number != null) + message.number = object.number | 0; + if (object.fullName != null) + message.fullName = String(object.fullName); + if (object.type != null) + message.type = String(object.type); + if (object.reserved != null) + message.reserved = Boolean(object.reserved); + if (object.repeated != null) + message.repeated = Boolean(object.repeated); + return message; + }; + + /** + * Creates a plain object from a Declaration message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @static + * @param {google.protobuf.ExtensionRangeOptions.Declaration} message Declaration + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Declaration.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.number = 0; + object.fullName = ""; + object.type = ""; + object.reserved = false; + object.repeated = false; + } + if (message.number != null && message.hasOwnProperty("number")) + object.number = message.number; + if (message.fullName != null && message.hasOwnProperty("fullName")) + object.fullName = message.fullName; + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.reserved != null && message.hasOwnProperty("reserved")) + object.reserved = message.reserved; + if (message.repeated != null && message.hasOwnProperty("repeated")) + object.repeated = message.repeated; + return object; + }; + + /** + * Converts this Declaration to JSON. + * @function toJSON + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @instance + * @returns {Object.} JSON object + */ + Declaration.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Declaration + * @function getTypeUrl + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Declaration.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.ExtensionRangeOptions.Declaration"; + }; + + return Declaration; + })(); + + /** + * VerificationState enum. + * @name google.protobuf.ExtensionRangeOptions.VerificationState + * @enum {number} + * @property {number} DECLARATION=0 DECLARATION value + * @property {number} UNVERIFIED=1 UNVERIFIED value + */ + ExtensionRangeOptions.VerificationState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DECLARATION"] = 0; + values[valuesById[1] = "UNVERIFIED"] = 1; + return values; + })(); + + return ExtensionRangeOptions; + })(); + + protobuf.FieldDescriptorProto = (function() { + + /** + * Properties of a FieldDescriptorProto. + * @memberof google.protobuf + * @interface IFieldDescriptorProto + * @property {string|null} [name] FieldDescriptorProto name + * @property {number|null} [number] FieldDescriptorProto number + * @property {google.protobuf.FieldDescriptorProto.Label|null} [label] FieldDescriptorProto label + * @property {google.protobuf.FieldDescriptorProto.Type|null} [type] FieldDescriptorProto type + * @property {string|null} [typeName] FieldDescriptorProto typeName + * @property {string|null} [extendee] FieldDescriptorProto extendee + * @property {string|null} [defaultValue] FieldDescriptorProto defaultValue + * @property {number|null} [oneofIndex] FieldDescriptorProto oneofIndex + * @property {string|null} [jsonName] FieldDescriptorProto jsonName + * @property {google.protobuf.IFieldOptions|null} [options] FieldDescriptorProto options + * @property {boolean|null} [proto3Optional] FieldDescriptorProto proto3Optional + */ + + /** + * Constructs a new FieldDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a FieldDescriptorProto. + * @implements IFieldDescriptorProto + * @constructor + * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set + */ + function FieldDescriptorProto(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]]; + } + + /** + * FieldDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.name = ""; + + /** + * FieldDescriptorProto number. + * @member {number} number + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.number = 0; + + /** + * FieldDescriptorProto label. + * @member {google.protobuf.FieldDescriptorProto.Label} label + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.label = 1; + + /** + * FieldDescriptorProto type. + * @member {google.protobuf.FieldDescriptorProto.Type} type + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.type = 1; + + /** + * FieldDescriptorProto typeName. + * @member {string} typeName + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.typeName = ""; + + /** + * FieldDescriptorProto extendee. + * @member {string} extendee + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.extendee = ""; + + /** + * FieldDescriptorProto defaultValue. + * @member {string} defaultValue + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.defaultValue = ""; + + /** + * FieldDescriptorProto oneofIndex. + * @member {number} oneofIndex + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.oneofIndex = 0; + + /** + * FieldDescriptorProto jsonName. + * @member {string} jsonName + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.jsonName = ""; /** * FieldDescriptorProto options. @@ -11739,8 +12841,8 @@ default: return "label: enum value expected"; case 1: - case 2: case 3: + case 2: break; } if (message.type != null && message.hasOwnProperty("type")) @@ -11820,14 +12922,14 @@ case 1: message.label = 1; break; - case "LABEL_REQUIRED": - case 2: - message.label = 2; - break; case "LABEL_REPEATED": case 3: message.label = 3; break; + case "LABEL_REQUIRED": + case 2: + message.label = 2; + break; } switch (object.type) { default: @@ -12057,14 +13159,14 @@ * @name google.protobuf.FieldDescriptorProto.Label * @enum {number} * @property {number} LABEL_OPTIONAL=1 LABEL_OPTIONAL value - * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value * @property {number} LABEL_REPEATED=3 LABEL_REPEATED value + * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value */ FieldDescriptorProto.Label = (function() { var valuesById = {}, values = Object.create(valuesById); values[valuesById[1] = "LABEL_OPTIONAL"] = 1; - values[valuesById[2] = "LABEL_REQUIRED"] = 2; values[valuesById[3] = "LABEL_REPEATED"] = 3; + values[valuesById[2] = "LABEL_REQUIRED"] = 2; return values; })(); @@ -13763,7 +14865,6 @@ * @property {boolean|null} [ccGenericServices] FileOptions ccGenericServices * @property {boolean|null} [javaGenericServices] FileOptions javaGenericServices * @property {boolean|null} [pyGenericServices] FileOptions pyGenericServices - * @property {boolean|null} [phpGenericServices] FileOptions phpGenericServices * @property {boolean|null} [deprecated] FileOptions deprecated * @property {boolean|null} [ccEnableArenas] FileOptions ccEnableArenas * @property {string|null} [objcClassPrefix] FileOptions objcClassPrefix @@ -13773,6 +14874,7 @@ * @property {string|null} [phpNamespace] FileOptions phpNamespace * @property {string|null} [phpMetadataNamespace] FileOptions phpMetadataNamespace * @property {string|null} [rubyPackage] FileOptions rubyPackage + * @property {google.protobuf.IFeatureSet|null} [features] FileOptions features * @property {Array.|null} [uninterpretedOption] FileOptions uninterpretedOption * @property {Array.|null} [".google.api.resourceDefinition"] FileOptions .google.api.resourceDefinition */ @@ -13874,14 +14976,6 @@ */ FileOptions.prototype.pyGenericServices = false; - /** - * FileOptions phpGenericServices. - * @member {boolean} phpGenericServices - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.phpGenericServices = false; - /** * FileOptions deprecated. * @member {boolean} deprecated @@ -13954,6 +15048,14 @@ */ FileOptions.prototype.rubyPackage = ""; + /** + * FileOptions features. + * @member {google.protobuf.IFeatureSet|null|undefined} features + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.features = null; + /** * FileOptions uninterpretedOption. * @member {Array.} uninterpretedOption @@ -14028,12 +15130,12 @@ writer.uint32(/* id 40, wireType 2 =*/322).string(message.phpClassPrefix); if (message.phpNamespace != null && Object.hasOwnProperty.call(message, "phpNamespace")) writer.uint32(/* id 41, wireType 2 =*/330).string(message.phpNamespace); - if (message.phpGenericServices != null && Object.hasOwnProperty.call(message, "phpGenericServices")) - writer.uint32(/* id 42, wireType 0 =*/336).bool(message.phpGenericServices); if (message.phpMetadataNamespace != null && Object.hasOwnProperty.call(message, "phpMetadataNamespace")) writer.uint32(/* id 44, wireType 2 =*/354).string(message.phpMetadataNamespace); if (message.rubyPackage != null && Object.hasOwnProperty.call(message, "rubyPackage")) writer.uint32(/* id 45, wireType 2 =*/362).string(message.rubyPackage); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 50, wireType 2 =*/402).fork()).ldelim(); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); @@ -14114,10 +15216,6 @@ message.pyGenericServices = reader.bool(); break; } - case 42: { - message.phpGenericServices = reader.bool(); - break; - } case 23: { message.deprecated = reader.bool(); break; @@ -14154,6 +15252,10 @@ message.rubyPackage = reader.string(); break; } + case 50: { + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); + break; + } case 999: { if (!(message.uninterpretedOption && message.uninterpretedOption.length)) message.uninterpretedOption = []; @@ -14237,9 +15339,6 @@ if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) if (typeof message.pyGenericServices !== "boolean") return "pyGenericServices: boolean expected"; - if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices")) - if (typeof message.phpGenericServices !== "boolean") - return "phpGenericServices: boolean expected"; if (message.deprecated != null && message.hasOwnProperty("deprecated")) if (typeof message.deprecated !== "boolean") return "deprecated: boolean expected"; @@ -14267,6 +15366,11 @@ if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) if (!$util.isString(message.rubyPackage)) return "rubyPackage: string expected"; + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { if (!Array.isArray(message.uninterpretedOption)) return "uninterpretedOption: array expected"; @@ -14338,8 +15442,6 @@ message.javaGenericServices = Boolean(object.javaGenericServices); if (object.pyGenericServices != null) message.pyGenericServices = Boolean(object.pyGenericServices); - if (object.phpGenericServices != null) - message.phpGenericServices = Boolean(object.phpGenericServices); if (object.deprecated != null) message.deprecated = Boolean(object.deprecated); if (object.ccEnableArenas != null) @@ -14358,6 +15460,11 @@ message.phpMetadataNamespace = String(object.phpMetadataNamespace); if (object.rubyPackage != null) message.rubyPackage = String(object.rubyPackage); + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.FileOptions.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); + } if (object.uninterpretedOption) { if (!Array.isArray(object.uninterpretedOption)) throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: array expected"); @@ -14416,9 +15523,9 @@ object.swiftPrefix = ""; object.phpClassPrefix = ""; object.phpNamespace = ""; - object.phpGenericServices = false; object.phpMetadataNamespace = ""; object.rubyPackage = ""; + object.features = null; } if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) object.javaPackage = message.javaPackage; @@ -14454,12 +15561,12 @@ object.phpClassPrefix = message.phpClassPrefix; if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) object.phpNamespace = message.phpNamespace; - if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices")) - object.phpGenericServices = message.phpGenericServices; if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) object.phpMetadataNamespace = message.phpMetadataNamespace; if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) object.rubyPackage = message.rubyPackage; + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (var j = 0; j < message.uninterpretedOption.length; ++j) @@ -14529,6 +15636,7 @@ * @property {boolean|null} [deprecated] MessageOptions deprecated * @property {boolean|null} [mapEntry] MessageOptions mapEntry * @property {boolean|null} [deprecatedLegacyJsonFieldConflicts] MessageOptions deprecatedLegacyJsonFieldConflicts + * @property {google.protobuf.IFeatureSet|null} [features] MessageOptions features * @property {Array.|null} [uninterpretedOption] MessageOptions uninterpretedOption * @property {google.api.IResourceDescriptor|null} [".google.api.resource"] MessageOptions .google.api.resource */ @@ -14589,6 +15697,14 @@ */ MessageOptions.prototype.deprecatedLegacyJsonFieldConflicts = false; + /** + * MessageOptions features. + * @member {google.protobuf.IFeatureSet|null|undefined} features + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.features = null; + /** * MessageOptions uninterpretedOption. * @member {Array.} uninterpretedOption @@ -14639,6 +15755,8 @@ writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry); if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts")) writer.uint32(/* id 11, wireType 0 =*/88).bool(message.deprecatedLegacyJsonFieldConflicts); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); @@ -14698,8 +15816,12 @@ message.deprecatedLegacyJsonFieldConflicts = reader.bool(); break; } - case 999: { - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + case 12: { + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) message.uninterpretedOption = []; message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); break; @@ -14758,6 +15880,11 @@ if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts")) if (typeof message.deprecatedLegacyJsonFieldConflicts !== "boolean") return "deprecatedLegacyJsonFieldConflicts: boolean expected"; + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { if (!Array.isArray(message.uninterpretedOption)) return "uninterpretedOption: array expected"; @@ -14797,6 +15924,11 @@ message.mapEntry = Boolean(object.mapEntry); if (object.deprecatedLegacyJsonFieldConflicts != null) message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts); + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.MessageOptions.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); + } if (object.uninterpretedOption) { if (!Array.isArray(object.uninterpretedOption)) throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected"); @@ -14836,6 +15968,7 @@ object.deprecated = false; object.mapEntry = false; object.deprecatedLegacyJsonFieldConflicts = false; + object.features = null; object[".google.api.resource"] = null; } if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) @@ -14848,6 +15981,8 @@ object.mapEntry = message.mapEntry; if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts")) object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts; + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (var j = 0; j < message.uninterpretedOption.length; ++j) @@ -14902,9 +16037,12 @@ * @property {boolean|null} [weak] FieldOptions weak * @property {boolean|null} [debugRedact] FieldOptions debugRedact * @property {google.protobuf.FieldOptions.OptionRetention|null} [retention] FieldOptions retention - * @property {google.protobuf.FieldOptions.OptionTargetType|null} [target] FieldOptions target + * @property {Array.|null} [targets] FieldOptions targets + * @property {Array.|null} [editionDefaults] FieldOptions editionDefaults + * @property {google.protobuf.IFeatureSet|null} [features] FieldOptions features * @property {Array.|null} [uninterpretedOption] FieldOptions uninterpretedOption * @property {Array.|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior + * @property {google.api.IFieldInfo|null} [".google.api.fieldInfo"] FieldOptions .google.api.fieldInfo * @property {google.api.IResourceReference|null} [".google.api.resourceReference"] FieldOptions .google.api.resourceReference */ @@ -14917,6 +16055,8 @@ * @param {google.protobuf.IFieldOptions=} [properties] Properties to set */ function FieldOptions(properties) { + this.targets = []; + this.editionDefaults = []; this.uninterpretedOption = []; this[".google.api.fieldBehavior"] = []; if (properties) @@ -14998,12 +16138,28 @@ FieldOptions.prototype.retention = 0; /** - * FieldOptions target. - * @member {google.protobuf.FieldOptions.OptionTargetType} target + * FieldOptions targets. + * @member {Array.} targets + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.targets = $util.emptyArray; + + /** + * FieldOptions editionDefaults. + * @member {Array.} editionDefaults + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.editionDefaults = $util.emptyArray; + + /** + * FieldOptions features. + * @member {google.protobuf.IFeatureSet|null|undefined} features * @memberof google.protobuf.FieldOptions * @instance */ - FieldOptions.prototype.target = 0; + FieldOptions.prototype.features = null; /** * FieldOptions uninterpretedOption. @@ -15021,6 +16177,14 @@ */ FieldOptions.prototype[".google.api.fieldBehavior"] = $util.emptyArray; + /** + * FieldOptions .google.api.fieldInfo. + * @member {google.api.IFieldInfo|null|undefined} .google.api.fieldInfo + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".google.api.fieldInfo"] = null; + /** * FieldOptions .google.api.resourceReference. * @member {google.api.IResourceReference|null|undefined} .google.api.resourceReference @@ -15071,8 +16235,14 @@ writer.uint32(/* id 16, wireType 0 =*/128).bool(message.debugRedact); if (message.retention != null && Object.hasOwnProperty.call(message, "retention")) writer.uint32(/* id 17, wireType 0 =*/136).int32(message.retention); - if (message.target != null && Object.hasOwnProperty.call(message, "target")) - writer.uint32(/* id 18, wireType 0 =*/144).int32(message.target); + if (message.targets != null && message.targets.length) + for (var i = 0; i < message.targets.length; ++i) + writer.uint32(/* id 19, wireType 0 =*/152).int32(message.targets[i]); + if (message.editionDefaults != null && message.editionDefaults.length) + for (var i = 0; i < message.editionDefaults.length; ++i) + $root.google.protobuf.FieldOptions.EditionDefault.encode(message.editionDefaults[i], writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); @@ -15084,6 +16254,8 @@ } if (message[".google.api.resourceReference"] != null && Object.hasOwnProperty.call(message, ".google.api.resourceReference")) $root.google.api.ResourceReference.encode(message[".google.api.resourceReference"], writer.uint32(/* id 1055, wireType 2 =*/8442).fork()).ldelim(); + if (message[".google.api.fieldInfo"] != null && Object.hasOwnProperty.call(message, ".google.api.fieldInfo")) + $root.google.api.FieldInfo.encode(message[".google.api.fieldInfo"], writer.uint32(/* id 291403980, wireType 2 =*/2331231842).fork()).ldelim(); return writer; }; @@ -15154,8 +16326,25 @@ message.retention = reader.int32(); break; } - case 18: { - message.target = reader.int32(); + case 19: { + if (!(message.targets && message.targets.length)) + message.targets = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.targets.push(reader.int32()); + } else + message.targets.push(reader.int32()); + break; + } + case 20: { + if (!(message.editionDefaults && message.editionDefaults.length)) + message.editionDefaults = []; + message.editionDefaults.push($root.google.protobuf.FieldOptions.EditionDefault.decode(reader, reader.uint32())); + break; + } + case 21: { + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); break; } case 999: { @@ -15175,6 +16364,10 @@ message[".google.api.fieldBehavior"].push(reader.int32()); break; } + case 291403980: { + message[".google.api.fieldInfo"] = $root.google.api.FieldInfo.decode(reader, reader.uint32()); + break; + } case 1055: { message[".google.api.resourceReference"] = $root.google.api.ResourceReference.decode(reader, reader.uint32()); break; @@ -15259,22 +16452,40 @@ case 2: break; } - if (message.target != null && message.hasOwnProperty("target")) - switch (message.target) { - default: - return "target: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - break; + if (message.targets != null && message.hasOwnProperty("targets")) { + if (!Array.isArray(message.targets)) + return "targets: array expected"; + for (var i = 0; i < message.targets.length; ++i) + switch (message.targets[i]) { + default: + return "targets: enum value[] expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; + } + } + if (message.editionDefaults != null && message.hasOwnProperty("editionDefaults")) { + if (!Array.isArray(message.editionDefaults)) + return "editionDefaults: array expected"; + for (var i = 0; i < message.editionDefaults.length; ++i) { + var error = $root.google.protobuf.FieldOptions.EditionDefault.verify(message.editionDefaults[i]); + if (error) + return "editionDefaults." + error; } + } + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { if (!Array.isArray(message.uninterpretedOption)) return "uninterpretedOption: array expected"; @@ -15299,9 +16510,15 @@ case 5: case 6: case 7: + case 8: break; } } + if (message[".google.api.fieldInfo"] != null && message.hasOwnProperty(".google.api.fieldInfo")) { + var error = $root.google.api.FieldInfo.verify(message[".google.api.fieldInfo"]); + if (error) + return ".google.api.fieldInfo." + error; + } if (message[".google.api.resourceReference"] != null && message.hasOwnProperty(".google.api.resourceReference")) { var error = $root.google.api.ResourceReference.verify(message[".google.api.resourceReference"]); if (error) @@ -15394,53 +16611,73 @@ message.retention = 2; break; } - switch (object.target) { - default: - if (typeof object.target === "number") { - message.target = object.target; - break; + if (object.targets) { + if (!Array.isArray(object.targets)) + throw TypeError(".google.protobuf.FieldOptions.targets: array expected"); + message.targets = []; + for (var i = 0; i < object.targets.length; ++i) + switch (object.targets[i]) { + default: + if (typeof object.targets[i] === "number") { + message.targets[i] = object.targets[i]; + break; + } + case "TARGET_TYPE_UNKNOWN": + case 0: + message.targets[i] = 0; + break; + case "TARGET_TYPE_FILE": + case 1: + message.targets[i] = 1; + break; + case "TARGET_TYPE_EXTENSION_RANGE": + case 2: + message.targets[i] = 2; + break; + case "TARGET_TYPE_MESSAGE": + case 3: + message.targets[i] = 3; + break; + case "TARGET_TYPE_FIELD": + case 4: + message.targets[i] = 4; + break; + case "TARGET_TYPE_ONEOF": + case 5: + message.targets[i] = 5; + break; + case "TARGET_TYPE_ENUM": + case 6: + message.targets[i] = 6; + break; + case "TARGET_TYPE_ENUM_ENTRY": + case 7: + message.targets[i] = 7; + break; + case "TARGET_TYPE_SERVICE": + case 8: + message.targets[i] = 8; + break; + case "TARGET_TYPE_METHOD": + case 9: + message.targets[i] = 9; + break; + } + } + if (object.editionDefaults) { + if (!Array.isArray(object.editionDefaults)) + throw TypeError(".google.protobuf.FieldOptions.editionDefaults: array expected"); + message.editionDefaults = []; + for (var i = 0; i < object.editionDefaults.length; ++i) { + if (typeof object.editionDefaults[i] !== "object") + throw TypeError(".google.protobuf.FieldOptions.editionDefaults: object expected"); + message.editionDefaults[i] = $root.google.protobuf.FieldOptions.EditionDefault.fromObject(object.editionDefaults[i]); } - break; - case "TARGET_TYPE_UNKNOWN": - case 0: - message.target = 0; - break; - case "TARGET_TYPE_FILE": - case 1: - message.target = 1; - break; - case "TARGET_TYPE_EXTENSION_RANGE": - case 2: - message.target = 2; - break; - case "TARGET_TYPE_MESSAGE": - case 3: - message.target = 3; - break; - case "TARGET_TYPE_FIELD": - case 4: - message.target = 4; - break; - case "TARGET_TYPE_ONEOF": - case 5: - message.target = 5; - break; - case "TARGET_TYPE_ENUM": - case 6: - message.target = 6; - break; - case "TARGET_TYPE_ENUM_ENTRY": - case 7: - message.target = 7; - break; - case "TARGET_TYPE_SERVICE": - case 8: - message.target = 8; - break; - case "TARGET_TYPE_METHOD": - case 9: - message.target = 9; - break; + } + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.FieldOptions.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); } if (object.uninterpretedOption) { if (!Array.isArray(object.uninterpretedOption)) @@ -15495,8 +16732,17 @@ case 7: message[".google.api.fieldBehavior"][i] = 7; break; + case "IDENTIFIER": + case 8: + message[".google.api.fieldBehavior"][i] = 8; + break; } } + if (object[".google.api.fieldInfo"] != null) { + if (typeof object[".google.api.fieldInfo"] !== "object") + throw TypeError(".google.protobuf.FieldOptions..google.api.fieldInfo: object expected"); + message[".google.api.fieldInfo"] = $root.google.api.FieldInfo.fromObject(object[".google.api.fieldInfo"]); + } if (object[".google.api.resourceReference"] != null) { if (typeof object[".google.api.resourceReference"] !== "object") throw TypeError(".google.protobuf.FieldOptions..google.api.resourceReference: object expected"); @@ -15519,6 +16765,8 @@ options = {}; var object = {}; if (options.arrays || options.defaults) { + object.targets = []; + object.editionDefaults = []; object.uninterpretedOption = []; object[".google.api.fieldBehavior"] = []; } @@ -15532,8 +16780,9 @@ object.unverifiedLazy = false; object.debugRedact = false; object.retention = options.enums === String ? "RETENTION_UNKNOWN" : 0; - object.target = options.enums === String ? "TARGET_TYPE_UNKNOWN" : 0; + object.features = null; object[".google.api.resourceReference"] = null; + object[".google.api.fieldInfo"] = null; } if (message.ctype != null && message.hasOwnProperty("ctype")) object.ctype = options.enums === String ? $root.google.protobuf.FieldOptions.CType[message.ctype] === undefined ? message.ctype : $root.google.protobuf.FieldOptions.CType[message.ctype] : message.ctype; @@ -15553,8 +16802,18 @@ object.debugRedact = message.debugRedact; if (message.retention != null && message.hasOwnProperty("retention")) object.retention = options.enums === String ? $root.google.protobuf.FieldOptions.OptionRetention[message.retention] === undefined ? message.retention : $root.google.protobuf.FieldOptions.OptionRetention[message.retention] : message.retention; - if (message.target != null && message.hasOwnProperty("target")) - object.target = options.enums === String ? $root.google.protobuf.FieldOptions.OptionTargetType[message.target] === undefined ? message.target : $root.google.protobuf.FieldOptions.OptionTargetType[message.target] : message.target; + if (message.targets && message.targets.length) { + object.targets = []; + for (var j = 0; j < message.targets.length; ++j) + object.targets[j] = options.enums === String ? $root.google.protobuf.FieldOptions.OptionTargetType[message.targets[j]] === undefined ? message.targets[j] : $root.google.protobuf.FieldOptions.OptionTargetType[message.targets[j]] : message.targets[j]; + } + if (message.editionDefaults && message.editionDefaults.length) { + object.editionDefaults = []; + for (var j = 0; j < message.editionDefaults.length; ++j) + object.editionDefaults[j] = $root.google.protobuf.FieldOptions.EditionDefault.toObject(message.editionDefaults[j], options); + } + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (var j = 0; j < message.uninterpretedOption.length; ++j) @@ -15567,6 +16826,8 @@ } if (message[".google.api.resourceReference"] != null && message.hasOwnProperty(".google.api.resourceReference")) object[".google.api.resourceReference"] = $root.google.api.ResourceReference.toObject(message[".google.api.resourceReference"], options); + if (message[".google.api.fieldInfo"] != null && message.hasOwnProperty(".google.api.fieldInfo")) + object[".google.api.fieldInfo"] = $root.google.api.FieldInfo.toObject(message[".google.api.fieldInfo"], options); return object; }; @@ -15674,116 +16935,422 @@ return values; })(); - return FieldOptions; - })(); + FieldOptions.EditionDefault = (function() { - protobuf.OneofOptions = (function() { + /** + * Properties of an EditionDefault. + * @memberof google.protobuf.FieldOptions + * @interface IEditionDefault + * @property {google.protobuf.Edition|null} [edition] EditionDefault edition + * @property {string|null} [value] EditionDefault value + */ - /** - * Properties of an OneofOptions. - * @memberof google.protobuf - * @interface IOneofOptions - * @property {Array.|null} [uninterpretedOption] OneofOptions uninterpretedOption - */ + /** + * Constructs a new EditionDefault. + * @memberof google.protobuf.FieldOptions + * @classdesc Represents an EditionDefault. + * @implements IEditionDefault + * @constructor + * @param {google.protobuf.FieldOptions.IEditionDefault=} [properties] Properties to set + */ + function EditionDefault(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]]; + } - /** - * Constructs a new OneofOptions. - * @memberof google.protobuf - * @classdesc Represents an OneofOptions. - * @implements IOneofOptions - * @constructor - * @param {google.protobuf.IOneofOptions=} [properties] Properties to set - */ - function OneofOptions(properties) { - this.uninterpretedOption = []; - 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]]; - } + /** + * EditionDefault edition. + * @member {google.protobuf.Edition} edition + * @memberof google.protobuf.FieldOptions.EditionDefault + * @instance + */ + EditionDefault.prototype.edition = 0; - /** - * OneofOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.OneofOptions - * @instance - */ - OneofOptions.prototype.uninterpretedOption = $util.emptyArray; + /** + * EditionDefault value. + * @member {string} value + * @memberof google.protobuf.FieldOptions.EditionDefault + * @instance + */ + EditionDefault.prototype.value = ""; - /** - * Creates a new OneofOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.OneofOptions - * @static - * @param {google.protobuf.IOneofOptions=} [properties] Properties to set - * @returns {google.protobuf.OneofOptions} OneofOptions instance - */ - OneofOptions.create = function create(properties) { - return new OneofOptions(properties); - }; + /** + * Creates a new EditionDefault instance using the specified properties. + * @function create + * @memberof google.protobuf.FieldOptions.EditionDefault + * @static + * @param {google.protobuf.FieldOptions.IEditionDefault=} [properties] Properties to set + * @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault instance + */ + EditionDefault.create = function create(properties) { + return new EditionDefault(properties); + }; - /** - * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.OneofOptions - * @static - * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OneofOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified EditionDefault message. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FieldOptions.EditionDefault + * @static + * @param {google.protobuf.FieldOptions.IEditionDefault} message EditionDefault message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EditionDefault.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); + if (message.edition != null && Object.hasOwnProperty.call(message, "edition")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.edition); + return writer; + }; - /** - * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.OneofOptions - * @static - * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OneofOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified EditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FieldOptions.EditionDefault + * @static + * @param {google.protobuf.FieldOptions.IEditionDefault} message EditionDefault message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EditionDefault.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes an OneofOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.OneofOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.OneofOptions} OneofOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OneofOptions.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.google.protobuf.OneofOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 999: { - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Decodes an EditionDefault message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FieldOptions.EditionDefault + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EditionDefault.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.google.protobuf.FieldOptions.EditionDefault(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 3: { + message.edition = reader.int32(); + break; + } + case 2: { + message.value = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EditionDefault message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FieldOptions.EditionDefault + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EditionDefault.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EditionDefault message. + * @function verify + * @memberof google.protobuf.FieldOptions.EditionDefault + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EditionDefault.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.edition != null && message.hasOwnProperty("edition")) + switch (message.edition) { + default: + return "edition: enum value expected"; + case 0: + case 998: + case 999: + case 1000: + case 1001: + case 1: + case 2: + case 99997: + case 99998: + case 99999: + case 2147483647: + break; + } + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; + return null; + }; + + /** + * Creates an EditionDefault message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FieldOptions.EditionDefault + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault + */ + EditionDefault.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldOptions.EditionDefault) + return object; + var message = new $root.google.protobuf.FieldOptions.EditionDefault(); + switch (object.edition) { + default: + if (typeof object.edition === "number") { + message.edition = object.edition; + break; + } + break; + case "EDITION_UNKNOWN": + case 0: + message.edition = 0; + break; + case "EDITION_PROTO2": + case 998: + message.edition = 998; + break; + case "EDITION_PROTO3": + case 999: + message.edition = 999; + break; + case "EDITION_2023": + case 1000: + message.edition = 1000; + break; + case "EDITION_2024": + case 1001: + message.edition = 1001; + break; + case "EDITION_1_TEST_ONLY": + case 1: + message.edition = 1; + break; + case "EDITION_2_TEST_ONLY": + case 2: + message.edition = 2; + break; + case "EDITION_99997_TEST_ONLY": + case 99997: + message.edition = 99997; + break; + case "EDITION_99998_TEST_ONLY": + case 99998: + message.edition = 99998; + break; + case "EDITION_99999_TEST_ONLY": + case 99999: + message.edition = 99999; + break; + case "EDITION_MAX": + case 2147483647: + message.edition = 2147483647; + break; + } + if (object.value != null) + message.value = String(object.value); + return message; + }; + + /** + * Creates a plain object from an EditionDefault message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FieldOptions.EditionDefault + * @static + * @param {google.protobuf.FieldOptions.EditionDefault} message EditionDefault + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EditionDefault.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.value = ""; + object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0; + } + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; + if (message.edition != null && message.hasOwnProperty("edition")) + object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition; + return object; + }; + + /** + * Converts this EditionDefault to JSON. + * @function toJSON + * @memberof google.protobuf.FieldOptions.EditionDefault + * @instance + * @returns {Object.} JSON object + */ + EditionDefault.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EditionDefault + * @function getTypeUrl + * @memberof google.protobuf.FieldOptions.EditionDefault + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EditionDefault.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FieldOptions.EditionDefault"; + }; + + return EditionDefault; + })(); + + return FieldOptions; + })(); + + protobuf.OneofOptions = (function() { + + /** + * Properties of an OneofOptions. + * @memberof google.protobuf + * @interface IOneofOptions + * @property {google.protobuf.IFeatureSet|null} [features] OneofOptions features + * @property {Array.|null} [uninterpretedOption] OneofOptions uninterpretedOption + */ + + /** + * Constructs a new OneofOptions. + * @memberof google.protobuf + * @classdesc Represents an OneofOptions. + * @implements IOneofOptions + * @constructor + * @param {google.protobuf.IOneofOptions=} [properties] Properties to set + */ + function OneofOptions(properties) { + this.uninterpretedOption = []; + 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]]; + } + + /** + * OneofOptions features. + * @member {google.protobuf.IFeatureSet|null|undefined} features + * @memberof google.protobuf.OneofOptions + * @instance + */ + OneofOptions.prototype.features = null; + + /** + * OneofOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.OneofOptions + * @instance + */ + OneofOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new OneofOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.IOneofOptions=} [properties] Properties to set + * @returns {google.protobuf.OneofOptions} OneofOptions instance + */ + OneofOptions.create = function create(properties) { + return new OneofOptions(properties); + }; + + /** + * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OneofOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.OneofOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.OneofOptions} OneofOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofOptions.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.google.protobuf.OneofOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** * Decodes an OneofOptions message from the specified reader or buffer, length delimited. @@ -15812,6 +17379,11 @@ OneofOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { if (!Array.isArray(message.uninterpretedOption)) return "uninterpretedOption: array expected"; @@ -15836,6 +17408,11 @@ if (object instanceof $root.google.protobuf.OneofOptions) return object; var message = new $root.google.protobuf.OneofOptions(); + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.OneofOptions.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); + } if (object.uninterpretedOption) { if (!Array.isArray(object.uninterpretedOption)) throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: array expected"); @@ -15864,6 +17441,10 @@ var object = {}; if (options.arrays || options.defaults) object.uninterpretedOption = []; + if (options.defaults) + object.features = null; + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (var j = 0; j < message.uninterpretedOption.length; ++j) @@ -15910,6 +17491,7 @@ * @property {boolean|null} [allowAlias] EnumOptions allowAlias * @property {boolean|null} [deprecated] EnumOptions deprecated * @property {boolean|null} [deprecatedLegacyJsonFieldConflicts] EnumOptions deprecatedLegacyJsonFieldConflicts + * @property {google.protobuf.IFeatureSet|null} [features] EnumOptions features * @property {Array.|null} [uninterpretedOption] EnumOptions uninterpretedOption */ @@ -15953,6 +17535,14 @@ */ EnumOptions.prototype.deprecatedLegacyJsonFieldConflicts = false; + /** + * EnumOptions features. + * @member {google.protobuf.IFeatureSet|null|undefined} features + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.features = null; + /** * EnumOptions uninterpretedOption. * @member {Array.} uninterpretedOption @@ -15991,6 +17581,8 @@ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts")) writer.uint32(/* id 6, wireType 0 =*/48).bool(message.deprecatedLegacyJsonFieldConflicts); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); @@ -16040,6 +17632,10 @@ message.deprecatedLegacyJsonFieldConflicts = reader.bool(); break; } + case 7: { + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); + break; + } case 999: { if (!(message.uninterpretedOption && message.uninterpretedOption.length)) message.uninterpretedOption = []; @@ -16090,6 +17686,11 @@ if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts")) if (typeof message.deprecatedLegacyJsonFieldConflicts !== "boolean") return "deprecatedLegacyJsonFieldConflicts: boolean expected"; + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { if (!Array.isArray(message.uninterpretedOption)) return "uninterpretedOption: array expected"; @@ -16120,6 +17721,11 @@ message.deprecated = Boolean(object.deprecated); if (object.deprecatedLegacyJsonFieldConflicts != null) message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts); + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.EnumOptions.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); + } if (object.uninterpretedOption) { if (!Array.isArray(object.uninterpretedOption)) throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected"); @@ -16152,6 +17758,7 @@ object.allowAlias = false; object.deprecated = false; object.deprecatedLegacyJsonFieldConflicts = false; + object.features = null; } if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) object.allowAlias = message.allowAlias; @@ -16159,6 +17766,8 @@ object.deprecated = message.deprecated; if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts")) object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts; + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (var j = 0; j < message.uninterpretedOption.length; ++j) @@ -16203,6 +17812,8 @@ * @memberof google.protobuf * @interface IEnumValueOptions * @property {boolean|null} [deprecated] EnumValueOptions deprecated + * @property {google.protobuf.IFeatureSet|null} [features] EnumValueOptions features + * @property {boolean|null} [debugRedact] EnumValueOptions debugRedact * @property {Array.|null} [uninterpretedOption] EnumValueOptions uninterpretedOption */ @@ -16231,12 +17842,28 @@ EnumValueOptions.prototype.deprecated = false; /** - * EnumValueOptions uninterpretedOption. - * @member {Array.} uninterpretedOption + * EnumValueOptions features. + * @member {google.protobuf.IFeatureSet|null|undefined} features * @memberof google.protobuf.EnumValueOptions * @instance */ - EnumValueOptions.prototype.uninterpretedOption = $util.emptyArray; + EnumValueOptions.prototype.features = null; + + /** + * EnumValueOptions debugRedact. + * @member {boolean} debugRedact + * @memberof google.protobuf.EnumValueOptions + * @instance + */ + EnumValueOptions.prototype.debugRedact = false; + + /** + * EnumValueOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.EnumValueOptions + * @instance + */ + EnumValueOptions.prototype.uninterpretedOption = $util.emptyArray; /** * Creates a new EnumValueOptions instance using the specified properties. @@ -16264,6 +17891,10 @@ writer = $Writer.create(); if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.deprecated); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.debugRedact != null && Object.hasOwnProperty.call(message, "debugRedact")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.debugRedact); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); @@ -16305,6 +17936,14 @@ message.deprecated = reader.bool(); break; } + case 2: { + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); + break; + } + case 3: { + message.debugRedact = reader.bool(); + break; + } case 999: { if (!(message.uninterpretedOption && message.uninterpretedOption.length)) message.uninterpretedOption = []; @@ -16349,6 +17988,14 @@ if (message.deprecated != null && message.hasOwnProperty("deprecated")) if (typeof message.deprecated !== "boolean") return "deprecated: boolean expected"; + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } + if (message.debugRedact != null && message.hasOwnProperty("debugRedact")) + if (typeof message.debugRedact !== "boolean") + return "debugRedact: boolean expected"; if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { if (!Array.isArray(message.uninterpretedOption)) return "uninterpretedOption: array expected"; @@ -16375,6 +18022,13 @@ var message = new $root.google.protobuf.EnumValueOptions(); if (object.deprecated != null) message.deprecated = Boolean(object.deprecated); + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.EnumValueOptions.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); + } + if (object.debugRedact != null) + message.debugRedact = Boolean(object.debugRedact); if (object.uninterpretedOption) { if (!Array.isArray(object.uninterpretedOption)) throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected"); @@ -16403,10 +18057,17 @@ var object = {}; if (options.arrays || options.defaults) object.uninterpretedOption = []; - if (options.defaults) + if (options.defaults) { object.deprecated = false; + object.features = null; + object.debugRedact = false; + } if (message.deprecated != null && message.hasOwnProperty("deprecated")) object.deprecated = message.deprecated; + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); + if (message.debugRedact != null && message.hasOwnProperty("debugRedact")) + object.debugRedact = message.debugRedact; if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (var j = 0; j < message.uninterpretedOption.length; ++j) @@ -16450,6 +18111,7 @@ * Properties of a ServiceOptions. * @memberof google.protobuf * @interface IServiceOptions + * @property {google.protobuf.IFeatureSet|null} [features] ServiceOptions features * @property {boolean|null} [deprecated] ServiceOptions deprecated * @property {Array.|null} [uninterpretedOption] ServiceOptions uninterpretedOption * @property {string|null} [".google.api.defaultHost"] ServiceOptions .google.api.defaultHost @@ -16472,6 +18134,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * ServiceOptions features. + * @member {google.protobuf.IFeatureSet|null|undefined} features + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype.features = null; + /** * ServiceOptions deprecated. * @member {boolean} deprecated @@ -16530,6 +18200,8 @@ writer = $Writer.create(); if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 34, wireType 2 =*/274).fork()).ldelim(); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); @@ -16571,6 +18243,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 34: { + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); + break; + } case 33: { message.deprecated = reader.bool(); break; @@ -16624,6 +18300,11 @@ ServiceOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } if (message.deprecated != null && message.hasOwnProperty("deprecated")) if (typeof message.deprecated !== "boolean") return "deprecated: boolean expected"; @@ -16657,6 +18338,11 @@ if (object instanceof $root.google.protobuf.ServiceOptions) return object; var message = new $root.google.protobuf.ServiceOptions(); + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.ServiceOptions.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); + } if (object.deprecated != null) message.deprecated = Boolean(object.deprecated); if (object.uninterpretedOption) { @@ -16693,11 +18379,14 @@ object.uninterpretedOption = []; if (options.defaults) { object.deprecated = false; + object.features = null; object[".google.api.defaultHost"] = ""; object[".google.api.oauthScopes"] = ""; } if (message.deprecated != null && message.hasOwnProperty("deprecated")) object.deprecated = message.deprecated; + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (var j = 0; j < message.uninterpretedOption.length; ++j) @@ -16747,6 +18436,7 @@ * @interface IMethodOptions * @property {boolean|null} [deprecated] MethodOptions deprecated * @property {google.protobuf.MethodOptions.IdempotencyLevel|null} [idempotencyLevel] MethodOptions idempotencyLevel + * @property {google.protobuf.IFeatureSet|null} [features] MethodOptions features * @property {Array.|null} [uninterpretedOption] MethodOptions uninterpretedOption * @property {google.api.IHttpRule|null} [".google.api.http"] MethodOptions .google.api.http * @property {google.api.IRoutingRule|null} [".google.api.routing"] MethodOptions .google.api.routing @@ -16787,6 +18477,14 @@ */ MethodOptions.prototype.idempotencyLevel = 0; + /** + * MethodOptions features. + * @member {google.protobuf.IFeatureSet|null|undefined} features + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype.features = null; + /** * MethodOptions uninterpretedOption. * @member {Array.} uninterpretedOption @@ -16855,6 +18553,8 @@ writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); if (message.idempotencyLevel != null && Object.hasOwnProperty.call(message, "idempotencyLevel")) writer.uint32(/* id 34, wireType 0 =*/272).int32(message.idempotencyLevel); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 35, wireType 2 =*/282).fork()).ldelim(); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); @@ -16909,6 +18609,10 @@ message.idempotencyLevel = reader.int32(); break; } + case 35: { + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); + break; + } case 999: { if (!(message.uninterpretedOption && message.uninterpretedOption.length)) message.uninterpretedOption = []; @@ -16980,6 +18684,11 @@ case 2: break; } + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { if (!Array.isArray(message.uninterpretedOption)) return "uninterpretedOption: array expected"; @@ -17048,6 +18757,11 @@ message.idempotencyLevel = 2; break; } + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.MethodOptions.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); + } if (object.uninterpretedOption) { if (!Array.isArray(object.uninterpretedOption)) throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: array expected"); @@ -17103,6 +18817,7 @@ if (options.defaults) { object.deprecated = false; object.idempotencyLevel = options.enums === String ? "IDEMPOTENCY_UNKNOWN" : 0; + object.features = null; object[".google.longrunning.operationInfo"] = null; object[".google.api.http"] = null; object[".google.api.routing"] = null; @@ -17111,6 +18826,8 @@ object.deprecated = message.deprecated; if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) object.idempotencyLevel = options.enums === String ? $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] === undefined ? message.idempotencyLevel : $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] : message.idempotencyLevel; + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (var j = 0; j < message.uninterpretedOption.length; ++j) @@ -17452,146 +19169,1339 @@ message.name[i] = $root.google.protobuf.UninterpretedOption.NamePart.fromObject(object.name[i]); } } - if (object.identifierValue != null) - message.identifierValue = String(object.identifierValue); - if (object.positiveIntValue != null) - if ($util.Long) - (message.positiveIntValue = $util.Long.fromValue(object.positiveIntValue)).unsigned = true; - else if (typeof object.positiveIntValue === "string") - message.positiveIntValue = parseInt(object.positiveIntValue, 10); - else if (typeof object.positiveIntValue === "number") - message.positiveIntValue = object.positiveIntValue; - else if (typeof object.positiveIntValue === "object") - message.positiveIntValue = new $util.LongBits(object.positiveIntValue.low >>> 0, object.positiveIntValue.high >>> 0).toNumber(true); - if (object.negativeIntValue != null) - if ($util.Long) - (message.negativeIntValue = $util.Long.fromValue(object.negativeIntValue)).unsigned = false; - else if (typeof object.negativeIntValue === "string") - message.negativeIntValue = parseInt(object.negativeIntValue, 10); - else if (typeof object.negativeIntValue === "number") - message.negativeIntValue = object.negativeIntValue; - else if (typeof object.negativeIntValue === "object") - message.negativeIntValue = new $util.LongBits(object.negativeIntValue.low >>> 0, object.negativeIntValue.high >>> 0).toNumber(); - if (object.doubleValue != null) - message.doubleValue = Number(object.doubleValue); - if (object.stringValue != null) - if (typeof object.stringValue === "string") - $util.base64.decode(object.stringValue, message.stringValue = $util.newBuffer($util.base64.length(object.stringValue)), 0); - else if (object.stringValue.length >= 0) - message.stringValue = object.stringValue; - if (object.aggregateValue != null) - message.aggregateValue = String(object.aggregateValue); + if (object.identifierValue != null) + message.identifierValue = String(object.identifierValue); + if (object.positiveIntValue != null) + if ($util.Long) + (message.positiveIntValue = $util.Long.fromValue(object.positiveIntValue)).unsigned = true; + else if (typeof object.positiveIntValue === "string") + message.positiveIntValue = parseInt(object.positiveIntValue, 10); + else if (typeof object.positiveIntValue === "number") + message.positiveIntValue = object.positiveIntValue; + else if (typeof object.positiveIntValue === "object") + message.positiveIntValue = new $util.LongBits(object.positiveIntValue.low >>> 0, object.positiveIntValue.high >>> 0).toNumber(true); + if (object.negativeIntValue != null) + if ($util.Long) + (message.negativeIntValue = $util.Long.fromValue(object.negativeIntValue)).unsigned = false; + else if (typeof object.negativeIntValue === "string") + message.negativeIntValue = parseInt(object.negativeIntValue, 10); + else if (typeof object.negativeIntValue === "number") + message.negativeIntValue = object.negativeIntValue; + else if (typeof object.negativeIntValue === "object") + message.negativeIntValue = new $util.LongBits(object.negativeIntValue.low >>> 0, object.negativeIntValue.high >>> 0).toNumber(); + if (object.doubleValue != null) + message.doubleValue = Number(object.doubleValue); + if (object.stringValue != null) + if (typeof object.stringValue === "string") + $util.base64.decode(object.stringValue, message.stringValue = $util.newBuffer($util.base64.length(object.stringValue)), 0); + else if (object.stringValue.length >= 0) + message.stringValue = object.stringValue; + if (object.aggregateValue != null) + message.aggregateValue = String(object.aggregateValue); + return message; + }; + + /** + * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.UninterpretedOption} message UninterpretedOption + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UninterpretedOption.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.name = []; + if (options.defaults) { + object.identifierValue = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.positiveIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.positiveIntValue = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.negativeIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.negativeIntValue = options.longs === String ? "0" : 0; + object.doubleValue = 0; + if (options.bytes === String) + object.stringValue = ""; + else { + object.stringValue = []; + if (options.bytes !== Array) + object.stringValue = $util.newBuffer(object.stringValue); + } + object.aggregateValue = ""; + } + if (message.name && message.name.length) { + object.name = []; + for (var j = 0; j < message.name.length; ++j) + object.name[j] = $root.google.protobuf.UninterpretedOption.NamePart.toObject(message.name[j], options); + } + if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) + object.identifierValue = message.identifierValue; + if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) + if (typeof message.positiveIntValue === "number") + object.positiveIntValue = options.longs === String ? String(message.positiveIntValue) : message.positiveIntValue; + else + object.positiveIntValue = options.longs === String ? $util.Long.prototype.toString.call(message.positiveIntValue) : options.longs === Number ? new $util.LongBits(message.positiveIntValue.low >>> 0, message.positiveIntValue.high >>> 0).toNumber(true) : message.positiveIntValue; + if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) + if (typeof message.negativeIntValue === "number") + object.negativeIntValue = options.longs === String ? String(message.negativeIntValue) : message.negativeIntValue; + else + object.negativeIntValue = options.longs === String ? $util.Long.prototype.toString.call(message.negativeIntValue) : options.longs === Number ? new $util.LongBits(message.negativeIntValue.low >>> 0, message.negativeIntValue.high >>> 0).toNumber() : message.negativeIntValue; + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) + object.doubleValue = options.json && !isFinite(message.doubleValue) ? String(message.doubleValue) : message.doubleValue; + if (message.stringValue != null && message.hasOwnProperty("stringValue")) + object.stringValue = options.bytes === String ? $util.base64.encode(message.stringValue, 0, message.stringValue.length) : options.bytes === Array ? Array.prototype.slice.call(message.stringValue) : message.stringValue; + if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) + object.aggregateValue = message.aggregateValue; + return object; + }; + + /** + * Converts this UninterpretedOption to JSON. + * @function toJSON + * @memberof google.protobuf.UninterpretedOption + * @instance + * @returns {Object.} JSON object + */ + UninterpretedOption.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UninterpretedOption + * @function getTypeUrl + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UninterpretedOption.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.UninterpretedOption"; + }; + + UninterpretedOption.NamePart = (function() { + + /** + * Properties of a NamePart. + * @memberof google.protobuf.UninterpretedOption + * @interface INamePart + * @property {string} namePart NamePart namePart + * @property {boolean} isExtension NamePart isExtension + */ + + /** + * Constructs a new NamePart. + * @memberof google.protobuf.UninterpretedOption + * @classdesc Represents a NamePart. + * @implements INamePart + * @constructor + * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set + */ + function NamePart(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]]; + } + + /** + * NamePart namePart. + * @member {string} namePart + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + */ + NamePart.prototype.namePart = ""; + + /** + * NamePart isExtension. + * @member {boolean} isExtension + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + */ + NamePart.prototype.isExtension = false; + + /** + * Creates a new NamePart instance using the specified properties. + * @function create + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart instance + */ + NamePart.create = function create(properties) { + return new NamePart(properties); + }; + + /** + * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @function encode + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamePart.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + writer.uint32(/* id 1, wireType 2 =*/10).string(message.namePart); + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isExtension); + return writer; + }; + + /** + * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamePart.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NamePart message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamePart.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.google.protobuf.UninterpretedOption.NamePart(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.namePart = reader.string(); + break; + } + case 2: { + message.isExtension = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + if (!message.hasOwnProperty("namePart")) + throw $util.ProtocolError("missing required 'namePart'", { instance: message }); + if (!message.hasOwnProperty("isExtension")) + throw $util.ProtocolError("missing required 'isExtension'", { instance: message }); + return message; + }; + + /** + * Decodes a NamePart message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamePart.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NamePart message. + * @function verify + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamePart.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (!$util.isString(message.namePart)) + return "namePart: string expected"; + if (typeof message.isExtension !== "boolean") + return "isExtension: boolean expected"; + return null; + }; + + /** + * Creates a NamePart message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + */ + NamePart.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.UninterpretedOption.NamePart) + return object; + var message = new $root.google.protobuf.UninterpretedOption.NamePart(); + if (object.namePart != null) + message.namePart = String(object.namePart); + if (object.isExtension != null) + message.isExtension = Boolean(object.isExtension); + return message; + }; + + /** + * Creates a plain object from a NamePart message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.NamePart} message NamePart + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NamePart.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.namePart = ""; + object.isExtension = false; + } + if (message.namePart != null && message.hasOwnProperty("namePart")) + object.namePart = message.namePart; + if (message.isExtension != null && message.hasOwnProperty("isExtension")) + object.isExtension = message.isExtension; + return object; + }; + + /** + * Converts this NamePart to JSON. + * @function toJSON + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + * @returns {Object.} JSON object + */ + NamePart.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NamePart + * @function getTypeUrl + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NamePart.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.UninterpretedOption.NamePart"; + }; + + return NamePart; + })(); + + return UninterpretedOption; + })(); + + protobuf.FeatureSet = (function() { + + /** + * Properties of a FeatureSet. + * @memberof google.protobuf + * @interface IFeatureSet + * @property {google.protobuf.FeatureSet.FieldPresence|null} [fieldPresence] FeatureSet fieldPresence + * @property {google.protobuf.FeatureSet.EnumType|null} [enumType] FeatureSet enumType + * @property {google.protobuf.FeatureSet.RepeatedFieldEncoding|null} [repeatedFieldEncoding] FeatureSet repeatedFieldEncoding + * @property {google.protobuf.FeatureSet.Utf8Validation|null} [utf8Validation] FeatureSet utf8Validation + * @property {google.protobuf.FeatureSet.MessageEncoding|null} [messageEncoding] FeatureSet messageEncoding + * @property {google.protobuf.FeatureSet.JsonFormat|null} [jsonFormat] FeatureSet jsonFormat + */ + + /** + * Constructs a new FeatureSet. + * @memberof google.protobuf + * @classdesc Represents a FeatureSet. + * @implements IFeatureSet + * @constructor + * @param {google.protobuf.IFeatureSet=} [properties] Properties to set + */ + function FeatureSet(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]]; + } + + /** + * FeatureSet fieldPresence. + * @member {google.protobuf.FeatureSet.FieldPresence} fieldPresence + * @memberof google.protobuf.FeatureSet + * @instance + */ + FeatureSet.prototype.fieldPresence = 0; + + /** + * FeatureSet enumType. + * @member {google.protobuf.FeatureSet.EnumType} enumType + * @memberof google.protobuf.FeatureSet + * @instance + */ + FeatureSet.prototype.enumType = 0; + + /** + * FeatureSet repeatedFieldEncoding. + * @member {google.protobuf.FeatureSet.RepeatedFieldEncoding} repeatedFieldEncoding + * @memberof google.protobuf.FeatureSet + * @instance + */ + FeatureSet.prototype.repeatedFieldEncoding = 0; + + /** + * FeatureSet utf8Validation. + * @member {google.protobuf.FeatureSet.Utf8Validation} utf8Validation + * @memberof google.protobuf.FeatureSet + * @instance + */ + FeatureSet.prototype.utf8Validation = 0; + + /** + * FeatureSet messageEncoding. + * @member {google.protobuf.FeatureSet.MessageEncoding} messageEncoding + * @memberof google.protobuf.FeatureSet + * @instance + */ + FeatureSet.prototype.messageEncoding = 0; + + /** + * FeatureSet jsonFormat. + * @member {google.protobuf.FeatureSet.JsonFormat} jsonFormat + * @memberof google.protobuf.FeatureSet + * @instance + */ + FeatureSet.prototype.jsonFormat = 0; + + /** + * Creates a new FeatureSet instance using the specified properties. + * @function create + * @memberof google.protobuf.FeatureSet + * @static + * @param {google.protobuf.IFeatureSet=} [properties] Properties to set + * @returns {google.protobuf.FeatureSet} FeatureSet instance + */ + FeatureSet.create = function create(properties) { + return new FeatureSet(properties); + }; + + /** + * Encodes the specified FeatureSet message. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FeatureSet + * @static + * @param {google.protobuf.IFeatureSet} message FeatureSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureSet.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.fieldPresence != null && Object.hasOwnProperty.call(message, "fieldPresence")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.fieldPresence); + if (message.enumType != null && Object.hasOwnProperty.call(message, "enumType")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.enumType); + if (message.repeatedFieldEncoding != null && Object.hasOwnProperty.call(message, "repeatedFieldEncoding")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.repeatedFieldEncoding); + if (message.utf8Validation != null && Object.hasOwnProperty.call(message, "utf8Validation")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.utf8Validation); + if (message.messageEncoding != null && Object.hasOwnProperty.call(message, "messageEncoding")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.messageEncoding); + if (message.jsonFormat != null && Object.hasOwnProperty.call(message, "jsonFormat")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jsonFormat); + return writer; + }; + + /** + * Encodes the specified FeatureSet message, length delimited. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FeatureSet + * @static + * @param {google.protobuf.IFeatureSet} message FeatureSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureSet.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FeatureSet message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FeatureSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FeatureSet} FeatureSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureSet.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.google.protobuf.FeatureSet(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.fieldPresence = reader.int32(); + break; + } + case 2: { + message.enumType = reader.int32(); + break; + } + case 3: { + message.repeatedFieldEncoding = reader.int32(); + break; + } + case 4: { + message.utf8Validation = reader.int32(); + break; + } + case 5: { + message.messageEncoding = reader.int32(); + break; + } + case 6: { + message.jsonFormat = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FeatureSet message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FeatureSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FeatureSet} FeatureSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureSet.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FeatureSet message. + * @function verify + * @memberof google.protobuf.FeatureSet + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FeatureSet.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.fieldPresence != null && message.hasOwnProperty("fieldPresence")) + switch (message.fieldPresence) { + default: + return "fieldPresence: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.enumType != null && message.hasOwnProperty("enumType")) + switch (message.enumType) { + default: + return "enumType: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.repeatedFieldEncoding != null && message.hasOwnProperty("repeatedFieldEncoding")) + switch (message.repeatedFieldEncoding) { + default: + return "repeatedFieldEncoding: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.utf8Validation != null && message.hasOwnProperty("utf8Validation")) + switch (message.utf8Validation) { + default: + return "utf8Validation: enum value expected"; + case 0: + case 2: + case 3: + break; + } + if (message.messageEncoding != null && message.hasOwnProperty("messageEncoding")) + switch (message.messageEncoding) { + default: + return "messageEncoding: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.jsonFormat != null && message.hasOwnProperty("jsonFormat")) + switch (message.jsonFormat) { + default: + return "jsonFormat: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates a FeatureSet message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FeatureSet + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FeatureSet} FeatureSet + */ + FeatureSet.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FeatureSet) + return object; + var message = new $root.google.protobuf.FeatureSet(); + switch (object.fieldPresence) { + default: + if (typeof object.fieldPresence === "number") { + message.fieldPresence = object.fieldPresence; + break; + } + break; + case "FIELD_PRESENCE_UNKNOWN": + case 0: + message.fieldPresence = 0; + break; + case "EXPLICIT": + case 1: + message.fieldPresence = 1; + break; + case "IMPLICIT": + case 2: + message.fieldPresence = 2; + break; + case "LEGACY_REQUIRED": + case 3: + message.fieldPresence = 3; + break; + } + switch (object.enumType) { + default: + if (typeof object.enumType === "number") { + message.enumType = object.enumType; + break; + } + break; + case "ENUM_TYPE_UNKNOWN": + case 0: + message.enumType = 0; + break; + case "OPEN": + case 1: + message.enumType = 1; + break; + case "CLOSED": + case 2: + message.enumType = 2; + break; + } + switch (object.repeatedFieldEncoding) { + default: + if (typeof object.repeatedFieldEncoding === "number") { + message.repeatedFieldEncoding = object.repeatedFieldEncoding; + break; + } + break; + case "REPEATED_FIELD_ENCODING_UNKNOWN": + case 0: + message.repeatedFieldEncoding = 0; + break; + case "PACKED": + case 1: + message.repeatedFieldEncoding = 1; + break; + case "EXPANDED": + case 2: + message.repeatedFieldEncoding = 2; + break; + } + switch (object.utf8Validation) { + default: + if (typeof object.utf8Validation === "number") { + message.utf8Validation = object.utf8Validation; + break; + } + break; + case "UTF8_VALIDATION_UNKNOWN": + case 0: + message.utf8Validation = 0; + break; + case "VERIFY": + case 2: + message.utf8Validation = 2; + break; + case "NONE": + case 3: + message.utf8Validation = 3; + break; + } + switch (object.messageEncoding) { + default: + if (typeof object.messageEncoding === "number") { + message.messageEncoding = object.messageEncoding; + break; + } + break; + case "MESSAGE_ENCODING_UNKNOWN": + case 0: + message.messageEncoding = 0; + break; + case "LENGTH_PREFIXED": + case 1: + message.messageEncoding = 1; + break; + case "DELIMITED": + case 2: + message.messageEncoding = 2; + break; + } + switch (object.jsonFormat) { + default: + if (typeof object.jsonFormat === "number") { + message.jsonFormat = object.jsonFormat; + break; + } + break; + case "JSON_FORMAT_UNKNOWN": + case 0: + message.jsonFormat = 0; + break; + case "ALLOW": + case 1: + message.jsonFormat = 1; + break; + case "LEGACY_BEST_EFFORT": + case 2: + message.jsonFormat = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from a FeatureSet message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FeatureSet + * @static + * @param {google.protobuf.FeatureSet} message FeatureSet + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FeatureSet.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.fieldPresence = options.enums === String ? "FIELD_PRESENCE_UNKNOWN" : 0; + object.enumType = options.enums === String ? "ENUM_TYPE_UNKNOWN" : 0; + object.repeatedFieldEncoding = options.enums === String ? "REPEATED_FIELD_ENCODING_UNKNOWN" : 0; + object.utf8Validation = options.enums === String ? "UTF8_VALIDATION_UNKNOWN" : 0; + object.messageEncoding = options.enums === String ? "MESSAGE_ENCODING_UNKNOWN" : 0; + object.jsonFormat = options.enums === String ? "JSON_FORMAT_UNKNOWN" : 0; + } + if (message.fieldPresence != null && message.hasOwnProperty("fieldPresence")) + object.fieldPresence = options.enums === String ? $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] === undefined ? message.fieldPresence : $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] : message.fieldPresence; + if (message.enumType != null && message.hasOwnProperty("enumType")) + object.enumType = options.enums === String ? $root.google.protobuf.FeatureSet.EnumType[message.enumType] === undefined ? message.enumType : $root.google.protobuf.FeatureSet.EnumType[message.enumType] : message.enumType; + if (message.repeatedFieldEncoding != null && message.hasOwnProperty("repeatedFieldEncoding")) + object.repeatedFieldEncoding = options.enums === String ? $root.google.protobuf.FeatureSet.RepeatedFieldEncoding[message.repeatedFieldEncoding] === undefined ? message.repeatedFieldEncoding : $root.google.protobuf.FeatureSet.RepeatedFieldEncoding[message.repeatedFieldEncoding] : message.repeatedFieldEncoding; + if (message.utf8Validation != null && message.hasOwnProperty("utf8Validation")) + object.utf8Validation = options.enums === String ? $root.google.protobuf.FeatureSet.Utf8Validation[message.utf8Validation] === undefined ? message.utf8Validation : $root.google.protobuf.FeatureSet.Utf8Validation[message.utf8Validation] : message.utf8Validation; + if (message.messageEncoding != null && message.hasOwnProperty("messageEncoding")) + object.messageEncoding = options.enums === String ? $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] === undefined ? message.messageEncoding : $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] : message.messageEncoding; + if (message.jsonFormat != null && message.hasOwnProperty("jsonFormat")) + object.jsonFormat = options.enums === String ? $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] === undefined ? message.jsonFormat : $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] : message.jsonFormat; + return object; + }; + + /** + * Converts this FeatureSet to JSON. + * @function toJSON + * @memberof google.protobuf.FeatureSet + * @instance + * @returns {Object.} JSON object + */ + FeatureSet.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FeatureSet + * @function getTypeUrl + * @memberof google.protobuf.FeatureSet + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FeatureSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FeatureSet"; + }; + + /** + * FieldPresence enum. + * @name google.protobuf.FeatureSet.FieldPresence + * @enum {number} + * @property {number} FIELD_PRESENCE_UNKNOWN=0 FIELD_PRESENCE_UNKNOWN value + * @property {number} EXPLICIT=1 EXPLICIT value + * @property {number} IMPLICIT=2 IMPLICIT value + * @property {number} LEGACY_REQUIRED=3 LEGACY_REQUIRED value + */ + FeatureSet.FieldPresence = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "FIELD_PRESENCE_UNKNOWN"] = 0; + values[valuesById[1] = "EXPLICIT"] = 1; + values[valuesById[2] = "IMPLICIT"] = 2; + values[valuesById[3] = "LEGACY_REQUIRED"] = 3; + return values; + })(); + + /** + * EnumType enum. + * @name google.protobuf.FeatureSet.EnumType + * @enum {number} + * @property {number} ENUM_TYPE_UNKNOWN=0 ENUM_TYPE_UNKNOWN value + * @property {number} OPEN=1 OPEN value + * @property {number} CLOSED=2 CLOSED value + */ + FeatureSet.EnumType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ENUM_TYPE_UNKNOWN"] = 0; + values[valuesById[1] = "OPEN"] = 1; + values[valuesById[2] = "CLOSED"] = 2; + return values; + })(); + + /** + * RepeatedFieldEncoding enum. + * @name google.protobuf.FeatureSet.RepeatedFieldEncoding + * @enum {number} + * @property {number} REPEATED_FIELD_ENCODING_UNKNOWN=0 REPEATED_FIELD_ENCODING_UNKNOWN value + * @property {number} PACKED=1 PACKED value + * @property {number} EXPANDED=2 EXPANDED value + */ + FeatureSet.RepeatedFieldEncoding = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "REPEATED_FIELD_ENCODING_UNKNOWN"] = 0; + values[valuesById[1] = "PACKED"] = 1; + values[valuesById[2] = "EXPANDED"] = 2; + return values; + })(); + + /** + * Utf8Validation enum. + * @name google.protobuf.FeatureSet.Utf8Validation + * @enum {number} + * @property {number} UTF8_VALIDATION_UNKNOWN=0 UTF8_VALIDATION_UNKNOWN value + * @property {number} VERIFY=2 VERIFY value + * @property {number} NONE=3 NONE value + */ + FeatureSet.Utf8Validation = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UTF8_VALIDATION_UNKNOWN"] = 0; + values[valuesById[2] = "VERIFY"] = 2; + values[valuesById[3] = "NONE"] = 3; + return values; + })(); + + /** + * MessageEncoding enum. + * @name google.protobuf.FeatureSet.MessageEncoding + * @enum {number} + * @property {number} MESSAGE_ENCODING_UNKNOWN=0 MESSAGE_ENCODING_UNKNOWN value + * @property {number} LENGTH_PREFIXED=1 LENGTH_PREFIXED value + * @property {number} DELIMITED=2 DELIMITED value + */ + FeatureSet.MessageEncoding = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MESSAGE_ENCODING_UNKNOWN"] = 0; + values[valuesById[1] = "LENGTH_PREFIXED"] = 1; + values[valuesById[2] = "DELIMITED"] = 2; + return values; + })(); + + /** + * JsonFormat enum. + * @name google.protobuf.FeatureSet.JsonFormat + * @enum {number} + * @property {number} JSON_FORMAT_UNKNOWN=0 JSON_FORMAT_UNKNOWN value + * @property {number} ALLOW=1 ALLOW value + * @property {number} LEGACY_BEST_EFFORT=2 LEGACY_BEST_EFFORT value + */ + FeatureSet.JsonFormat = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "JSON_FORMAT_UNKNOWN"] = 0; + values[valuesById[1] = "ALLOW"] = 1; + values[valuesById[2] = "LEGACY_BEST_EFFORT"] = 2; + return values; + })(); + + return FeatureSet; + })(); + + protobuf.FeatureSetDefaults = (function() { + + /** + * Properties of a FeatureSetDefaults. + * @memberof google.protobuf + * @interface IFeatureSetDefaults + * @property {Array.|null} [defaults] FeatureSetDefaults defaults + * @property {google.protobuf.Edition|null} [minimumEdition] FeatureSetDefaults minimumEdition + * @property {google.protobuf.Edition|null} [maximumEdition] FeatureSetDefaults maximumEdition + */ + + /** + * Constructs a new FeatureSetDefaults. + * @memberof google.protobuf + * @classdesc Represents a FeatureSetDefaults. + * @implements IFeatureSetDefaults + * @constructor + * @param {google.protobuf.IFeatureSetDefaults=} [properties] Properties to set + */ + function FeatureSetDefaults(properties) { + this.defaults = []; + 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]]; + } + + /** + * FeatureSetDefaults defaults. + * @member {Array.} defaults + * @memberof google.protobuf.FeatureSetDefaults + * @instance + */ + FeatureSetDefaults.prototype.defaults = $util.emptyArray; + + /** + * FeatureSetDefaults minimumEdition. + * @member {google.protobuf.Edition} minimumEdition + * @memberof google.protobuf.FeatureSetDefaults + * @instance + */ + FeatureSetDefaults.prototype.minimumEdition = 0; + + /** + * FeatureSetDefaults maximumEdition. + * @member {google.protobuf.Edition} maximumEdition + * @memberof google.protobuf.FeatureSetDefaults + * @instance + */ + FeatureSetDefaults.prototype.maximumEdition = 0; + + /** + * Creates a new FeatureSetDefaults instance using the specified properties. + * @function create + * @memberof google.protobuf.FeatureSetDefaults + * @static + * @param {google.protobuf.IFeatureSetDefaults=} [properties] Properties to set + * @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults instance + */ + FeatureSetDefaults.create = function create(properties) { + return new FeatureSetDefaults(properties); + }; + + /** + * Encodes the specified FeatureSetDefaults message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FeatureSetDefaults + * @static + * @param {google.protobuf.IFeatureSetDefaults} message FeatureSetDefaults message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureSetDefaults.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.defaults != null && message.defaults.length) + for (var i = 0; i < message.defaults.length; ++i) + $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.encode(message.defaults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.minimumEdition != null && Object.hasOwnProperty.call(message, "minimumEdition")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.minimumEdition); + if (message.maximumEdition != null && Object.hasOwnProperty.call(message, "maximumEdition")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.maximumEdition); + return writer; + }; + + /** + * Encodes the specified FeatureSetDefaults message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FeatureSetDefaults + * @static + * @param {google.protobuf.IFeatureSetDefaults} message FeatureSetDefaults message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureSetDefaults.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FeatureSetDefaults message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FeatureSetDefaults + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureSetDefaults.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.google.protobuf.FeatureSetDefaults(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.defaults && message.defaults.length)) + message.defaults = []; + message.defaults.push($root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.decode(reader, reader.uint32())); + break; + } + case 4: { + message.minimumEdition = reader.int32(); + break; + } + case 5: { + message.maximumEdition = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FeatureSetDefaults message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FeatureSetDefaults + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureSetDefaults.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FeatureSetDefaults message. + * @function verify + * @memberof google.protobuf.FeatureSetDefaults + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FeatureSetDefaults.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.defaults != null && message.hasOwnProperty("defaults")) { + if (!Array.isArray(message.defaults)) + return "defaults: array expected"; + for (var i = 0; i < message.defaults.length; ++i) { + var error = $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify(message.defaults[i]); + if (error) + return "defaults." + error; + } + } + if (message.minimumEdition != null && message.hasOwnProperty("minimumEdition")) + switch (message.minimumEdition) { + default: + return "minimumEdition: enum value expected"; + case 0: + case 998: + case 999: + case 1000: + case 1001: + case 1: + case 2: + case 99997: + case 99998: + case 99999: + case 2147483647: + break; + } + if (message.maximumEdition != null && message.hasOwnProperty("maximumEdition")) + switch (message.maximumEdition) { + default: + return "maximumEdition: enum value expected"; + case 0: + case 998: + case 999: + case 1000: + case 1001: + case 1: + case 2: + case 99997: + case 99998: + case 99999: + case 2147483647: + break; + } + return null; + }; + + /** + * Creates a FeatureSetDefaults message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FeatureSetDefaults + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults + */ + FeatureSetDefaults.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FeatureSetDefaults) + return object; + var message = new $root.google.protobuf.FeatureSetDefaults(); + if (object.defaults) { + if (!Array.isArray(object.defaults)) + throw TypeError(".google.protobuf.FeatureSetDefaults.defaults: array expected"); + message.defaults = []; + for (var i = 0; i < object.defaults.length; ++i) { + if (typeof object.defaults[i] !== "object") + throw TypeError(".google.protobuf.FeatureSetDefaults.defaults: object expected"); + message.defaults[i] = $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.fromObject(object.defaults[i]); + } + } + switch (object.minimumEdition) { + default: + if (typeof object.minimumEdition === "number") { + message.minimumEdition = object.minimumEdition; + break; + } + break; + case "EDITION_UNKNOWN": + case 0: + message.minimumEdition = 0; + break; + case "EDITION_PROTO2": + case 998: + message.minimumEdition = 998; + break; + case "EDITION_PROTO3": + case 999: + message.minimumEdition = 999; + break; + case "EDITION_2023": + case 1000: + message.minimumEdition = 1000; + break; + case "EDITION_2024": + case 1001: + message.minimumEdition = 1001; + break; + case "EDITION_1_TEST_ONLY": + case 1: + message.minimumEdition = 1; + break; + case "EDITION_2_TEST_ONLY": + case 2: + message.minimumEdition = 2; + break; + case "EDITION_99997_TEST_ONLY": + case 99997: + message.minimumEdition = 99997; + break; + case "EDITION_99998_TEST_ONLY": + case 99998: + message.minimumEdition = 99998; + break; + case "EDITION_99999_TEST_ONLY": + case 99999: + message.minimumEdition = 99999; + break; + case "EDITION_MAX": + case 2147483647: + message.minimumEdition = 2147483647; + break; + } + switch (object.maximumEdition) { + default: + if (typeof object.maximumEdition === "number") { + message.maximumEdition = object.maximumEdition; + break; + } + break; + case "EDITION_UNKNOWN": + case 0: + message.maximumEdition = 0; + break; + case "EDITION_PROTO2": + case 998: + message.maximumEdition = 998; + break; + case "EDITION_PROTO3": + case 999: + message.maximumEdition = 999; + break; + case "EDITION_2023": + case 1000: + message.maximumEdition = 1000; + break; + case "EDITION_2024": + case 1001: + message.maximumEdition = 1001; + break; + case "EDITION_1_TEST_ONLY": + case 1: + message.maximumEdition = 1; + break; + case "EDITION_2_TEST_ONLY": + case 2: + message.maximumEdition = 2; + break; + case "EDITION_99997_TEST_ONLY": + case 99997: + message.maximumEdition = 99997; + break; + case "EDITION_99998_TEST_ONLY": + case 99998: + message.maximumEdition = 99998; + break; + case "EDITION_99999_TEST_ONLY": + case 99999: + message.maximumEdition = 99999; + break; + case "EDITION_MAX": + case 2147483647: + message.maximumEdition = 2147483647; + break; + } return message; }; /** - * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. + * Creates a plain object from a FeatureSetDefaults message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.FeatureSetDefaults * @static - * @param {google.protobuf.UninterpretedOption} message UninterpretedOption + * @param {google.protobuf.FeatureSetDefaults} message FeatureSetDefaults * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UninterpretedOption.toObject = function toObject(message, options) { + FeatureSetDefaults.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.name = []; + object.defaults = []; if (options.defaults) { - object.identifierValue = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.positiveIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.positiveIntValue = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.negativeIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.negativeIntValue = options.longs === String ? "0" : 0; - object.doubleValue = 0; - if (options.bytes === String) - object.stringValue = ""; - else { - object.stringValue = []; - if (options.bytes !== Array) - object.stringValue = $util.newBuffer(object.stringValue); - } - object.aggregateValue = ""; - } - if (message.name && message.name.length) { - object.name = []; - for (var j = 0; j < message.name.length; ++j) - object.name[j] = $root.google.protobuf.UninterpretedOption.NamePart.toObject(message.name[j], options); - } - if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) - object.identifierValue = message.identifierValue; - if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) - if (typeof message.positiveIntValue === "number") - object.positiveIntValue = options.longs === String ? String(message.positiveIntValue) : message.positiveIntValue; - else - object.positiveIntValue = options.longs === String ? $util.Long.prototype.toString.call(message.positiveIntValue) : options.longs === Number ? new $util.LongBits(message.positiveIntValue.low >>> 0, message.positiveIntValue.high >>> 0).toNumber(true) : message.positiveIntValue; - if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) - if (typeof message.negativeIntValue === "number") - object.negativeIntValue = options.longs === String ? String(message.negativeIntValue) : message.negativeIntValue; - else - object.negativeIntValue = options.longs === String ? $util.Long.prototype.toString.call(message.negativeIntValue) : options.longs === Number ? new $util.LongBits(message.negativeIntValue.low >>> 0, message.negativeIntValue.high >>> 0).toNumber() : message.negativeIntValue; - if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) - object.doubleValue = options.json && !isFinite(message.doubleValue) ? String(message.doubleValue) : message.doubleValue; - if (message.stringValue != null && message.hasOwnProperty("stringValue")) - object.stringValue = options.bytes === String ? $util.base64.encode(message.stringValue, 0, message.stringValue.length) : options.bytes === Array ? Array.prototype.slice.call(message.stringValue) : message.stringValue; - if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) - object.aggregateValue = message.aggregateValue; + object.minimumEdition = options.enums === String ? "EDITION_UNKNOWN" : 0; + object.maximumEdition = options.enums === String ? "EDITION_UNKNOWN" : 0; + } + if (message.defaults && message.defaults.length) { + object.defaults = []; + for (var j = 0; j < message.defaults.length; ++j) + object.defaults[j] = $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.toObject(message.defaults[j], options); + } + if (message.minimumEdition != null && message.hasOwnProperty("minimumEdition")) + object.minimumEdition = options.enums === String ? $root.google.protobuf.Edition[message.minimumEdition] === undefined ? message.minimumEdition : $root.google.protobuf.Edition[message.minimumEdition] : message.minimumEdition; + if (message.maximumEdition != null && message.hasOwnProperty("maximumEdition")) + object.maximumEdition = options.enums === String ? $root.google.protobuf.Edition[message.maximumEdition] === undefined ? message.maximumEdition : $root.google.protobuf.Edition[message.maximumEdition] : message.maximumEdition; return object; }; /** - * Converts this UninterpretedOption to JSON. + * Converts this FeatureSetDefaults to JSON. * @function toJSON - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.FeatureSetDefaults * @instance * @returns {Object.} JSON object */ - UninterpretedOption.prototype.toJSON = function toJSON() { + FeatureSetDefaults.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UninterpretedOption + * Gets the default type url for FeatureSetDefaults * @function getTypeUrl - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.FeatureSetDefaults * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UninterpretedOption.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FeatureSetDefaults.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.protobuf.UninterpretedOption"; + return typeUrlPrefix + "/google.protobuf.FeatureSetDefaults"; }; - UninterpretedOption.NamePart = (function() { + FeatureSetDefaults.FeatureSetEditionDefault = (function() { /** - * Properties of a NamePart. - * @memberof google.protobuf.UninterpretedOption - * @interface INamePart - * @property {string} namePart NamePart namePart - * @property {boolean} isExtension NamePart isExtension + * Properties of a FeatureSetEditionDefault. + * @memberof google.protobuf.FeatureSetDefaults + * @interface IFeatureSetEditionDefault + * @property {google.protobuf.Edition|null} [edition] FeatureSetEditionDefault edition + * @property {google.protobuf.IFeatureSet|null} [features] FeatureSetEditionDefault features */ /** - * Constructs a new NamePart. - * @memberof google.protobuf.UninterpretedOption - * @classdesc Represents a NamePart. - * @implements INamePart + * Constructs a new FeatureSetEditionDefault. + * @memberof google.protobuf.FeatureSetDefaults + * @classdesc Represents a FeatureSetEditionDefault. + * @implements IFeatureSetEditionDefault * @constructor - * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set + * @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault=} [properties] Properties to set */ - function NamePart(properties) { + function FeatureSetEditionDefault(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17599,87 +20509,89 @@ } /** - * NamePart namePart. - * @member {string} namePart - * @memberof google.protobuf.UninterpretedOption.NamePart + * FeatureSetEditionDefault edition. + * @member {google.protobuf.Edition} edition + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault * @instance */ - NamePart.prototype.namePart = ""; + FeatureSetEditionDefault.prototype.edition = 0; /** - * NamePart isExtension. - * @member {boolean} isExtension - * @memberof google.protobuf.UninterpretedOption.NamePart + * FeatureSetEditionDefault features. + * @member {google.protobuf.IFeatureSet|null|undefined} features + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault * @instance */ - NamePart.prototype.isExtension = false; + FeatureSetEditionDefault.prototype.features = null; /** - * Creates a new NamePart instance using the specified properties. + * Creates a new FeatureSetEditionDefault instance using the specified properties. * @function create - * @memberof google.protobuf.UninterpretedOption.NamePart + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault * @static - * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set - * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart instance + * @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault=} [properties] Properties to set + * @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault instance */ - NamePart.create = function create(properties) { - return new NamePart(properties); + FeatureSetEditionDefault.create = function create(properties) { + return new FeatureSetEditionDefault(properties); }; /** - * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * Encodes the specified FeatureSetEditionDefault message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages. * @function encode - * @memberof google.protobuf.UninterpretedOption.NamePart + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault * @static - * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode + * @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault} message FeatureSetEditionDefault message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NamePart.encode = function encode(message, writer) { + FeatureSetEditionDefault.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - writer.uint32(/* id 1, wireType 2 =*/10).string(message.namePart); - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isExtension); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.edition != null && Object.hasOwnProperty.call(message, "edition")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.edition); return writer; }; /** - * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * Encodes the specified FeatureSetEditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.UninterpretedOption.NamePart + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault * @static - * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode + * @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault} message FeatureSetEditionDefault message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NamePart.encodeDelimited = function encodeDelimited(message, writer) { + FeatureSetEditionDefault.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NamePart message from the specified reader or buffer. + * Decodes a FeatureSetEditionDefault message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.UninterpretedOption.NamePart + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + * @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NamePart.decode = function decode(reader, length) { + FeatureSetEditionDefault.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.google.protobuf.UninterpretedOption.NamePart(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.namePart = reader.string(); + case 3: { + message.edition = reader.int32(); break; } case 2: { - message.isExtension = reader.bool(); + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); break; } default: @@ -17687,120 +20599,187 @@ break; } } - if (!message.hasOwnProperty("namePart")) - throw $util.ProtocolError("missing required 'namePart'", { instance: message }); - if (!message.hasOwnProperty("isExtension")) - throw $util.ProtocolError("missing required 'isExtension'", { instance: message }); return message; }; /** - * Decodes a NamePart message from the specified reader or buffer, length delimited. + * Decodes a FeatureSetEditionDefault message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.UninterpretedOption.NamePart + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + * @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NamePart.decodeDelimited = function decodeDelimited(reader) { + FeatureSetEditionDefault.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NamePart message. + * Verifies a FeatureSetEditionDefault message. * @function verify - * @memberof google.protobuf.UninterpretedOption.NamePart + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NamePart.verify = function verify(message) { + FeatureSetEditionDefault.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (!$util.isString(message.namePart)) - return "namePart: string expected"; - if (typeof message.isExtension !== "boolean") - return "isExtension: boolean expected"; + if (message.edition != null && message.hasOwnProperty("edition")) + switch (message.edition) { + default: + return "edition: enum value expected"; + case 0: + case 998: + case 999: + case 1000: + case 1001: + case 1: + case 2: + case 99997: + case 99998: + case 99999: + case 2147483647: + break; + } + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } return null; }; /** - * Creates a NamePart message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureSetEditionDefault message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.UninterpretedOption.NamePart + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault * @static * @param {Object.} object Plain object - * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + * @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault */ - NamePart.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.UninterpretedOption.NamePart) + FeatureSetEditionDefault.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault) return object; - var message = new $root.google.protobuf.UninterpretedOption.NamePart(); - if (object.namePart != null) - message.namePart = String(object.namePart); - if (object.isExtension != null) - message.isExtension = Boolean(object.isExtension); + var message = new $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault(); + switch (object.edition) { + default: + if (typeof object.edition === "number") { + message.edition = object.edition; + break; + } + break; + case "EDITION_UNKNOWN": + case 0: + message.edition = 0; + break; + case "EDITION_PROTO2": + case 998: + message.edition = 998; + break; + case "EDITION_PROTO3": + case 999: + message.edition = 999; + break; + case "EDITION_2023": + case 1000: + message.edition = 1000; + break; + case "EDITION_2024": + case 1001: + message.edition = 1001; + break; + case "EDITION_1_TEST_ONLY": + case 1: + message.edition = 1; + break; + case "EDITION_2_TEST_ONLY": + case 2: + message.edition = 2; + break; + case "EDITION_99997_TEST_ONLY": + case 99997: + message.edition = 99997; + break; + case "EDITION_99998_TEST_ONLY": + case 99998: + message.edition = 99998; + break; + case "EDITION_99999_TEST_ONLY": + case 99999: + message.edition = 99999; + break; + case "EDITION_MAX": + case 2147483647: + message.edition = 2147483647; + break; + } + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); + } return message; }; /** - * Creates a plain object from a NamePart message. Also converts values to other types if specified. + * Creates a plain object from a FeatureSetEditionDefault message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.UninterpretedOption.NamePart + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault * @static - * @param {google.protobuf.UninterpretedOption.NamePart} message NamePart + * @param {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} message FeatureSetEditionDefault * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NamePart.toObject = function toObject(message, options) { + FeatureSetEditionDefault.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.namePart = ""; - object.isExtension = false; + object.features = null; + object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0; } - if (message.namePart != null && message.hasOwnProperty("namePart")) - object.namePart = message.namePart; - if (message.isExtension != null && message.hasOwnProperty("isExtension")) - object.isExtension = message.isExtension; + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); + if (message.edition != null && message.hasOwnProperty("edition")) + object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition; return object; }; /** - * Converts this NamePart to JSON. + * Converts this FeatureSetEditionDefault to JSON. * @function toJSON - * @memberof google.protobuf.UninterpretedOption.NamePart + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault * @instance * @returns {Object.} JSON object */ - NamePart.prototype.toJSON = function toJSON() { + FeatureSetEditionDefault.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for NamePart + * Gets the default type url for FeatureSetEditionDefault * @function getTypeUrl - * @memberof google.protobuf.UninterpretedOption.NamePart + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - NamePart.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FeatureSetEditionDefault.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.protobuf.UninterpretedOption.NamePart"; + return typeUrlPrefix + "/google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault"; }; - return NamePart; + return FeatureSetEditionDefault; })(); - return UninterpretedOption; + return FeatureSetDefaults; })(); protobuf.SourceCodeInfo = (function() { @@ -19917,6 +22896,7 @@ * @property {Array.|null} [fileToGenerate] CodeGeneratorRequest fileToGenerate * @property {string|null} [parameter] CodeGeneratorRequest parameter * @property {Array.|null} [protoFile] CodeGeneratorRequest protoFile + * @property {Array.|null} [sourceFileDescriptors] CodeGeneratorRequest sourceFileDescriptors * @property {google.protobuf.compiler.IVersion|null} [compilerVersion] CodeGeneratorRequest compilerVersion */ @@ -19931,6 +22911,7 @@ function CodeGeneratorRequest(properties) { this.fileToGenerate = []; this.protoFile = []; + this.sourceFileDescriptors = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19961,6 +22942,14 @@ */ CodeGeneratorRequest.prototype.protoFile = $util.emptyArray; + /** + * CodeGeneratorRequest sourceFileDescriptors. + * @member {Array.} sourceFileDescriptors + * @memberof google.protobuf.compiler.CodeGeneratorRequest + * @instance + */ + CodeGeneratorRequest.prototype.sourceFileDescriptors = $util.emptyArray; + /** * CodeGeneratorRequest compilerVersion. * @member {google.protobuf.compiler.IVersion|null|undefined} compilerVersion @@ -20003,6 +22992,9 @@ if (message.protoFile != null && message.protoFile.length) for (var i = 0; i < message.protoFile.length; ++i) $root.google.protobuf.FileDescriptorProto.encode(message.protoFile[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.sourceFileDescriptors != null && message.sourceFileDescriptors.length) + for (var i = 0; i < message.sourceFileDescriptors.length; ++i) + $root.google.protobuf.FileDescriptorProto.encode(message.sourceFileDescriptors[i], writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); return writer; }; @@ -20053,6 +23045,12 @@ message.protoFile.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32())); break; } + case 17: { + if (!(message.sourceFileDescriptors && message.sourceFileDescriptors.length)) + message.sourceFileDescriptors = []; + message.sourceFileDescriptors.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32())); + break; + } case 3: { message.compilerVersion = $root.google.protobuf.compiler.Version.decode(reader, reader.uint32()); break; @@ -20111,6 +23109,15 @@ return "protoFile." + error; } } + if (message.sourceFileDescriptors != null && message.hasOwnProperty("sourceFileDescriptors")) { + if (!Array.isArray(message.sourceFileDescriptors)) + return "sourceFileDescriptors: array expected"; + for (var i = 0; i < message.sourceFileDescriptors.length; ++i) { + var error = $root.google.protobuf.FileDescriptorProto.verify(message.sourceFileDescriptors[i]); + if (error) + return "sourceFileDescriptors." + error; + } + } if (message.compilerVersion != null && message.hasOwnProperty("compilerVersion")) { var error = $root.google.protobuf.compiler.Version.verify(message.compilerVersion); if (error) @@ -20150,6 +23157,16 @@ message.protoFile[i] = $root.google.protobuf.FileDescriptorProto.fromObject(object.protoFile[i]); } } + if (object.sourceFileDescriptors) { + if (!Array.isArray(object.sourceFileDescriptors)) + throw TypeError(".google.protobuf.compiler.CodeGeneratorRequest.sourceFileDescriptors: array expected"); + message.sourceFileDescriptors = []; + for (var i = 0; i < object.sourceFileDescriptors.length; ++i) { + if (typeof object.sourceFileDescriptors[i] !== "object") + throw TypeError(".google.protobuf.compiler.CodeGeneratorRequest.sourceFileDescriptors: object expected"); + message.sourceFileDescriptors[i] = $root.google.protobuf.FileDescriptorProto.fromObject(object.sourceFileDescriptors[i]); + } + } if (object.compilerVersion != null) { if (typeof object.compilerVersion !== "object") throw TypeError(".google.protobuf.compiler.CodeGeneratorRequest.compilerVersion: object expected"); @@ -20174,6 +23191,7 @@ if (options.arrays || options.defaults) { object.fileToGenerate = []; object.protoFile = []; + object.sourceFileDescriptors = []; } if (options.defaults) { object.parameter = ""; @@ -20193,6 +23211,11 @@ for (var j = 0; j < message.protoFile.length; ++j) object.protoFile[j] = $root.google.protobuf.FileDescriptorProto.toObject(message.protoFile[j], options); } + if (message.sourceFileDescriptors && message.sourceFileDescriptors.length) { + object.sourceFileDescriptors = []; + for (var j = 0; j < message.sourceFileDescriptors.length; ++j) + object.sourceFileDescriptors[j] = $root.google.protobuf.FileDescriptorProto.toObject(message.sourceFileDescriptors[j], options); + } return object; }; @@ -20233,6 +23256,8 @@ * @interface ICodeGeneratorResponse * @property {string|null} [error] CodeGeneratorResponse error * @property {number|Long|null} [supportedFeatures] CodeGeneratorResponse supportedFeatures + * @property {number|null} [minimumEdition] CodeGeneratorResponse minimumEdition + * @property {number|null} [maximumEdition] CodeGeneratorResponse maximumEdition * @property {Array.|null} [file] CodeGeneratorResponse file */ @@ -20268,6 +23293,22 @@ */ CodeGeneratorResponse.prototype.supportedFeatures = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + /** + * CodeGeneratorResponse minimumEdition. + * @member {number} minimumEdition + * @memberof google.protobuf.compiler.CodeGeneratorResponse + * @instance + */ + CodeGeneratorResponse.prototype.minimumEdition = 0; + + /** + * CodeGeneratorResponse maximumEdition. + * @member {number} maximumEdition + * @memberof google.protobuf.compiler.CodeGeneratorResponse + * @instance + */ + CodeGeneratorResponse.prototype.maximumEdition = 0; + /** * CodeGeneratorResponse file. * @member {Array.} file @@ -20304,6 +23345,10 @@ writer.uint32(/* id 1, wireType 2 =*/10).string(message.error); if (message.supportedFeatures != null && Object.hasOwnProperty.call(message, "supportedFeatures")) writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.supportedFeatures); + if (message.minimumEdition != null && Object.hasOwnProperty.call(message, "minimumEdition")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.minimumEdition); + if (message.maximumEdition != null && Object.hasOwnProperty.call(message, "maximumEdition")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.maximumEdition); if (message.file != null && message.file.length) for (var i = 0; i < message.file.length; ++i) $root.google.protobuf.compiler.CodeGeneratorResponse.File.encode(message.file[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); @@ -20349,6 +23394,14 @@ message.supportedFeatures = reader.uint64(); break; } + case 3: { + message.minimumEdition = reader.int32(); + break; + } + case 4: { + message.maximumEdition = reader.int32(); + break; + } case 15: { if (!(message.file && message.file.length)) message.file = []; @@ -20396,6 +23449,12 @@ if (message.supportedFeatures != null && message.hasOwnProperty("supportedFeatures")) if (!$util.isInteger(message.supportedFeatures) && !(message.supportedFeatures && $util.isInteger(message.supportedFeatures.low) && $util.isInteger(message.supportedFeatures.high))) return "supportedFeatures: integer|Long expected"; + if (message.minimumEdition != null && message.hasOwnProperty("minimumEdition")) + if (!$util.isInteger(message.minimumEdition)) + return "minimumEdition: integer expected"; + if (message.maximumEdition != null && message.hasOwnProperty("maximumEdition")) + if (!$util.isInteger(message.maximumEdition)) + return "maximumEdition: integer expected"; if (message.file != null && message.hasOwnProperty("file")) { if (!Array.isArray(message.file)) return "file: array expected"; @@ -20431,6 +23490,10 @@ message.supportedFeatures = object.supportedFeatures; else if (typeof object.supportedFeatures === "object") message.supportedFeatures = new $util.LongBits(object.supportedFeatures.low >>> 0, object.supportedFeatures.high >>> 0).toNumber(true); + if (object.minimumEdition != null) + message.minimumEdition = object.minimumEdition | 0; + if (object.maximumEdition != null) + message.maximumEdition = object.maximumEdition | 0; if (object.file) { if (!Array.isArray(object.file)) throw TypeError(".google.protobuf.compiler.CodeGeneratorResponse.file: array expected"); @@ -20466,6 +23529,8 @@ object.supportedFeatures = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.supportedFeatures = options.longs === String ? "0" : 0; + object.minimumEdition = 0; + object.maximumEdition = 0; } if (message.error != null && message.hasOwnProperty("error")) object.error = message.error; @@ -20474,6 +23539,10 @@ object.supportedFeatures = options.longs === String ? String(message.supportedFeatures) : message.supportedFeatures; else object.supportedFeatures = options.longs === String ? $util.Long.prototype.toString.call(message.supportedFeatures) : options.longs === Number ? new $util.LongBits(message.supportedFeatures.low >>> 0, message.supportedFeatures.high >>> 0).toNumber(true) : message.supportedFeatures; + if (message.minimumEdition != null && message.hasOwnProperty("minimumEdition")) + object.minimumEdition = message.minimumEdition; + if (message.maximumEdition != null && message.hasOwnProperty("maximumEdition")) + object.maximumEdition = message.maximumEdition; if (message.file && message.file.length) { object.file = []; for (var j = 0; j < message.file.length; ++j) @@ -20514,11 +23583,13 @@ * @enum {number} * @property {number} FEATURE_NONE=0 FEATURE_NONE value * @property {number} FEATURE_PROTO3_OPTIONAL=1 FEATURE_PROTO3_OPTIONAL value + * @property {number} FEATURE_SUPPORTS_EDITIONS=2 FEATURE_SUPPORTS_EDITIONS value */ CodeGeneratorResponse.Feature = (function() { var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "FEATURE_NONE"] = 0; values[valuesById[1] = "FEATURE_PROTO3_OPTIONAL"] = 1; + values[valuesById[2] = "FEATURE_SUPPORTS_EDITIONS"] = 2; return values; })(); diff --git a/protos/protos.json b/protos/protos.json index 7258f15bc..bfe7186b7 100644 --- a/protos/protos.json +++ b/protos/protos.json @@ -358,7 +358,32 @@ "INPUT_ONLY": 4, "IMMUTABLE": 5, "UNORDERED_LIST": 6, - "NON_EMPTY_DEFAULT": 7 + "NON_EMPTY_DEFAULT": 7, + "IDENTIFIER": 8 + } + }, + "fieldInfo": { + "type": "google.api.FieldInfo", + "id": 291403980, + "extend": "google.protobuf.FieldOptions" + }, + "FieldInfo": { + "fields": { + "format": { + "type": "Format", + "id": 1 + } + }, + "nested": { + "Format": { + "values": { + "FORMAT_UNSPECIFIED": 0, + "UUID4": 1, + "IPV4": 2, + "IPV6": 3, + "IPV4_OR_IPV6": 4 + } + } } }, "resourceReference": { @@ -584,6 +609,10 @@ "rule": "repeated", "type": "ClientLibrarySettings", "id": 109 + }, + "protoReferenceDocumentationUri": { + "type": "string", + "id": 110 } } }, @@ -641,6 +670,31 @@ "common": { "type": "CommonLanguageSettings", "id": 1 + }, + "renamedServices": { + "keyType": "string", + "type": "string", + "id": 2 + }, + "renamedResources": { + "keyType": "string", + "type": "string", + "id": 3 + }, + "ignoredResources": { + "rule": "repeated", + "type": "string", + "id": 4 + }, + "forcedNamespaceAliases": { + "rule": "repeated", + "type": "string", + "id": 5 + }, + "handwrittenSignatures": { + "rule": "repeated", + "type": "string", + "id": 6 } } }, @@ -669,6 +723,11 @@ "longRunning": { "type": "LongRunning", "id": 2 + }, + "autoPopulatedFields": { + "rule": "repeated", + "type": "string", + "id": 3 } }, "nested": { @@ -700,7 +759,10 @@ "CLOUD": 1, "ADS": 2, "PHOTOS": 3, - "STREET_VIEW": 4 + "STREET_VIEW": 4, + "SHOPPING": 5, + "GEO": 6, + "GENERATIVE_AI": 7 } }, "ClientLibraryDestination": { @@ -744,6 +806,21 @@ } } }, + "Edition": { + "values": { + "EDITION_UNKNOWN": 0, + "EDITION_PROTO2": 998, + "EDITION_PROTO3": 999, + "EDITION_2023": 1000, + "EDITION_2024": 1001, + "EDITION_1_TEST_ONLY": 1, + "EDITION_2_TEST_ONLY": 2, + "EDITION_99997_TEST_ONLY": 99997, + "EDITION_99998_TEST_ONLY": 99998, + "EDITION_99999_TEST_ONLY": 99999, + "EDITION_MAX": 2147483647 + } + }, "FileDescriptorProto": { "fields": { "name": { @@ -808,8 +885,8 @@ "id": 12 }, "edition": { - "type": "string", - "id": 13 + "type": "Edition", + "id": 14 } } }, @@ -901,6 +978,26 @@ "rule": "repeated", "type": "UninterpretedOption", "id": 999 + }, + "declaration": { + "rule": "repeated", + "type": "Declaration", + "id": 2, + "options": { + "retention": "RETENTION_SOURCE" + } + }, + "features": { + "type": "FeatureSet", + "id": 50 + }, + "verification": { + "type": "VerificationState", + "id": 3, + "options": { + "default": "UNVERIFIED", + "retention": "RETENTION_SOURCE" + } } }, "extensions": [ @@ -908,7 +1005,45 @@ 1000, 536870911 ] - ] + ], + "nested": { + "Declaration": { + "fields": { + "number": { + "type": "int32", + "id": 1 + }, + "fullName": { + "type": "string", + "id": 2 + }, + "type": { + "type": "string", + "id": 3 + }, + "reserved": { + "type": "bool", + "id": 5 + }, + "repeated": { + "type": "bool", + "id": 6 + } + }, + "reserved": [ + [ + 4, + 4 + ] + ] + }, + "VerificationState": { + "values": { + "DECLARATION": 0, + "UNVERIFIED": 1 + } + } + } }, "FieldDescriptorProto": { "fields": { @@ -983,8 +1118,8 @@ "Label": { "values": { "LABEL_OPTIONAL": 1, - "LABEL_REQUIRED": 2, - "LABEL_REPEATED": 3 + "LABEL_REPEATED": 3, + "LABEL_REQUIRED": 2 } } } @@ -1172,13 +1307,6 @@ "default": false } }, - "phpGenericServices": { - "type": "bool", - "id": 42, - "options": { - "default": false - } - }, "deprecated": { "type": "bool", "id": 23, @@ -1221,6 +1349,10 @@ "type": "string", "id": 45 }, + "features": { + "type": "FeatureSet", + "id": 50 + }, "uninterpretedOption": { "rule": "repeated", "type": "UninterpretedOption", @@ -1234,6 +1366,10 @@ ] ], "reserved": [ + [ + 42, + 42 + ], [ 38, 38 @@ -1283,6 +1419,10 @@ "deprecated": true } }, + "features": { + "type": "FeatureSet", + "id": 12 + }, "uninterpretedOption": { "rule": "repeated", "type": "UninterpretedOption", @@ -1377,9 +1517,22 @@ "type": "OptionRetention", "id": 17 }, - "target": { + "targets": { + "rule": "repeated", "type": "OptionTargetType", - "id": 18 + "id": 19, + "options": { + "packed": false + } + }, + "editionDefaults": { + "rule": "repeated", + "type": "EditionDefault", + "id": 20 + }, + "features": { + "type": "FeatureSet", + "id": 21 }, "uninterpretedOption": { "rule": "repeated", @@ -1397,6 +1550,10 @@ [ 4, 4 + ], + [ + 18, + 18 ] ], "nested": { @@ -1434,11 +1591,27 @@ "TARGET_TYPE_SERVICE": 8, "TARGET_TYPE_METHOD": 9 } + }, + "EditionDefault": { + "fields": { + "edition": { + "type": "Edition", + "id": 3 + }, + "value": { + "type": "string", + "id": 2 + } + } } } }, "OneofOptions": { "fields": { + "features": { + "type": "FeatureSet", + "id": 1 + }, "uninterpretedOption": { "rule": "repeated", "type": "UninterpretedOption", @@ -1472,6 +1645,10 @@ "deprecated": true } }, + "features": { + "type": "FeatureSet", + "id": 7 + }, "uninterpretedOption": { "rule": "repeated", "type": "UninterpretedOption", @@ -1500,6 +1677,17 @@ "default": false } }, + "features": { + "type": "FeatureSet", + "id": 2 + }, + "debugRedact": { + "type": "bool", + "id": 3, + "options": { + "default": false + } + }, "uninterpretedOption": { "rule": "repeated", "type": "UninterpretedOption", @@ -1515,6 +1703,10 @@ }, "ServiceOptions": { "fields": { + "features": { + "type": "FeatureSet", + "id": 34 + }, "deprecated": { "type": "bool", "id": 33, @@ -1551,6 +1743,10 @@ "default": "IDEMPOTENCY_UNKNOWN" } }, + "features": { + "type": "FeatureSet", + "id": 35 + }, "uninterpretedOption": { "rule": "repeated", "type": "UninterpretedOption", @@ -1622,6 +1818,166 @@ } } }, + "FeatureSet": { + "fields": { + "fieldPresence": { + "type": "FieldPresence", + "id": 1, + "options": { + "retention": "RETENTION_RUNTIME", + "targets": "TARGET_TYPE_FILE", + "edition_defaults.edition": "EDITION_2023", + "edition_defaults.value": "EXPLICIT" + } + }, + "enumType": { + "type": "EnumType", + "id": 2, + "options": { + "retention": "RETENTION_RUNTIME", + "targets": "TARGET_TYPE_FILE", + "edition_defaults.edition": "EDITION_PROTO3", + "edition_defaults.value": "OPEN" + } + }, + "repeatedFieldEncoding": { + "type": "RepeatedFieldEncoding", + "id": 3, + "options": { + "retention": "RETENTION_RUNTIME", + "targets": "TARGET_TYPE_FILE", + "edition_defaults.edition": "EDITION_PROTO3", + "edition_defaults.value": "PACKED" + } + }, + "utf8Validation": { + "type": "Utf8Validation", + "id": 4, + "options": { + "retention": "RETENTION_RUNTIME", + "targets": "TARGET_TYPE_FILE", + "edition_defaults.edition": "EDITION_PROTO3", + "edition_defaults.value": "VERIFY" + } + }, + "messageEncoding": { + "type": "MessageEncoding", + "id": 5, + "options": { + "retention": "RETENTION_RUNTIME", + "targets": "TARGET_TYPE_FILE", + "edition_defaults.edition": "EDITION_PROTO2", + "edition_defaults.value": "LENGTH_PREFIXED" + } + }, + "jsonFormat": { + "type": "JsonFormat", + "id": 6, + "options": { + "retention": "RETENTION_RUNTIME", + "targets": "TARGET_TYPE_FILE", + "edition_defaults.edition": "EDITION_PROTO3", + "edition_defaults.value": "ALLOW" + } + } + }, + "extensions": [ + [ + 1000, + 1000 + ], + [ + 1001, + 1001 + ], + [ + 9995, + 9999 + ] + ], + "reserved": [ + [ + 999, + 999 + ] + ], + "nested": { + "FieldPresence": { + "values": { + "FIELD_PRESENCE_UNKNOWN": 0, + "EXPLICIT": 1, + "IMPLICIT": 2, + "LEGACY_REQUIRED": 3 + } + }, + "EnumType": { + "values": { + "ENUM_TYPE_UNKNOWN": 0, + "OPEN": 1, + "CLOSED": 2 + } + }, + "RepeatedFieldEncoding": { + "values": { + "REPEATED_FIELD_ENCODING_UNKNOWN": 0, + "PACKED": 1, + "EXPANDED": 2 + } + }, + "Utf8Validation": { + "values": { + "UTF8_VALIDATION_UNKNOWN": 0, + "VERIFY": 2, + "NONE": 3 + } + }, + "MessageEncoding": { + "values": { + "MESSAGE_ENCODING_UNKNOWN": 0, + "LENGTH_PREFIXED": 1, + "DELIMITED": 2 + } + }, + "JsonFormat": { + "values": { + "JSON_FORMAT_UNKNOWN": 0, + "ALLOW": 1, + "LEGACY_BEST_EFFORT": 2 + } + } + } + }, + "FeatureSetDefaults": { + "fields": { + "defaults": { + "rule": "repeated", + "type": "FeatureSetEditionDefault", + "id": 1 + }, + "minimumEdition": { + "type": "Edition", + "id": 4 + }, + "maximumEdition": { + "type": "Edition", + "id": 5 + } + }, + "nested": { + "FeatureSetEditionDefault": { + "fields": { + "edition": { + "type": "Edition", + "id": 3 + }, + "features": { + "type": "FeatureSet", + "id": 2 + } + } + } + } + }, "SourceCodeInfo": { "fields": { "location": { @@ -1776,6 +2132,11 @@ "type": "FileDescriptorProto", "id": 15 }, + "sourceFileDescriptors": { + "rule": "repeated", + "type": "FileDescriptorProto", + "id": 17 + }, "compilerVersion": { "type": "Version", "id": 3 @@ -1792,6 +2153,14 @@ "type": "uint64", "id": 2 }, + "minimumEdition": { + "type": "int32", + "id": 3 + }, + "maximumEdition": { + "type": "int32", + "id": 4 + }, "file": { "rule": "repeated", "type": "File", @@ -1802,7 +2171,8 @@ "Feature": { "values": { "FEATURE_NONE": 0, - "FEATURE_PROTO3_OPTIONAL": 1 + "FEATURE_PROTO3_OPTIONAL": 1, + "FEATURE_SUPPORTS_EDITIONS": 2 } }, "File": { @@ -1907,7 +2277,7 @@ "options": { "cc_enable_arenas": true, "csharp_namespace": "Google.LongRunning", - "go_package": "google.golang.org/genproto/googleapis/longrunning;longrunning", + "go_package": "cloud.google.com/go/longrunning/autogen/longrunningpb;longrunningpb", "java_multiple_files": true, "java_outer_classname": "OperationsProto", "java_package": "com.google.longrunning", diff --git a/templates/cjs/typescript_gapic/_util.njk b/templates/cjs/typescript_gapic/_util.njk index 66ac6b17c..978e4dc91 100644 --- a/templates/cjs/typescript_gapic/_util.njk +++ b/templates/cjs/typescript_gapic/_util.njk @@ -358,6 +358,13 @@ request.{{ oneComment.paramName.toCamelCase() }} {%- endif %} {%- endmacro -%} +{%- macro verifyUUID(method) -%} +{%- for field in method.autoPopulatedFields %} + assert.match((client.innerApiCalls.{{ method.name.toCamelCase(true) }} as SinonStub) + .getCall(0).args[0].{{field.toCamelCase()}}, /[a-z0-9-]{36}/) +{%- endfor %} +{%- endmacro -%} + {%- macro verifyHeaderRequestParams(method) -%} {%- if method.headerRequestParams.length > 0 or method.dynamicRoutingRequestParams.length > 0 %} const actualRequest = (client.innerApiCalls.{{ method.name.toCamelCase(true) }} as SinonStub) diff --git a/templates/cjs/typescript_gapic/package.json b/templates/cjs/typescript_gapic/package.json index dd1bdc468..b8b8d6d45 100644 --- a/templates/cjs/typescript_gapic/package.json +++ b/templates/cjs/typescript_gapic/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.1.0" + "google-gax": "^4.2.1" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/templates/cjs/typescript_gapic/src/$version/$service_client.ts.njk b/templates/cjs/typescript_gapic/src/$version/$service_client.ts.njk index 2666b3895..edb6d511d 100644 --- a/templates/cjs/typescript_gapic/src/$version/$service_client.ts.njk +++ b/templates/cjs/typescript_gapic/src/$version/$service_client.ts.njk @@ -26,7 +26,13 @@ limitations under the License. {% import "../../_operations.njk" as operations -%} {% import "../../_namer.njk" as namer -%} {{- namer.initialize(id, service) -}} -import {% if not api.legacyProtoLoad %}type {% endif %}* as gax from 'google-gax'; +{%- set autoPopulated = false -%} +{%- for method in service.method -%} + {%- if method.autoPopulatedFields|length !== 0 %} + {%- set autoPopulated = true -%} + {%- endif %} +{%- endfor -%} +import {% if (not api.legacyProtoLoad) and (autoPopulated === false) %}type {% endif %}* as gax from 'google-gax'; import type {Callback, CallOptions, Descriptors, ClientOptions {%- if service.longRunning.length > 0 or service.LongRunningOperationsMixin > 0 %}, GrpcClientOptions{%- endif -%} {%- if service.longRunning.length > 0 or service.diregapicLRO.length > 0 %}, LROperation{%- endif -%} @@ -47,6 +53,7 @@ import * as path from 'path'; {%- else %} import jsonProtos = require('../../protos/protos.json'); {%- endif %} + /** * Client JSON configuration object, loaded from * `src/{{ api.naming.version }}/{{ service.name.toSnakeCase() }}_client_config.json`. @@ -591,7 +598,11 @@ export class {{ service.name }}Client { {{ util.toInterface(method.inputInterface) }}|undefined, {}|undefined {%- endif %} ]>|void { - request = request || {}; + request = request || {}; +{%- for field in method.autoPopulatedFields %} + if (!request.{{ field.toCamelCase() }}) { + request.{{ field.toCamelCase() }} = gax.makeUUID(); + } {%- endfor %} let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; @@ -756,6 +767,10 @@ export class {{ service.name }}Client { {{ util.toInterface(method.outputInterface) }}|undefined, {}|undefined ]>|void { request = request || {}; +{%- for field in method.autoPopulatedFields %} + if (!request.{{ field.toCamelCase() }}) { + request.{{ field.toCamelCase() }} = gax.makeUUID(); + } {%- endfor %} let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; @@ -838,6 +853,10 @@ export class {{ service.name }}Client { {{ util.toInterface(method.outputInterface) }} ]>|void { request = request || {}; +{%- for field in method.autoPopulatedFields %} + if (!request.{{ field.toCamelCase() }}) { + request.{{ field.toCamelCase() }} = gax.makeUUID(); + } {%- endfor %} let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; @@ -865,6 +884,10 @@ export class {{ service.name }}Client { options?: CallOptions): Transform{ request = request || {}; +{%- for field in method.autoPopulatedFields %} + if (!request.{{ field.toCamelCase() }}) { + request.{{ field.toCamelCase() }} = gax.makeUUID(); + } {%- endfor %} {{ util.buildHeaderRequestParam(method) }} const defaultCallSettings = this._defaults['{{method.name.toCamelCase(true)}}']; const callSettings = defaultCallSettings.merge(options); @@ -899,6 +922,10 @@ export class {{ service.name }}Client { AsyncIterable<{{ util.toInterface(method.pagingResponseType) }}>{ {%- endif %} request = request || {}; +{%- for field in method.autoPopulatedFields %} + if (!request.{{ field.toCamelCase() }}) { + request.{{ field.toCamelCase() }} = gax.makeUUID(); + } {%- endfor %} {{ util.buildHeaderRequestParam(method) }} const defaultCallSettings = this._defaults['{{method.name.toCamelCase(true)}}']; const callSettings = defaultCallSettings.merge(options); diff --git a/templates/cjs/typescript_gapic/test/gapic_$service_$version.ts.njk b/templates/cjs/typescript_gapic/test/gapic_$service_$version.ts.njk index 9aa505be4..10ef21f47 100644 --- a/templates/cjs/typescript_gapic/test/gapic_$service_$version.ts.njk +++ b/templates/cjs/typescript_gapic/test/gapic_$service_$version.ts.njk @@ -316,6 +316,7 @@ describe('{{ api.naming.version }}.{{ service.name }}Client', () => { assert.deepStrictEqual(response, expectedResponse); {%- endif %} {{- util.verifyHeaderRequestParams(method) }} + {{- util.verifyUUID(method) }} }); it('invokes {{ method.name.toCamelCase() }} without error using callback', async () => { @@ -346,6 +347,7 @@ describe('{{ api.naming.version }}.{{ service.name }}Client', () => { {%- endif %} assert.deepStrictEqual(response, expectedResponse); {{- util.verifyHeaderRequestParams(method) }} + {{- util.verifyUUID(method) }} }); it('invokes {{ method.name.toCamelCase() }} with error', async () => { @@ -364,6 +366,7 @@ describe('{{ api.naming.version }}.{{ service.name }}Client', () => { assert(stub.calledOnce); {%- endif %} {{- util.verifyHeaderRequestParams(method) }} + {{- util.verifyUUID(method) }} }); it('invokes {{ method.name.toCamelCase() }} with closed client', async () => { @@ -403,6 +406,7 @@ describe('{{ api.naming.version }}.{{ service.name }}Client', () => { {%- endif %} assert.deepStrictEqual(response, expectedResponse); {{- util.verifyHeaderRequestParams(method) }} + {{- util.verifyUUID(method) }} }); it('invokes {{ method.name.toCamelCase() }} without error using callback', async () => { @@ -434,6 +438,7 @@ describe('{{ api.naming.version }}.{{ service.name }}Client', () => { {%- endif %} assert.deepStrictEqual(response, expectedResponse); {{- util.verifyHeaderRequestParams(method) }} + {{- util.verifyUUID(method) }} }); it('invokes {{ method.name.toCamelCase() }} with call error', async () => { @@ -450,6 +455,7 @@ describe('{{ api.naming.version }}.{{ service.name }}Client', () => { assert(stub.calledOnce); {%- endif %} {{- util.verifyHeaderRequestParams(method) }} + {{- util.verifyUUID(method) }} }); it('invokes {{ method.name.toCamelCase() }} with LRO error', async () => { @@ -467,6 +473,7 @@ describe('{{ api.naming.version }}.{{ service.name }}Client', () => { assert(stub.calledOnce); {%- endif %} {{- util.verifyHeaderRequestParams(method) }} + {{- util.verifyUUID(method) }} }); it('invokes {{ id.get("check" + method.name.toPascalCase() + "Progress") }} without error', async () => { @@ -750,6 +757,7 @@ describe('{{ api.naming.version }}.{{ service.name }}Client', () => { {%- endif %} assert.deepStrictEqual(response, expectedResponse); {{- util.verifyHeaderRequestParams(method) }} + {{- util.verifyUUID(method) }} }); it('invokes {{ method.name.toCamelCase() }} without error using callback', async () => { @@ -781,6 +789,7 @@ describe('{{ api.naming.version }}.{{ service.name }}Client', () => { {%- endif %} assert.deepStrictEqual(response, expectedResponse); {{- util.verifyHeaderRequestParams(method) }} + {{- util.verifyUUID(method) }} }); it('invokes {{ method.name.toCamelCase() }} with error', async () => { @@ -800,6 +809,7 @@ describe('{{ api.naming.version }}.{{ service.name }}Client', () => { assert(stub.calledOnce); {%- endif %} {{- util.verifyHeaderRequestParams(method) }} + {{- util.verifyUUID(method) }} }); it('invokes {{ id.get(method.name.toCamelCase() + "Stream") }} without error', async () => { @@ -923,6 +933,10 @@ describe('{{ api.naming.version }}.{{ service.name }}Client', () => { ) ); {%- endif %} + {%- for field in method.autoPopulatedFields %} + assert.match((client.descriptors.page.{{ method.name.toCamelCase() }}.asyncIterate as SinonStub) + .getCall(0).args[1].{{field.toCamelCase()}}, /[a-z0-9-]{36}/) + {%- endfor %} }); it('uses async iteration with {{ method.name.toCamelCase() }} with error', async () => { @@ -962,6 +976,10 @@ describe('{{ api.naming.version }}.{{ service.name }}Client', () => { ) ); {%- endif %} + {%- for field in method.autoPopulatedFields %} + assert.match((client.descriptors.page.{{ method.name.toCamelCase() }}.asyncIterate as SinonStub) + .getCall(0).args[1].{{field.toCamelCase()}}, /[a-z0-9-]{36}/) + {%- endfor %} }); }); {%- endif %} diff --git a/templates/esm/typescript_gapic/_util.njk b/templates/esm/typescript_gapic/_util.njk index 8a649a8d4..89802e385 100644 --- a/templates/esm/typescript_gapic/_util.njk +++ b/templates/esm/typescript_gapic/_util.njk @@ -358,6 +358,13 @@ request.{{ oneComment.paramName.toCamelCase() }} {%- endif %} {%- endmacro -%} +{%- macro verifyUUID(method) -%} +{%- for field in method.autoPopulatedFields %} + assert.match((client.innerApiCalls.{{ method.name.toCamelCase(true) }} as SinonStub) + .getCall(0).args[0].{{field.toCamelCase()}}, /[a-z0-9-]{36}/) +{%- endfor %} +{%- endmacro -%} + {%- macro verifyHeaderRequestParams(method) -%} {%- if method.headerRequestParams.length > 0 or method.dynamicRoutingRequestParams.length > 0 %} const actualRequest = (client.innerApiCalls.{{ method.name.toCamelCase(true) }} as SinonStub) diff --git a/templates/esm/typescript_gapic/esm/src/$version/$service_client.ts.njk b/templates/esm/typescript_gapic/esm/src/$version/$service_client.ts.njk index 541dbe0d9..7592938ad 100644 --- a/templates/esm/typescript_gapic/esm/src/$version/$service_client.ts.njk +++ b/templates/esm/typescript_gapic/esm/src/$version/$service_client.ts.njk @@ -607,6 +607,10 @@ export class {{ service.name }}Client { {%- endif %} ]>|void { request = request || {}; +{%- for field in method.autoPopulatedFields %} + if (!request.{{ field.toCamelCase() }}) { + request.{{ field.toCamelCase() }} = gax.makeUUID(); + } {%- endfor %} let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; @@ -771,6 +775,10 @@ export class {{ service.name }}Client { {{ util.toInterface(method.outputInterface) }}|undefined, {}|undefined ]>|void { request = request || {}; + {%- for field in method.autoPopulatedFields %} + if (!request.{{ field.toCamelCase() }}) { + request.{{ field.toCamelCase() }} = gax.makeUUID(); + } {%- endfor %} let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; @@ -853,6 +861,10 @@ export class {{ service.name }}Client { {{ util.toInterface(method.outputInterface) }} ]>|void { request = request || {}; + {%- for field in method.autoPopulatedFields %} + if (!request.{{ field.toCamelCase() }}) { + request.{{ field.toCamelCase() }} = gax.makeUUID(); + } {%- endfor %} let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; @@ -880,6 +892,10 @@ export class {{ service.name }}Client { options?: CallOptions): Transform{ request = request || {}; + {%- for field in method.autoPopulatedFields %} + if (!request.{{ field.toCamelCase() }}) { + request.{{ field.toCamelCase() }} = gax.makeUUID(); + } {%- endfor %} {{ util.buildHeaderRequestParam(method) }} const defaultCallSettings = this._defaults['{{method.name.toCamelCase(true)}}']; const callSettings = defaultCallSettings.merge(options); @@ -914,6 +930,10 @@ export class {{ service.name }}Client { AsyncIterable<{{ util.toInterface(method.pagingResponseType) }}>{ {%- endif %} request = request || {}; + {%- for field in method.autoPopulatedFields %} + if (!request.{{ field.toCamelCase() }}) { + request.{{ field.toCamelCase() }} = gax.makeUUID(); + } {%- endfor %} {{ util.buildHeaderRequestParam(method) }} const defaultCallSettings = this._defaults['{{method.name.toCamelCase(true)}}']; const callSettings = defaultCallSettings.merge(options); diff --git a/templates/esm/typescript_gapic/esm/test/gapic_$service_$version.ts.njk b/templates/esm/typescript_gapic/esm/test/gapic_$service_$version.ts.njk index 9ab6ca533..20b6e28a9 100644 --- a/templates/esm/typescript_gapic/esm/test/gapic_$service_$version.ts.njk +++ b/templates/esm/typescript_gapic/esm/test/gapic_$service_$version.ts.njk @@ -324,6 +324,7 @@ describe('{{ api.naming.version }}.{{ service.name }}Client', () => { assert.deepStrictEqual(response, expectedResponse); {%- endif %} {{- util.verifyHeaderRequestParams(method) }} + {{- util.verifyUUID(method) }} }); it('invokes {{ method.name.toCamelCase() }} without error using callback', async () => { @@ -354,6 +355,7 @@ describe('{{ api.naming.version }}.{{ service.name }}Client', () => { {%- endif %} assert.deepStrictEqual(response, expectedResponse); {{- util.verifyHeaderRequestParams(method) }} + {{- util.verifyUUID(method) }} }); it('invokes {{ method.name.toCamelCase() }} with error', async () => { @@ -372,6 +374,7 @@ describe('{{ api.naming.version }}.{{ service.name }}Client', () => { assert(stub.calledOnce); {%- endif %} {{- util.verifyHeaderRequestParams(method) }} + {{- util.verifyUUID(method) }} }); it('invokes {{ method.name.toCamelCase() }} with closed client', async () => { @@ -411,6 +414,7 @@ describe('{{ api.naming.version }}.{{ service.name }}Client', () => { {%- endif %} assert.deepStrictEqual(response, expectedResponse); {{- util.verifyHeaderRequestParams(method) }} + {{- util.verifyUUID(method) }} }); it('invokes {{ method.name.toCamelCase() }} without error using callback', async () => { @@ -442,6 +446,7 @@ describe('{{ api.naming.version }}.{{ service.name }}Client', () => { {%- endif %} assert.deepStrictEqual(response, expectedResponse); {{- util.verifyHeaderRequestParams(method) }} + {{- util.verifyUUID(method) }} }); it('invokes {{ method.name.toCamelCase() }} with call error', async () => { @@ -458,6 +463,7 @@ describe('{{ api.naming.version }}.{{ service.name }}Client', () => { assert(stub.calledOnce); {%- endif %} {{- util.verifyHeaderRequestParams(method) }} + {{- util.verifyUUID(method) }} }); it('invokes {{ method.name.toCamelCase() }} with LRO error', async () => { @@ -475,6 +481,7 @@ describe('{{ api.naming.version }}.{{ service.name }}Client', () => { assert(stub.calledOnce); {%- endif %} {{- util.verifyHeaderRequestParams(method) }} + {{- util.verifyUUID(method) }} }); it('invokes {{ id.get("check" + method.name.toPascalCase() + "Progress") }} without error', async () => { @@ -758,6 +765,7 @@ describe('{{ api.naming.version }}.{{ service.name }}Client', () => { {%- endif %} assert.deepStrictEqual(response, expectedResponse); {{- util.verifyHeaderRequestParams(method) }} + {{- util.verifyUUID(method) }} }); it('invokes {{ method.name.toCamelCase() }} without error using callback', async () => { @@ -789,6 +797,7 @@ describe('{{ api.naming.version }}.{{ service.name }}Client', () => { {%- endif %} assert.deepStrictEqual(response, expectedResponse); {{- util.verifyHeaderRequestParams(method) }} + {{- util.verifyUUID(method) }} }); it('invokes {{ method.name.toCamelCase() }} with error', async () => { @@ -808,6 +817,7 @@ describe('{{ api.naming.version }}.{{ service.name }}Client', () => { assert(stub.calledOnce); {%- endif %} {{- util.verifyHeaderRequestParams(method) }} + {{- util.verifyUUID(method) }} }); it('invokes {{ id.get(method.name.toCamelCase() + "Stream") }} without error', async () => { @@ -850,6 +860,10 @@ describe('{{ api.naming.version }}.{{ service.name }}Client', () => { ) ); {%- endif %} +{%- for field in method.autoPopulatedFields %} + assert.match((client.descriptors.page.{{ method.name.toCamelCase() }}.asyncIterate as SinonStub) + .getCall(0).args[1].{{field.toCamelCase()}}, /[a-z0-9-]{36}/) +{%- endfor %} }); it('invokes {{ id.get(method.name.toCamelCase() + "Stream") }} with error', async () => { @@ -931,6 +945,10 @@ describe('{{ api.naming.version }}.{{ service.name }}Client', () => { ) ); {%- endif %} +{%- for field in method.autoPopulatedFields %} + assert.match((client.descriptors.page.{{ method.name.toCamelCase() }}.asyncIterate as SinonStub) + .getCall(0).args[1].{{field.toCamelCase()}}, /[a-z0-9-]{36}/) +{%- endfor %} }); it('uses async iteration with {{ method.name.toCamelCase() }} with error', async () => { diff --git a/templates/esm/typescript_gapic/package.json b/templates/esm/typescript_gapic/package.json index 8c01df4f4..0f594857f 100644 --- a/templates/esm/typescript_gapic/package.json +++ b/templates/esm/typescript_gapic/package.json @@ -64,7 +64,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.1.0" + "google-gax": "^4.2.1" }, "devDependencies": { "@babel/cli": "^7.23.0", diff --git a/test-fixtures/protos/google/showcase/v1beta1/echo.proto b/test-fixtures/protos/google/showcase/v1beta1/echo.proto index 1b1b160f0..5e2ba2765 100644 --- a/test-fixtures/protos/google/showcase/v1beta1/echo.proto +++ b/test-fixtures/protos/google/showcase/v1beta1/echo.proto @@ -17,6 +17,7 @@ syntax = "proto3"; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; import "google/api/routing.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/duration.proto"; @@ -183,18 +184,21 @@ message EchoRequest { // The content to be echoed by the server. string content = 1; + // A random request_id to test autopopulation + string request_id = 2 [(google.api.field_info).format = UUID4]; + // The error to be thrown by the server. - google.rpc.Status error = 2; + google.rpc.Status error = 3; } // The severity to be echoed by the server. - Severity severity = 3; + Severity severity = 4; // Optional. This field can be set to test the routing annotation on the Echo method. - string header = 4; + string header = 5; // Optional. This field can be set to test the routing annotation on the Echo method. - string other_header = 5; + string other_header = 6; } // The response message for the Echo methods. diff --git a/test-fixtures/protos/google/showcase/v1beta1/showcase_v1beta1.yaml b/test-fixtures/protos/google/showcase/v1beta1/showcase_v1beta1.yaml index dc7f0b38a..b82bd5550 100644 --- a/test-fixtures/protos/google/showcase/v1beta1/showcase_v1beta1.yaml +++ b/test-fixtures/protos/google/showcase/v1beta1/showcase_v1beta1.yaml @@ -83,3 +83,9 @@ http: delete: '/v1beta1/{name=operations/**}' - selector: google.longrunning.Operations.CancelOperation post: '/v1beta1/{name=operations/**}:cancel' + +publishing: + method_settings: + - selector: google.showcase.v1beta1.Echo.Echo + auto_populated_fields: + - request_id \ No newline at end of file diff --git a/typescript/src/schema/comments.ts b/typescript/src/schema/comments.ts index c8d44df54..8378b39d3 100644 --- a/typescript/src/schema/comments.ts +++ b/typescript/src/schema/comments.ts @@ -44,6 +44,7 @@ export interface Comment { comments: string[]; // LABEL_OPTIONAL = 1, LABEL_REQUIRED = 2 fieldBehavior?: protos.google.api.FieldBehavior; + fieldInfo?: protos.google.api.FieldInfo; } // For service, one item will be @@ -158,6 +159,15 @@ export class CommentsMap { options['.google.api.fieldBehavior'][0]; fieldComment.fieldBehavior = fieldBehavior; } + if ( + options && + options['.google.api.fieldInfo'] && + options['.google.api.fieldInfo']['format'] + ) { + const fieldInfo = options['.google.api.fieldInfo']; + fieldComment.fieldInfo = + fieldInfo as protos.google.api.FieldInfo; + } const key = messageType + ':' + field.name; commentsMap[key] = fieldComment; } diff --git a/typescript/src/schema/proto.ts b/typescript/src/schema/proto.ts index 250150941..f176a5c6e 100644 --- a/typescript/src/schema/proto.ts +++ b/typescript/src/schema/proto.ts @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -import type * as protos from '../../../protos/index.js'; +import * as protos from '../../../protos/index.js'; import {CommentsMap, Comment, Type} from './comments.js'; import {processPathTemplate, milliseconds} from '../util.js'; import {ResourceDescriptor, ResourceDatabase} from './resource-database.js'; @@ -37,6 +37,7 @@ const COMMON_PROTO_LIST = [ export interface MethodDescriptorProto extends protos.google.protobuf.IMethodDescriptorProto { + autoPopulatedFields?: string[]; longRunning?: protos.google.longrunning.IOperationInfo; longRunningResponseType?: string; longRunningMetadataType?: string; @@ -192,6 +193,58 @@ function isDiregapicLRO( ); } +/* + * For a given method and service, returns any fields that are available + * for autopopulation given the restrictions below. + * The field is a top-level string field of a unary method's request message. + * The field is not annotated with `google.api.field_behavior = REQUIRED`. + * The field name is listed in `google.api.publishing.method_settings.auto_populated_fields`. + * The field is annotated with `google.api.field_info.format = UUID4`. + */ +function getAutoPopulatedFields( + method: MethodDescriptorProto, + service: ServiceDescriptorProto +): string[] { + const autoPopulatedFields: string[] = []; + let methodMatch = undefined; + if (service.serviceYaml) { + const settings = service.serviceYaml?.publishing?.method_settings; + // Once we've found a match, we can stop looping + // This will make it so that the nested loops are more O(n) in practice + for (let x = 0; x < settings?.length && !methodMatch; x++) { + if (settings[x].auto_populated_fields) { + const methodName = `${ + settings[x].selector.split('.')[ + settings[x].selector.split('.').length - 1 + ] + }`; + // Check if any method matches the method we're testing + if (methodName.trim() === method.name) { + methodMatch = settings[x]; + // Now, check if it's unary + if (!streaming(method)) { + // if there's a method match and it's unary, we can test the field-level conditions for that method + for (const field of methodMatch.auto_populated_fields) { + const commentsMap = + service.commentsMap.getCommentsMap()[ + `${method.name}Request:${field}` + ]; + // If the field is not required, and it is marked as UUID, pass it onto the autoPopulatedFields + if ( + commentsMap?.fieldBehavior !== 2 && + commentsMap?.fieldInfo?.format === 1 + ) { + autoPopulatedFields.push(field); + } + } + } + } + } + } + } + return autoPopulatedFields; +} + // convert from input interface to message name // eg: .google.showcase.v1beta1.EchoRequest -> EchoRequest function toMessageName(messageType: string): string { @@ -453,6 +506,7 @@ function augmentMethod( method, parameters.diregapic ), + autoPopulatedFields: getAutoPopulatedFields(method, parameters.service!), streaming: streaming(method), pagingFieldName: pagingFieldName( parameters.allMessages, @@ -941,6 +995,7 @@ export class Proto { Proto.constructorCallArgs = []; } + autoPopulatedFields: string[]; filePB2: protos.google.protobuf.IFileDescriptorProto; services: ServicesMap = {}; allMessages: MessagesMap = {}; diff --git a/typescript/src/serviceyaml.ts b/typescript/src/serviceyaml.ts index 44c82fdd2..1462c5226 100644 --- a/typescript/src/serviceyaml.ts +++ b/typescript/src/serviceyaml.ts @@ -24,4 +24,12 @@ export interface ServiceYaml { // TODO (alicejli): Dynamic routing headers will eventually be part of the ServiceYaml // Refactor reading the annotation from the proto to the serviceYaml file once that is implemented. http: Http; + publishing?: { + method_settings?: MethodSettings[]; + }; +} + +export interface MethodSettings { + selector: string; + auto_populated_fields?: string[]; } diff --git a/typescript/test/unit/proto.ts b/typescript/test/unit/proto.ts index 7a1112cfd..304796b1a 100644 --- a/typescript/test/unit/proto.ts +++ b/typescript/test/unit/proto.ts @@ -26,7 +26,8 @@ import { } from '../../src/schema/proto.js'; import {Options} from '../../src/schema/naming.js'; import {ResourceDatabase} from '../../src/schema/resource-database.js'; -import {CommentsMap} from '../../src/schema/comments.js'; +import {Comment, Comments, CommentsMap} from '../../src/schema/comments.js'; +import {Http} from '../../src/serviceyaml.js'; describe('src/schema/proto.ts', () => { describe('should get header parameters from http rule', () => { @@ -653,6 +654,420 @@ describe('src/schema/proto.ts', () => { }); }); + describe('should return auto populated fields for a given method and service', () => { + it('should return any autopopulated fields in service.yaml that are also in the method', () => { + const fd = {} as protos.google.protobuf.FileDescriptorProto; + fd.service = [{} as protos.google.protobuf.ServiceDescriptorProto]; + fd.service[0].name = 'service'; + fd.service[0].method = [ + {} as protos.google.protobuf.MethodDescriptorProto, + ]; + fd.service[0].method[0] = + {} as protos.google.protobuf.MethodDescriptorProto; + fd.service[0].method[0].name = 'Echo'; + const proto = new Proto({ + fd, + packageName: 'google.showcase.v1beta1', + allMessages: {}, + allResourceDatabase: new ResourceDatabase(), + resourceDatabase: new ResourceDatabase(), + options: { + serviceYaml: { + title: 'google.cloud.example', + http: {} as Http, + apis: ['example'], + publishing: { + method_settings: [ + { + selector: 'google.showcase.v1beta1.Echo.Echo', + auto_populated_fields: ['request_id'], + }, + ], + }, + }, + grpcServiceConfig: {} as protos.grpc.service_config.ServiceConfig, + }, + commentsMap: { + comments: { + 'EchoRequest:request_id': { + paramName: 'request_id', + paramType: 'TYPE_STRING', + comments: [' A random request_id to test autopopulation'], + fieldBehavior: 1, + fieldInfo: {format: 1} as protos.google.api.FieldInfo, + }, + }, + getCommentsMap: function (): Comments { + return { + 'EchoRequest:request_id': { + paramName: 'request_id', + paramType: 'TYPE_STRING', + comments: [' A random request_id to test autopopulation'], + fieldBehavior: 1, + fieldInfo: {format: 1}, + }, + } as unknown as Comments; + }, + getServiceComment: function (serviceName: string): string[] { + return ['not needed']; + }, + getMethodComments: function ( + serviceName: string, + methodName: string + ): string[] { + return ['not needed']; + }, + getParamComments: function ( + messageName: string, + fieldName: string + ): Comment { + return { + paramName: 'request_id', + paramType: 'TYPE_STRING', + comments: [' A random request_id to test autopopulation'], + fieldBehavior: 1, + fieldInfo: {format: 1}, + } as Comment; + }, + }, + }); + // throw new Error(`${JSON.stringify(proto)}`) + assert.deepStrictEqual( + proto.services['service'].method[0].autoPopulatedFields, + ['request_id'] + ); + }); + + it('should not return autoPopulated fields if they are unary', () => { + const fd = {} as protos.google.protobuf.FileDescriptorProto; + fd.service = [{} as protos.google.protobuf.ServiceDescriptorProto]; + fd.service[0].name = 'service'; + fd.service[0].method = [ + {} as protos.google.protobuf.MethodDescriptorProto, + ]; + fd.service[0].method[0] = + {} as protos.google.protobuf.MethodDescriptorProto; + fd.service[0].method[0].name = 'Echo'; + fd.service[0].method[0].serverStreaming = true; + const proto = new Proto({ + fd, + packageName: 'google.showcase.v1beta1', + allMessages: {}, + allResourceDatabase: new ResourceDatabase(), + resourceDatabase: new ResourceDatabase(), + options: { + serviceYaml: { + title: 'google.cloud.example', + http: {} as Http, + apis: ['example'], + publishing: { + method_settings: [ + { + selector: 'google.showcase.v1beta1.Echo.Echo', + auto_populated_fields: ['request_id'], + }, + ], + }, + }, + grpcServiceConfig: {} as protos.grpc.service_config.ServiceConfig, + }, + commentsMap: { + comments: { + 'EchoRequest:request_id': { + paramName: 'request_id', + paramType: 'TYPE_STRING', + comments: [' A random request_id to test autopopulation'], + fieldBehavior: 1, + fieldInfo: {format: 1} as protos.google.api.FieldInfo, + }, + }, + getCommentsMap: function (): Comments { + return { + 'EchoRequest:request_id': { + paramName: 'request_id', + paramType: 'TYPE_STRING', + comments: [' A random request_id to test autopopulation'], + fieldBehavior: 1, + fieldInfo: {format: 1}, + }, + } as unknown as Comments; + }, + getServiceComment: function (serviceName: string): string[] { + return ['not needed']; + }, + getMethodComments: function ( + serviceName: string, + methodName: string + ): string[] { + return ['not needed']; + }, + getParamComments: function ( + messageName: string, + fieldName: string + ): Comment { + return { + paramName: 'request_id', + paramType: 'TYPE_STRING', + comments: [' A random request_id to test autopopulation'], + fieldBehavior: 1, + fieldInfo: {format: 1}, + } as Comment; + }, + }, + }); + assert.deepStrictEqual( + proto.services['service'].method[0].autoPopulatedFields, + [] + ); + }); + + it('should not return autoPopulated fields if the autopopulated fields do not refer to the correct method', () => { + const fd = {} as protos.google.protobuf.FileDescriptorProto; + fd.service = [{} as protos.google.protobuf.ServiceDescriptorProto]; + fd.service[0].name = 'service'; + fd.service[0].method = [ + {} as protos.google.protobuf.MethodDescriptorProto, + ]; + fd.service[0].method[0] = + {} as protos.google.protobuf.MethodDescriptorProto; + fd.service[0].method[0].name = 'TheWrongMethod'; + const proto = new Proto({ + fd, + packageName: 'google.showcase.v1beta1', + allMessages: {}, + allResourceDatabase: new ResourceDatabase(), + resourceDatabase: new ResourceDatabase(), + options: { + serviceYaml: { + title: 'google.cloud.example', + http: {} as Http, + apis: ['example'], + publishing: { + method_settings: [ + { + selector: 'google.showcase.v1beta1.Echo.Echo', + auto_populated_fields: ['request_id'], + }, + ], + }, + }, + grpcServiceConfig: {} as protos.grpc.service_config.ServiceConfig, + }, + commentsMap: { + comments: { + 'EchoRequest:request_id': { + paramName: 'request_id', + paramType: 'TYPE_STRING', + comments: [' A random request_id to test autopopulation'], + fieldBehavior: 1, + fieldInfo: {format: 1} as protos.google.api.FieldInfo, + }, + }, + getCommentsMap: function (): Comments { + return { + 'EchoRequest:request_id': { + paramName: 'request_id', + paramType: 'TYPE_STRING', + comments: [' A random request_id to test autopopulation'], + fieldBehavior: 1, + fieldInfo: {format: 1}, + }, + } as unknown as Comments; + }, + getServiceComment: function (serviceName: string): string[] { + return ['not needed']; + }, + getMethodComments: function ( + serviceName: string, + methodName: string + ): string[] { + return ['not needed']; + }, + getParamComments: function ( + messageName: string, + fieldName: string + ): Comment { + return { + paramName: 'request_id', + paramType: 'TYPE_STRING', + comments: [' A random request_id to test autopopulation'], + fieldBehavior: 1, + fieldInfo: {format: 1}, + } as Comment; + }, + }, + }); + assert.deepStrictEqual( + proto.services['service'].method[0].autoPopulatedFields, + [] + ); + }); + + it('should not return autoPopulated fields if the field is required', () => { + const fd = {} as protos.google.protobuf.FileDescriptorProto; + fd.service = [{} as protos.google.protobuf.ServiceDescriptorProto]; + fd.service[0].name = 'service'; + fd.service[0].method = [ + {} as protos.google.protobuf.MethodDescriptorProto, + ]; + fd.service[0].method[0] = + {} as protos.google.protobuf.MethodDescriptorProto; + fd.service[0].method[0].name = 'Echo'; + const proto = new Proto({ + fd, + packageName: 'google.showcase.v1beta1', + allMessages: {}, + allResourceDatabase: new ResourceDatabase(), + resourceDatabase: new ResourceDatabase(), + options: { + serviceYaml: { + title: 'google.cloud.example', + http: {} as Http, + apis: ['example'], + publishing: { + method_settings: [ + { + selector: 'google.showcase.v1beta1.Echo.Echo', + auto_populated_fields: ['request_id'], + }, + ], + }, + }, + grpcServiceConfig: {} as protos.grpc.service_config.ServiceConfig, + }, + commentsMap: { + comments: { + 'EchoRequest:request_id': { + paramName: 'request_id', + paramType: 'TYPE_STRING', + comments: [' A random request_id to test autopopulation'], + fieldBehavior: 2, + fieldInfo: {format: 1} as protos.google.api.FieldInfo, + }, + }, + getCommentsMap: function (): Comments { + return { + 'EchoRequest:request_id': { + paramName: 'request_id', + paramType: 'TYPE_STRING', + comments: [' A random request_id to test autopopulation'], + fieldBehavior: 2, + fieldInfo: {format: 1}, + }, + } as unknown as Comments; + }, + getServiceComment: function (serviceName: string): string[] { + return ['hi!']; + }, + getMethodComments: function ( + serviceName: string, + methodName: string + ): string[] { + return ['hi!']; + }, + getParamComments: function ( + messageName: string, + fieldName: string + ): Comment { + return { + paramName: 'request_id', + paramType: 'TYPE_STRING', + comments: [' A random request_id to test autopopulation'], + fieldBehavior: 2, + fieldInfo: {format: 1}, + } as Comment; + }, + }, + }); + assert.deepStrictEqual( + proto.services['service'].method[0].autoPopulatedFields, + [] + ); + }); + + it('should not return autoPopulated fields if the format is not UUID', () => { + const fd = {} as protos.google.protobuf.FileDescriptorProto; + fd.service = [{} as protos.google.protobuf.ServiceDescriptorProto]; + fd.service[0].name = 'service'; + fd.service[0].method = [ + {} as protos.google.protobuf.MethodDescriptorProto, + ]; + fd.service[0].method[0] = + {} as protos.google.protobuf.MethodDescriptorProto; + fd.service[0].method[0].name = 'Echo'; + const proto = new Proto({ + fd, + packageName: 'google.showcase.v1beta1', + allMessages: {}, + allResourceDatabase: new ResourceDatabase(), + resourceDatabase: new ResourceDatabase(), + options: { + serviceYaml: { + title: 'google.cloud.example', + http: {} as Http, + apis: ['example'], + publishing: { + method_settings: [ + { + selector: 'google.showcase.v1beta1.Echo.Echo', + auto_populated_fields: ['request_id'], + }, + ], + }, + }, + grpcServiceConfig: {} as protos.grpc.service_config.ServiceConfig, + }, + commentsMap: { + comments: { + 'EchoRequest:request_id': { + paramName: 'request_id', + paramType: 'TYPE_STRING', + comments: [' A random request_id to test autopopulation'], + fieldBehavior: 1, + fieldInfo: {format: 2} as protos.google.api.FieldInfo, + }, + }, + getCommentsMap: function (): Comments { + return { + 'EchoRequest:request_id': { + paramName: 'request_id', + paramType: 'TYPE_STRING', + comments: [' A random request_id to test autopopulation'], + fieldBehavior: 1, + fieldInfo: {format: 2}, + }, + } as unknown as Comments; + }, + getServiceComment: function (serviceName: string): string[] { + return ['hi!']; + }, + getMethodComments: function ( + serviceName: string, + methodName: string + ): string[] { + return ['hi!']; + }, + getParamComments: function ( + messageName: string, + fieldName: string + ): Comment { + return { + paramName: 'request_id', + paramType: 'TYPE_STRING', + comments: [' A random request_id to test autopopulation'], + fieldBehavior: 1, + fieldInfo: {format: 2}, + } as Comment; + }, + }, + }); + assert.deepStrictEqual( + proto.services['service'].method[0].autoPopulatedFields, + [] + ); + }); + }); + describe('should support pagination for non-gRPC APIs, diregapic mode', () => { it('should be page field if diregapic mode and use "max_results" as field name', () => { const fd = {} as protos.google.protobuf.FileDescriptorProto; diff --git a/yarn.lock b/yarn.lock index d8f9a5d6a..546146420 100644 --- a/yarn.lock +++ b/yarn.lock @@ -28,7 +28,7 @@ resolved "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.22.20.tgz" integrity sha512-BQYjKbpXjoXwFW5jGqiizJQQT/aC7pFm9Ok1OWssonuguICi264lbgMzRp2ZMmRSlfkX6DsWDDcsrctK8Rwfiw== -"@babel/core@^7.22.5": +"@babel/core@^7.0.0", "@babel/core@^7.22.5": version "7.23.0" resolved "https://registry.npmjs.org/@babel/core/-/core-7.23.0.tgz" integrity sha512-97z/ju/Jy1rZmDxybphrBuI+jtJjFVoz7Mr9yUQVVVi+DNZE333uFQeMOqcCIy1x3WYBIbWftUSLmbNXNT7qFQ== @@ -311,14 +311,6 @@ resolved "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz" integrity sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg== -"@jridgewell/trace-mapping@0.3.9": - version "0.3.9" - resolved "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz" - integrity sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ== - dependencies: - "@jridgewell/resolve-uri" "^3.0.3" - "@jridgewell/sourcemap-codec" "^1.4.10" - "@jridgewell/trace-mapping@^0.3.17", "@jridgewell/trace-mapping@^0.3.9": version "0.3.19" resolved "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.19.tgz" @@ -327,6 +319,14 @@ "@jridgewell/resolve-uri" "^3.1.0" "@jridgewell/sourcemap-codec" "^1.4.14" +"@jridgewell/trace-mapping@0.3.9": + version "0.3.9" + resolved "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz" + integrity sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ== + dependencies: + "@jridgewell/resolve-uri" "^3.0.3" + "@jridgewell/sourcemap-codec" "^1.4.10" + "@jsdoc/salty@^0.2.1": version "0.2.5" resolved "https://registry.npmjs.org/@jsdoc/salty/-/salty-0.2.5.tgz" @@ -342,7 +342,7 @@ "@nodelib/fs.stat" "2.0.5" run-parallel "^1.1.9" -"@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2": +"@nodelib/fs.stat@^2.0.2", "@nodelib/fs.stat@2.0.5": version "2.0.5" resolved "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz" integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== @@ -475,7 +475,7 @@ resolved "https://registry.npmjs.org/@types/long/-/long-4.0.2.tgz" integrity sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA== -"@types/markdown-it@^12.2.3": +"@types/markdown-it@*", "@types/markdown-it@^12.2.3": version "12.2.3" resolved "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-12.2.3.tgz" integrity sha512-GKMHFfv3458yYy+v/N8gjufHO6MSZKCOXpZc5GXIWWy8uldwfmPn98vp81gZ5f9SVw8YYBctgfJ22a2d7AOMeQ== @@ -503,7 +503,7 @@ resolved "https://registry.npmjs.org/@types/module-alias/-/module-alias-2.0.4.tgz" integrity sha512-5+G/QXO/DvHZw60FjvbDzO4JmlD/nG5m2/vVGt25VN1eeP3w2bCoks1Wa7VuptMPM1TxJdx6RjO70N9Fw0nZPA== -"@types/node@*", "@types/node@>=12.12.47", "@types/node@>=13.7.0", "@types/node@^18.11.18": +"@types/node@*", "@types/node@^18.11.18", "@types/node@>=12.12.47", "@types/node@>=13.7.0": version "18.17.14" resolved "https://registry.npmjs.org/@types/node/-/node-18.17.14.tgz" integrity sha512-ZE/5aB73CyGqgQULkLG87N9GnyGe5TcQjv34pwS8tfBs1IkCh0ASM69mydb2znqd6v0eX+9Ytvk6oQRqu8T1Vw== @@ -571,7 +571,7 @@ semver "^7.3.7" tsutils "^3.21.0" -"@typescript-eslint/parser@5.62.0": +"@typescript-eslint/parser@^5.0.0", "@typescript-eslint/parser@5.62.0": version "5.62.0" resolved "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.62.0.tgz" integrity sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA== @@ -671,17 +671,15 @@ acorn@^5.0.0: resolved "https://registry.npmjs.org/acorn/-/acorn-5.7.4.tgz" integrity sha512-1D++VG7BhrtvQpNbBzovKNc1FLGGEE/oGe7b9xJm/RFHMBeUaUGpluV9RLjZa47YFdPcDAenEYuq9pQPcMdLJg== -acorn@^8.4.1, acorn@^8.9.0: +"acorn@^6.0.0 || ^7.0.0 || ^8.0.0", acorn@^8.9.0: version "8.10.0" resolved "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz" integrity sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw== -agent-base@6: - version "6.0.2" - resolved "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz" - integrity sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ== - dependencies: - debug "4" +acorn@^8.4.1: + version "8.10.0" + resolved "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz" + integrity sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw== agent-base@^7.0.2: version "7.1.0" @@ -690,6 +688,13 @@ agent-base@^7.0.2: dependencies: debug "^4.3.4" +agent-base@6: + version "6.0.2" + resolved "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz" + integrity sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ== + dependencies: + debug "4" + ajv@^6.12.4: version "6.12.6" resolved "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz" @@ -734,7 +739,14 @@ ansi-styles@^3.2.1: dependencies: color-convert "^1.9.0" -ansi-styles@^4.0.0, ansi-styles@^4.1.0: +ansi-styles@^4.0.0: + version "4.3.0" + resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz" + integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== + dependencies: + color-convert "^2.0.1" + +ansi-styles@^4.1.0: version "4.3.0" resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz" integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== @@ -853,7 +865,7 @@ browser-stdout@1.3.1: resolved "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz" integrity sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw== -browserslist@^4.21.9: +browserslist@^4.21.9, "browserslist@>= 4.21.0": version "4.22.1" resolved "https://registry.npmjs.org/browserslist/-/browserslist-4.22.1.tgz" integrity sha512-FEVc202+2iuClEhZhrWy6ZiAcRLvNMyYcxZ8raemul1DYVOVdFsbqckWLdsixQZCpJlwe77Z3UTalE7jsjnKfQ== @@ -943,7 +955,23 @@ chalk@^2.4.2: escape-string-regexp "^1.0.5" supports-color "^5.3.0" -chalk@^4.0.0, chalk@^4.1.0, chalk@^4.1.2: +chalk@^4.0.0: + version "4.1.2" + resolved "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz" + integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + +chalk@^4.1.0: + version "4.1.2" + resolved "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz" + integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + +chalk@^4.1.2: version "4.1.2" resolved "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz" integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== @@ -956,7 +984,7 @@ chardet@^0.7.0: resolved "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz" integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA== -chokidar@3.5.3: +chokidar@^3.3.0, chokidar@3.5.3: version "3.5.3" resolved "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz" integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw== @@ -1015,16 +1043,16 @@ color-convert@^2.0.1: dependencies: color-name "~1.1.4" -color-name@1.1.3: - version "1.1.3" - resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz" - integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw== - color-name@~1.1.4: version "1.1.4" resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz" integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== +color-name@1.1.3: + version "1.1.3" + resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz" + integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw== + combined-stream@^1.0.6: version "1.0.8" resolved "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz" @@ -1071,7 +1099,7 @@ cross-spawn@^7.0.0, cross-spawn@^7.0.2, cross-spawn@^7.0.3: shebang-command "^2.0.0" which "^2.0.1" -d@1, d@^1.0.1: +d@^1.0.1, d@1: version "1.0.1" resolved "https://registry.npmjs.org/d/-/d-1.0.1.tgz" integrity sha512-m62ShEObQ39CfralilEQRjH6oAMtNCV1xJyEx5LpRYUVN+EviphDgUc/F3hnYbADmkiNs67Y+3ylmlG7Lnu+FA== @@ -1079,7 +1107,7 @@ d@1, d@^1.0.1: es5-ext "^0.10.50" type "^1.0.1" -debug@4, debug@4.3.4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.2, debug@^4.3.4: +debug@^4.1.0, debug@^4.1.1, debug@^4.3.2, debug@^4.3.4, debug@4, debug@4.3.4: version "4.3.4" resolved "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz" integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== @@ -1157,16 +1185,16 @@ delayed-stream@~1.0.0: resolved "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz" integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== -diff@5.0.0: - version "5.0.0" - resolved "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz" - integrity sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w== - diff@^4.0.1: version "4.0.2" resolved "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz" integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== +diff@5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz" + integrity sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w== + dir-glob@^3.0.1: version "3.0.1" resolved "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz" @@ -1196,7 +1224,7 @@ eastasianwidth@^0.2.0: resolved "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz" integrity sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA== -ecdsa-sig-formatter@1.0.11, ecdsa-sig-formatter@^1.0.11: +ecdsa-sig-formatter@^1.0.11, ecdsa-sig-formatter@1.0.11: version "1.0.11" resolved "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz" integrity sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ== @@ -1317,11 +1345,6 @@ escallmatch@^1.5.0: call-matcher "^1.0.0" esprima "^2.0.0" -escape-string-regexp@4.0.0, escape-string-regexp@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz" - integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== - escape-string-regexp@^1.0.5: version "1.0.5" resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz" @@ -1332,6 +1355,16 @@ escape-string-regexp@^2.0.0: resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz" integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w== +escape-string-regexp@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz" + integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== + +escape-string-regexp@4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz" + integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== + escodegen@^1.10.0, escodegen@^1.13.0, escodegen@^1.7.0: version "1.14.3" resolved "https://registry.npmjs.org/escodegen/-/escodegen-1.14.3.tgz" @@ -1420,7 +1453,7 @@ eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1, eslint-visitor-keys@^3.4 resolved "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz" integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag== -eslint@8.50.0: +eslint@*, "eslint@^6.0.0 || ^7.0.0 || ^8.0.0", "eslint@^6.0.0 || ^7.0.0 || >=8.0.0", eslint@>=4.19.1, eslint@>=5.16.0, eslint@>=7.0.0, eslint@>=8.0.0, eslint@8.50.0: version "8.50.0" resolved "https://registry.npmjs.org/eslint/-/eslint-8.50.0.tgz" integrity sha512-FOnOGSuFuFLv/Sa+FDVRZl4GGVAAFFi8LecRsI5a1tMO5HIE8nCm4ivAlzt4dT3ol/PaaGC0rJEEXQmHJBGoOg== @@ -1560,7 +1593,12 @@ estraverse@^4.0.0, estraverse@^4.1.0, estraverse@^4.1.1, estraverse@^4.2.0: resolved "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz" integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw== -estraverse@^5.1.0, estraverse@^5.2.0: +estraverse@^5.1.0: + version "5.3.0" + resolved "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz" + integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== + +estraverse@^5.2.0: version "5.3.0" resolved "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz" integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== @@ -1693,14 +1731,6 @@ fill-range@^7.0.1: dependencies: to-regex-range "^5.0.1" -find-up@5.0.0, find-up@^5.0.0: - version "5.0.0" - resolved "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz" - integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== - dependencies: - locate-path "^6.0.0" - path-exists "^4.0.0" - find-up@^4.1.0: version "4.1.0" resolved "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz" @@ -1709,6 +1739,14 @@ find-up@^4.1.0: locate-path "^5.0.0" path-exists "^4.0.0" +find-up@^5.0.0, find-up@5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz" + integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== + dependencies: + locate-path "^6.0.0" + path-exists "^4.0.0" + flat-cache@^3.0.4: version "3.1.0" resolved "https://registry.npmjs.org/flat-cache/-/flat-cache-3.1.0.tgz" @@ -1750,11 +1788,6 @@ fs.realpath@^1.0.0: resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz" integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== -fsevents@~2.3.2: - version "2.3.3" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6" - integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== - function-bind@^1.1.1: version "1.1.1" resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz" @@ -1822,7 +1855,7 @@ get-stream@^6.0.0, get-stream@^6.0.1: resolved "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz" integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== -glob-parent@^5.1.2, glob-parent@~5.1.2: +glob-parent@^5.1.2: version "5.1.2" resolved "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz" integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== @@ -1836,17 +1869,12 @@ glob-parent@^6.0.2: dependencies: is-glob "^4.0.3" -glob@7.2.0, glob@^7.1.3: - version "7.2.0" - resolved "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz" - integrity sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q== +glob-parent@~5.1.2: + version "5.1.2" + resolved "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz" + integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== dependencies: - 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" + is-glob "^4.0.1" glob@^10.2.5: version "10.3.4" @@ -1859,6 +1887,18 @@ glob@^10.2.5: minipass "^5.0.0 || ^6.0.2 || ^7.0.0" path-scurry "^1.10.1" +glob@^7.1.3, glob@7.2.0: + version "7.2.0" + resolved "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz" + integrity sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q== + dependencies: + 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@^8.0.0: version "8.1.0" resolved "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz" @@ -1907,10 +1947,10 @@ google-auth-library@^9.0.0: jws "^4.0.0" lru-cache "^6.0.0" -google-gax@^4.1.0: - version "4.1.0" - resolved "https://registry.npmjs.org/google-gax/-/google-gax-4.1.0.tgz" - integrity sha512-VP5MYsIXEoXmdeHZl1Qsjv89PvE+LT8fw/2jxpFQtFed22YYAHgiTUuMfj2RWlGJUmRaYEMxBRBDWj+q/hOGQg== +google-gax@^4.1.0, google-gax@^4.2.1: + version "4.2.1" + resolved "https://registry.npmjs.org/google-gax/-/google-gax-4.2.1.tgz" + integrity sha512-Yal4oh2GMHBsFX8zunxwaRuD2bP7rrA7Oz/ooXK8uOMGnP71jNVRl6fUv8chYLkPTqEzBSij9TZw49B86SDVTg== dependencies: "@grpc/grpc-js" "~1.9.6" "@grpc/proto-loader" "^0.7.0" @@ -1921,8 +1961,9 @@ google-gax@^4.1.0: node-fetch "^2.6.1" object-hash "^3.0.0" proto3-json-serializer "^2.0.0" - protobufjs "7.2.5" + protobufjs "7.2.6" retry-request "^7.0.0" + uuid "^9.0.1" google-proto-files@^4.1.0: version "4.1.0" @@ -2107,7 +2148,7 @@ inflight@^1.0.4: once "^1.3.0" wrappy "1" -inherits@2, inherits@^2.0.3: +inherits@^2.0.3, inherits@2: version "2.0.4" resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== @@ -2273,7 +2314,7 @@ js-tokens@^4.0.0: resolved "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz" integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== -js-yaml@4.1.0, js-yaml@^4.1.0: +js-yaml@^4.1.0, js-yaml@4.1.0: version "4.1.0" resolved "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz" integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== @@ -2490,7 +2531,7 @@ markdown-it-anchor@^8.4.1: resolved "https://registry.npmjs.org/markdown-it-anchor/-/markdown-it-anchor-8.6.7.tgz" integrity sha512-FlCHFwNnutLgVTflOYHPW2pPcl2AACqVzExlkGQNsi4CJgqOHN7YTgDd4LuhgN1BFO3TS0vLAruV1Td6dwWPJA== -markdown-it@^12.3.2: +markdown-it@*, markdown-it@^12.3.2: version "12.3.2" resolved "https://registry.npmjs.org/markdown-it/-/markdown-it-12.3.2.tgz" integrity sha512-TchMembfxfNVpHkbtriWltGWc+m3xszaRD0CZup7GFFhzIgQqxIfn3eGj1yZpfuflzPvfkt611B2Q/Bsk1YnGg== @@ -2581,14 +2622,21 @@ min-indent@^1.0.0: resolved "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz" integrity sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg== -minimatch@5.0.1: - version "5.0.1" - resolved "https://registry.npmjs.org/minimatch/-/minimatch-5.0.1.tgz" - integrity sha512-nLDxIFRyhDblz3qMuq+SoRZED4+miJ/G+tdDrjkkkRnjAsBexeGpgjLEQ0blJy7rHhR2b93rhQY4SvyWu9v03g== +minimatch@^3.0.4: + version "3.1.2" + resolved "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz" + integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== dependencies: - brace-expansion "^2.0.1" + brace-expansion "^1.1.7" -minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.2: +minimatch@^3.0.5: + version "3.1.2" + resolved "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz" + integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== + dependencies: + brace-expansion "^1.1.7" + +minimatch@^3.1.2: version "3.1.2" resolved "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz" integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== @@ -2609,6 +2657,13 @@ minimatch@^9.0.1: dependencies: brace-expansion "^2.0.1" +minimatch@5.0.1: + version "5.0.1" + resolved "https://registry.npmjs.org/minimatch/-/minimatch-5.0.1.tgz" + integrity sha512-nLDxIFRyhDblz3qMuq+SoRZED4+miJ/G+tdDrjkkkRnjAsBexeGpgjLEQ0blJy7rHhR2b93rhQY4SvyWu9v03g== + dependencies: + brace-expansion "^2.0.1" + minimist-options@4.1.0: version "4.1.0" resolved "https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz" @@ -2960,7 +3015,7 @@ prettier-linter-helpers@^1.0.0: dependencies: fast-diff "^1.1.2" -prettier@3.0.3: +prettier@>=3.0.0, prettier@3.0.3: version "3.0.3" resolved "https://registry.npmjs.org/prettier/-/prettier-3.0.3.tgz" integrity sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg== @@ -2972,7 +3027,7 @@ proto3-json-serializer@^2.0.0, proto3-json-serializer@^2.0.1: dependencies: protobufjs "^7.2.5" -protobufjs-cli@1.1.2, protobufjs-cli@^1.1.2: +protobufjs-cli@^1.1.2, protobufjs-cli@1.1.2: version "1.1.2" resolved "https://registry.npmjs.org/protobufjs-cli/-/protobufjs-cli-1.1.2.tgz" integrity sha512-8ivXWxT39gZN4mm4ArQyJrRgnIwZqffBWoLDsE21TmMcKI3XwJMV4lEF2WU02C4JAtgYYc2SfJIltelD8to35g== @@ -2988,25 +3043,7 @@ protobufjs-cli@1.1.2, protobufjs-cli@^1.1.2: tmp "^0.2.1" uglify-js "^3.7.7" -protobufjs@7.2.5: - version "7.2.5" - resolved "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.5.tgz" - integrity sha512-gGXRSXvxQ7UiPgfw8gevrfRWcTlSbOFg+p/N+JVJEK5VhueL2miT6qTymqAmjr1Q5WbOCyJbyrk6JfWKwlFn6A== - dependencies: - "@protobufjs/aspromise" "^1.1.2" - "@protobufjs/base64" "^1.1.2" - "@protobufjs/codegen" "^2.0.4" - "@protobufjs/eventemitter" "^1.1.0" - "@protobufjs/fetch" "^1.1.0" - "@protobufjs/float" "^1.0.2" - "@protobufjs/inquire" "^1.1.0" - "@protobufjs/path" "^1.1.2" - "@protobufjs/pool" "^1.1.0" - "@protobufjs/utf8" "^1.1.0" - "@types/node" ">=13.7.0" - long "^5.0.0" - -protobufjs@7.2.6, protobufjs@^7.0.0, protobufjs@^7.2.4, protobufjs@^7.2.5: +protobufjs@^7.0.0, protobufjs@^7.2.4, protobufjs@^7.2.5, protobufjs@7.2.6: version "7.2.6" resolved "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.6.tgz" integrity sha512-dgJaEDDL6x8ASUZ1YqWciTRrdOuYNzoOf27oHNfdyvKqHr5i0FV7FSLU+aIeFjyFgVxrpTOtQUi0BLLBymZaBw== @@ -3152,7 +3189,14 @@ reusify@^1.0.4: resolved "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz" integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== -rimraf@3.0.2, rimraf@^3.0.0, rimraf@^3.0.2: +rimraf@^3.0.0: + version "3.0.2" + resolved "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz" + integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== + dependencies: + glob "^7.1.3" + +rimraf@^3.0.2: version "3.0.2" resolved "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz" integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== @@ -3166,6 +3210,13 @@ rimraf@^5.0.1: dependencies: glob "^10.2.5" +rimraf@3.0.2: + version "3.0.2" + resolved "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz" + integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== + dependencies: + glob "^7.1.3" + run-applescript@^5.0.0: version "5.0.0" resolved "https://registry.npmjs.org/run-applescript/-/run-applescript-5.0.0.tgz" @@ -3202,23 +3253,37 @@ safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@~5.2.0: resolved "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz" integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== -"semver@2 || 3 || 4 || 5": - version "5.7.2" - resolved "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz" - integrity sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g== - semver@^6.1.0, semver@^6.3.1: version "6.3.1" resolved "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz" integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== -semver@^7.1.2, semver@^7.3.4, semver@^7.3.7: +semver@^7.1.2: + version "7.5.4" + resolved "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz" + integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA== + dependencies: + lru-cache "^6.0.0" + +semver@^7.3.4: + version "7.5.4" + resolved "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz" + integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA== + dependencies: + lru-cache "^6.0.0" + +semver@^7.3.7: version "7.5.4" resolved "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz" integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA== dependencies: lru-cache "^6.0.0" +"semver@2 || 3 || 4 || 5": + version "5.7.2" + resolved "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz" + integrity sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g== + serialize-javascript@6.0.0: version "6.0.0" resolved "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz" @@ -3316,7 +3381,23 @@ stream-shift@^1.0.0: resolved "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.1.tgz" integrity sha512-AiisoFqQ0vbGcZgQPY1cdP2I76glaVA/RauYR4G4thNFgkTqr90yXTo4LYX60Jl+sIlPNHHdGSwo01AvbKUSVQ== -"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: +string_decoder@^1.1.1: + version "1.3.0" + resolved "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz" + integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA== + dependencies: + safe-buffer "~5.2.0" + +"string-width-cjs@npm:string-width@^4.2.0": + version "4.2.3" + resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz" + integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.1" + +string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: version "4.2.3" resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz" integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== @@ -3334,14 +3415,14 @@ string-width@^5.0.1, string-width@^5.1.2: emoji-regex "^9.2.2" strip-ansi "^7.0.1" -string_decoder@^1.1.1: - version "1.3.0" - resolved "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz" - integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA== +"strip-ansi-cjs@npm:strip-ansi@^6.0.1": + version "6.0.1" + resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz" + integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== dependencies: - safe-buffer "~5.2.0" + ansi-regex "^5.0.1" -"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1: +strip-ansi@^6.0.0, strip-ansi@^6.0.1: version "6.0.1" resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz" integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== @@ -3372,7 +3453,7 @@ strip-indent@^3.0.0: dependencies: min-indent "^1.0.0" -strip-json-comments@3.1.1, strip-json-comments@^3.1.0, strip-json-comments@^3.1.1: +strip-json-comments@^3.1.0, strip-json-comments@^3.1.1, strip-json-comments@3.1.1: 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== @@ -3382,13 +3463,6 @@ stubs@^3.0.0: resolved "https://registry.npmjs.org/stubs/-/stubs-3.0.0.tgz" integrity sha512-PdHt7hHUJKxvTCgbKX9C1V/ftOcjJQgz8BZwNfV5c4B6dcGqlpelTbJ999jBGZ2jYiPAwcX5dP6oBwVlBlUbxw== -supports-color@8.1.1: - version "8.1.1" - resolved "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz" - integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q== - dependencies: - has-flag "^4.0.0" - supports-color@^5.3.0: version "5.5.0" resolved "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz" @@ -3403,6 +3477,13 @@ supports-color@^7.1.0: dependencies: has-flag "^4.0.0" +supports-color@8.1.1: + version "8.1.1" + resolved "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz" + integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q== + dependencies: + has-flag "^4.0.0" + supports-preserve-symlinks-flag@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz" @@ -3502,7 +3583,12 @@ tslib@^1.8.1, tslib@^1.9.0: resolved "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== -tslib@^2.5.0, tslib@^2.6.0: +tslib@^2.5.0: + version "2.6.2" + resolved "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz" + integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q== + +tslib@^2.6.0: version "2.6.2" resolved "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz" integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q== @@ -3568,7 +3654,7 @@ type@^2.7.2: resolved "https://registry.npmjs.org/type/-/type-2.7.2.tgz" integrity sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw== -typescript@5.1.6: +"typescript@>= 2.7", typescript@>=2.7, "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta", typescript@>=3, typescript@5.1.6: version "5.1.6" resolved "https://registry.npmjs.org/typescript/-/typescript-5.1.6.tgz" integrity sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA== @@ -3613,7 +3699,7 @@ util-deprecate@^1.0.1: resolved "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz" integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw== -uuid@^9.0.0: +uuid@^9.0.0, uuid@^9.0.1: version "9.0.1" resolved "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz" integrity sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA== @@ -3666,7 +3752,16 @@ workerpool@6.2.1: resolved "https://registry.npmjs.org/workerpool/-/workerpool-6.2.1.tgz" integrity sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw== -"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0: +"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0": + version "7.0.0" + resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz" + integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + +wrap-ansi@^7.0.0: version "7.0.0" resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz" integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== @@ -3722,7 +3817,7 @@ yallist@^4.0.0: resolved "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz" integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== -yargs-parser@20.2.4, yargs-parser@^20.2.2: +yargs-parser@^20.2.2, yargs-parser@20.2.4: version "20.2.4" resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz" integrity sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA== @@ -3747,19 +3842,6 @@ yargs-unparser@2.0.0: flat "^5.0.2" is-plain-obj "^2.1.0" -yargs@16.2.0: - version "16.2.0" - resolved "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz" - integrity sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw== - dependencies: - cliui "^7.0.2" - escalade "^3.1.1" - get-caller-file "^2.0.5" - require-directory "^2.1.1" - string-width "^4.2.0" - y18n "^5.0.5" - yargs-parser "^20.2.2" - yargs@^17.7.2: version "17.7.2" resolved "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz" @@ -3773,6 +3855,19 @@ yargs@^17.7.2: y18n "^5.0.5" yargs-parser "^21.1.1" +yargs@16.2.0: + version "16.2.0" + resolved "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz" + integrity sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw== + dependencies: + cliui "^7.0.2" + escalade "^3.1.1" + get-caller-file "^2.0.5" + require-directory "^2.1.1" + string-width "^4.2.0" + y18n "^5.0.5" + yargs-parser "^20.2.2" + yn@3.1.1: version "3.1.1" resolved "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz" From 605e40a44095f1e9f2c0f8466cc6fb1be6815568 Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Thu, 1 Feb 2024 11:06:12 -0800 Subject: [PATCH 11/35] fix: revert new streaming behavior (#1528) * fix: revert new streaming behavior * fix(deps): use google-gax 4.3.0 --- baselines/asset-esm/package.json | 2 +- baselines/asset/package.json | 2 +- .../src/v1beta1/big_query_storage_client.ts.baseline | 2 +- .../test/gapic_big_query_storage_v1beta1.ts.baseline | 2 +- baselines/bigquery-storage-esm/package.json | 2 +- baselines/bigquery-storage/package.json | 2 +- .../src/v1beta1/big_query_storage_client.ts.baseline | 2 +- .../test/gapic_big_query_storage_v1beta1.ts.baseline | 2 +- baselines/compute-esm/package.json | 2 +- baselines/compute/package.json | 2 +- baselines/deprecatedtest-esm/package.json | 2 +- baselines/deprecatedtest/package.json | 2 +- .../esm/src/v1beta1/echo_client.ts.baseline | 6 +++--- .../esm/src/v1beta1/messaging_client.ts.baseline | 6 +++--- .../esm/test/gapic_echo_v1beta1.ts.baseline | 2 +- .../esm/test/gapic_messaging_v1beta1.ts.baseline | 2 +- baselines/disable-packing-test-esm/package.json | 2 +- baselines/disable-packing-test/package.json | 2 +- .../src/v1beta1/echo_client.ts.baseline | 6 +++--- .../src/v1beta1/messaging_client.ts.baseline | 6 +++--- .../test/gapic_echo_v1beta1.ts.baseline | 2 +- .../test/gapic_messaging_v1beta1.ts.baseline | 2 +- baselines/dlp-esm/package.json | 2 +- baselines/dlp/package.json | 2 +- baselines/kms-esm/package.json | 2 +- baselines/kms/package.json | 2 +- .../esm/src/v2/logging_service_v2_client.ts.baseline | 2 +- baselines/logging-esm/package.json | 2 +- baselines/logging/package.json | 2 +- .../src/v2/logging_service_v2_client.ts.baseline | 2 +- baselines/monitoring-esm/package.json | 2 +- baselines/monitoring/package.json | 2 +- baselines/naming-esm/package.json | 2 +- baselines/naming/package.json | 2 +- baselines/redis-esm/package.json | 2 +- baselines/redis/package.json | 2 +- baselines/routingtest-esm/package.json | 2 +- baselines/routingtest/package.json | 2 +- .../esm/src/v1beta1/echo_client.ts.baseline | 6 +++--- .../esm/src/v1beta1/messaging_client.ts.baseline | 6 +++--- .../esm/test/gapic_echo_v1beta1.ts.baseline | 2 +- .../esm/test/gapic_messaging_v1beta1.ts.baseline | 2 +- baselines/showcase-esm/package.json | 2 +- .../esm/src/v1beta1/echo_client.ts.baseline | 6 +++--- .../esm/test/gapic_echo_v1beta1.ts.baseline | 2 +- baselines/showcase-legacy-esm/package.json | 2 +- baselines/showcase-legacy/package.json | 2 +- .../src/v1beta1/echo_client.ts.baseline | 6 +++--- .../test/gapic_echo_v1beta1.ts.baseline | 2 +- baselines/showcase/package.json | 2 +- baselines/showcase/src/v1beta1/echo_client.ts.baseline | 6 +++--- .../showcase/src/v1beta1/messaging_client.ts.baseline | 6 +++--- baselines/showcase/test/gapic_echo_v1beta1.ts.baseline | 2 +- .../showcase/test/gapic_messaging_v1beta1.ts.baseline | 2 +- baselines/tasks-esm/package.json | 2 +- baselines/tasks/package.json | 2 +- baselines/texttospeech-esm/package.json | 2 +- baselines/texttospeech/package.json | 2 +- baselines/translate-esm/package.json | 2 +- baselines/translate/package.json | 2 +- baselines/videointelligence-esm/package.json | 2 +- baselines/videointelligence/package.json | 2 +- package.json | 2 +- pnpm-lock.yaml | 10 +++++----- templates/cjs/typescript_gapic/package.json | 2 +- .../src/$version/$service_client.ts.njk | 2 +- .../test/gapic_$service_$version.ts.njk | 2 +- .../esm/src/$version/$service_client.ts.njk | 2 +- .../esm/test/gapic_$service_$version.ts.njk | 2 +- templates/esm/typescript_gapic/package.json | 2 +- 70 files changed, 94 insertions(+), 94 deletions(-) diff --git a/baselines/asset-esm/package.json b/baselines/asset-esm/package.json index b9c727d64..cc20ee8b3 100644 --- a/baselines/asset-esm/package.json +++ b/baselines/asset-esm/package.json @@ -63,7 +63,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.2.1" + "google-gax": "^4.3.0" }, "devDependencies": { "@babel/cli": "^7.23.0", diff --git a/baselines/asset/package.json b/baselines/asset/package.json index 6cc474e54..a293d2420 100644 --- a/baselines/asset/package.json +++ b/baselines/asset/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.2.1" + "google-gax": "^4.3.0" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/bigquery-storage-esm/esm/src/v1beta1/big_query_storage_client.ts.baseline b/baselines/bigquery-storage-esm/esm/src/v1beta1/big_query_storage_client.ts.baseline index a19dd9c1e..1e4929097 100644 --- a/baselines/bigquery-storage-esm/esm/src/v1beta1/big_query_storage_client.ts.baseline +++ b/baselines/bigquery-storage-esm/esm/src/v1beta1/big_query_storage_client.ts.baseline @@ -192,7 +192,7 @@ export class BigQueryStorageClient { // Some of the methods on this service provide streaming responses. // Provide descriptors for these. this.descriptors.stream = { - readRows: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.SERVER_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ true) + readRows: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.SERVER_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ false) }; // Put together the default options sent with requests. diff --git a/baselines/bigquery-storage-esm/esm/test/gapic_big_query_storage_v1beta1.ts.baseline b/baselines/bigquery-storage-esm/esm/test/gapic_big_query_storage_v1beta1.ts.baseline index 1be7d7aac..368f0199c 100644 --- a/baselines/bigquery-storage-esm/esm/test/gapic_big_query_storage_v1beta1.ts.baseline +++ b/baselines/bigquery-storage-esm/esm/test/gapic_big_query_storage_v1beta1.ts.baseline @@ -725,7 +725,7 @@ describe('v1beta1.BigQueryStorageClient', () => { request.readPosition.stream.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - const stream = client.readRows(request, {retry: {shouldRetryFn: () => { return false; }}}); + const stream = client.readRows(request, {retryRequestOptions: {noResponseRetries: 0}}); const promise = new Promise((resolve, reject) => { stream.on('data', (response: protos.google.cloud.bigquery.storage.v1beta1.ReadRowsResponse) => { resolve(response); diff --git a/baselines/bigquery-storage-esm/package.json b/baselines/bigquery-storage-esm/package.json index 2d37d4c5d..841d32cc3 100644 --- a/baselines/bigquery-storage-esm/package.json +++ b/baselines/bigquery-storage-esm/package.json @@ -63,7 +63,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.2.1" + "google-gax": "^4.3.0" }, "devDependencies": { "@babel/cli": "^7.23.0", diff --git a/baselines/bigquery-storage/package.json b/baselines/bigquery-storage/package.json index 84cead742..4b6a5a6ab 100644 --- a/baselines/bigquery-storage/package.json +++ b/baselines/bigquery-storage/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.2.1" + "google-gax": "^4.3.0" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/bigquery-storage/src/v1beta1/big_query_storage_client.ts.baseline b/baselines/bigquery-storage/src/v1beta1/big_query_storage_client.ts.baseline index 55570d828..621286794 100644 --- a/baselines/bigquery-storage/src/v1beta1/big_query_storage_client.ts.baseline +++ b/baselines/bigquery-storage/src/v1beta1/big_query_storage_client.ts.baseline @@ -176,7 +176,7 @@ export class BigQueryStorageClient { // Some of the methods on this service provide streaming responses. // Provide descriptors for these. this.descriptors.stream = { - readRows: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.SERVER_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ true) + readRows: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.SERVER_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ false) }; // Put together the default options sent with requests. diff --git a/baselines/bigquery-storage/test/gapic_big_query_storage_v1beta1.ts.baseline b/baselines/bigquery-storage/test/gapic_big_query_storage_v1beta1.ts.baseline index 4f506c78c..de85420df 100644 --- a/baselines/bigquery-storage/test/gapic_big_query_storage_v1beta1.ts.baseline +++ b/baselines/bigquery-storage/test/gapic_big_query_storage_v1beta1.ts.baseline @@ -716,7 +716,7 @@ describe('v1beta1.BigQueryStorageClient', () => { request.readPosition.stream.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - const stream = client.readRows(request, {retry: {shouldRetryFn: () => { return false; }}}); + const stream = client.readRows(request, {retryRequestOptions: {noResponseRetries: 0}}); const promise = new Promise((resolve, reject) => { stream.on('data', (response: protos.google.cloud.bigquery.storage.v1beta1.ReadRowsResponse) => { resolve(response); diff --git a/baselines/compute-esm/package.json b/baselines/compute-esm/package.json index b760f5f6b..81c3b8c6c 100644 --- a/baselines/compute-esm/package.json +++ b/baselines/compute-esm/package.json @@ -64,7 +64,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.2.1" + "google-gax": "^4.3.0" }, "devDependencies": { "@babel/cli": "^7.23.0", diff --git a/baselines/compute/package.json b/baselines/compute/package.json index c1e3293f2..ad7c4e36e 100644 --- a/baselines/compute/package.json +++ b/baselines/compute/package.json @@ -36,7 +36,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.2.1" + "google-gax": "^4.3.0" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/deprecatedtest-esm/package.json b/baselines/deprecatedtest-esm/package.json index bec5a5188..bf342d27a 100644 --- a/baselines/deprecatedtest-esm/package.json +++ b/baselines/deprecatedtest-esm/package.json @@ -63,7 +63,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.2.1" + "google-gax": "^4.3.0" }, "devDependencies": { "@babel/cli": "^7.23.0", diff --git a/baselines/deprecatedtest/package.json b/baselines/deprecatedtest/package.json index 8a194c192..7a5b564de 100644 --- a/baselines/deprecatedtest/package.json +++ b/baselines/deprecatedtest/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.2.1" + "google-gax": "^4.3.0" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/disable-packing-test-esm/esm/src/v1beta1/echo_client.ts.baseline b/baselines/disable-packing-test-esm/esm/src/v1beta1/echo_client.ts.baseline index d1a373526..4cf27565b 100644 --- a/baselines/disable-packing-test-esm/esm/src/v1beta1/echo_client.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/src/v1beta1/echo_client.ts.baseline @@ -232,9 +232,9 @@ export class EchoClient { // Some of the methods on this service provide streaming responses. // Provide descriptors for these. this.descriptors.stream = { - expand: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.SERVER_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ true), - collect: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.CLIENT_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ true), - chat: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.BIDI_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ true) + expand: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.SERVER_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ false), + collect: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.CLIENT_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ false), + chat: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.BIDI_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ false) }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos as gax.protobuf.INamespace); diff --git a/baselines/disable-packing-test-esm/esm/src/v1beta1/messaging_client.ts.baseline b/baselines/disable-packing-test-esm/esm/src/v1beta1/messaging_client.ts.baseline index 221d3f3f8..5239a69db 100644 --- a/baselines/disable-packing-test-esm/esm/src/v1beta1/messaging_client.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/src/v1beta1/messaging_client.ts.baseline @@ -231,9 +231,9 @@ export class MessagingClient { // Some of the methods on this service provide streaming responses. // Provide descriptors for these. this.descriptors.stream = { - streamBlurbs: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.SERVER_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ true), - sendBlurbs: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.CLIENT_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ true), - connect: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.BIDI_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ true) + streamBlurbs: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.SERVER_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ false), + sendBlurbs: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.CLIENT_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ false), + connect: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.BIDI_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ false) }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos as gax.protobuf.INamespace); diff --git a/baselines/disable-packing-test-esm/esm/test/gapic_echo_v1beta1.ts.baseline b/baselines/disable-packing-test-esm/esm/test/gapic_echo_v1beta1.ts.baseline index 74cbcc80c..89338dbc6 100644 --- a/baselines/disable-packing-test-esm/esm/test/gapic_echo_v1beta1.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/test/gapic_echo_v1beta1.ts.baseline @@ -682,7 +682,7 @@ describe('v1beta1.EchoClient', () => { ); const expectedError = new Error('The client has already been closed.'); client.close(); - const stream = client.expand(request, {retry: {shouldRetryFn: () => { return false; }}}); + const stream = client.expand(request, {retryRequestOptions: {noResponseRetries: 0}}); const promise = new Promise((resolve, reject) => { stream.on('data', (response: protos.google.showcase.v1beta1.EchoResponse) => { resolve(response); diff --git a/baselines/disable-packing-test-esm/esm/test/gapic_messaging_v1beta1.ts.baseline b/baselines/disable-packing-test-esm/esm/test/gapic_messaging_v1beta1.ts.baseline index c438775c9..b7a190273 100644 --- a/baselines/disable-packing-test-esm/esm/test/gapic_messaging_v1beta1.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/test/gapic_messaging_v1beta1.ts.baseline @@ -1330,7 +1330,7 @@ describe('v1beta1.MessagingClient', () => { request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - const stream = client.streamBlurbs(request, {retry: {shouldRetryFn: () => { return false; }}}); + const stream = client.streamBlurbs(request, {retryRequestOptions: {noResponseRetries: 0}}); const promise = new Promise((resolve, reject) => { stream.on('data', (response: protos.google.showcase.v1beta1.StreamBlurbsResponse) => { resolve(response); diff --git a/baselines/disable-packing-test-esm/package.json b/baselines/disable-packing-test-esm/package.json index bac611d06..a8510a02d 100644 --- a/baselines/disable-packing-test-esm/package.json +++ b/baselines/disable-packing-test-esm/package.json @@ -68,7 +68,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.2.1" + "google-gax": "^4.3.0" }, "devDependencies": { "@babel/cli": "^7.23.0", diff --git a/baselines/disable-packing-test/package.json b/baselines/disable-packing-test/package.json index dfcb52082..8d7ba29e7 100644 --- a/baselines/disable-packing-test/package.json +++ b/baselines/disable-packing-test/package.json @@ -40,7 +40,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.2.1" + "google-gax": "^4.3.0" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline index d6101be14..0ab91a460 100644 --- a/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline @@ -216,9 +216,9 @@ export class EchoClient { // Some of the methods on this service provide streaming responses. // Provide descriptors for these. this.descriptors.stream = { - expand: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.SERVER_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ true), - collect: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.CLIENT_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ true), - chat: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.BIDI_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ true) + expand: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.SERVER_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ false), + collect: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.CLIENT_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ false), + chat: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.BIDI_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ false) }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); diff --git a/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline index 7d88f41d9..3199a1752 100644 --- a/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline @@ -215,9 +215,9 @@ export class MessagingClient { // Some of the methods on this service provide streaming responses. // Provide descriptors for these. this.descriptors.stream = { - streamBlurbs: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.SERVER_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ true), - sendBlurbs: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.CLIENT_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ true), - connect: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.BIDI_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ true) + streamBlurbs: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.SERVER_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ false), + sendBlurbs: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.CLIENT_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ false), + connect: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.BIDI_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ false) }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); diff --git a/baselines/disable-packing-test/test/gapic_echo_v1beta1.ts.baseline b/baselines/disable-packing-test/test/gapic_echo_v1beta1.ts.baseline index 899759c30..01925ca2d 100644 --- a/baselines/disable-packing-test/test/gapic_echo_v1beta1.ts.baseline +++ b/baselines/disable-packing-test/test/gapic_echo_v1beta1.ts.baseline @@ -673,7 +673,7 @@ describe('v1beta1.EchoClient', () => { ); const expectedError = new Error('The client has already been closed.'); client.close(); - const stream = client.expand(request, {retry: {shouldRetryFn: () => { return false; }}}); + const stream = client.expand(request, {retryRequestOptions: {noResponseRetries: 0}}); const promise = new Promise((resolve, reject) => { stream.on('data', (response: protos.google.showcase.v1beta1.EchoResponse) => { resolve(response); diff --git a/baselines/disable-packing-test/test/gapic_messaging_v1beta1.ts.baseline b/baselines/disable-packing-test/test/gapic_messaging_v1beta1.ts.baseline index 321eb68df..d0b8a7720 100644 --- a/baselines/disable-packing-test/test/gapic_messaging_v1beta1.ts.baseline +++ b/baselines/disable-packing-test/test/gapic_messaging_v1beta1.ts.baseline @@ -1321,7 +1321,7 @@ describe('v1beta1.MessagingClient', () => { request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - const stream = client.streamBlurbs(request, {retry: {shouldRetryFn: () => { return false; }}}); + const stream = client.streamBlurbs(request, {retryRequestOptions: {noResponseRetries: 0}}); const promise = new Promise((resolve, reject) => { stream.on('data', (response: protos.google.showcase.v1beta1.StreamBlurbsResponse) => { resolve(response); diff --git a/baselines/dlp-esm/package.json b/baselines/dlp-esm/package.json index 8062a0f76..c66a5541c 100644 --- a/baselines/dlp-esm/package.json +++ b/baselines/dlp-esm/package.json @@ -63,7 +63,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.2.1" + "google-gax": "^4.3.0" }, "devDependencies": { "@babel/cli": "^7.23.0", diff --git a/baselines/dlp/package.json b/baselines/dlp/package.json index a87f5ba1c..5cee671e9 100644 --- a/baselines/dlp/package.json +++ b/baselines/dlp/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.2.1" + "google-gax": "^4.3.0" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/kms-esm/package.json b/baselines/kms-esm/package.json index 29040e384..1c4bfef2b 100644 --- a/baselines/kms-esm/package.json +++ b/baselines/kms-esm/package.json @@ -63,7 +63,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.2.1" + "google-gax": "^4.3.0" }, "devDependencies": { "@babel/cli": "^7.23.0", diff --git a/baselines/kms/package.json b/baselines/kms/package.json index c580a89ee..994db4daa 100644 --- a/baselines/kms/package.json +++ b/baselines/kms/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.2.1" + "google-gax": "^4.3.0" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/logging-esm/esm/src/v2/logging_service_v2_client.ts.baseline b/baselines/logging-esm/esm/src/v2/logging_service_v2_client.ts.baseline index 7427976f6..7bef04c73 100644 --- a/baselines/logging-esm/esm/src/v2/logging_service_v2_client.ts.baseline +++ b/baselines/logging-esm/esm/src/v2/logging_service_v2_client.ts.baseline @@ -286,7 +286,7 @@ export class LoggingServiceV2Client { // Some of the methods on this service provide streaming responses. // Provide descriptors for these. this.descriptors.stream = { - tailLogEntries: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.BIDI_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ true) + tailLogEntries: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.BIDI_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ false) }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos as gax.protobuf.INamespace); diff --git a/baselines/logging-esm/package.json b/baselines/logging-esm/package.json index 5d54e494a..b5e421eff 100644 --- a/baselines/logging-esm/package.json +++ b/baselines/logging-esm/package.json @@ -65,7 +65,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.2.1" + "google-gax": "^4.3.0" }, "devDependencies": { "@babel/cli": "^7.23.0", diff --git a/baselines/logging/package.json b/baselines/logging/package.json index 381c62a1b..fb63990f0 100644 --- a/baselines/logging/package.json +++ b/baselines/logging/package.json @@ -37,7 +37,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.2.1" + "google-gax": "^4.3.0" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/logging/src/v2/logging_service_v2_client.ts.baseline b/baselines/logging/src/v2/logging_service_v2_client.ts.baseline index 5193741be..7e4b09e23 100644 --- a/baselines/logging/src/v2/logging_service_v2_client.ts.baseline +++ b/baselines/logging/src/v2/logging_service_v2_client.ts.baseline @@ -270,7 +270,7 @@ export class LoggingServiceV2Client { // Some of the methods on this service provide streaming responses. // Provide descriptors for these. this.descriptors.stream = { - tailLogEntries: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.BIDI_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ true) + tailLogEntries: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.BIDI_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ false) }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); diff --git a/baselines/monitoring-esm/package.json b/baselines/monitoring-esm/package.json index ed40506d1..f17f69c07 100644 --- a/baselines/monitoring-esm/package.json +++ b/baselines/monitoring-esm/package.json @@ -68,7 +68,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.2.1" + "google-gax": "^4.3.0" }, "devDependencies": { "@babel/cli": "^7.23.0", diff --git a/baselines/monitoring/package.json b/baselines/monitoring/package.json index 8828476e4..b71307606 100644 --- a/baselines/monitoring/package.json +++ b/baselines/monitoring/package.json @@ -40,7 +40,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.2.1" + "google-gax": "^4.3.0" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/naming-esm/package.json b/baselines/naming-esm/package.json index 388d6e2e8..8592c270e 100644 --- a/baselines/naming-esm/package.json +++ b/baselines/naming-esm/package.json @@ -63,7 +63,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.2.1" + "google-gax": "^4.3.0" }, "devDependencies": { "@babel/cli": "^7.23.0", diff --git a/baselines/naming/package.json b/baselines/naming/package.json index 75a9387aa..76ea2a076 100644 --- a/baselines/naming/package.json +++ b/baselines/naming/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.2.1" + "google-gax": "^4.3.0" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/redis-esm/package.json b/baselines/redis-esm/package.json index eeeb2c405..8ec923f4b 100644 --- a/baselines/redis-esm/package.json +++ b/baselines/redis-esm/package.json @@ -63,7 +63,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.2.1" + "google-gax": "^4.3.0" }, "devDependencies": { "@babel/cli": "^7.23.0", diff --git a/baselines/redis/package.json b/baselines/redis/package.json index 50961b02d..52d1aa3d2 100644 --- a/baselines/redis/package.json +++ b/baselines/redis/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.2.1" + "google-gax": "^4.3.0" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/routingtest-esm/package.json b/baselines/routingtest-esm/package.json index 5dc6312b7..b50548b5b 100644 --- a/baselines/routingtest-esm/package.json +++ b/baselines/routingtest-esm/package.json @@ -63,7 +63,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.2.1" + "google-gax": "^4.3.0" }, "devDependencies": { "@babel/cli": "^7.23.0", diff --git a/baselines/routingtest/package.json b/baselines/routingtest/package.json index 869624b4a..d0e434435 100644 --- a/baselines/routingtest/package.json +++ b/baselines/routingtest/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.2.1" + "google-gax": "^4.3.0" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/showcase-esm/esm/src/v1beta1/echo_client.ts.baseline b/baselines/showcase-esm/esm/src/v1beta1/echo_client.ts.baseline index c5dc8edfb..f97265554 100644 --- a/baselines/showcase-esm/esm/src/v1beta1/echo_client.ts.baseline +++ b/baselines/showcase-esm/esm/src/v1beta1/echo_client.ts.baseline @@ -235,9 +235,9 @@ export class EchoClient { // Some of the methods on this service provide streaming responses. // Provide descriptors for these. this.descriptors.stream = { - expand: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.SERVER_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ true), - collect: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.CLIENT_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ true), - chat: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.BIDI_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ true) + expand: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.SERVER_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ false), + collect: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.CLIENT_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ false), + chat: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.BIDI_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ false) }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos as gax.protobuf.INamespace); diff --git a/baselines/showcase-esm/esm/src/v1beta1/messaging_client.ts.baseline b/baselines/showcase-esm/esm/src/v1beta1/messaging_client.ts.baseline index 1f35200c6..b05f45cb4 100644 --- a/baselines/showcase-esm/esm/src/v1beta1/messaging_client.ts.baseline +++ b/baselines/showcase-esm/esm/src/v1beta1/messaging_client.ts.baseline @@ -234,9 +234,9 @@ export class MessagingClient { // Some of the methods on this service provide streaming responses. // Provide descriptors for these. this.descriptors.stream = { - streamBlurbs: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.SERVER_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ true), - sendBlurbs: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.CLIENT_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ true), - connect: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.BIDI_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ true) + streamBlurbs: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.SERVER_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ false), + sendBlurbs: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.CLIENT_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ false), + connect: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.BIDI_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ false) }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos as gax.protobuf.INamespace); diff --git a/baselines/showcase-esm/esm/test/gapic_echo_v1beta1.ts.baseline b/baselines/showcase-esm/esm/test/gapic_echo_v1beta1.ts.baseline index 42257b316..55837539b 100644 --- a/baselines/showcase-esm/esm/test/gapic_echo_v1beta1.ts.baseline +++ b/baselines/showcase-esm/esm/test/gapic_echo_v1beta1.ts.baseline @@ -688,7 +688,7 @@ describe('v1beta1.EchoClient', () => { ); const expectedError = new Error('The client has already been closed.'); client.close(); - const stream = client.expand(request, {retry: {shouldRetryFn: () => { return false; }}}); + const stream = client.expand(request, {retryRequestOptions: {noResponseRetries: 0}}); const promise = new Promise((resolve, reject) => { stream.on('data', (response: protos.google.showcase.v1beta1.EchoResponse) => { resolve(response); diff --git a/baselines/showcase-esm/esm/test/gapic_messaging_v1beta1.ts.baseline b/baselines/showcase-esm/esm/test/gapic_messaging_v1beta1.ts.baseline index c438775c9..b7a190273 100644 --- a/baselines/showcase-esm/esm/test/gapic_messaging_v1beta1.ts.baseline +++ b/baselines/showcase-esm/esm/test/gapic_messaging_v1beta1.ts.baseline @@ -1330,7 +1330,7 @@ describe('v1beta1.MessagingClient', () => { request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - const stream = client.streamBlurbs(request, {retry: {shouldRetryFn: () => { return false; }}}); + const stream = client.streamBlurbs(request, {retryRequestOptions: {noResponseRetries: 0}}); const promise = new Promise((resolve, reject) => { stream.on('data', (response: protos.google.showcase.v1beta1.StreamBlurbsResponse) => { resolve(response); diff --git a/baselines/showcase-esm/package.json b/baselines/showcase-esm/package.json index bac611d06..a8510a02d 100644 --- a/baselines/showcase-esm/package.json +++ b/baselines/showcase-esm/package.json @@ -68,7 +68,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.2.1" + "google-gax": "^4.3.0" }, "devDependencies": { "@babel/cli": "^7.23.0", diff --git a/baselines/showcase-legacy-esm/esm/src/v1beta1/echo_client.ts.baseline b/baselines/showcase-legacy-esm/esm/src/v1beta1/echo_client.ts.baseline index 411d30d06..a8a625c93 100644 --- a/baselines/showcase-legacy-esm/esm/src/v1beta1/echo_client.ts.baseline +++ b/baselines/showcase-legacy-esm/esm/src/v1beta1/echo_client.ts.baseline @@ -172,9 +172,9 @@ export class EchoClient { // Some of the methods on this service provide streaming responses. // Provide descriptors for these. this.descriptors.stream = { - expand: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.SERVER_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ true), - collect: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.CLIENT_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ true), - chat: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.BIDI_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ true) + expand: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.SERVER_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ false), + collect: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.CLIENT_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ false), + chat: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.BIDI_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ false) }; let protoFilesRoot = new this._gaxModule.GoogleProtoFilesRoot(); diff --git a/baselines/showcase-legacy-esm/esm/test/gapic_echo_v1beta1.ts.baseline b/baselines/showcase-legacy-esm/esm/test/gapic_echo_v1beta1.ts.baseline index 55fe567fa..634a9fb68 100644 --- a/baselines/showcase-legacy-esm/esm/test/gapic_echo_v1beta1.ts.baseline +++ b/baselines/showcase-legacy-esm/esm/test/gapic_echo_v1beta1.ts.baseline @@ -661,7 +661,7 @@ describe('v1beta1.EchoClient', () => { ); const expectedError = new Error('The client has already been closed.'); client.close(); - const stream = client.expand(request, {retry: {shouldRetryFn: () => { return false; }}}); + const stream = client.expand(request, {retryRequestOptions: {noResponseRetries: 0}}); const promise = new Promise((resolve, reject) => { stream.on('data', (response: protos.google.showcase.v1beta1.EchoResponse) => { resolve(response); diff --git a/baselines/showcase-legacy-esm/package.json b/baselines/showcase-legacy-esm/package.json index 924af0a3b..aa843e8a0 100644 --- a/baselines/showcase-legacy-esm/package.json +++ b/baselines/showcase-legacy-esm/package.json @@ -63,7 +63,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.2.1" + "google-gax": "^4.3.0" }, "devDependencies": { "@babel/cli": "^7.23.0", diff --git a/baselines/showcase-legacy/package.json b/baselines/showcase-legacy/package.json index 9e997d6cb..c49208aa6 100644 --- a/baselines/showcase-legacy/package.json +++ b/baselines/showcase-legacy/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.2.1" + "google-gax": "^4.3.0" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/showcase-legacy/src/v1beta1/echo_client.ts.baseline b/baselines/showcase-legacy/src/v1beta1/echo_client.ts.baseline index 7777e4829..8da914864 100644 --- a/baselines/showcase-legacy/src/v1beta1/echo_client.ts.baseline +++ b/baselines/showcase-legacy/src/v1beta1/echo_client.ts.baseline @@ -158,9 +158,9 @@ export class EchoClient { // Some of the methods on this service provide streaming responses. // Provide descriptors for these. this.descriptors.stream = { - expand: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.SERVER_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ true), - collect: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.CLIENT_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ true), - chat: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.BIDI_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ true) + expand: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.SERVER_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ false), + collect: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.CLIENT_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ false), + chat: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.BIDI_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ false) }; let protoFilesRoot = new this._gaxModule.GoogleProtoFilesRoot(); diff --git a/baselines/showcase-legacy/test/gapic_echo_v1beta1.ts.baseline b/baselines/showcase-legacy/test/gapic_echo_v1beta1.ts.baseline index bf95772fc..ec912d6d4 100644 --- a/baselines/showcase-legacy/test/gapic_echo_v1beta1.ts.baseline +++ b/baselines/showcase-legacy/test/gapic_echo_v1beta1.ts.baseline @@ -660,7 +660,7 @@ describe('v1beta1.EchoClient', () => { ); const expectedError = new Error('The client has already been closed.'); client.close(); - const stream = client.expand(request, {retry: {shouldRetryFn: () => { return false; }}}); + const stream = client.expand(request, {retryRequestOptions: {noResponseRetries: 0}}); const promise = new Promise((resolve, reject) => { stream.on('data', (response: protos.google.showcase.v1beta1.EchoResponse) => { resolve(response); diff --git a/baselines/showcase/package.json b/baselines/showcase/package.json index dfcb52082..8d7ba29e7 100644 --- a/baselines/showcase/package.json +++ b/baselines/showcase/package.json @@ -40,7 +40,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.2.1" + "google-gax": "^4.3.0" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/showcase/src/v1beta1/echo_client.ts.baseline b/baselines/showcase/src/v1beta1/echo_client.ts.baseline index 99d7e1dcc..6bd93f949 100644 --- a/baselines/showcase/src/v1beta1/echo_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/echo_client.ts.baseline @@ -219,9 +219,9 @@ export class EchoClient { // Some of the methods on this service provide streaming responses. // Provide descriptors for these. this.descriptors.stream = { - expand: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.SERVER_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ true), - collect: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.CLIENT_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ true), - chat: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.BIDI_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ true) + expand: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.SERVER_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ false), + collect: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.CLIENT_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ false), + chat: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.BIDI_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ false) }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); diff --git a/baselines/showcase/src/v1beta1/messaging_client.ts.baseline b/baselines/showcase/src/v1beta1/messaging_client.ts.baseline index 1bb6bf685..75981bf70 100644 --- a/baselines/showcase/src/v1beta1/messaging_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/messaging_client.ts.baseline @@ -218,9 +218,9 @@ export class MessagingClient { // Some of the methods on this service provide streaming responses. // Provide descriptors for these. this.descriptors.stream = { - streamBlurbs: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.SERVER_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ true), - sendBlurbs: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.CLIENT_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ true), - connect: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.BIDI_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ true) + streamBlurbs: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.SERVER_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ false), + sendBlurbs: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.CLIENT_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ false), + connect: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.BIDI_STREAMING, !!opts.fallback, /* gaxStreamingRetries: */ false) }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); diff --git a/baselines/showcase/test/gapic_echo_v1beta1.ts.baseline b/baselines/showcase/test/gapic_echo_v1beta1.ts.baseline index 65a1f0a63..87c38706b 100644 --- a/baselines/showcase/test/gapic_echo_v1beta1.ts.baseline +++ b/baselines/showcase/test/gapic_echo_v1beta1.ts.baseline @@ -679,7 +679,7 @@ describe('v1beta1.EchoClient', () => { ); const expectedError = new Error('The client has already been closed.'); client.close(); - const stream = client.expand(request, {retry: {shouldRetryFn: () => { return false; }}}); + const stream = client.expand(request, {retryRequestOptions: {noResponseRetries: 0}}); const promise = new Promise((resolve, reject) => { stream.on('data', (response: protos.google.showcase.v1beta1.EchoResponse) => { resolve(response); diff --git a/baselines/showcase/test/gapic_messaging_v1beta1.ts.baseline b/baselines/showcase/test/gapic_messaging_v1beta1.ts.baseline index 321eb68df..d0b8a7720 100644 --- a/baselines/showcase/test/gapic_messaging_v1beta1.ts.baseline +++ b/baselines/showcase/test/gapic_messaging_v1beta1.ts.baseline @@ -1321,7 +1321,7 @@ describe('v1beta1.MessagingClient', () => { request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - const stream = client.streamBlurbs(request, {retry: {shouldRetryFn: () => { return false; }}}); + const stream = client.streamBlurbs(request, {retryRequestOptions: {noResponseRetries: 0}}); const promise = new Promise((resolve, reject) => { stream.on('data', (response: protos.google.showcase.v1beta1.StreamBlurbsResponse) => { resolve(response); diff --git a/baselines/tasks-esm/package.json b/baselines/tasks-esm/package.json index 9bbd227d4..c4bdeaa6d 100644 --- a/baselines/tasks-esm/package.json +++ b/baselines/tasks-esm/package.json @@ -63,7 +63,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.2.1" + "google-gax": "^4.3.0" }, "devDependencies": { "@babel/cli": "^7.23.0", diff --git a/baselines/tasks/package.json b/baselines/tasks/package.json index 00199fe5e..18cdffe7d 100644 --- a/baselines/tasks/package.json +++ b/baselines/tasks/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.2.1" + "google-gax": "^4.3.0" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/texttospeech-esm/package.json b/baselines/texttospeech-esm/package.json index 10f5c3807..c146aae12 100644 --- a/baselines/texttospeech-esm/package.json +++ b/baselines/texttospeech-esm/package.json @@ -63,7 +63,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.2.1" + "google-gax": "^4.3.0" }, "devDependencies": { "@babel/cli": "^7.23.0", diff --git a/baselines/texttospeech/package.json b/baselines/texttospeech/package.json index 40056f64f..0156d8ccb 100644 --- a/baselines/texttospeech/package.json +++ b/baselines/texttospeech/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.2.1" + "google-gax": "^4.3.0" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/translate-esm/package.json b/baselines/translate-esm/package.json index 5e8f76c42..0b28a4244 100644 --- a/baselines/translate-esm/package.json +++ b/baselines/translate-esm/package.json @@ -63,7 +63,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.2.1" + "google-gax": "^4.3.0" }, "devDependencies": { "@babel/cli": "^7.23.0", diff --git a/baselines/translate/package.json b/baselines/translate/package.json index 8b6d91e28..6b483c182 100644 --- a/baselines/translate/package.json +++ b/baselines/translate/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.2.1" + "google-gax": "^4.3.0" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/videointelligence-esm/package.json b/baselines/videointelligence-esm/package.json index 6ffaff49a..c7eeb2080 100644 --- a/baselines/videointelligence-esm/package.json +++ b/baselines/videointelligence-esm/package.json @@ -63,7 +63,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.2.1" + "google-gax": "^4.3.0" }, "devDependencies": { "@babel/cli": "^7.23.0", diff --git a/baselines/videointelligence/package.json b/baselines/videointelligence/package.json index 4db6af4f2..757d29a41 100644 --- a/baselines/videointelligence/package.json +++ b/baselines/videointelligence/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.2.1" + "google-gax": "^4.3.0" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/package.json b/package.json index 8d46eff1f..7f33e4e2a 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,7 @@ "@types/yargs": "^17.0.32", "espower-typescript": "^10.0.1", "gapic-tools": "^0.3.0", - "google-gax": "^4.2.1", + "google-gax": "^4.3.0", "gts": "^5.2.0", "mocha": "^10.2.0", "typescript": "5.1.6" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c4839fcb6..787e9389f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -62,8 +62,8 @@ devDependencies: specifier: ^0.3.0 version: 0.3.0(protobufjs@7.2.6) google-gax: - specifier: ^4.2.1 - version: 4.2.1 + specifier: ^4.3.0 + version: 4.3.0 gts: specifier: ^5.2.0 version: 5.2.0(typescript@5.1.6) @@ -1774,7 +1774,7 @@ packages: dependencies: '@babel/core': 7.23.7 '@babel/traverse': 7.23.7 - google-gax: 4.2.1 + google-gax: 4.3.0 google-proto-files: 4.1.0 protobufjs-cli: 1.1.2(protobufjs@7.2.6) rimraf: 5.0.5 @@ -1929,8 +1929,8 @@ packages: - supports-color dev: true - /google-gax@4.2.1: - resolution: {integrity: sha512-Yal4oh2GMHBsFX8zunxwaRuD2bP7rrA7Oz/ooXK8uOMGnP71jNVRl6fUv8chYLkPTqEzBSij9TZw49B86SDVTg==} + /google-gax@4.3.0: + resolution: {integrity: sha512-SWHX72gbccNfpPoeTkNmZJxmLyKWeLr0+5Ch6qtrf4oAN8KFXnyXe5EixatILnJWufM3L59MRZ4hSJWVJ3IQqw==} engines: {node: '>=14'} dependencies: '@grpc/grpc-js': 1.9.14 diff --git a/templates/cjs/typescript_gapic/package.json b/templates/cjs/typescript_gapic/package.json index b8b8d6d45..17d6b5227 100644 --- a/templates/cjs/typescript_gapic/package.json +++ b/templates/cjs/typescript_gapic/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.2.1" + "google-gax": "^4.3.0" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/templates/cjs/typescript_gapic/src/$version/$service_client.ts.njk b/templates/cjs/typescript_gapic/src/$version/$service_client.ts.njk index edb6d511d..58c88a27d 100644 --- a/templates/cjs/typescript_gapic/src/$version/$service_client.ts.njk +++ b/templates/cjs/typescript_gapic/src/$version/$service_client.ts.njk @@ -288,7 +288,7 @@ export class {{ service.name }}Client { {%- set streamingJoiner = joiner() %} {%- for method in service.streaming %} {{- streamingJoiner() }} - {{ method.name.toCamelCase() }}: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.{{ method.streaming }}, !!opts.fallback, /* gaxStreamingRetries: */ true) + {{ method.name.toCamelCase() }}: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.{{ method.streaming }}, !!opts.fallback, /* gaxStreamingRetries: */ false) {%- endfor %} }; {%- endif %} diff --git a/templates/cjs/typescript_gapic/test/gapic_$service_$version.ts.njk b/templates/cjs/typescript_gapic/test/gapic_$service_$version.ts.njk index 10ef21f47..7ba3e077d 100644 --- a/templates/cjs/typescript_gapic/test/gapic_$service_$version.ts.njk +++ b/templates/cjs/typescript_gapic/test/gapic_$service_$version.ts.njk @@ -580,7 +580,7 @@ describe('{{ api.naming.version }}.{{ service.name }}Client', () => { {{ util.initRequestWithHeaderParam(method, skipExpectedVariable='true') }} const expectedError = new Error('The client has already been closed.'); client.close(); - const stream = client.{{ method.name.toCamelCase() }}(request, {retry: {shouldRetryFn: () => { return false; }}}); + const stream = client.{{ method.name.toCamelCase() }}(request, {retryRequestOptions: {noResponseRetries: 0}}); const promise = new Promise((resolve, reject) => { stream.on('data', (response: protos{{ method.outputInterface }}) => { resolve(response); diff --git a/templates/esm/typescript_gapic/esm/src/$version/$service_client.ts.njk b/templates/esm/typescript_gapic/esm/src/$version/$service_client.ts.njk index 7592938ad..888565eb4 100644 --- a/templates/esm/typescript_gapic/esm/src/$version/$service_client.ts.njk +++ b/templates/esm/typescript_gapic/esm/src/$version/$service_client.ts.njk @@ -296,7 +296,7 @@ export class {{ service.name }}Client { {%- set streamingJoiner = joiner() %} {%- for method in service.streaming %} {{- streamingJoiner() }} - {{ method.name.toCamelCase() }}: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.{{ method.streaming }}, !!opts.fallback, /* gaxStreamingRetries: */ true) + {{ method.name.toCamelCase() }}: new this._gaxModule.StreamDescriptor(this._gaxModule.StreamType.{{ method.streaming }}, !!opts.fallback, /* gaxStreamingRetries: */ false) {%- endfor %} }; {%- endif %} diff --git a/templates/esm/typescript_gapic/esm/test/gapic_$service_$version.ts.njk b/templates/esm/typescript_gapic/esm/test/gapic_$service_$version.ts.njk index 20b6e28a9..c51cf512c 100644 --- a/templates/esm/typescript_gapic/esm/test/gapic_$service_$version.ts.njk +++ b/templates/esm/typescript_gapic/esm/test/gapic_$service_$version.ts.njk @@ -588,7 +588,7 @@ describe('{{ api.naming.version }}.{{ service.name }}Client', () => { {{ util.initRequestWithHeaderParam(method, skipExpectedVariable='true') }} const expectedError = new Error('The client has already been closed.'); client.close(); - const stream = client.{{ method.name.toCamelCase() }}(request, {retry: {shouldRetryFn: () => { return false; }}}); + const stream = client.{{ method.name.toCamelCase() }}(request, {retryRequestOptions: {noResponseRetries: 0}}); const promise = new Promise((resolve, reject) => { stream.on('data', (response: protos{{ method.outputInterface }}) => { resolve(response); diff --git a/templates/esm/typescript_gapic/package.json b/templates/esm/typescript_gapic/package.json index 0f594857f..036ad9dac 100644 --- a/templates/esm/typescript_gapic/package.json +++ b/templates/esm/typescript_gapic/package.json @@ -64,7 +64,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.2.1" + "google-gax": "^4.3.0" }, "devDependencies": { "@babel/cli": "^7.23.0", From 74149e1228f5403134ad67c29885f68076ade253 Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Fri, 2 Feb 2024 11:44:48 -0800 Subject: [PATCH 12/35] feat: implement support for Trusted Private Cloud (#1529) * feat: support Trusted Private Cloud * fix: make showcase work, add generated tests --- .../src/v1/asset_service_client.ts.baseline | 45 ++++++++++++++-- .../test/gapic_asset_service_v1.ts.baseline | 48 +++++++++++++++-- .../src/v1/asset_service_client.ts.baseline | 45 ++++++++++++++-- .../test/gapic_asset_service_v1.ts.baseline | 48 +++++++++++++++-- .../big_query_storage_client.ts.baseline | 45 ++++++++++++++-- ...apic_big_query_storage_v1beta1.ts.baseline | 48 +++++++++++++++-- .../big_query_storage_client.ts.baseline | 45 ++++++++++++++-- ...apic_big_query_storage_v1beta1.ts.baseline | 48 +++++++++++++++-- .../esm/src/v1/addresses_client.ts.baseline | 45 ++++++++++++++-- .../v1/region_operations_client.ts.baseline | 45 ++++++++++++++-- .../esm/test/gapic_addresses_v1.ts.baseline | 48 +++++++++++++++-- .../gapic_region_operations_v1.ts.baseline | 48 +++++++++++++++-- .../src/v1/addresses_client.ts.baseline | 45 ++++++++++++++-- .../v1/region_operations_client.ts.baseline | 45 ++++++++++++++-- .../test/gapic_addresses_v1.ts.baseline | 48 +++++++++++++++-- .../gapic_region_operations_v1.ts.baseline | 48 +++++++++++++++-- .../v1/deprecated_service_client.ts.baseline | 45 ++++++++++++++-- .../gapic_deprecated_service_v1.ts.baseline | 37 +++++++++++-- .../v1/deprecated_service_client.ts.baseline | 45 ++++++++++++++-- .../gapic_deprecated_service_v1.ts.baseline | 37 +++++++++++-- .../src/v1beta1/compliance_client.ts.baseline | 45 ++++++++++++++-- .../esm/src/v1beta1/echo_client.ts.baseline | 45 ++++++++++++++-- .../src/v1beta1/identity_client.ts.baseline | 45 ++++++++++++++-- .../src/v1beta1/messaging_client.ts.baseline | 45 ++++++++++++++-- .../sequence_service_client.ts.baseline | 45 ++++++++++++++-- .../src/v1beta1/testing_client.ts.baseline | 45 ++++++++++++++-- .../test/gapic_compliance_v1beta1.ts.baseline | 37 +++++++++++-- .../esm/test/gapic_echo_v1beta1.ts.baseline | 37 +++++++++++-- .../test/gapic_identity_v1beta1.ts.baseline | 37 +++++++++++-- .../test/gapic_messaging_v1beta1.ts.baseline | 37 +++++++++++-- ...gapic_sequence_service_v1beta1.ts.baseline | 37 +++++++++++-- .../test/gapic_testing_v1beta1.ts.baseline | 37 +++++++++++-- .../src/v1beta1/compliance_client.ts.baseline | 45 ++++++++++++++-- .../src/v1beta1/echo_client.ts.baseline | 45 ++++++++++++++-- .../src/v1beta1/identity_client.ts.baseline | 45 ++++++++++++++-- .../src/v1beta1/messaging_client.ts.baseline | 45 ++++++++++++++-- .../sequence_service_client.ts.baseline | 45 ++++++++++++++-- .../src/v1beta1/testing_client.ts.baseline | 45 ++++++++++++++-- .../test/gapic_compliance_v1beta1.ts.baseline | 37 +++++++++++-- .../test/gapic_echo_v1beta1.ts.baseline | 37 +++++++++++-- .../test/gapic_identity_v1beta1.ts.baseline | 37 +++++++++++-- .../test/gapic_messaging_v1beta1.ts.baseline | 37 +++++++++++-- ...gapic_sequence_service_v1beta1.ts.baseline | 37 +++++++++++-- .../test/gapic_testing_v1beta1.ts.baseline | 37 +++++++++++-- .../esm/src/v2/dlp_service_client.ts.baseline | 45 ++++++++++++++-- .../esm/test/gapic_dlp_service_v2.ts.baseline | 48 +++++++++++++++-- .../dlp/src/v2/dlp_service_client.ts.baseline | 45 ++++++++++++++-- .../dlp/test/gapic_dlp_service_v2.ts.baseline | 48 +++++++++++++++-- .../key_management_service_client.ts.baseline | 45 ++++++++++++++-- ...apic_key_management_service_v1.ts.baseline | 48 +++++++++++++++-- .../key_management_service_client.ts.baseline | 45 ++++++++++++++-- ...apic_key_management_service_v1.ts.baseline | 48 +++++++++++++++-- .../v2/config_service_v2_client.ts.baseline | 45 ++++++++++++++-- .../v2/logging_service_v2_client.ts.baseline | 45 ++++++++++++++-- .../v2/metrics_service_v2_client.ts.baseline | 45 ++++++++++++++-- .../gapic_config_service_v2_v2.ts.baseline | 48 +++++++++++++++-- .../gapic_logging_service_v2_v2.ts.baseline | 48 +++++++++++++++-- .../gapic_metrics_service_v2_v2.ts.baseline | 48 +++++++++++++++-- .../v2/config_service_v2_client.ts.baseline | 45 ++++++++++++++-- .../v2/logging_service_v2_client.ts.baseline | 45 ++++++++++++++-- .../v2/metrics_service_v2_client.ts.baseline | 45 ++++++++++++++-- .../gapic_config_service_v2_v2.ts.baseline | 48 +++++++++++++++-- .../gapic_logging_service_v2_v2.ts.baseline | 48 +++++++++++++++-- .../gapic_metrics_service_v2_v2.ts.baseline | 48 +++++++++++++++-- .../alert_policy_service_client.ts.baseline | 45 ++++++++++++++-- .../src/v3/group_service_client.ts.baseline | 45 ++++++++++++++-- .../src/v3/metric_service_client.ts.baseline | 45 ++++++++++++++-- ...ication_channel_service_client.ts.baseline | 45 ++++++++++++++-- ...vice_monitoring_service_client.ts.baseline | 45 ++++++++++++++-- .../uptime_check_service_client.ts.baseline | 45 ++++++++++++++-- .../gapic_alert_policy_service_v3.ts.baseline | 48 +++++++++++++++-- .../test/gapic_group_service_v3.ts.baseline | 48 +++++++++++++++-- .../test/gapic_metric_service_v3.ts.baseline | 48 +++++++++++++++-- ...otification_channel_service_v3.ts.baseline | 48 +++++++++++++++-- ..._service_monitoring_service_v3.ts.baseline | 48 +++++++++++++++-- .../gapic_uptime_check_service_v3.ts.baseline | 48 +++++++++++++++-- .../alert_policy_service_client.ts.baseline | 45 ++++++++++++++-- .../src/v3/group_service_client.ts.baseline | 45 ++++++++++++++-- .../src/v3/metric_service_client.ts.baseline | 45 ++++++++++++++-- ...ication_channel_service_client.ts.baseline | 45 ++++++++++++++-- ...vice_monitoring_service_client.ts.baseline | 45 ++++++++++++++-- .../uptime_check_service_client.ts.baseline | 45 ++++++++++++++-- .../gapic_alert_policy_service_v3.ts.baseline | 48 +++++++++++++++-- .../test/gapic_group_service_v3.ts.baseline | 48 +++++++++++++++-- .../test/gapic_metric_service_v3.ts.baseline | 48 +++++++++++++++-- ...otification_channel_service_v3.ts.baseline | 48 +++++++++++++++-- ..._service_monitoring_service_v3.ts.baseline | 48 +++++++++++++++-- .../gapic_uptime_check_service_v3.ts.baseline | 48 +++++++++++++++-- .../esm/src/v1beta1/naming_client.ts.baseline | 45 ++++++++++++++-- .../esm/test/gapic_naming_v1beta1.ts.baseline | 37 +++++++++++-- .../src/v1beta1/naming_client.ts.baseline | 45 ++++++++++++++-- .../test/gapic_naming_v1beta1.ts.baseline | 37 +++++++++++-- .../v1beta1/cloud_redis_client.ts.baseline | 45 ++++++++++++++-- .../gapic_cloud_redis_v1beta1.ts.baseline | 48 +++++++++++++++-- .../v1beta1/cloud_redis_client.ts.baseline | 45 ++++++++++++++-- .../gapic_cloud_redis_v1beta1.ts.baseline | 48 +++++++++++++++-- .../src/v1/test_service_client.ts.baseline | 45 ++++++++++++++-- .../test/gapic_test_service_v1.ts.baseline | 37 +++++++++++-- .../src/v1/test_service_client.ts.baseline | 45 ++++++++++++++-- .../test/gapic_test_service_v1.ts.baseline | 37 +++++++++++-- .../src/v1beta1/compliance_client.ts.baseline | 45 ++++++++++++++-- .../esm/src/v1beta1/echo_client.ts.baseline | 45 ++++++++++++++-- .../src/v1beta1/identity_client.ts.baseline | 45 ++++++++++++++-- .../src/v1beta1/messaging_client.ts.baseline | 45 ++++++++++++++-- .../sequence_service_client.ts.baseline | 45 ++++++++++++++-- .../src/v1beta1/testing_client.ts.baseline | 45 ++++++++++++++-- .../test/gapic_compliance_v1beta1.ts.baseline | 37 +++++++++++-- .../esm/test/gapic_echo_v1beta1.ts.baseline | 37 +++++++++++-- .../test/gapic_identity_v1beta1.ts.baseline | 37 +++++++++++-- .../test/gapic_messaging_v1beta1.ts.baseline | 37 +++++++++++-- ...gapic_sequence_service_v1beta1.ts.baseline | 37 +++++++++++-- .../test/gapic_testing_v1beta1.ts.baseline | 37 +++++++++++-- .../esm/src/v1beta1/echo_client.ts.baseline | 45 ++++++++++++++-- .../esm/test/gapic_echo_v1beta1.ts.baseline | 37 +++++++++++-- .../src/v1beta1/echo_client.ts.baseline | 45 ++++++++++++++-- .../test/gapic_echo_v1beta1.ts.baseline | 37 +++++++++++-- .../src/v1beta1/compliance_client.ts.baseline | 45 ++++++++++++++-- .../src/v1beta1/echo_client.ts.baseline | 45 ++++++++++++++-- .../src/v1beta1/identity_client.ts.baseline | 45 ++++++++++++++-- .../src/v1beta1/messaging_client.ts.baseline | 45 ++++++++++++++-- .../sequence_service_client.ts.baseline | 45 ++++++++++++++-- .../src/v1beta1/testing_client.ts.baseline | 45 ++++++++++++++-- .../test/gapic_compliance_v1beta1.ts.baseline | 37 +++++++++++-- .../test/gapic_echo_v1beta1.ts.baseline | 37 +++++++++++-- .../test/gapic_identity_v1beta1.ts.baseline | 37 +++++++++++-- .../test/gapic_messaging_v1beta1.ts.baseline | 37 +++++++++++-- ...gapic_sequence_service_v1beta1.ts.baseline | 37 +++++++++++-- .../test/gapic_testing_v1beta1.ts.baseline | 37 +++++++++++-- .../esm/src/v2/cloud_tasks_client.ts.baseline | 45 ++++++++++++++-- .../esm/test/gapic_cloud_tasks_v2.ts.baseline | 48 +++++++++++++++-- .../src/v2/cloud_tasks_client.ts.baseline | 45 ++++++++++++++-- .../test/gapic_cloud_tasks_v2.ts.baseline | 48 +++++++++++++++-- .../src/v1/text_to_speech_client.ts.baseline | 45 ++++++++++++++-- .../test/gapic_text_to_speech_v1.ts.baseline | 48 +++++++++++++++-- .../src/v1/text_to_speech_client.ts.baseline | 45 ++++++++++++++-- .../test/gapic_text_to_speech_v1.ts.baseline | 48 +++++++++++++++-- .../translation_service_client.ts.baseline | 45 ++++++++++++++-- ...ic_translation_service_v3beta1.ts.baseline | 48 +++++++++++++++-- .../translation_service_client.ts.baseline | 45 ++++++++++++++-- ...ic_translation_service_v3beta1.ts.baseline | 48 +++++++++++++++-- ...eo_intelligence_service_client.ts.baseline | 45 ++++++++++++++-- ..._video_intelligence_service_v1.ts.baseline | 48 +++++++++++++++-- ...eo_intelligence_service_client.ts.baseline | 45 ++++++++++++++-- ..._video_intelligence_service_v1.ts.baseline | 48 +++++++++++++++-- .../src/$version/$service_client.ts.njk | 49 +++++++++++++++-- .../test/gapic_$service_$version.ts.njk | 52 +++++++++++++++++-- .../esm/src/$version/$service_client.ts.njk | 49 +++++++++++++++-- .../esm/test/gapic_$service_$version.ts.njk | 52 +++++++++++++++++-- tsconfig.json | 3 +- typescript/src/schema/api.ts | 2 + 150 files changed, 5884 insertions(+), 667 deletions(-) diff --git a/baselines/asset-esm/esm/src/v1/asset_service_client.ts.baseline b/baselines/asset-esm/esm/src/v1/asset_service_client.ts.baseline index 357000cd2..34d0ac852 100644 --- a/baselines/asset-esm/esm/src/v1/asset_service_client.ts.baseline +++ b/baselines/asset-esm/esm/src/v1/asset_service_client.ts.baseline @@ -51,6 +51,8 @@ export class AssetServiceClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -107,7 +109,12 @@ export class AssetServiceClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof AssetServiceClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'cloudasset.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -115,7 +122,7 @@ export class AssetServiceClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -140,10 +147,10 @@ export class AssetServiceClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -291,21 +298,49 @@ export class AssetServiceClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'cloudasset.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'cloudasset.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/asset-esm/esm/test/gapic_asset_service_v1.ts.baseline b/baselines/asset-esm/esm/test/gapic_asset_service_v1.ts.baseline index 090aa977a..141b19508 100644 --- a/baselines/asset-esm/esm/test/gapic_asset_service_v1.ts.baseline +++ b/baselines/asset-esm/esm/test/gapic_asset_service_v1.ts.baseline @@ -80,13 +80,53 @@ function stubLongRunningCallWithCallback(response?: ResponseType, describe('v1.AssetServiceClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = assetserviceModule.v1.AssetServiceClient.servicePath; - assert(servicePath); + const client = new assetserviceModule.v1.AssetServiceClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'cloudasset.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = assetserviceModule.v1.AssetServiceClient.apiEndpoint; - assert(apiEndpoint); + const client = new assetserviceModule.v1.AssetServiceClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'cloudasset.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new assetserviceModule.v1.AssetServiceClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = assetserviceModule.v1.AssetServiceClient.servicePath; + assert.strictEqual(servicePath, 'cloudasset.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = assetserviceModule.v1.AssetServiceClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'cloudasset.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new assetserviceModule.v1.AssetServiceClient({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'cloudasset.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new assetserviceModule.v1.AssetServiceClient({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'cloudasset.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new assetserviceModule.v1.AssetServiceClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/asset/src/v1/asset_service_client.ts.baseline b/baselines/asset/src/v1/asset_service_client.ts.baseline index 2bf6230ee..8f2383e45 100644 --- a/baselines/asset/src/v1/asset_service_client.ts.baseline +++ b/baselines/asset/src/v1/asset_service_client.ts.baseline @@ -44,6 +44,8 @@ export class AssetServiceClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -99,7 +101,12 @@ export class AssetServiceClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof AssetServiceClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'cloudasset.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -107,7 +114,7 @@ export class AssetServiceClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -132,10 +139,10 @@ export class AssetServiceClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -275,21 +282,49 @@ export class AssetServiceClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'cloudasset.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'cloudasset.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/asset/test/gapic_asset_service_v1.ts.baseline b/baselines/asset/test/gapic_asset_service_v1.ts.baseline index c99876d59..66a6ed24e 100644 --- a/baselines/asset/test/gapic_asset_service_v1.ts.baseline +++ b/baselines/asset/test/gapic_asset_service_v1.ts.baseline @@ -71,13 +71,53 @@ function stubLongRunningCallWithCallback(response?: ResponseType, describe('v1.AssetServiceClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = assetserviceModule.v1.AssetServiceClient.servicePath; - assert(servicePath); + const client = new assetserviceModule.v1.AssetServiceClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'cloudasset.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = assetserviceModule.v1.AssetServiceClient.apiEndpoint; - assert(apiEndpoint); + const client = new assetserviceModule.v1.AssetServiceClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'cloudasset.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new assetserviceModule.v1.AssetServiceClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = assetserviceModule.v1.AssetServiceClient.servicePath; + assert.strictEqual(servicePath, 'cloudasset.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = assetserviceModule.v1.AssetServiceClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'cloudasset.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new assetserviceModule.v1.AssetServiceClient({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'cloudasset.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new assetserviceModule.v1.AssetServiceClient({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'cloudasset.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new assetserviceModule.v1.AssetServiceClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/bigquery-storage-esm/esm/src/v1beta1/big_query_storage_client.ts.baseline b/baselines/bigquery-storage-esm/esm/src/v1beta1/big_query_storage_client.ts.baseline index 1e4929097..bdf95414e 100644 --- a/baselines/bigquery-storage-esm/esm/src/v1beta1/big_query_storage_client.ts.baseline +++ b/baselines/bigquery-storage-esm/esm/src/v1beta1/big_query_storage_client.ts.baseline @@ -53,6 +53,8 @@ export class BigQueryStorageClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -108,7 +110,12 @@ export class BigQueryStorageClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof BigQueryStorageClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'bigquerystorage.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -116,7 +123,7 @@ export class BigQueryStorageClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -141,10 +148,10 @@ export class BigQueryStorageClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -277,21 +284,49 @@ export class BigQueryStorageClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'bigquerystorage.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'bigquerystorage.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/bigquery-storage-esm/esm/test/gapic_big_query_storage_v1beta1.ts.baseline b/baselines/bigquery-storage-esm/esm/test/gapic_big_query_storage_v1beta1.ts.baseline index 368f0199c..2c0d8bd2f 100644 --- a/baselines/bigquery-storage-esm/esm/test/gapic_big_query_storage_v1beta1.ts.baseline +++ b/baselines/bigquery-storage-esm/esm/test/gapic_big_query_storage_v1beta1.ts.baseline @@ -78,13 +78,53 @@ function stubServerStreamingCall(response?: ResponseType, error?: describe('v1beta1.BigQueryStorageClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = bigquerystorageModule.v1beta1.BigQueryStorageClient.servicePath; - assert(servicePath); + const client = new bigquerystorageModule.v1beta1.BigQueryStorageClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'bigquerystorage.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = bigquerystorageModule.v1beta1.BigQueryStorageClient.apiEndpoint; - assert(apiEndpoint); + const client = new bigquerystorageModule.v1beta1.BigQueryStorageClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'bigquerystorage.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new bigquerystorageModule.v1beta1.BigQueryStorageClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = bigquerystorageModule.v1beta1.BigQueryStorageClient.servicePath; + assert.strictEqual(servicePath, 'bigquerystorage.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = bigquerystorageModule.v1beta1.BigQueryStorageClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'bigquerystorage.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new bigquerystorageModule.v1beta1.BigQueryStorageClient({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'bigquerystorage.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new bigquerystorageModule.v1beta1.BigQueryStorageClient({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'bigquerystorage.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new bigquerystorageModule.v1beta1.BigQueryStorageClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/bigquery-storage/src/v1beta1/big_query_storage_client.ts.baseline b/baselines/bigquery-storage/src/v1beta1/big_query_storage_client.ts.baseline index 621286794..3bba9ec98 100644 --- a/baselines/bigquery-storage/src/v1beta1/big_query_storage_client.ts.baseline +++ b/baselines/bigquery-storage/src/v1beta1/big_query_storage_client.ts.baseline @@ -46,6 +46,8 @@ export class BigQueryStorageClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -100,7 +102,12 @@ export class BigQueryStorageClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof BigQueryStorageClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'bigquerystorage.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -108,7 +115,7 @@ export class BigQueryStorageClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -133,10 +140,10 @@ export class BigQueryStorageClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -261,21 +268,49 @@ export class BigQueryStorageClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'bigquerystorage.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'bigquerystorage.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/bigquery-storage/test/gapic_big_query_storage_v1beta1.ts.baseline b/baselines/bigquery-storage/test/gapic_big_query_storage_v1beta1.ts.baseline index de85420df..05fd294ac 100644 --- a/baselines/bigquery-storage/test/gapic_big_query_storage_v1beta1.ts.baseline +++ b/baselines/bigquery-storage/test/gapic_big_query_storage_v1beta1.ts.baseline @@ -69,13 +69,53 @@ function stubServerStreamingCall(response?: ResponseType, error?: describe('v1beta1.BigQueryStorageClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = bigquerystorageModule.v1beta1.BigQueryStorageClient.servicePath; - assert(servicePath); + const client = new bigquerystorageModule.v1beta1.BigQueryStorageClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'bigquerystorage.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = bigquerystorageModule.v1beta1.BigQueryStorageClient.apiEndpoint; - assert(apiEndpoint); + const client = new bigquerystorageModule.v1beta1.BigQueryStorageClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'bigquerystorage.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new bigquerystorageModule.v1beta1.BigQueryStorageClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = bigquerystorageModule.v1beta1.BigQueryStorageClient.servicePath; + assert.strictEqual(servicePath, 'bigquerystorage.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = bigquerystorageModule.v1beta1.BigQueryStorageClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'bigquerystorage.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new bigquerystorageModule.v1beta1.BigQueryStorageClient({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'bigquerystorage.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new bigquerystorageModule.v1beta1.BigQueryStorageClient({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'bigquerystorage.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new bigquerystorageModule.v1beta1.BigQueryStorageClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/compute-esm/esm/src/v1/addresses_client.ts.baseline b/baselines/compute-esm/esm/src/v1/addresses_client.ts.baseline index 242872d5f..0fcb62688 100644 --- a/baselines/compute-esm/esm/src/v1/addresses_client.ts.baseline +++ b/baselines/compute-esm/esm/src/v1/addresses_client.ts.baseline @@ -54,6 +54,8 @@ export class AddressesClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -108,7 +110,12 @@ export class AddressesClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof AddressesClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'compute.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -122,7 +129,7 @@ export class AddressesClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -144,10 +151,10 @@ export class AddressesClient { this.auth = (this._gaxGrpc.auth as gax.GoogleAuth); // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -265,21 +272,49 @@ export class AddressesClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'compute.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'compute.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/compute-esm/esm/src/v1/region_operations_client.ts.baseline b/baselines/compute-esm/esm/src/v1/region_operations_client.ts.baseline index 0ced08dfe..9fcf67b84 100644 --- a/baselines/compute-esm/esm/src/v1/region_operations_client.ts.baseline +++ b/baselines/compute-esm/esm/src/v1/region_operations_client.ts.baseline @@ -51,6 +51,8 @@ export class RegionOperationsClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -105,7 +107,12 @@ export class RegionOperationsClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof RegionOperationsClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'compute.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -119,7 +126,7 @@ export class RegionOperationsClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -141,10 +148,10 @@ export class RegionOperationsClient { this.auth = (this._gaxGrpc.auth as gax.GoogleAuth); // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -251,21 +258,49 @@ export class RegionOperationsClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'compute.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'compute.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/compute-esm/esm/test/gapic_addresses_v1.ts.baseline b/baselines/compute-esm/esm/test/gapic_addresses_v1.ts.baseline index 9ebb2a03f..03770d150 100644 --- a/baselines/compute-esm/esm/test/gapic_addresses_v1.ts.baseline +++ b/baselines/compute-esm/esm/test/gapic_addresses_v1.ts.baseline @@ -122,13 +122,53 @@ describe('v1.AddressesClient', () => { }); describe('Common methods', () => { it('has servicePath', () => { - const servicePath = addressesModule.v1.AddressesClient.servicePath; - assert(servicePath); + const client = new addressesModule.v1.AddressesClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'compute.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = addressesModule.v1.AddressesClient.apiEndpoint; - assert(apiEndpoint); + const client = new addressesModule.v1.AddressesClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new addressesModule.v1.AddressesClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = addressesModule.v1.AddressesClient.servicePath; + assert.strictEqual(servicePath, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = addressesModule.v1.AddressesClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new addressesModule.v1.AddressesClient({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new addressesModule.v1.AddressesClient({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new addressesModule.v1.AddressesClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/compute-esm/esm/test/gapic_region_operations_v1.ts.baseline b/baselines/compute-esm/esm/test/gapic_region_operations_v1.ts.baseline index ba81ffa78..19e525116 100644 --- a/baselines/compute-esm/esm/test/gapic_region_operations_v1.ts.baseline +++ b/baselines/compute-esm/esm/test/gapic_region_operations_v1.ts.baseline @@ -75,13 +75,53 @@ describe('v1.RegionOperationsClient', () => { }); describe('Common methods', () => { it('has servicePath', () => { - const servicePath = regionoperationsModule.v1.RegionOperationsClient.servicePath; - assert(servicePath); + const client = new regionoperationsModule.v1.RegionOperationsClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'compute.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = regionoperationsModule.v1.RegionOperationsClient.apiEndpoint; - assert(apiEndpoint); + const client = new regionoperationsModule.v1.RegionOperationsClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new regionoperationsModule.v1.RegionOperationsClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = regionoperationsModule.v1.RegionOperationsClient.servicePath; + assert.strictEqual(servicePath, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = regionoperationsModule.v1.RegionOperationsClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new regionoperationsModule.v1.RegionOperationsClient({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new regionoperationsModule.v1.RegionOperationsClient({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new regionoperationsModule.v1.RegionOperationsClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/compute/src/v1/addresses_client.ts.baseline b/baselines/compute/src/v1/addresses_client.ts.baseline index 9298a1f77..693a703e1 100644 --- a/baselines/compute/src/v1/addresses_client.ts.baseline +++ b/baselines/compute/src/v1/addresses_client.ts.baseline @@ -47,6 +47,8 @@ export class AddressesClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -100,7 +102,12 @@ export class AddressesClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof AddressesClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'compute.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -114,7 +121,7 @@ export class AddressesClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -136,10 +143,10 @@ export class AddressesClient { this.auth = (this._gaxGrpc.auth as gax.GoogleAuth); // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -249,21 +256,49 @@ export class AddressesClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'compute.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'compute.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/compute/src/v1/region_operations_client.ts.baseline b/baselines/compute/src/v1/region_operations_client.ts.baseline index 72ae8c599..05892aa4f 100644 --- a/baselines/compute/src/v1/region_operations_client.ts.baseline +++ b/baselines/compute/src/v1/region_operations_client.ts.baseline @@ -44,6 +44,8 @@ export class RegionOperationsClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -97,7 +99,12 @@ export class RegionOperationsClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof RegionOperationsClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'compute.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -111,7 +118,7 @@ export class RegionOperationsClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -133,10 +140,10 @@ export class RegionOperationsClient { this.auth = (this._gaxGrpc.auth as gax.GoogleAuth); // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -235,21 +242,49 @@ export class RegionOperationsClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'compute.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'compute.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/compute/test/gapic_addresses_v1.ts.baseline b/baselines/compute/test/gapic_addresses_v1.ts.baseline index 51fdb53b1..3e0858175 100644 --- a/baselines/compute/test/gapic_addresses_v1.ts.baseline +++ b/baselines/compute/test/gapic_addresses_v1.ts.baseline @@ -113,13 +113,53 @@ describe('v1.AddressesClient', () => { }); describe('Common methods', () => { it('has servicePath', () => { - const servicePath = addressesModule.v1.AddressesClient.servicePath; - assert(servicePath); + const client = new addressesModule.v1.AddressesClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'compute.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = addressesModule.v1.AddressesClient.apiEndpoint; - assert(apiEndpoint); + const client = new addressesModule.v1.AddressesClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new addressesModule.v1.AddressesClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = addressesModule.v1.AddressesClient.servicePath; + assert.strictEqual(servicePath, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = addressesModule.v1.AddressesClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new addressesModule.v1.AddressesClient({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new addressesModule.v1.AddressesClient({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new addressesModule.v1.AddressesClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/compute/test/gapic_region_operations_v1.ts.baseline b/baselines/compute/test/gapic_region_operations_v1.ts.baseline index d6db6b1b0..3e743f742 100644 --- a/baselines/compute/test/gapic_region_operations_v1.ts.baseline +++ b/baselines/compute/test/gapic_region_operations_v1.ts.baseline @@ -66,13 +66,53 @@ describe('v1.RegionOperationsClient', () => { }); describe('Common methods', () => { it('has servicePath', () => { - const servicePath = regionoperationsModule.v1.RegionOperationsClient.servicePath; - assert(servicePath); + const client = new regionoperationsModule.v1.RegionOperationsClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'compute.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = regionoperationsModule.v1.RegionOperationsClient.apiEndpoint; - assert(apiEndpoint); + const client = new regionoperationsModule.v1.RegionOperationsClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new regionoperationsModule.v1.RegionOperationsClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = regionoperationsModule.v1.RegionOperationsClient.servicePath; + assert.strictEqual(servicePath, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = regionoperationsModule.v1.RegionOperationsClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new regionoperationsModule.v1.RegionOperationsClient({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new regionoperationsModule.v1.RegionOperationsClient({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new regionoperationsModule.v1.RegionOperationsClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/deprecatedtest-esm/esm/src/v1/deprecated_service_client.ts.baseline b/baselines/deprecatedtest-esm/esm/src/v1/deprecated_service_client.ts.baseline index c8b89df22..3f5858fbd 100644 --- a/baselines/deprecatedtest-esm/esm/src/v1/deprecated_service_client.ts.baseline +++ b/baselines/deprecatedtest-esm/esm/src/v1/deprecated_service_client.ts.baseline @@ -53,6 +53,8 @@ export class DeprecatedServiceClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -107,7 +109,12 @@ export class DeprecatedServiceClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof DeprecatedServiceClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'localhost'; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -115,7 +122,7 @@ export class DeprecatedServiceClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -140,10 +147,10 @@ export class DeprecatedServiceClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -252,21 +259,49 @@ export class DeprecatedServiceClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/deprecatedtest-esm/esm/test/gapic_deprecated_service_v1.ts.baseline b/baselines/deprecatedtest-esm/esm/test/gapic_deprecated_service_v1.ts.baseline index b51ccfbb9..dd5f8c901 100644 --- a/baselines/deprecatedtest-esm/esm/test/gapic_deprecated_service_v1.ts.baseline +++ b/baselines/deprecatedtest-esm/esm/test/gapic_deprecated_service_v1.ts.baseline @@ -64,13 +64,42 @@ function stubSimpleCallWithCallback(response?: ResponseType, error describe('v1.DeprecatedServiceClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = deprecatedserviceModule.v1.DeprecatedServiceClient.servicePath; - assert(servicePath); + const client = new deprecatedserviceModule.v1.DeprecatedServiceClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'localhost'); }); it('has apiEndpoint', () => { - const apiEndpoint = deprecatedserviceModule.v1.DeprecatedServiceClient.apiEndpoint; - assert(apiEndpoint); + const client = new deprecatedserviceModule.v1.DeprecatedServiceClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + }); + + it('has universeDomain', () => { + const client = new deprecatedserviceModule.v1.DeprecatedServiceClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = deprecatedserviceModule.v1.DeprecatedServiceClient.servicePath; + assert.strictEqual(servicePath, 'localhost'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = deprecatedserviceModule.v1.DeprecatedServiceClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + assert(stub.called); + stub.restore(); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new deprecatedserviceModule.v1.DeprecatedServiceClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/deprecatedtest/src/v1/deprecated_service_client.ts.baseline b/baselines/deprecatedtest/src/v1/deprecated_service_client.ts.baseline index 2839912ba..555b0f839 100644 --- a/baselines/deprecatedtest/src/v1/deprecated_service_client.ts.baseline +++ b/baselines/deprecatedtest/src/v1/deprecated_service_client.ts.baseline @@ -46,6 +46,8 @@ export class DeprecatedServiceClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -99,7 +101,12 @@ export class DeprecatedServiceClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof DeprecatedServiceClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'localhost'; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -107,7 +114,7 @@ export class DeprecatedServiceClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -132,10 +139,10 @@ export class DeprecatedServiceClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -236,21 +243,49 @@ export class DeprecatedServiceClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/deprecatedtest/test/gapic_deprecated_service_v1.ts.baseline b/baselines/deprecatedtest/test/gapic_deprecated_service_v1.ts.baseline index 8c2337826..421844be7 100644 --- a/baselines/deprecatedtest/test/gapic_deprecated_service_v1.ts.baseline +++ b/baselines/deprecatedtest/test/gapic_deprecated_service_v1.ts.baseline @@ -55,13 +55,42 @@ function stubSimpleCallWithCallback(response?: ResponseType, error describe('v1.DeprecatedServiceClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = deprecatedserviceModule.v1.DeprecatedServiceClient.servicePath; - assert(servicePath); + const client = new deprecatedserviceModule.v1.DeprecatedServiceClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'localhost'); }); it('has apiEndpoint', () => { - const apiEndpoint = deprecatedserviceModule.v1.DeprecatedServiceClient.apiEndpoint; - assert(apiEndpoint); + const client = new deprecatedserviceModule.v1.DeprecatedServiceClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + }); + + it('has universeDomain', () => { + const client = new deprecatedserviceModule.v1.DeprecatedServiceClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = deprecatedserviceModule.v1.DeprecatedServiceClient.servicePath; + assert.strictEqual(servicePath, 'localhost'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = deprecatedserviceModule.v1.DeprecatedServiceClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + assert(stub.called); + stub.restore(); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new deprecatedserviceModule.v1.DeprecatedServiceClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/disable-packing-test-esm/esm/src/v1beta1/compliance_client.ts.baseline b/baselines/disable-packing-test-esm/esm/src/v1beta1/compliance_client.ts.baseline index 5ae9ce334..a5f3321ca 100644 --- a/baselines/disable-packing-test-esm/esm/src/v1beta1/compliance_client.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/src/v1beta1/compliance_client.ts.baseline @@ -53,6 +53,8 @@ export class ComplianceClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -108,7 +110,12 @@ export class ComplianceClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof ComplianceClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'localhost'; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -116,7 +123,7 @@ export class ComplianceClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -141,10 +148,10 @@ export class ComplianceClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -290,21 +297,49 @@ export class ComplianceClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/disable-packing-test-esm/esm/src/v1beta1/echo_client.ts.baseline b/baselines/disable-packing-test-esm/esm/src/v1beta1/echo_client.ts.baseline index 4cf27565b..687ac718d 100644 --- a/baselines/disable-packing-test-esm/esm/src/v1beta1/echo_client.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/src/v1beta1/echo_client.ts.baseline @@ -57,6 +57,8 @@ export class EchoClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -113,7 +115,12 @@ export class EchoClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof EchoClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'localhost'; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -121,7 +128,7 @@ export class EchoClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -146,10 +153,10 @@ export class EchoClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -346,21 +353,49 @@ export class EchoClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/disable-packing-test-esm/esm/src/v1beta1/identity_client.ts.baseline b/baselines/disable-packing-test-esm/esm/src/v1beta1/identity_client.ts.baseline index 9db848ed7..52d919808 100644 --- a/baselines/disable-packing-test-esm/esm/src/v1beta1/identity_client.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/src/v1beta1/identity_client.ts.baseline @@ -51,6 +51,8 @@ export class IdentityClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -106,7 +108,12 @@ export class IdentityClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof IdentityClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'localhost'; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -114,7 +121,7 @@ export class IdentityClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -139,10 +146,10 @@ export class IdentityClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -297,21 +304,49 @@ export class IdentityClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/disable-packing-test-esm/esm/src/v1beta1/messaging_client.ts.baseline b/baselines/disable-packing-test-esm/esm/src/v1beta1/messaging_client.ts.baseline index 5239a69db..0d05d7480 100644 --- a/baselines/disable-packing-test-esm/esm/src/v1beta1/messaging_client.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/src/v1beta1/messaging_client.ts.baseline @@ -54,6 +54,8 @@ export class MessagingClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -110,7 +112,12 @@ export class MessagingClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof MessagingClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'localhost'; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -118,7 +125,7 @@ export class MessagingClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -143,10 +150,10 @@ export class MessagingClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -345,21 +352,49 @@ export class MessagingClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/disable-packing-test-esm/esm/src/v1beta1/sequence_service_client.ts.baseline b/baselines/disable-packing-test-esm/esm/src/v1beta1/sequence_service_client.ts.baseline index ccb532788..18062bed7 100644 --- a/baselines/disable-packing-test-esm/esm/src/v1beta1/sequence_service_client.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/src/v1beta1/sequence_service_client.ts.baseline @@ -50,6 +50,8 @@ export class SequenceServiceClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -105,7 +107,12 @@ export class SequenceServiceClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof SequenceServiceClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'localhost'; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -113,7 +120,7 @@ export class SequenceServiceClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -138,10 +145,10 @@ export class SequenceServiceClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -287,21 +294,49 @@ export class SequenceServiceClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/disable-packing-test-esm/esm/src/v1beta1/testing_client.ts.baseline b/baselines/disable-packing-test-esm/esm/src/v1beta1/testing_client.ts.baseline index 5516c51a8..527ba2e03 100644 --- a/baselines/disable-packing-test-esm/esm/src/v1beta1/testing_client.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/src/v1beta1/testing_client.ts.baseline @@ -52,6 +52,8 @@ export class TestingClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -107,7 +109,12 @@ export class TestingClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof TestingClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'localhost'; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -115,7 +122,7 @@ export class TestingClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -140,10 +147,10 @@ export class TestingClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -300,21 +307,49 @@ export class TestingClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/disable-packing-test-esm/esm/test/gapic_compliance_v1beta1.ts.baseline b/baselines/disable-packing-test-esm/esm/test/gapic_compliance_v1beta1.ts.baseline index 6ca58ac5c..d1c78ef38 100644 --- a/baselines/disable-packing-test-esm/esm/test/gapic_compliance_v1beta1.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/test/gapic_compliance_v1beta1.ts.baseline @@ -64,13 +64,42 @@ function stubSimpleCallWithCallback(response?: ResponseType, error describe('v1beta1.ComplianceClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = complianceModule.v1beta1.ComplianceClient.servicePath; - assert(servicePath); + const client = new complianceModule.v1beta1.ComplianceClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'localhost'); }); it('has apiEndpoint', () => { - const apiEndpoint = complianceModule.v1beta1.ComplianceClient.apiEndpoint; - assert(apiEndpoint); + const client = new complianceModule.v1beta1.ComplianceClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + }); + + it('has universeDomain', () => { + const client = new complianceModule.v1beta1.ComplianceClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = complianceModule.v1beta1.ComplianceClient.servicePath; + assert.strictEqual(servicePath, 'localhost'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = complianceModule.v1beta1.ComplianceClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + assert(stub.called); + stub.restore(); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new complianceModule.v1beta1.ComplianceClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/disable-packing-test-esm/esm/test/gapic_echo_v1beta1.ts.baseline b/baselines/disable-packing-test-esm/esm/test/gapic_echo_v1beta1.ts.baseline index 89338dbc6..f5e1801bb 100644 --- a/baselines/disable-packing-test-esm/esm/test/gapic_echo_v1beta1.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/test/gapic_echo_v1beta1.ts.baseline @@ -160,13 +160,42 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.EchoClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = echoModule.v1beta1.EchoClient.servicePath; - assert(servicePath); + const client = new echoModule.v1beta1.EchoClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'localhost'); }); it('has apiEndpoint', () => { - const apiEndpoint = echoModule.v1beta1.EchoClient.apiEndpoint; - assert(apiEndpoint); + const client = new echoModule.v1beta1.EchoClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + }); + + it('has universeDomain', () => { + const client = new echoModule.v1beta1.EchoClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = echoModule.v1beta1.EchoClient.servicePath; + assert.strictEqual(servicePath, 'localhost'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = echoModule.v1beta1.EchoClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + assert(stub.called); + stub.restore(); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new echoModule.v1beta1.EchoClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/disable-packing-test-esm/esm/test/gapic_identity_v1beta1.ts.baseline b/baselines/disable-packing-test-esm/esm/test/gapic_identity_v1beta1.ts.baseline index 11aca5322..03efa6165 100644 --- a/baselines/disable-packing-test-esm/esm/test/gapic_identity_v1beta1.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/test/gapic_identity_v1beta1.ts.baseline @@ -111,13 +111,42 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.IdentityClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = identityModule.v1beta1.IdentityClient.servicePath; - assert(servicePath); + const client = new identityModule.v1beta1.IdentityClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'localhost'); }); it('has apiEndpoint', () => { - const apiEndpoint = identityModule.v1beta1.IdentityClient.apiEndpoint; - assert(apiEndpoint); + const client = new identityModule.v1beta1.IdentityClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + }); + + it('has universeDomain', () => { + const client = new identityModule.v1beta1.IdentityClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = identityModule.v1beta1.IdentityClient.servicePath; + assert.strictEqual(servicePath, 'localhost'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = identityModule.v1beta1.IdentityClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + assert(stub.called); + stub.restore(); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new identityModule.v1beta1.IdentityClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/disable-packing-test-esm/esm/test/gapic_messaging_v1beta1.ts.baseline b/baselines/disable-packing-test-esm/esm/test/gapic_messaging_v1beta1.ts.baseline index b7a190273..d3de767cb 100644 --- a/baselines/disable-packing-test-esm/esm/test/gapic_messaging_v1beta1.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/test/gapic_messaging_v1beta1.ts.baseline @@ -160,13 +160,42 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.MessagingClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = messagingModule.v1beta1.MessagingClient.servicePath; - assert(servicePath); + const client = new messagingModule.v1beta1.MessagingClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'localhost'); }); it('has apiEndpoint', () => { - const apiEndpoint = messagingModule.v1beta1.MessagingClient.apiEndpoint; - assert(apiEndpoint); + const client = new messagingModule.v1beta1.MessagingClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + }); + + it('has universeDomain', () => { + const client = new messagingModule.v1beta1.MessagingClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = messagingModule.v1beta1.MessagingClient.servicePath; + assert.strictEqual(servicePath, 'localhost'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = messagingModule.v1beta1.MessagingClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + assert(stub.called); + stub.restore(); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new messagingModule.v1beta1.MessagingClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/disable-packing-test-esm/esm/test/gapic_sequence_service_v1beta1.ts.baseline b/baselines/disable-packing-test-esm/esm/test/gapic_sequence_service_v1beta1.ts.baseline index e99a6b011..0cee3be4f 100644 --- a/baselines/disable-packing-test-esm/esm/test/gapic_sequence_service_v1beta1.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/test/gapic_sequence_service_v1beta1.ts.baseline @@ -64,13 +64,42 @@ function stubSimpleCallWithCallback(response?: ResponseType, error describe('v1beta1.SequenceServiceClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = sequenceserviceModule.v1beta1.SequenceServiceClient.servicePath; - assert(servicePath); + const client = new sequenceserviceModule.v1beta1.SequenceServiceClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'localhost'); }); it('has apiEndpoint', () => { - const apiEndpoint = sequenceserviceModule.v1beta1.SequenceServiceClient.apiEndpoint; - assert(apiEndpoint); + const client = new sequenceserviceModule.v1beta1.SequenceServiceClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + }); + + it('has universeDomain', () => { + const client = new sequenceserviceModule.v1beta1.SequenceServiceClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = sequenceserviceModule.v1beta1.SequenceServiceClient.servicePath; + assert.strictEqual(servicePath, 'localhost'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = sequenceserviceModule.v1beta1.SequenceServiceClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + assert(stub.called); + stub.restore(); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new sequenceserviceModule.v1beta1.SequenceServiceClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/disable-packing-test-esm/esm/test/gapic_testing_v1beta1.ts.baseline b/baselines/disable-packing-test-esm/esm/test/gapic_testing_v1beta1.ts.baseline index f46cbcb8c..79a17c15d 100644 --- a/baselines/disable-packing-test-esm/esm/test/gapic_testing_v1beta1.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/test/gapic_testing_v1beta1.ts.baseline @@ -111,13 +111,42 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.TestingClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = testingModule.v1beta1.TestingClient.servicePath; - assert(servicePath); + const client = new testingModule.v1beta1.TestingClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'localhost'); }); it('has apiEndpoint', () => { - const apiEndpoint = testingModule.v1beta1.TestingClient.apiEndpoint; - assert(apiEndpoint); + const client = new testingModule.v1beta1.TestingClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + }); + + it('has universeDomain', () => { + const client = new testingModule.v1beta1.TestingClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = testingModule.v1beta1.TestingClient.servicePath; + assert.strictEqual(servicePath, 'localhost'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = testingModule.v1beta1.TestingClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + assert(stub.called); + stub.restore(); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new testingModule.v1beta1.TestingClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/disable-packing-test/src/v1beta1/compliance_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/compliance_client.ts.baseline index c61648dd0..8f2b6253d 100644 --- a/baselines/disable-packing-test/src/v1beta1/compliance_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/compliance_client.ts.baseline @@ -46,6 +46,8 @@ export class ComplianceClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -100,7 +102,12 @@ export class ComplianceClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof ComplianceClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'localhost'; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -108,7 +115,7 @@ export class ComplianceClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -133,10 +140,10 @@ export class ComplianceClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -274,21 +281,49 @@ export class ComplianceClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline index 0ab91a460..5e095f652 100644 --- a/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline @@ -50,6 +50,8 @@ export class EchoClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -105,7 +107,12 @@ export class EchoClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof EchoClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'localhost'; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -113,7 +120,7 @@ export class EchoClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -138,10 +145,10 @@ export class EchoClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -330,21 +337,49 @@ export class EchoClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/disable-packing-test/src/v1beta1/identity_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/identity_client.ts.baseline index a1e63d69f..2899b3200 100644 --- a/baselines/disable-packing-test/src/v1beta1/identity_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/identity_client.ts.baseline @@ -44,6 +44,8 @@ export class IdentityClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -98,7 +100,12 @@ export class IdentityClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof IdentityClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'localhost'; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -106,7 +113,7 @@ export class IdentityClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -131,10 +138,10 @@ export class IdentityClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -281,21 +288,49 @@ export class IdentityClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline index 3199a1752..951f9b52a 100644 --- a/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline @@ -47,6 +47,8 @@ export class MessagingClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -102,7 +104,12 @@ export class MessagingClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof MessagingClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'localhost'; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -110,7 +117,7 @@ export class MessagingClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -135,10 +142,10 @@ export class MessagingClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -329,21 +336,49 @@ export class MessagingClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/disable-packing-test/src/v1beta1/sequence_service_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/sequence_service_client.ts.baseline index 4299c9276..185584370 100644 --- a/baselines/disable-packing-test/src/v1beta1/sequence_service_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/sequence_service_client.ts.baseline @@ -43,6 +43,8 @@ export class SequenceServiceClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -97,7 +99,12 @@ export class SequenceServiceClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof SequenceServiceClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'localhost'; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -105,7 +112,7 @@ export class SequenceServiceClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -130,10 +137,10 @@ export class SequenceServiceClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -271,21 +278,49 @@ export class SequenceServiceClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/disable-packing-test/src/v1beta1/testing_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/testing_client.ts.baseline index 4cc838f36..1df4f245e 100644 --- a/baselines/disable-packing-test/src/v1beta1/testing_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/testing_client.ts.baseline @@ -45,6 +45,8 @@ export class TestingClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -99,7 +101,12 @@ export class TestingClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof TestingClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'localhost'; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -107,7 +114,7 @@ export class TestingClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -132,10 +139,10 @@ export class TestingClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -284,21 +291,49 @@ export class TestingClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/disable-packing-test/test/gapic_compliance_v1beta1.ts.baseline b/baselines/disable-packing-test/test/gapic_compliance_v1beta1.ts.baseline index eca9c8a3b..2391ba9d1 100644 --- a/baselines/disable-packing-test/test/gapic_compliance_v1beta1.ts.baseline +++ b/baselines/disable-packing-test/test/gapic_compliance_v1beta1.ts.baseline @@ -55,13 +55,42 @@ function stubSimpleCallWithCallback(response?: ResponseType, error describe('v1beta1.ComplianceClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = complianceModule.v1beta1.ComplianceClient.servicePath; - assert(servicePath); + const client = new complianceModule.v1beta1.ComplianceClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'localhost'); }); it('has apiEndpoint', () => { - const apiEndpoint = complianceModule.v1beta1.ComplianceClient.apiEndpoint; - assert(apiEndpoint); + const client = new complianceModule.v1beta1.ComplianceClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + }); + + it('has universeDomain', () => { + const client = new complianceModule.v1beta1.ComplianceClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = complianceModule.v1beta1.ComplianceClient.servicePath; + assert.strictEqual(servicePath, 'localhost'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = complianceModule.v1beta1.ComplianceClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + assert(stub.called); + stub.restore(); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new complianceModule.v1beta1.ComplianceClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/disable-packing-test/test/gapic_echo_v1beta1.ts.baseline b/baselines/disable-packing-test/test/gapic_echo_v1beta1.ts.baseline index 01925ca2d..69f98c033 100644 --- a/baselines/disable-packing-test/test/gapic_echo_v1beta1.ts.baseline +++ b/baselines/disable-packing-test/test/gapic_echo_v1beta1.ts.baseline @@ -151,13 +151,42 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.EchoClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = echoModule.v1beta1.EchoClient.servicePath; - assert(servicePath); + const client = new echoModule.v1beta1.EchoClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'localhost'); }); it('has apiEndpoint', () => { - const apiEndpoint = echoModule.v1beta1.EchoClient.apiEndpoint; - assert(apiEndpoint); + const client = new echoModule.v1beta1.EchoClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + }); + + it('has universeDomain', () => { + const client = new echoModule.v1beta1.EchoClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = echoModule.v1beta1.EchoClient.servicePath; + assert.strictEqual(servicePath, 'localhost'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = echoModule.v1beta1.EchoClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + assert(stub.called); + stub.restore(); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new echoModule.v1beta1.EchoClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/disable-packing-test/test/gapic_identity_v1beta1.ts.baseline b/baselines/disable-packing-test/test/gapic_identity_v1beta1.ts.baseline index 8e8eef119..7d9f7f3de 100644 --- a/baselines/disable-packing-test/test/gapic_identity_v1beta1.ts.baseline +++ b/baselines/disable-packing-test/test/gapic_identity_v1beta1.ts.baseline @@ -102,13 +102,42 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.IdentityClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = identityModule.v1beta1.IdentityClient.servicePath; - assert(servicePath); + const client = new identityModule.v1beta1.IdentityClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'localhost'); }); it('has apiEndpoint', () => { - const apiEndpoint = identityModule.v1beta1.IdentityClient.apiEndpoint; - assert(apiEndpoint); + const client = new identityModule.v1beta1.IdentityClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + }); + + it('has universeDomain', () => { + const client = new identityModule.v1beta1.IdentityClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = identityModule.v1beta1.IdentityClient.servicePath; + assert.strictEqual(servicePath, 'localhost'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = identityModule.v1beta1.IdentityClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + assert(stub.called); + stub.restore(); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new identityModule.v1beta1.IdentityClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/disable-packing-test/test/gapic_messaging_v1beta1.ts.baseline b/baselines/disable-packing-test/test/gapic_messaging_v1beta1.ts.baseline index d0b8a7720..adaa2ba8c 100644 --- a/baselines/disable-packing-test/test/gapic_messaging_v1beta1.ts.baseline +++ b/baselines/disable-packing-test/test/gapic_messaging_v1beta1.ts.baseline @@ -151,13 +151,42 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.MessagingClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = messagingModule.v1beta1.MessagingClient.servicePath; - assert(servicePath); + const client = new messagingModule.v1beta1.MessagingClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'localhost'); }); it('has apiEndpoint', () => { - const apiEndpoint = messagingModule.v1beta1.MessagingClient.apiEndpoint; - assert(apiEndpoint); + const client = new messagingModule.v1beta1.MessagingClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + }); + + it('has universeDomain', () => { + const client = new messagingModule.v1beta1.MessagingClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = messagingModule.v1beta1.MessagingClient.servicePath; + assert.strictEqual(servicePath, 'localhost'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = messagingModule.v1beta1.MessagingClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + assert(stub.called); + stub.restore(); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new messagingModule.v1beta1.MessagingClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/disable-packing-test/test/gapic_sequence_service_v1beta1.ts.baseline b/baselines/disable-packing-test/test/gapic_sequence_service_v1beta1.ts.baseline index b9dc68c2a..78d75f0ad 100644 --- a/baselines/disable-packing-test/test/gapic_sequence_service_v1beta1.ts.baseline +++ b/baselines/disable-packing-test/test/gapic_sequence_service_v1beta1.ts.baseline @@ -55,13 +55,42 @@ function stubSimpleCallWithCallback(response?: ResponseType, error describe('v1beta1.SequenceServiceClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = sequenceserviceModule.v1beta1.SequenceServiceClient.servicePath; - assert(servicePath); + const client = new sequenceserviceModule.v1beta1.SequenceServiceClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'localhost'); }); it('has apiEndpoint', () => { - const apiEndpoint = sequenceserviceModule.v1beta1.SequenceServiceClient.apiEndpoint; - assert(apiEndpoint); + const client = new sequenceserviceModule.v1beta1.SequenceServiceClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + }); + + it('has universeDomain', () => { + const client = new sequenceserviceModule.v1beta1.SequenceServiceClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = sequenceserviceModule.v1beta1.SequenceServiceClient.servicePath; + assert.strictEqual(servicePath, 'localhost'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = sequenceserviceModule.v1beta1.SequenceServiceClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + assert(stub.called); + stub.restore(); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new sequenceserviceModule.v1beta1.SequenceServiceClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/disable-packing-test/test/gapic_testing_v1beta1.ts.baseline b/baselines/disable-packing-test/test/gapic_testing_v1beta1.ts.baseline index 1afab612c..07152fc53 100644 --- a/baselines/disable-packing-test/test/gapic_testing_v1beta1.ts.baseline +++ b/baselines/disable-packing-test/test/gapic_testing_v1beta1.ts.baseline @@ -102,13 +102,42 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.TestingClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = testingModule.v1beta1.TestingClient.servicePath; - assert(servicePath); + const client = new testingModule.v1beta1.TestingClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'localhost'); }); it('has apiEndpoint', () => { - const apiEndpoint = testingModule.v1beta1.TestingClient.apiEndpoint; - assert(apiEndpoint); + const client = new testingModule.v1beta1.TestingClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + }); + + it('has universeDomain', () => { + const client = new testingModule.v1beta1.TestingClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = testingModule.v1beta1.TestingClient.servicePath; + assert.strictEqual(servicePath, 'localhost'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = testingModule.v1beta1.TestingClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + assert(stub.called); + stub.restore(); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new testingModule.v1beta1.TestingClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/dlp-esm/esm/src/v2/dlp_service_client.ts.baseline b/baselines/dlp-esm/esm/src/v2/dlp_service_client.ts.baseline index c21ca4f64..7fd962afd 100644 --- a/baselines/dlp-esm/esm/src/v2/dlp_service_client.ts.baseline +++ b/baselines/dlp-esm/esm/src/v2/dlp_service_client.ts.baseline @@ -59,6 +59,8 @@ export class DlpServiceClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -114,7 +116,12 @@ export class DlpServiceClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof DlpServiceClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'dlp.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -122,7 +129,7 @@ export class DlpServiceClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -147,10 +154,10 @@ export class DlpServiceClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -310,21 +317,49 @@ export class DlpServiceClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'dlp.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'dlp.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/dlp-esm/esm/test/gapic_dlp_service_v2.ts.baseline b/baselines/dlp-esm/esm/test/gapic_dlp_service_v2.ts.baseline index 7c32dc770..8e908d6e5 100644 --- a/baselines/dlp-esm/esm/test/gapic_dlp_service_v2.ts.baseline +++ b/baselines/dlp-esm/esm/test/gapic_dlp_service_v2.ts.baseline @@ -111,13 +111,53 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v2.DlpServiceClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = dlpserviceModule.v2.DlpServiceClient.servicePath; - assert(servicePath); + const client = new dlpserviceModule.v2.DlpServiceClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'dlp.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = dlpserviceModule.v2.DlpServiceClient.apiEndpoint; - assert(apiEndpoint); + const client = new dlpserviceModule.v2.DlpServiceClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'dlp.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new dlpserviceModule.v2.DlpServiceClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = dlpserviceModule.v2.DlpServiceClient.servicePath; + assert.strictEqual(servicePath, 'dlp.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = dlpserviceModule.v2.DlpServiceClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'dlp.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new dlpserviceModule.v2.DlpServiceClient({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'dlp.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new dlpserviceModule.v2.DlpServiceClient({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'dlp.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new dlpserviceModule.v2.DlpServiceClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/dlp/src/v2/dlp_service_client.ts.baseline b/baselines/dlp/src/v2/dlp_service_client.ts.baseline index 8d3ebb824..f311723a6 100644 --- a/baselines/dlp/src/v2/dlp_service_client.ts.baseline +++ b/baselines/dlp/src/v2/dlp_service_client.ts.baseline @@ -52,6 +52,8 @@ export class DlpServiceClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -106,7 +108,12 @@ export class DlpServiceClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof DlpServiceClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'dlp.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -114,7 +121,7 @@ export class DlpServiceClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -139,10 +146,10 @@ export class DlpServiceClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -294,21 +301,49 @@ export class DlpServiceClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'dlp.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'dlp.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/dlp/test/gapic_dlp_service_v2.ts.baseline b/baselines/dlp/test/gapic_dlp_service_v2.ts.baseline index 444af35ee..73b584c52 100644 --- a/baselines/dlp/test/gapic_dlp_service_v2.ts.baseline +++ b/baselines/dlp/test/gapic_dlp_service_v2.ts.baseline @@ -102,13 +102,53 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v2.DlpServiceClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = dlpserviceModule.v2.DlpServiceClient.servicePath; - assert(servicePath); + const client = new dlpserviceModule.v2.DlpServiceClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'dlp.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = dlpserviceModule.v2.DlpServiceClient.apiEndpoint; - assert(apiEndpoint); + const client = new dlpserviceModule.v2.DlpServiceClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'dlp.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new dlpserviceModule.v2.DlpServiceClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = dlpserviceModule.v2.DlpServiceClient.servicePath; + assert.strictEqual(servicePath, 'dlp.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = dlpserviceModule.v2.DlpServiceClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'dlp.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new dlpserviceModule.v2.DlpServiceClient({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'dlp.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new dlpserviceModule.v2.DlpServiceClient({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'dlp.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new dlpserviceModule.v2.DlpServiceClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/kms-esm/esm/src/v1/key_management_service_client.ts.baseline b/baselines/kms-esm/esm/src/v1/key_management_service_client.ts.baseline index 76ea6aac6..4e6ecf68e 100644 --- a/baselines/kms-esm/esm/src/v1/key_management_service_client.ts.baseline +++ b/baselines/kms-esm/esm/src/v1/key_management_service_client.ts.baseline @@ -61,6 +61,8 @@ export class KeyManagementServiceClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -116,7 +118,12 @@ export class KeyManagementServiceClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof KeyManagementServiceClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'cloudkms.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -124,7 +131,7 @@ export class KeyManagementServiceClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -149,10 +156,10 @@ export class KeyManagementServiceClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts); @@ -276,21 +283,49 @@ export class KeyManagementServiceClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'cloudkms.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'cloudkms.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/kms-esm/esm/test/gapic_key_management_service_v1.ts.baseline b/baselines/kms-esm/esm/test/gapic_key_management_service_v1.ts.baseline index 50ee7a231..e48206abf 100644 --- a/baselines/kms-esm/esm/test/gapic_key_management_service_v1.ts.baseline +++ b/baselines/kms-esm/esm/test/gapic_key_management_service_v1.ts.baseline @@ -111,13 +111,53 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1.KeyManagementServiceClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = keymanagementserviceModule.v1.KeyManagementServiceClient.servicePath; - assert(servicePath); + const client = new keymanagementserviceModule.v1.KeyManagementServiceClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'cloudkms.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = keymanagementserviceModule.v1.KeyManagementServiceClient.apiEndpoint; - assert(apiEndpoint); + const client = new keymanagementserviceModule.v1.KeyManagementServiceClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'cloudkms.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new keymanagementserviceModule.v1.KeyManagementServiceClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = keymanagementserviceModule.v1.KeyManagementServiceClient.servicePath; + assert.strictEqual(servicePath, 'cloudkms.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = keymanagementserviceModule.v1.KeyManagementServiceClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'cloudkms.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new keymanagementserviceModule.v1.KeyManagementServiceClient({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'cloudkms.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new keymanagementserviceModule.v1.KeyManagementServiceClient({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'cloudkms.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new keymanagementserviceModule.v1.KeyManagementServiceClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/kms/src/v1/key_management_service_client.ts.baseline b/baselines/kms/src/v1/key_management_service_client.ts.baseline index ccb5915d2..0b3bacf03 100644 --- a/baselines/kms/src/v1/key_management_service_client.ts.baseline +++ b/baselines/kms/src/v1/key_management_service_client.ts.baseline @@ -54,6 +54,8 @@ export class KeyManagementServiceClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -108,7 +110,12 @@ export class KeyManagementServiceClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof KeyManagementServiceClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'cloudkms.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -116,7 +123,7 @@ export class KeyManagementServiceClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -141,10 +148,10 @@ export class KeyManagementServiceClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts); @@ -260,21 +267,49 @@ export class KeyManagementServiceClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'cloudkms.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'cloudkms.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/kms/test/gapic_key_management_service_v1.ts.baseline b/baselines/kms/test/gapic_key_management_service_v1.ts.baseline index 887afdc89..99d0bf032 100644 --- a/baselines/kms/test/gapic_key_management_service_v1.ts.baseline +++ b/baselines/kms/test/gapic_key_management_service_v1.ts.baseline @@ -102,13 +102,53 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1.KeyManagementServiceClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = keymanagementserviceModule.v1.KeyManagementServiceClient.servicePath; - assert(servicePath); + const client = new keymanagementserviceModule.v1.KeyManagementServiceClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'cloudkms.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = keymanagementserviceModule.v1.KeyManagementServiceClient.apiEndpoint; - assert(apiEndpoint); + const client = new keymanagementserviceModule.v1.KeyManagementServiceClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'cloudkms.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new keymanagementserviceModule.v1.KeyManagementServiceClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = keymanagementserviceModule.v1.KeyManagementServiceClient.servicePath; + assert.strictEqual(servicePath, 'cloudkms.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = keymanagementserviceModule.v1.KeyManagementServiceClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'cloudkms.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new keymanagementserviceModule.v1.KeyManagementServiceClient({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'cloudkms.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new keymanagementserviceModule.v1.KeyManagementServiceClient({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'cloudkms.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new keymanagementserviceModule.v1.KeyManagementServiceClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/logging-esm/esm/src/v2/config_service_v2_client.ts.baseline b/baselines/logging-esm/esm/src/v2/config_service_v2_client.ts.baseline index 426c83673..0cd6894fd 100644 --- a/baselines/logging-esm/esm/src/v2/config_service_v2_client.ts.baseline +++ b/baselines/logging-esm/esm/src/v2/config_service_v2_client.ts.baseline @@ -51,6 +51,8 @@ export class ConfigServiceV2Client { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -107,7 +109,12 @@ export class ConfigServiceV2Client { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof ConfigServiceV2Client; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'logging.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -115,7 +122,7 @@ export class ConfigServiceV2Client { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -140,10 +147,10 @@ export class ConfigServiceV2Client { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -390,21 +397,49 @@ export class ConfigServiceV2Client { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'logging.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'logging.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/logging-esm/esm/src/v2/logging_service_v2_client.ts.baseline b/baselines/logging-esm/esm/src/v2/logging_service_v2_client.ts.baseline index 7bef04c73..4f2a7ae26 100644 --- a/baselines/logging-esm/esm/src/v2/logging_service_v2_client.ts.baseline +++ b/baselines/logging-esm/esm/src/v2/logging_service_v2_client.ts.baseline @@ -51,6 +51,8 @@ export class LoggingServiceV2Client { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -106,7 +108,12 @@ export class LoggingServiceV2Client { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof LoggingServiceV2Client; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'logging.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -114,7 +121,7 @@ export class LoggingServiceV2Client { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -139,10 +146,10 @@ export class LoggingServiceV2Client { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -389,21 +396,49 @@ export class LoggingServiceV2Client { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'logging.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'logging.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/logging-esm/esm/src/v2/metrics_service_v2_client.ts.baseline b/baselines/logging-esm/esm/src/v2/metrics_service_v2_client.ts.baseline index ea248675d..ed4693bce 100644 --- a/baselines/logging-esm/esm/src/v2/metrics_service_v2_client.ts.baseline +++ b/baselines/logging-esm/esm/src/v2/metrics_service_v2_client.ts.baseline @@ -51,6 +51,8 @@ export class MetricsServiceV2Client { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -106,7 +108,12 @@ export class MetricsServiceV2Client { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof MetricsServiceV2Client; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'logging.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -114,7 +121,7 @@ export class MetricsServiceV2Client { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -139,10 +146,10 @@ export class MetricsServiceV2Client { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -354,21 +361,49 @@ export class MetricsServiceV2Client { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'logging.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'logging.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/logging-esm/esm/test/gapic_config_service_v2_v2.ts.baseline b/baselines/logging-esm/esm/test/gapic_config_service_v2_v2.ts.baseline index fb6a95dcd..84043a111 100644 --- a/baselines/logging-esm/esm/test/gapic_config_service_v2_v2.ts.baseline +++ b/baselines/logging-esm/esm/test/gapic_config_service_v2_v2.ts.baseline @@ -127,13 +127,53 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v2.ConfigServiceV2Client', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = configservicev2Module.v2.ConfigServiceV2Client.servicePath; - assert(servicePath); + const client = new configservicev2Module.v2.ConfigServiceV2Client(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'logging.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = configservicev2Module.v2.ConfigServiceV2Client.apiEndpoint; - assert(apiEndpoint); + const client = new configservicev2Module.v2.ConfigServiceV2Client(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'logging.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new configservicev2Module.v2.ConfigServiceV2Client(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = configservicev2Module.v2.ConfigServiceV2Client.servicePath; + assert.strictEqual(servicePath, 'logging.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = configservicev2Module.v2.ConfigServiceV2Client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'logging.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new configservicev2Module.v2.ConfigServiceV2Client({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'logging.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new configservicev2Module.v2.ConfigServiceV2Client({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'logging.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new configservicev2Module.v2.ConfigServiceV2Client({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/logging-esm/esm/test/gapic_logging_service_v2_v2.ts.baseline b/baselines/logging-esm/esm/test/gapic_logging_service_v2_v2.ts.baseline index a662dcbad..a34ca78c5 100644 --- a/baselines/logging-esm/esm/test/gapic_logging_service_v2_v2.ts.baseline +++ b/baselines/logging-esm/esm/test/gapic_logging_service_v2_v2.ts.baseline @@ -120,13 +120,53 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v2.LoggingServiceV2Client', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = loggingservicev2Module.v2.LoggingServiceV2Client.servicePath; - assert(servicePath); + const client = new loggingservicev2Module.v2.LoggingServiceV2Client(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'logging.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = loggingservicev2Module.v2.LoggingServiceV2Client.apiEndpoint; - assert(apiEndpoint); + const client = new loggingservicev2Module.v2.LoggingServiceV2Client(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'logging.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new loggingservicev2Module.v2.LoggingServiceV2Client(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = loggingservicev2Module.v2.LoggingServiceV2Client.servicePath; + assert.strictEqual(servicePath, 'logging.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = loggingservicev2Module.v2.LoggingServiceV2Client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'logging.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new loggingservicev2Module.v2.LoggingServiceV2Client({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'logging.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new loggingservicev2Module.v2.LoggingServiceV2Client({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'logging.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new loggingservicev2Module.v2.LoggingServiceV2Client({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/logging-esm/esm/test/gapic_metrics_service_v2_v2.ts.baseline b/baselines/logging-esm/esm/test/gapic_metrics_service_v2_v2.ts.baseline index 05eded9fb..1d7318b9c 100644 --- a/baselines/logging-esm/esm/test/gapic_metrics_service_v2_v2.ts.baseline +++ b/baselines/logging-esm/esm/test/gapic_metrics_service_v2_v2.ts.baseline @@ -111,13 +111,53 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v2.MetricsServiceV2Client', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = metricsservicev2Module.v2.MetricsServiceV2Client.servicePath; - assert(servicePath); + const client = new metricsservicev2Module.v2.MetricsServiceV2Client(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'logging.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = metricsservicev2Module.v2.MetricsServiceV2Client.apiEndpoint; - assert(apiEndpoint); + const client = new metricsservicev2Module.v2.MetricsServiceV2Client(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'logging.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new metricsservicev2Module.v2.MetricsServiceV2Client(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = metricsservicev2Module.v2.MetricsServiceV2Client.servicePath; + assert.strictEqual(servicePath, 'logging.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = metricsservicev2Module.v2.MetricsServiceV2Client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'logging.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new metricsservicev2Module.v2.MetricsServiceV2Client({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'logging.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new metricsservicev2Module.v2.MetricsServiceV2Client({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'logging.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new metricsservicev2Module.v2.MetricsServiceV2Client({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/logging/src/v2/config_service_v2_client.ts.baseline b/baselines/logging/src/v2/config_service_v2_client.ts.baseline index bd2805a42..d3906f589 100644 --- a/baselines/logging/src/v2/config_service_v2_client.ts.baseline +++ b/baselines/logging/src/v2/config_service_v2_client.ts.baseline @@ -44,6 +44,8 @@ export class ConfigServiceV2Client { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -99,7 +101,12 @@ export class ConfigServiceV2Client { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof ConfigServiceV2Client; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'logging.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -107,7 +114,7 @@ export class ConfigServiceV2Client { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -132,10 +139,10 @@ export class ConfigServiceV2Client { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -374,21 +381,49 @@ export class ConfigServiceV2Client { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'logging.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'logging.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/logging/src/v2/logging_service_v2_client.ts.baseline b/baselines/logging/src/v2/logging_service_v2_client.ts.baseline index 7e4b09e23..16fac17f8 100644 --- a/baselines/logging/src/v2/logging_service_v2_client.ts.baseline +++ b/baselines/logging/src/v2/logging_service_v2_client.ts.baseline @@ -44,6 +44,8 @@ export class LoggingServiceV2Client { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -98,7 +100,12 @@ export class LoggingServiceV2Client { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof LoggingServiceV2Client; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'logging.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -106,7 +113,7 @@ export class LoggingServiceV2Client { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -131,10 +138,10 @@ export class LoggingServiceV2Client { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -373,21 +380,49 @@ export class LoggingServiceV2Client { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'logging.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'logging.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/logging/src/v2/metrics_service_v2_client.ts.baseline b/baselines/logging/src/v2/metrics_service_v2_client.ts.baseline index 246faa3a6..62a8ef0f1 100644 --- a/baselines/logging/src/v2/metrics_service_v2_client.ts.baseline +++ b/baselines/logging/src/v2/metrics_service_v2_client.ts.baseline @@ -44,6 +44,8 @@ export class MetricsServiceV2Client { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -98,7 +100,12 @@ export class MetricsServiceV2Client { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof MetricsServiceV2Client; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'logging.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -106,7 +113,7 @@ export class MetricsServiceV2Client { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -131,10 +138,10 @@ export class MetricsServiceV2Client { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -338,21 +345,49 @@ export class MetricsServiceV2Client { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'logging.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'logging.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/logging/test/gapic_config_service_v2_v2.ts.baseline b/baselines/logging/test/gapic_config_service_v2_v2.ts.baseline index 1d9508686..e81888141 100644 --- a/baselines/logging/test/gapic_config_service_v2_v2.ts.baseline +++ b/baselines/logging/test/gapic_config_service_v2_v2.ts.baseline @@ -118,13 +118,53 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v2.ConfigServiceV2Client', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = configservicev2Module.v2.ConfigServiceV2Client.servicePath; - assert(servicePath); + const client = new configservicev2Module.v2.ConfigServiceV2Client(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'logging.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = configservicev2Module.v2.ConfigServiceV2Client.apiEndpoint; - assert(apiEndpoint); + const client = new configservicev2Module.v2.ConfigServiceV2Client(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'logging.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new configservicev2Module.v2.ConfigServiceV2Client(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = configservicev2Module.v2.ConfigServiceV2Client.servicePath; + assert.strictEqual(servicePath, 'logging.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = configservicev2Module.v2.ConfigServiceV2Client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'logging.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new configservicev2Module.v2.ConfigServiceV2Client({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'logging.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new configservicev2Module.v2.ConfigServiceV2Client({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'logging.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new configservicev2Module.v2.ConfigServiceV2Client({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/logging/test/gapic_logging_service_v2_v2.ts.baseline b/baselines/logging/test/gapic_logging_service_v2_v2.ts.baseline index 3ea054f9e..609f9aede 100644 --- a/baselines/logging/test/gapic_logging_service_v2_v2.ts.baseline +++ b/baselines/logging/test/gapic_logging_service_v2_v2.ts.baseline @@ -111,13 +111,53 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v2.LoggingServiceV2Client', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = loggingservicev2Module.v2.LoggingServiceV2Client.servicePath; - assert(servicePath); + const client = new loggingservicev2Module.v2.LoggingServiceV2Client(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'logging.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = loggingservicev2Module.v2.LoggingServiceV2Client.apiEndpoint; - assert(apiEndpoint); + const client = new loggingservicev2Module.v2.LoggingServiceV2Client(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'logging.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new loggingservicev2Module.v2.LoggingServiceV2Client(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = loggingservicev2Module.v2.LoggingServiceV2Client.servicePath; + assert.strictEqual(servicePath, 'logging.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = loggingservicev2Module.v2.LoggingServiceV2Client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'logging.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new loggingservicev2Module.v2.LoggingServiceV2Client({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'logging.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new loggingservicev2Module.v2.LoggingServiceV2Client({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'logging.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new loggingservicev2Module.v2.LoggingServiceV2Client({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/logging/test/gapic_metrics_service_v2_v2.ts.baseline b/baselines/logging/test/gapic_metrics_service_v2_v2.ts.baseline index f88deb549..c16ea9126 100644 --- a/baselines/logging/test/gapic_metrics_service_v2_v2.ts.baseline +++ b/baselines/logging/test/gapic_metrics_service_v2_v2.ts.baseline @@ -102,13 +102,53 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v2.MetricsServiceV2Client', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = metricsservicev2Module.v2.MetricsServiceV2Client.servicePath; - assert(servicePath); + const client = new metricsservicev2Module.v2.MetricsServiceV2Client(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'logging.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = metricsservicev2Module.v2.MetricsServiceV2Client.apiEndpoint; - assert(apiEndpoint); + const client = new metricsservicev2Module.v2.MetricsServiceV2Client(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'logging.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new metricsservicev2Module.v2.MetricsServiceV2Client(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = metricsservicev2Module.v2.MetricsServiceV2Client.servicePath; + assert.strictEqual(servicePath, 'logging.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = metricsservicev2Module.v2.MetricsServiceV2Client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'logging.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new metricsservicev2Module.v2.MetricsServiceV2Client({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'logging.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new metricsservicev2Module.v2.MetricsServiceV2Client({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'logging.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new metricsservicev2Module.v2.MetricsServiceV2Client({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/monitoring-esm/esm/src/v3/alert_policy_service_client.ts.baseline b/baselines/monitoring-esm/esm/src/v3/alert_policy_service_client.ts.baseline index ed5a5f6d9..f5bf6a2b7 100644 --- a/baselines/monitoring-esm/esm/src/v3/alert_policy_service_client.ts.baseline +++ b/baselines/monitoring-esm/esm/src/v3/alert_policy_service_client.ts.baseline @@ -59,6 +59,8 @@ export class AlertPolicyServiceClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -114,7 +116,12 @@ export class AlertPolicyServiceClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof AlertPolicyServiceClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'monitoring.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -122,7 +129,7 @@ export class AlertPolicyServiceClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -147,10 +154,10 @@ export class AlertPolicyServiceClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -344,21 +351,49 @@ export class AlertPolicyServiceClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'monitoring.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'monitoring.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/monitoring-esm/esm/src/v3/group_service_client.ts.baseline b/baselines/monitoring-esm/esm/src/v3/group_service_client.ts.baseline index 37d9d833a..4d69f7c14 100644 --- a/baselines/monitoring-esm/esm/src/v3/group_service_client.ts.baseline +++ b/baselines/monitoring-esm/esm/src/v3/group_service_client.ts.baseline @@ -62,6 +62,8 @@ export class GroupServiceClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -117,7 +119,12 @@ export class GroupServiceClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof GroupServiceClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'monitoring.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -125,7 +132,7 @@ export class GroupServiceClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -150,10 +157,10 @@ export class GroupServiceClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -349,21 +356,49 @@ export class GroupServiceClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'monitoring.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'monitoring.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/monitoring-esm/esm/src/v3/metric_service_client.ts.baseline b/baselines/monitoring-esm/esm/src/v3/metric_service_client.ts.baseline index 6d1dfc6e0..5d6baf467 100644 --- a/baselines/monitoring-esm/esm/src/v3/metric_service_client.ts.baseline +++ b/baselines/monitoring-esm/esm/src/v3/metric_service_client.ts.baseline @@ -52,6 +52,8 @@ export class MetricServiceClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -107,7 +109,12 @@ export class MetricServiceClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof MetricServiceClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'monitoring.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -115,7 +122,7 @@ export class MetricServiceClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -140,10 +147,10 @@ export class MetricServiceClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -359,21 +366,49 @@ export class MetricServiceClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'monitoring.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'monitoring.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/monitoring-esm/esm/src/v3/notification_channel_service_client.ts.baseline b/baselines/monitoring-esm/esm/src/v3/notification_channel_service_client.ts.baseline index 2316bd997..c2fe6c9d8 100644 --- a/baselines/monitoring-esm/esm/src/v3/notification_channel_service_client.ts.baseline +++ b/baselines/monitoring-esm/esm/src/v3/notification_channel_service_client.ts.baseline @@ -52,6 +52,8 @@ export class NotificationChannelServiceClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -107,7 +109,12 @@ export class NotificationChannelServiceClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof NotificationChannelServiceClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'monitoring.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -115,7 +122,7 @@ export class NotificationChannelServiceClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -140,10 +147,10 @@ export class NotificationChannelServiceClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -339,21 +346,49 @@ export class NotificationChannelServiceClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'monitoring.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'monitoring.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/monitoring-esm/esm/src/v3/service_monitoring_service_client.ts.baseline b/baselines/monitoring-esm/esm/src/v3/service_monitoring_service_client.ts.baseline index 92a4c2c8f..e82bc868b 100644 --- a/baselines/monitoring-esm/esm/src/v3/service_monitoring_service_client.ts.baseline +++ b/baselines/monitoring-esm/esm/src/v3/service_monitoring_service_client.ts.baseline @@ -54,6 +54,8 @@ export class ServiceMonitoringServiceClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -109,7 +111,12 @@ export class ServiceMonitoringServiceClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof ServiceMonitoringServiceClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'monitoring.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -117,7 +124,7 @@ export class ServiceMonitoringServiceClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -142,10 +149,10 @@ export class ServiceMonitoringServiceClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -341,21 +348,49 @@ export class ServiceMonitoringServiceClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'monitoring.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'monitoring.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/monitoring-esm/esm/src/v3/uptime_check_service_client.ts.baseline b/baselines/monitoring-esm/esm/src/v3/uptime_check_service_client.ts.baseline index 4c17291da..0dbe38270 100644 --- a/baselines/monitoring-esm/esm/src/v3/uptime_check_service_client.ts.baseline +++ b/baselines/monitoring-esm/esm/src/v3/uptime_check_service_client.ts.baseline @@ -58,6 +58,8 @@ export class UptimeCheckServiceClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -113,7 +115,12 @@ export class UptimeCheckServiceClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof UptimeCheckServiceClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'monitoring.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -121,7 +128,7 @@ export class UptimeCheckServiceClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -146,10 +153,10 @@ export class UptimeCheckServiceClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -345,21 +352,49 @@ export class UptimeCheckServiceClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'monitoring.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'monitoring.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/monitoring-esm/esm/test/gapic_alert_policy_service_v3.ts.baseline b/baselines/monitoring-esm/esm/test/gapic_alert_policy_service_v3.ts.baseline index e1b83b8b9..ec0ddb562 100644 --- a/baselines/monitoring-esm/esm/test/gapic_alert_policy_service_v3.ts.baseline +++ b/baselines/monitoring-esm/esm/test/gapic_alert_policy_service_v3.ts.baseline @@ -111,13 +111,53 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v3.AlertPolicyServiceClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = alertpolicyserviceModule.v3.AlertPolicyServiceClient.servicePath; - assert(servicePath); + const client = new alertpolicyserviceModule.v3.AlertPolicyServiceClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'monitoring.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = alertpolicyserviceModule.v3.AlertPolicyServiceClient.apiEndpoint; - assert(apiEndpoint); + const client = new alertpolicyserviceModule.v3.AlertPolicyServiceClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'monitoring.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new alertpolicyserviceModule.v3.AlertPolicyServiceClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = alertpolicyserviceModule.v3.AlertPolicyServiceClient.servicePath; + assert.strictEqual(servicePath, 'monitoring.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = alertpolicyserviceModule.v3.AlertPolicyServiceClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'monitoring.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new alertpolicyserviceModule.v3.AlertPolicyServiceClient({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'monitoring.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new alertpolicyserviceModule.v3.AlertPolicyServiceClient({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'monitoring.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new alertpolicyserviceModule.v3.AlertPolicyServiceClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/monitoring-esm/esm/test/gapic_group_service_v3.ts.baseline b/baselines/monitoring-esm/esm/test/gapic_group_service_v3.ts.baseline index 2ee6937a5..d1826fa53 100644 --- a/baselines/monitoring-esm/esm/test/gapic_group_service_v3.ts.baseline +++ b/baselines/monitoring-esm/esm/test/gapic_group_service_v3.ts.baseline @@ -111,13 +111,53 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v3.GroupServiceClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = groupserviceModule.v3.GroupServiceClient.servicePath; - assert(servicePath); + const client = new groupserviceModule.v3.GroupServiceClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'monitoring.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = groupserviceModule.v3.GroupServiceClient.apiEndpoint; - assert(apiEndpoint); + const client = new groupserviceModule.v3.GroupServiceClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'monitoring.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new groupserviceModule.v3.GroupServiceClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = groupserviceModule.v3.GroupServiceClient.servicePath; + assert.strictEqual(servicePath, 'monitoring.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = groupserviceModule.v3.GroupServiceClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'monitoring.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new groupserviceModule.v3.GroupServiceClient({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'monitoring.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new groupserviceModule.v3.GroupServiceClient({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'monitoring.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new groupserviceModule.v3.GroupServiceClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/monitoring-esm/esm/test/gapic_metric_service_v3.ts.baseline b/baselines/monitoring-esm/esm/test/gapic_metric_service_v3.ts.baseline index 8b8bef262..67a0af65c 100644 --- a/baselines/monitoring-esm/esm/test/gapic_metric_service_v3.ts.baseline +++ b/baselines/monitoring-esm/esm/test/gapic_metric_service_v3.ts.baseline @@ -111,13 +111,53 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v3.MetricServiceClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = metricserviceModule.v3.MetricServiceClient.servicePath; - assert(servicePath); + const client = new metricserviceModule.v3.MetricServiceClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'monitoring.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = metricserviceModule.v3.MetricServiceClient.apiEndpoint; - assert(apiEndpoint); + const client = new metricserviceModule.v3.MetricServiceClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'monitoring.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new metricserviceModule.v3.MetricServiceClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = metricserviceModule.v3.MetricServiceClient.servicePath; + assert.strictEqual(servicePath, 'monitoring.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = metricserviceModule.v3.MetricServiceClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'monitoring.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new metricserviceModule.v3.MetricServiceClient({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'monitoring.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new metricserviceModule.v3.MetricServiceClient({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'monitoring.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new metricserviceModule.v3.MetricServiceClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/monitoring-esm/esm/test/gapic_notification_channel_service_v3.ts.baseline b/baselines/monitoring-esm/esm/test/gapic_notification_channel_service_v3.ts.baseline index b0ba653a0..88adb6f4a 100644 --- a/baselines/monitoring-esm/esm/test/gapic_notification_channel_service_v3.ts.baseline +++ b/baselines/monitoring-esm/esm/test/gapic_notification_channel_service_v3.ts.baseline @@ -111,13 +111,53 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v3.NotificationChannelServiceClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = notificationchannelserviceModule.v3.NotificationChannelServiceClient.servicePath; - assert(servicePath); + const client = new notificationchannelserviceModule.v3.NotificationChannelServiceClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'monitoring.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = notificationchannelserviceModule.v3.NotificationChannelServiceClient.apiEndpoint; - assert(apiEndpoint); + const client = new notificationchannelserviceModule.v3.NotificationChannelServiceClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'monitoring.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new notificationchannelserviceModule.v3.NotificationChannelServiceClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = notificationchannelserviceModule.v3.NotificationChannelServiceClient.servicePath; + assert.strictEqual(servicePath, 'monitoring.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = notificationchannelserviceModule.v3.NotificationChannelServiceClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'monitoring.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new notificationchannelserviceModule.v3.NotificationChannelServiceClient({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'monitoring.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new notificationchannelserviceModule.v3.NotificationChannelServiceClient({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'monitoring.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new notificationchannelserviceModule.v3.NotificationChannelServiceClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/monitoring-esm/esm/test/gapic_service_monitoring_service_v3.ts.baseline b/baselines/monitoring-esm/esm/test/gapic_service_monitoring_service_v3.ts.baseline index 19797428f..c529c9836 100644 --- a/baselines/monitoring-esm/esm/test/gapic_service_monitoring_service_v3.ts.baseline +++ b/baselines/monitoring-esm/esm/test/gapic_service_monitoring_service_v3.ts.baseline @@ -111,13 +111,53 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v3.ServiceMonitoringServiceClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = servicemonitoringserviceModule.v3.ServiceMonitoringServiceClient.servicePath; - assert(servicePath); + const client = new servicemonitoringserviceModule.v3.ServiceMonitoringServiceClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'monitoring.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = servicemonitoringserviceModule.v3.ServiceMonitoringServiceClient.apiEndpoint; - assert(apiEndpoint); + const client = new servicemonitoringserviceModule.v3.ServiceMonitoringServiceClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'monitoring.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new servicemonitoringserviceModule.v3.ServiceMonitoringServiceClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = servicemonitoringserviceModule.v3.ServiceMonitoringServiceClient.servicePath; + assert.strictEqual(servicePath, 'monitoring.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = servicemonitoringserviceModule.v3.ServiceMonitoringServiceClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'monitoring.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new servicemonitoringserviceModule.v3.ServiceMonitoringServiceClient({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'monitoring.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new servicemonitoringserviceModule.v3.ServiceMonitoringServiceClient({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'monitoring.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new servicemonitoringserviceModule.v3.ServiceMonitoringServiceClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/monitoring-esm/esm/test/gapic_uptime_check_service_v3.ts.baseline b/baselines/monitoring-esm/esm/test/gapic_uptime_check_service_v3.ts.baseline index 8ebff458e..88ba8ea86 100644 --- a/baselines/monitoring-esm/esm/test/gapic_uptime_check_service_v3.ts.baseline +++ b/baselines/monitoring-esm/esm/test/gapic_uptime_check_service_v3.ts.baseline @@ -111,13 +111,53 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v3.UptimeCheckServiceClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = uptimecheckserviceModule.v3.UptimeCheckServiceClient.servicePath; - assert(servicePath); + const client = new uptimecheckserviceModule.v3.UptimeCheckServiceClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'monitoring.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = uptimecheckserviceModule.v3.UptimeCheckServiceClient.apiEndpoint; - assert(apiEndpoint); + const client = new uptimecheckserviceModule.v3.UptimeCheckServiceClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'monitoring.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new uptimecheckserviceModule.v3.UptimeCheckServiceClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = uptimecheckserviceModule.v3.UptimeCheckServiceClient.servicePath; + assert.strictEqual(servicePath, 'monitoring.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = uptimecheckserviceModule.v3.UptimeCheckServiceClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'monitoring.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new uptimecheckserviceModule.v3.UptimeCheckServiceClient({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'monitoring.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new uptimecheckserviceModule.v3.UptimeCheckServiceClient({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'monitoring.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new uptimecheckserviceModule.v3.UptimeCheckServiceClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/monitoring/src/v3/alert_policy_service_client.ts.baseline b/baselines/monitoring/src/v3/alert_policy_service_client.ts.baseline index 39642f4f5..d9ad66dc2 100644 --- a/baselines/monitoring/src/v3/alert_policy_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/alert_policy_service_client.ts.baseline @@ -52,6 +52,8 @@ export class AlertPolicyServiceClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -106,7 +108,12 @@ export class AlertPolicyServiceClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof AlertPolicyServiceClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'monitoring.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -114,7 +121,7 @@ export class AlertPolicyServiceClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -139,10 +146,10 @@ export class AlertPolicyServiceClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -328,21 +335,49 @@ export class AlertPolicyServiceClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'monitoring.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'monitoring.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/monitoring/src/v3/group_service_client.ts.baseline b/baselines/monitoring/src/v3/group_service_client.ts.baseline index 6d99fd227..5e55d526a 100644 --- a/baselines/monitoring/src/v3/group_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/group_service_client.ts.baseline @@ -55,6 +55,8 @@ export class GroupServiceClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -109,7 +111,12 @@ export class GroupServiceClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof GroupServiceClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'monitoring.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -117,7 +124,7 @@ export class GroupServiceClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -142,10 +149,10 @@ export class GroupServiceClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -333,21 +340,49 @@ export class GroupServiceClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'monitoring.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'monitoring.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/monitoring/src/v3/metric_service_client.ts.baseline b/baselines/monitoring/src/v3/metric_service_client.ts.baseline index 9520b0c26..4ceb8797e 100644 --- a/baselines/monitoring/src/v3/metric_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/metric_service_client.ts.baseline @@ -45,6 +45,8 @@ export class MetricServiceClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -99,7 +101,12 @@ export class MetricServiceClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof MetricServiceClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'monitoring.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -107,7 +114,7 @@ export class MetricServiceClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -132,10 +139,10 @@ export class MetricServiceClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -343,21 +350,49 @@ export class MetricServiceClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'monitoring.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'monitoring.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/monitoring/src/v3/notification_channel_service_client.ts.baseline b/baselines/monitoring/src/v3/notification_channel_service_client.ts.baseline index 4efcdb8ae..5496f1f6f 100644 --- a/baselines/monitoring/src/v3/notification_channel_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/notification_channel_service_client.ts.baseline @@ -45,6 +45,8 @@ export class NotificationChannelServiceClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -99,7 +101,12 @@ export class NotificationChannelServiceClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof NotificationChannelServiceClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'monitoring.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -107,7 +114,7 @@ export class NotificationChannelServiceClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -132,10 +139,10 @@ export class NotificationChannelServiceClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -323,21 +330,49 @@ export class NotificationChannelServiceClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'monitoring.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'monitoring.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/monitoring/src/v3/service_monitoring_service_client.ts.baseline b/baselines/monitoring/src/v3/service_monitoring_service_client.ts.baseline index 6f97fc87f..8f1cb39c2 100644 --- a/baselines/monitoring/src/v3/service_monitoring_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/service_monitoring_service_client.ts.baseline @@ -47,6 +47,8 @@ export class ServiceMonitoringServiceClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -101,7 +103,12 @@ export class ServiceMonitoringServiceClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof ServiceMonitoringServiceClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'monitoring.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -109,7 +116,7 @@ export class ServiceMonitoringServiceClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -134,10 +141,10 @@ export class ServiceMonitoringServiceClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -325,21 +332,49 @@ export class ServiceMonitoringServiceClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'monitoring.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'monitoring.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/monitoring/src/v3/uptime_check_service_client.ts.baseline b/baselines/monitoring/src/v3/uptime_check_service_client.ts.baseline index 952e71da1..9f511e3cf 100644 --- a/baselines/monitoring/src/v3/uptime_check_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/uptime_check_service_client.ts.baseline @@ -51,6 +51,8 @@ export class UptimeCheckServiceClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -105,7 +107,12 @@ export class UptimeCheckServiceClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof UptimeCheckServiceClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'monitoring.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -113,7 +120,7 @@ export class UptimeCheckServiceClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -138,10 +145,10 @@ export class UptimeCheckServiceClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -329,21 +336,49 @@ export class UptimeCheckServiceClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'monitoring.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'monitoring.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/monitoring/test/gapic_alert_policy_service_v3.ts.baseline b/baselines/monitoring/test/gapic_alert_policy_service_v3.ts.baseline index bbff0ee78..e3dacfeae 100644 --- a/baselines/monitoring/test/gapic_alert_policy_service_v3.ts.baseline +++ b/baselines/monitoring/test/gapic_alert_policy_service_v3.ts.baseline @@ -102,13 +102,53 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v3.AlertPolicyServiceClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = alertpolicyserviceModule.v3.AlertPolicyServiceClient.servicePath; - assert(servicePath); + const client = new alertpolicyserviceModule.v3.AlertPolicyServiceClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'monitoring.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = alertpolicyserviceModule.v3.AlertPolicyServiceClient.apiEndpoint; - assert(apiEndpoint); + const client = new alertpolicyserviceModule.v3.AlertPolicyServiceClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'monitoring.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new alertpolicyserviceModule.v3.AlertPolicyServiceClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = alertpolicyserviceModule.v3.AlertPolicyServiceClient.servicePath; + assert.strictEqual(servicePath, 'monitoring.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = alertpolicyserviceModule.v3.AlertPolicyServiceClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'monitoring.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new alertpolicyserviceModule.v3.AlertPolicyServiceClient({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'monitoring.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new alertpolicyserviceModule.v3.AlertPolicyServiceClient({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'monitoring.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new alertpolicyserviceModule.v3.AlertPolicyServiceClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/monitoring/test/gapic_group_service_v3.ts.baseline b/baselines/monitoring/test/gapic_group_service_v3.ts.baseline index 17a23eb4c..bbc33c182 100644 --- a/baselines/monitoring/test/gapic_group_service_v3.ts.baseline +++ b/baselines/monitoring/test/gapic_group_service_v3.ts.baseline @@ -102,13 +102,53 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v3.GroupServiceClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = groupserviceModule.v3.GroupServiceClient.servicePath; - assert(servicePath); + const client = new groupserviceModule.v3.GroupServiceClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'monitoring.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = groupserviceModule.v3.GroupServiceClient.apiEndpoint; - assert(apiEndpoint); + const client = new groupserviceModule.v3.GroupServiceClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'monitoring.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new groupserviceModule.v3.GroupServiceClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = groupserviceModule.v3.GroupServiceClient.servicePath; + assert.strictEqual(servicePath, 'monitoring.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = groupserviceModule.v3.GroupServiceClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'monitoring.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new groupserviceModule.v3.GroupServiceClient({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'monitoring.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new groupserviceModule.v3.GroupServiceClient({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'monitoring.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new groupserviceModule.v3.GroupServiceClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/monitoring/test/gapic_metric_service_v3.ts.baseline b/baselines/monitoring/test/gapic_metric_service_v3.ts.baseline index 4d908eca8..682deaaa5 100644 --- a/baselines/monitoring/test/gapic_metric_service_v3.ts.baseline +++ b/baselines/monitoring/test/gapic_metric_service_v3.ts.baseline @@ -102,13 +102,53 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v3.MetricServiceClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = metricserviceModule.v3.MetricServiceClient.servicePath; - assert(servicePath); + const client = new metricserviceModule.v3.MetricServiceClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'monitoring.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = metricserviceModule.v3.MetricServiceClient.apiEndpoint; - assert(apiEndpoint); + const client = new metricserviceModule.v3.MetricServiceClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'monitoring.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new metricserviceModule.v3.MetricServiceClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = metricserviceModule.v3.MetricServiceClient.servicePath; + assert.strictEqual(servicePath, 'monitoring.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = metricserviceModule.v3.MetricServiceClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'monitoring.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new metricserviceModule.v3.MetricServiceClient({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'monitoring.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new metricserviceModule.v3.MetricServiceClient({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'monitoring.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new metricserviceModule.v3.MetricServiceClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/monitoring/test/gapic_notification_channel_service_v3.ts.baseline b/baselines/monitoring/test/gapic_notification_channel_service_v3.ts.baseline index 5d32cdf81..fb7642d38 100644 --- a/baselines/monitoring/test/gapic_notification_channel_service_v3.ts.baseline +++ b/baselines/monitoring/test/gapic_notification_channel_service_v3.ts.baseline @@ -102,13 +102,53 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v3.NotificationChannelServiceClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = notificationchannelserviceModule.v3.NotificationChannelServiceClient.servicePath; - assert(servicePath); + const client = new notificationchannelserviceModule.v3.NotificationChannelServiceClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'monitoring.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = notificationchannelserviceModule.v3.NotificationChannelServiceClient.apiEndpoint; - assert(apiEndpoint); + const client = new notificationchannelserviceModule.v3.NotificationChannelServiceClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'monitoring.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new notificationchannelserviceModule.v3.NotificationChannelServiceClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = notificationchannelserviceModule.v3.NotificationChannelServiceClient.servicePath; + assert.strictEqual(servicePath, 'monitoring.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = notificationchannelserviceModule.v3.NotificationChannelServiceClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'monitoring.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new notificationchannelserviceModule.v3.NotificationChannelServiceClient({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'monitoring.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new notificationchannelserviceModule.v3.NotificationChannelServiceClient({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'monitoring.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new notificationchannelserviceModule.v3.NotificationChannelServiceClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/monitoring/test/gapic_service_monitoring_service_v3.ts.baseline b/baselines/monitoring/test/gapic_service_monitoring_service_v3.ts.baseline index b10506b85..f80e9565d 100644 --- a/baselines/monitoring/test/gapic_service_monitoring_service_v3.ts.baseline +++ b/baselines/monitoring/test/gapic_service_monitoring_service_v3.ts.baseline @@ -102,13 +102,53 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v3.ServiceMonitoringServiceClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = servicemonitoringserviceModule.v3.ServiceMonitoringServiceClient.servicePath; - assert(servicePath); + const client = new servicemonitoringserviceModule.v3.ServiceMonitoringServiceClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'monitoring.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = servicemonitoringserviceModule.v3.ServiceMonitoringServiceClient.apiEndpoint; - assert(apiEndpoint); + const client = new servicemonitoringserviceModule.v3.ServiceMonitoringServiceClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'monitoring.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new servicemonitoringserviceModule.v3.ServiceMonitoringServiceClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = servicemonitoringserviceModule.v3.ServiceMonitoringServiceClient.servicePath; + assert.strictEqual(servicePath, 'monitoring.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = servicemonitoringserviceModule.v3.ServiceMonitoringServiceClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'monitoring.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new servicemonitoringserviceModule.v3.ServiceMonitoringServiceClient({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'monitoring.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new servicemonitoringserviceModule.v3.ServiceMonitoringServiceClient({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'monitoring.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new servicemonitoringserviceModule.v3.ServiceMonitoringServiceClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/monitoring/test/gapic_uptime_check_service_v3.ts.baseline b/baselines/monitoring/test/gapic_uptime_check_service_v3.ts.baseline index 179cb36f3..fdf3e79c4 100644 --- a/baselines/monitoring/test/gapic_uptime_check_service_v3.ts.baseline +++ b/baselines/monitoring/test/gapic_uptime_check_service_v3.ts.baseline @@ -102,13 +102,53 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v3.UptimeCheckServiceClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = uptimecheckserviceModule.v3.UptimeCheckServiceClient.servicePath; - assert(servicePath); + const client = new uptimecheckserviceModule.v3.UptimeCheckServiceClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'monitoring.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = uptimecheckserviceModule.v3.UptimeCheckServiceClient.apiEndpoint; - assert(apiEndpoint); + const client = new uptimecheckserviceModule.v3.UptimeCheckServiceClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'monitoring.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new uptimecheckserviceModule.v3.UptimeCheckServiceClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = uptimecheckserviceModule.v3.UptimeCheckServiceClient.servicePath; + assert.strictEqual(servicePath, 'monitoring.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = uptimecheckserviceModule.v3.UptimeCheckServiceClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'monitoring.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new uptimecheckserviceModule.v3.UptimeCheckServiceClient({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'monitoring.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new uptimecheckserviceModule.v3.UptimeCheckServiceClient({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'monitoring.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new uptimecheckserviceModule.v3.UptimeCheckServiceClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/naming-esm/esm/src/v1beta1/naming_client.ts.baseline b/baselines/naming-esm/esm/src/v1beta1/naming_client.ts.baseline index 5bb60a8c1..f89bfb986 100644 --- a/baselines/naming-esm/esm/src/v1beta1/naming_client.ts.baseline +++ b/baselines/naming-esm/esm/src/v1beta1/naming_client.ts.baseline @@ -51,6 +51,8 @@ export class NamingClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -107,7 +109,12 @@ export class NamingClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof NamingClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath1; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'localhost'; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port1; const clientConfig = opts?.clientConfig ?? {}; @@ -115,7 +122,7 @@ export class NamingClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath1 && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes1; } @@ -140,10 +147,10 @@ export class NamingClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath1; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath1) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes1; } @@ -297,21 +304,49 @@ export class NamingClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath1() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath1 is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } /** - * The DNS address for this API service - same as servicePath1(), + * The DNS address for this API service - same as servicePath1, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint1() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint1 is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath1() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath1(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint1() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/naming-esm/esm/test/gapic_naming_v1beta1.ts.baseline b/baselines/naming-esm/esm/test/gapic_naming_v1beta1.ts.baseline index cdb42def7..8ff1212d9 100644 --- a/baselines/naming-esm/esm/test/gapic_naming_v1beta1.ts.baseline +++ b/baselines/naming-esm/esm/test/gapic_naming_v1beta1.ts.baseline @@ -127,13 +127,42 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.NamingClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = namingModule.v1beta1.NamingClient.servicePath1; - assert(servicePath); + const client = new namingModule.v1beta1.NamingClient(); + const servicePath = client.servicePath1; + assert.strictEqual(servicePath, 'localhost'); }); it('has apiEndpoint', () => { - const apiEndpoint = namingModule.v1beta1.NamingClient.apiEndpoint1; - assert(apiEndpoint); + const client = new namingModule.v1beta1.NamingClient(); + const apiEndpoint = client.apiEndpoint1; + assert.strictEqual(apiEndpoint, 'localhost'); + }); + + it('has universeDomain', () => { + const client = new namingModule.v1beta1.NamingClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath1 is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = namingModule.v1beta1.NamingClient.servicePath1; + assert.strictEqual(servicePath, 'localhost'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint1 is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = namingModule.v1beta1.NamingClient.apiEndpoint1; + assert.strictEqual(apiEndpoint, 'localhost'); + assert(stub.called); + stub.restore(); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new namingModule.v1beta1.NamingClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/naming/src/v1beta1/naming_client.ts.baseline b/baselines/naming/src/v1beta1/naming_client.ts.baseline index ee4491062..c9a311d47 100644 --- a/baselines/naming/src/v1beta1/naming_client.ts.baseline +++ b/baselines/naming/src/v1beta1/naming_client.ts.baseline @@ -44,6 +44,8 @@ export class NamingClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -99,7 +101,12 @@ export class NamingClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof NamingClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath1; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'localhost'; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port1; const clientConfig = opts?.clientConfig ?? {}; @@ -107,7 +114,7 @@ export class NamingClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath1 && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes1; } @@ -132,10 +139,10 @@ export class NamingClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath1; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath1) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes1; } @@ -281,21 +288,49 @@ export class NamingClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath1() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath1 is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } /** - * The DNS address for this API service - same as servicePath1(), + * The DNS address for this API service - same as servicePath1, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint1() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint1 is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath1() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath1(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint1() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/naming/test/gapic_naming_v1beta1.ts.baseline b/baselines/naming/test/gapic_naming_v1beta1.ts.baseline index ac104bef6..cacfdf3c6 100644 --- a/baselines/naming/test/gapic_naming_v1beta1.ts.baseline +++ b/baselines/naming/test/gapic_naming_v1beta1.ts.baseline @@ -118,13 +118,42 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.NamingClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = namingModule.v1beta1.NamingClient.servicePath1; - assert(servicePath); + const client = new namingModule.v1beta1.NamingClient(); + const servicePath = client.servicePath1; + assert.strictEqual(servicePath, 'localhost'); }); it('has apiEndpoint', () => { - const apiEndpoint = namingModule.v1beta1.NamingClient.apiEndpoint1; - assert(apiEndpoint); + const client = new namingModule.v1beta1.NamingClient(); + const apiEndpoint = client.apiEndpoint1; + assert.strictEqual(apiEndpoint, 'localhost'); + }); + + it('has universeDomain', () => { + const client = new namingModule.v1beta1.NamingClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath1 is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = namingModule.v1beta1.NamingClient.servicePath1; + assert.strictEqual(servicePath, 'localhost'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint1 is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = namingModule.v1beta1.NamingClient.apiEndpoint1; + assert.strictEqual(apiEndpoint, 'localhost'); + assert(stub.called); + stub.restore(); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new namingModule.v1beta1.NamingClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/redis-esm/esm/src/v1beta1/cloud_redis_client.ts.baseline b/baselines/redis-esm/esm/src/v1beta1/cloud_redis_client.ts.baseline index 10908b74b..66ddb2e04 100644 --- a/baselines/redis-esm/esm/src/v1beta1/cloud_redis_client.ts.baseline +++ b/baselines/redis-esm/esm/src/v1beta1/cloud_redis_client.ts.baseline @@ -65,6 +65,8 @@ export class CloudRedisClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -121,7 +123,12 @@ export class CloudRedisClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof CloudRedisClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'redis.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -129,7 +136,7 @@ export class CloudRedisClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -154,10 +161,10 @@ export class CloudRedisClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -351,21 +358,49 @@ export class CloudRedisClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'redis.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'redis.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/redis-esm/esm/test/gapic_cloud_redis_v1beta1.ts.baseline b/baselines/redis-esm/esm/test/gapic_cloud_redis_v1beta1.ts.baseline index 480d8fec3..2f1e3ca01 100644 --- a/baselines/redis-esm/esm/test/gapic_cloud_redis_v1beta1.ts.baseline +++ b/baselines/redis-esm/esm/test/gapic_cloud_redis_v1beta1.ts.baseline @@ -127,13 +127,53 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.CloudRedisClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = cloudredisModule.v1beta1.CloudRedisClient.servicePath; - assert(servicePath); + const client = new cloudredisModule.v1beta1.CloudRedisClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'redis.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = cloudredisModule.v1beta1.CloudRedisClient.apiEndpoint; - assert(apiEndpoint); + const client = new cloudredisModule.v1beta1.CloudRedisClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'redis.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new cloudredisModule.v1beta1.CloudRedisClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = cloudredisModule.v1beta1.CloudRedisClient.servicePath; + assert.strictEqual(servicePath, 'redis.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = cloudredisModule.v1beta1.CloudRedisClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'redis.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new cloudredisModule.v1beta1.CloudRedisClient({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'redis.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new cloudredisModule.v1beta1.CloudRedisClient({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'redis.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new cloudredisModule.v1beta1.CloudRedisClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/redis/src/v1beta1/cloud_redis_client.ts.baseline b/baselines/redis/src/v1beta1/cloud_redis_client.ts.baseline index 5140b0939..66d05245e 100644 --- a/baselines/redis/src/v1beta1/cloud_redis_client.ts.baseline +++ b/baselines/redis/src/v1beta1/cloud_redis_client.ts.baseline @@ -58,6 +58,8 @@ export class CloudRedisClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -113,7 +115,12 @@ export class CloudRedisClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof CloudRedisClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'redis.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -121,7 +128,7 @@ export class CloudRedisClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -146,10 +153,10 @@ export class CloudRedisClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -335,21 +342,49 @@ export class CloudRedisClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'redis.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'redis.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/redis/test/gapic_cloud_redis_v1beta1.ts.baseline b/baselines/redis/test/gapic_cloud_redis_v1beta1.ts.baseline index a486dd4f6..b6656f90d 100644 --- a/baselines/redis/test/gapic_cloud_redis_v1beta1.ts.baseline +++ b/baselines/redis/test/gapic_cloud_redis_v1beta1.ts.baseline @@ -118,13 +118,53 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.CloudRedisClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = cloudredisModule.v1beta1.CloudRedisClient.servicePath; - assert(servicePath); + const client = new cloudredisModule.v1beta1.CloudRedisClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'redis.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = cloudredisModule.v1beta1.CloudRedisClient.apiEndpoint; - assert(apiEndpoint); + const client = new cloudredisModule.v1beta1.CloudRedisClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'redis.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new cloudredisModule.v1beta1.CloudRedisClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = cloudredisModule.v1beta1.CloudRedisClient.servicePath; + assert.strictEqual(servicePath, 'redis.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = cloudredisModule.v1beta1.CloudRedisClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'redis.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new cloudredisModule.v1beta1.CloudRedisClient({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'redis.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new cloudredisModule.v1beta1.CloudRedisClient({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'redis.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new cloudredisModule.v1beta1.CloudRedisClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/routingtest-esm/esm/src/v1/test_service_client.ts.baseline b/baselines/routingtest-esm/esm/src/v1/test_service_client.ts.baseline index b9cf61a09..035219267 100644 --- a/baselines/routingtest-esm/esm/src/v1/test_service_client.ts.baseline +++ b/baselines/routingtest-esm/esm/src/v1/test_service_client.ts.baseline @@ -52,6 +52,8 @@ export class TestServiceClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -106,7 +108,12 @@ export class TestServiceClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof TestServiceClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'localhost'; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -114,7 +121,7 @@ export class TestServiceClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -139,10 +146,10 @@ export class TestServiceClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -249,21 +256,49 @@ export class TestServiceClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/routingtest-esm/esm/test/gapic_test_service_v1.ts.baseline b/baselines/routingtest-esm/esm/test/gapic_test_service_v1.ts.baseline index 9f1a9a064..61d2c57a1 100644 --- a/baselines/routingtest-esm/esm/test/gapic_test_service_v1.ts.baseline +++ b/baselines/routingtest-esm/esm/test/gapic_test_service_v1.ts.baseline @@ -64,13 +64,42 @@ function stubSimpleCallWithCallback(response?: ResponseType, error describe('v1.TestServiceClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = testserviceModule.v1.TestServiceClient.servicePath; - assert(servicePath); + const client = new testserviceModule.v1.TestServiceClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'localhost'); }); it('has apiEndpoint', () => { - const apiEndpoint = testserviceModule.v1.TestServiceClient.apiEndpoint; - assert(apiEndpoint); + const client = new testserviceModule.v1.TestServiceClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + }); + + it('has universeDomain', () => { + const client = new testserviceModule.v1.TestServiceClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = testserviceModule.v1.TestServiceClient.servicePath; + assert.strictEqual(servicePath, 'localhost'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = testserviceModule.v1.TestServiceClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + assert(stub.called); + stub.restore(); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new testserviceModule.v1.TestServiceClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/routingtest/src/v1/test_service_client.ts.baseline b/baselines/routingtest/src/v1/test_service_client.ts.baseline index 0aea93721..81793a2be 100644 --- a/baselines/routingtest/src/v1/test_service_client.ts.baseline +++ b/baselines/routingtest/src/v1/test_service_client.ts.baseline @@ -45,6 +45,8 @@ export class TestServiceClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -98,7 +100,12 @@ export class TestServiceClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof TestServiceClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'localhost'; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -106,7 +113,7 @@ export class TestServiceClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -131,10 +138,10 @@ export class TestServiceClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -233,21 +240,49 @@ export class TestServiceClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/routingtest/test/gapic_test_service_v1.ts.baseline b/baselines/routingtest/test/gapic_test_service_v1.ts.baseline index 7fda71cfd..2a63f7f62 100644 --- a/baselines/routingtest/test/gapic_test_service_v1.ts.baseline +++ b/baselines/routingtest/test/gapic_test_service_v1.ts.baseline @@ -55,13 +55,42 @@ function stubSimpleCallWithCallback(response?: ResponseType, error describe('v1.TestServiceClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = testserviceModule.v1.TestServiceClient.servicePath; - assert(servicePath); + const client = new testserviceModule.v1.TestServiceClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'localhost'); }); it('has apiEndpoint', () => { - const apiEndpoint = testserviceModule.v1.TestServiceClient.apiEndpoint; - assert(apiEndpoint); + const client = new testserviceModule.v1.TestServiceClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + }); + + it('has universeDomain', () => { + const client = new testserviceModule.v1.TestServiceClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = testserviceModule.v1.TestServiceClient.servicePath; + assert.strictEqual(servicePath, 'localhost'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = testserviceModule.v1.TestServiceClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + assert(stub.called); + stub.restore(); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new testserviceModule.v1.TestServiceClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/showcase-esm/esm/src/v1beta1/compliance_client.ts.baseline b/baselines/showcase-esm/esm/src/v1beta1/compliance_client.ts.baseline index d27dd874b..e233e3ce5 100644 --- a/baselines/showcase-esm/esm/src/v1beta1/compliance_client.ts.baseline +++ b/baselines/showcase-esm/esm/src/v1beta1/compliance_client.ts.baseline @@ -53,6 +53,8 @@ export class ComplianceClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -108,7 +110,12 @@ export class ComplianceClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof ComplianceClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'localhost'; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -119,7 +126,7 @@ export class ComplianceClient { opts.numericEnums = true; // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -144,10 +151,10 @@ export class ComplianceClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -293,21 +300,49 @@ export class ComplianceClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/showcase-esm/esm/src/v1beta1/echo_client.ts.baseline b/baselines/showcase-esm/esm/src/v1beta1/echo_client.ts.baseline index f97265554..71945b0c6 100644 --- a/baselines/showcase-esm/esm/src/v1beta1/echo_client.ts.baseline +++ b/baselines/showcase-esm/esm/src/v1beta1/echo_client.ts.baseline @@ -57,6 +57,8 @@ export class EchoClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -113,7 +115,12 @@ export class EchoClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof EchoClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'localhost'; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -124,7 +131,7 @@ export class EchoClient { opts.numericEnums = true; // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -149,10 +156,10 @@ export class EchoClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -352,21 +359,49 @@ export class EchoClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/showcase-esm/esm/src/v1beta1/identity_client.ts.baseline b/baselines/showcase-esm/esm/src/v1beta1/identity_client.ts.baseline index ada3c2b75..11381b3d5 100644 --- a/baselines/showcase-esm/esm/src/v1beta1/identity_client.ts.baseline +++ b/baselines/showcase-esm/esm/src/v1beta1/identity_client.ts.baseline @@ -51,6 +51,8 @@ export class IdentityClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -106,7 +108,12 @@ export class IdentityClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof IdentityClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'localhost'; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -117,7 +124,7 @@ export class IdentityClient { opts.numericEnums = true; // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -142,10 +149,10 @@ export class IdentityClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -300,21 +307,49 @@ export class IdentityClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/showcase-esm/esm/src/v1beta1/messaging_client.ts.baseline b/baselines/showcase-esm/esm/src/v1beta1/messaging_client.ts.baseline index b05f45cb4..953e4f1c2 100644 --- a/baselines/showcase-esm/esm/src/v1beta1/messaging_client.ts.baseline +++ b/baselines/showcase-esm/esm/src/v1beta1/messaging_client.ts.baseline @@ -54,6 +54,8 @@ export class MessagingClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -110,7 +112,12 @@ export class MessagingClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof MessagingClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'localhost'; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -121,7 +128,7 @@ export class MessagingClient { opts.numericEnums = true; // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -146,10 +153,10 @@ export class MessagingClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -351,21 +358,49 @@ export class MessagingClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/showcase-esm/esm/src/v1beta1/sequence_service_client.ts.baseline b/baselines/showcase-esm/esm/src/v1beta1/sequence_service_client.ts.baseline index c7ca1cabe..26e6d622d 100644 --- a/baselines/showcase-esm/esm/src/v1beta1/sequence_service_client.ts.baseline +++ b/baselines/showcase-esm/esm/src/v1beta1/sequence_service_client.ts.baseline @@ -50,6 +50,8 @@ export class SequenceServiceClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -105,7 +107,12 @@ export class SequenceServiceClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof SequenceServiceClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'localhost'; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -116,7 +123,7 @@ export class SequenceServiceClient { opts.numericEnums = true; // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -141,10 +148,10 @@ export class SequenceServiceClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -290,21 +297,49 @@ export class SequenceServiceClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/showcase-esm/esm/src/v1beta1/testing_client.ts.baseline b/baselines/showcase-esm/esm/src/v1beta1/testing_client.ts.baseline index 6fdcd868e..e8fd944ce 100644 --- a/baselines/showcase-esm/esm/src/v1beta1/testing_client.ts.baseline +++ b/baselines/showcase-esm/esm/src/v1beta1/testing_client.ts.baseline @@ -52,6 +52,8 @@ export class TestingClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -107,7 +109,12 @@ export class TestingClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof TestingClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'localhost'; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -118,7 +125,7 @@ export class TestingClient { opts.numericEnums = true; // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -143,10 +150,10 @@ export class TestingClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -303,21 +310,49 @@ export class TestingClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/showcase-esm/esm/test/gapic_compliance_v1beta1.ts.baseline b/baselines/showcase-esm/esm/test/gapic_compliance_v1beta1.ts.baseline index 6ca58ac5c..d1c78ef38 100644 --- a/baselines/showcase-esm/esm/test/gapic_compliance_v1beta1.ts.baseline +++ b/baselines/showcase-esm/esm/test/gapic_compliance_v1beta1.ts.baseline @@ -64,13 +64,42 @@ function stubSimpleCallWithCallback(response?: ResponseType, error describe('v1beta1.ComplianceClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = complianceModule.v1beta1.ComplianceClient.servicePath; - assert(servicePath); + const client = new complianceModule.v1beta1.ComplianceClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'localhost'); }); it('has apiEndpoint', () => { - const apiEndpoint = complianceModule.v1beta1.ComplianceClient.apiEndpoint; - assert(apiEndpoint); + const client = new complianceModule.v1beta1.ComplianceClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + }); + + it('has universeDomain', () => { + const client = new complianceModule.v1beta1.ComplianceClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = complianceModule.v1beta1.ComplianceClient.servicePath; + assert.strictEqual(servicePath, 'localhost'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = complianceModule.v1beta1.ComplianceClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + assert(stub.called); + stub.restore(); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new complianceModule.v1beta1.ComplianceClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/showcase-esm/esm/test/gapic_echo_v1beta1.ts.baseline b/baselines/showcase-esm/esm/test/gapic_echo_v1beta1.ts.baseline index 55837539b..013f450d4 100644 --- a/baselines/showcase-esm/esm/test/gapic_echo_v1beta1.ts.baseline +++ b/baselines/showcase-esm/esm/test/gapic_echo_v1beta1.ts.baseline @@ -160,13 +160,42 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.EchoClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = echoModule.v1beta1.EchoClient.servicePath; - assert(servicePath); + const client = new echoModule.v1beta1.EchoClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'localhost'); }); it('has apiEndpoint', () => { - const apiEndpoint = echoModule.v1beta1.EchoClient.apiEndpoint; - assert(apiEndpoint); + const client = new echoModule.v1beta1.EchoClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + }); + + it('has universeDomain', () => { + const client = new echoModule.v1beta1.EchoClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = echoModule.v1beta1.EchoClient.servicePath; + assert.strictEqual(servicePath, 'localhost'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = echoModule.v1beta1.EchoClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + assert(stub.called); + stub.restore(); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new echoModule.v1beta1.EchoClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/showcase-esm/esm/test/gapic_identity_v1beta1.ts.baseline b/baselines/showcase-esm/esm/test/gapic_identity_v1beta1.ts.baseline index 11aca5322..03efa6165 100644 --- a/baselines/showcase-esm/esm/test/gapic_identity_v1beta1.ts.baseline +++ b/baselines/showcase-esm/esm/test/gapic_identity_v1beta1.ts.baseline @@ -111,13 +111,42 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.IdentityClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = identityModule.v1beta1.IdentityClient.servicePath; - assert(servicePath); + const client = new identityModule.v1beta1.IdentityClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'localhost'); }); it('has apiEndpoint', () => { - const apiEndpoint = identityModule.v1beta1.IdentityClient.apiEndpoint; - assert(apiEndpoint); + const client = new identityModule.v1beta1.IdentityClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + }); + + it('has universeDomain', () => { + const client = new identityModule.v1beta1.IdentityClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = identityModule.v1beta1.IdentityClient.servicePath; + assert.strictEqual(servicePath, 'localhost'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = identityModule.v1beta1.IdentityClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + assert(stub.called); + stub.restore(); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new identityModule.v1beta1.IdentityClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/showcase-esm/esm/test/gapic_messaging_v1beta1.ts.baseline b/baselines/showcase-esm/esm/test/gapic_messaging_v1beta1.ts.baseline index b7a190273..d3de767cb 100644 --- a/baselines/showcase-esm/esm/test/gapic_messaging_v1beta1.ts.baseline +++ b/baselines/showcase-esm/esm/test/gapic_messaging_v1beta1.ts.baseline @@ -160,13 +160,42 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.MessagingClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = messagingModule.v1beta1.MessagingClient.servicePath; - assert(servicePath); + const client = new messagingModule.v1beta1.MessagingClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'localhost'); }); it('has apiEndpoint', () => { - const apiEndpoint = messagingModule.v1beta1.MessagingClient.apiEndpoint; - assert(apiEndpoint); + const client = new messagingModule.v1beta1.MessagingClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + }); + + it('has universeDomain', () => { + const client = new messagingModule.v1beta1.MessagingClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = messagingModule.v1beta1.MessagingClient.servicePath; + assert.strictEqual(servicePath, 'localhost'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = messagingModule.v1beta1.MessagingClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + assert(stub.called); + stub.restore(); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new messagingModule.v1beta1.MessagingClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/showcase-esm/esm/test/gapic_sequence_service_v1beta1.ts.baseline b/baselines/showcase-esm/esm/test/gapic_sequence_service_v1beta1.ts.baseline index e99a6b011..0cee3be4f 100644 --- a/baselines/showcase-esm/esm/test/gapic_sequence_service_v1beta1.ts.baseline +++ b/baselines/showcase-esm/esm/test/gapic_sequence_service_v1beta1.ts.baseline @@ -64,13 +64,42 @@ function stubSimpleCallWithCallback(response?: ResponseType, error describe('v1beta1.SequenceServiceClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = sequenceserviceModule.v1beta1.SequenceServiceClient.servicePath; - assert(servicePath); + const client = new sequenceserviceModule.v1beta1.SequenceServiceClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'localhost'); }); it('has apiEndpoint', () => { - const apiEndpoint = sequenceserviceModule.v1beta1.SequenceServiceClient.apiEndpoint; - assert(apiEndpoint); + const client = new sequenceserviceModule.v1beta1.SequenceServiceClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + }); + + it('has universeDomain', () => { + const client = new sequenceserviceModule.v1beta1.SequenceServiceClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = sequenceserviceModule.v1beta1.SequenceServiceClient.servicePath; + assert.strictEqual(servicePath, 'localhost'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = sequenceserviceModule.v1beta1.SequenceServiceClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + assert(stub.called); + stub.restore(); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new sequenceserviceModule.v1beta1.SequenceServiceClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/showcase-esm/esm/test/gapic_testing_v1beta1.ts.baseline b/baselines/showcase-esm/esm/test/gapic_testing_v1beta1.ts.baseline index f46cbcb8c..79a17c15d 100644 --- a/baselines/showcase-esm/esm/test/gapic_testing_v1beta1.ts.baseline +++ b/baselines/showcase-esm/esm/test/gapic_testing_v1beta1.ts.baseline @@ -111,13 +111,42 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.TestingClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = testingModule.v1beta1.TestingClient.servicePath; - assert(servicePath); + const client = new testingModule.v1beta1.TestingClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'localhost'); }); it('has apiEndpoint', () => { - const apiEndpoint = testingModule.v1beta1.TestingClient.apiEndpoint; - assert(apiEndpoint); + const client = new testingModule.v1beta1.TestingClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + }); + + it('has universeDomain', () => { + const client = new testingModule.v1beta1.TestingClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = testingModule.v1beta1.TestingClient.servicePath; + assert.strictEqual(servicePath, 'localhost'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = testingModule.v1beta1.TestingClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + assert(stub.called); + stub.restore(); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new testingModule.v1beta1.TestingClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/showcase-legacy-esm/esm/src/v1beta1/echo_client.ts.baseline b/baselines/showcase-legacy-esm/esm/src/v1beta1/echo_client.ts.baseline index a8a625c93..9b5e8d01c 100644 --- a/baselines/showcase-legacy-esm/esm/src/v1beta1/echo_client.ts.baseline +++ b/baselines/showcase-legacy-esm/esm/src/v1beta1/echo_client.ts.baseline @@ -55,6 +55,8 @@ export class EchoClient { private _gaxGrpc: gax.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -99,14 +101,19 @@ export class EchoClient { constructor(opts?: ClientOptions) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof EchoClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'localhost'; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; opts = Object.assign({servicePath, port, clientConfig}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -126,10 +133,10 @@ export class EchoClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -283,21 +290,49 @@ export class EchoClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/showcase-legacy-esm/esm/test/gapic_echo_v1beta1.ts.baseline b/baselines/showcase-legacy-esm/esm/test/gapic_echo_v1beta1.ts.baseline index 634a9fb68..9f68c5c48 100644 --- a/baselines/showcase-legacy-esm/esm/test/gapic_echo_v1beta1.ts.baseline +++ b/baselines/showcase-legacy-esm/esm/test/gapic_echo_v1beta1.ts.baseline @@ -146,13 +146,42 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.EchoClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = echoModule.v1beta1.EchoClient.servicePath; - assert(servicePath); + const client = new echoModule.v1beta1.EchoClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'localhost'); }); it('has apiEndpoint', () => { - const apiEndpoint = echoModule.v1beta1.EchoClient.apiEndpoint; - assert(apiEndpoint); + const client = new echoModule.v1beta1.EchoClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + }); + + it('has universeDomain', () => { + const client = new echoModule.v1beta1.EchoClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = echoModule.v1beta1.EchoClient.servicePath; + assert.strictEqual(servicePath, 'localhost'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = echoModule.v1beta1.EchoClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + assert(stub.called); + stub.restore(); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new echoModule.v1beta1.EchoClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/showcase-legacy/src/v1beta1/echo_client.ts.baseline b/baselines/showcase-legacy/src/v1beta1/echo_client.ts.baseline index 8da914864..623ead694 100644 --- a/baselines/showcase-legacy/src/v1beta1/echo_client.ts.baseline +++ b/baselines/showcase-legacy/src/v1beta1/echo_client.ts.baseline @@ -49,6 +49,8 @@ export class EchoClient { private _gaxGrpc: gax.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -93,14 +95,19 @@ export class EchoClient { constructor(opts?: ClientOptions) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof EchoClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'localhost'; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; opts = Object.assign({servicePath, port, clientConfig}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -120,10 +127,10 @@ export class EchoClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -269,21 +276,49 @@ export class EchoClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/showcase-legacy/test/gapic_echo_v1beta1.ts.baseline b/baselines/showcase-legacy/test/gapic_echo_v1beta1.ts.baseline index ec912d6d4..10246647a 100644 --- a/baselines/showcase-legacy/test/gapic_echo_v1beta1.ts.baseline +++ b/baselines/showcase-legacy/test/gapic_echo_v1beta1.ts.baseline @@ -145,13 +145,42 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.EchoClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = echoModule.v1beta1.EchoClient.servicePath; - assert(servicePath); + const client = new echoModule.v1beta1.EchoClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'localhost'); }); it('has apiEndpoint', () => { - const apiEndpoint = echoModule.v1beta1.EchoClient.apiEndpoint; - assert(apiEndpoint); + const client = new echoModule.v1beta1.EchoClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + }); + + it('has universeDomain', () => { + const client = new echoModule.v1beta1.EchoClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = echoModule.v1beta1.EchoClient.servicePath; + assert.strictEqual(servicePath, 'localhost'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = echoModule.v1beta1.EchoClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + assert(stub.called); + stub.restore(); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new echoModule.v1beta1.EchoClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/showcase/src/v1beta1/compliance_client.ts.baseline b/baselines/showcase/src/v1beta1/compliance_client.ts.baseline index d6109b334..744e3fc19 100644 --- a/baselines/showcase/src/v1beta1/compliance_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/compliance_client.ts.baseline @@ -46,6 +46,8 @@ export class ComplianceClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -100,7 +102,12 @@ export class ComplianceClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof ComplianceClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'localhost'; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -111,7 +118,7 @@ export class ComplianceClient { opts.numericEnums = true; // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -136,10 +143,10 @@ export class ComplianceClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -277,21 +284,49 @@ export class ComplianceClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/showcase/src/v1beta1/echo_client.ts.baseline b/baselines/showcase/src/v1beta1/echo_client.ts.baseline index 6bd93f949..e9e7c49ae 100644 --- a/baselines/showcase/src/v1beta1/echo_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/echo_client.ts.baseline @@ -50,6 +50,8 @@ export class EchoClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -105,7 +107,12 @@ export class EchoClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof EchoClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'localhost'; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -116,7 +123,7 @@ export class EchoClient { opts.numericEnums = true; // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -141,10 +148,10 @@ export class EchoClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -336,21 +343,49 @@ export class EchoClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/showcase/src/v1beta1/identity_client.ts.baseline b/baselines/showcase/src/v1beta1/identity_client.ts.baseline index a825f9244..968da66bc 100644 --- a/baselines/showcase/src/v1beta1/identity_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/identity_client.ts.baseline @@ -44,6 +44,8 @@ export class IdentityClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -98,7 +100,12 @@ export class IdentityClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof IdentityClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'localhost'; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -109,7 +116,7 @@ export class IdentityClient { opts.numericEnums = true; // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -134,10 +141,10 @@ export class IdentityClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -284,21 +291,49 @@ export class IdentityClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/showcase/src/v1beta1/messaging_client.ts.baseline b/baselines/showcase/src/v1beta1/messaging_client.ts.baseline index 75981bf70..3fb2eb087 100644 --- a/baselines/showcase/src/v1beta1/messaging_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/messaging_client.ts.baseline @@ -47,6 +47,8 @@ export class MessagingClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -102,7 +104,12 @@ export class MessagingClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof MessagingClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'localhost'; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -113,7 +120,7 @@ export class MessagingClient { opts.numericEnums = true; // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -138,10 +145,10 @@ export class MessagingClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -335,21 +342,49 @@ export class MessagingClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/showcase/src/v1beta1/sequence_service_client.ts.baseline b/baselines/showcase/src/v1beta1/sequence_service_client.ts.baseline index 343793c55..8600019b9 100644 --- a/baselines/showcase/src/v1beta1/sequence_service_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/sequence_service_client.ts.baseline @@ -43,6 +43,8 @@ export class SequenceServiceClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -97,7 +99,12 @@ export class SequenceServiceClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof SequenceServiceClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'localhost'; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -108,7 +115,7 @@ export class SequenceServiceClient { opts.numericEnums = true; // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -133,10 +140,10 @@ export class SequenceServiceClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -274,21 +281,49 @@ export class SequenceServiceClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/showcase/src/v1beta1/testing_client.ts.baseline b/baselines/showcase/src/v1beta1/testing_client.ts.baseline index 91df25962..4b7dd6183 100644 --- a/baselines/showcase/src/v1beta1/testing_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/testing_client.ts.baseline @@ -45,6 +45,8 @@ export class TestingClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -99,7 +101,12 @@ export class TestingClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof TestingClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'localhost'; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -110,7 +117,7 @@ export class TestingClient { opts.numericEnums = true; // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -135,10 +142,10 @@ export class TestingClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -287,21 +294,49 @@ export class TestingClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'localhost'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/showcase/test/gapic_compliance_v1beta1.ts.baseline b/baselines/showcase/test/gapic_compliance_v1beta1.ts.baseline index eca9c8a3b..2391ba9d1 100644 --- a/baselines/showcase/test/gapic_compliance_v1beta1.ts.baseline +++ b/baselines/showcase/test/gapic_compliance_v1beta1.ts.baseline @@ -55,13 +55,42 @@ function stubSimpleCallWithCallback(response?: ResponseType, error describe('v1beta1.ComplianceClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = complianceModule.v1beta1.ComplianceClient.servicePath; - assert(servicePath); + const client = new complianceModule.v1beta1.ComplianceClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'localhost'); }); it('has apiEndpoint', () => { - const apiEndpoint = complianceModule.v1beta1.ComplianceClient.apiEndpoint; - assert(apiEndpoint); + const client = new complianceModule.v1beta1.ComplianceClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + }); + + it('has universeDomain', () => { + const client = new complianceModule.v1beta1.ComplianceClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = complianceModule.v1beta1.ComplianceClient.servicePath; + assert.strictEqual(servicePath, 'localhost'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = complianceModule.v1beta1.ComplianceClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + assert(stub.called); + stub.restore(); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new complianceModule.v1beta1.ComplianceClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/showcase/test/gapic_echo_v1beta1.ts.baseline b/baselines/showcase/test/gapic_echo_v1beta1.ts.baseline index 87c38706b..374a8fefe 100644 --- a/baselines/showcase/test/gapic_echo_v1beta1.ts.baseline +++ b/baselines/showcase/test/gapic_echo_v1beta1.ts.baseline @@ -151,13 +151,42 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.EchoClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = echoModule.v1beta1.EchoClient.servicePath; - assert(servicePath); + const client = new echoModule.v1beta1.EchoClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'localhost'); }); it('has apiEndpoint', () => { - const apiEndpoint = echoModule.v1beta1.EchoClient.apiEndpoint; - assert(apiEndpoint); + const client = new echoModule.v1beta1.EchoClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + }); + + it('has universeDomain', () => { + const client = new echoModule.v1beta1.EchoClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = echoModule.v1beta1.EchoClient.servicePath; + assert.strictEqual(servicePath, 'localhost'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = echoModule.v1beta1.EchoClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + assert(stub.called); + stub.restore(); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new echoModule.v1beta1.EchoClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/showcase/test/gapic_identity_v1beta1.ts.baseline b/baselines/showcase/test/gapic_identity_v1beta1.ts.baseline index 8e8eef119..7d9f7f3de 100644 --- a/baselines/showcase/test/gapic_identity_v1beta1.ts.baseline +++ b/baselines/showcase/test/gapic_identity_v1beta1.ts.baseline @@ -102,13 +102,42 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.IdentityClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = identityModule.v1beta1.IdentityClient.servicePath; - assert(servicePath); + const client = new identityModule.v1beta1.IdentityClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'localhost'); }); it('has apiEndpoint', () => { - const apiEndpoint = identityModule.v1beta1.IdentityClient.apiEndpoint; - assert(apiEndpoint); + const client = new identityModule.v1beta1.IdentityClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + }); + + it('has universeDomain', () => { + const client = new identityModule.v1beta1.IdentityClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = identityModule.v1beta1.IdentityClient.servicePath; + assert.strictEqual(servicePath, 'localhost'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = identityModule.v1beta1.IdentityClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + assert(stub.called); + stub.restore(); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new identityModule.v1beta1.IdentityClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/showcase/test/gapic_messaging_v1beta1.ts.baseline b/baselines/showcase/test/gapic_messaging_v1beta1.ts.baseline index d0b8a7720..adaa2ba8c 100644 --- a/baselines/showcase/test/gapic_messaging_v1beta1.ts.baseline +++ b/baselines/showcase/test/gapic_messaging_v1beta1.ts.baseline @@ -151,13 +151,42 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.MessagingClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = messagingModule.v1beta1.MessagingClient.servicePath; - assert(servicePath); + const client = new messagingModule.v1beta1.MessagingClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'localhost'); }); it('has apiEndpoint', () => { - const apiEndpoint = messagingModule.v1beta1.MessagingClient.apiEndpoint; - assert(apiEndpoint); + const client = new messagingModule.v1beta1.MessagingClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + }); + + it('has universeDomain', () => { + const client = new messagingModule.v1beta1.MessagingClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = messagingModule.v1beta1.MessagingClient.servicePath; + assert.strictEqual(servicePath, 'localhost'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = messagingModule.v1beta1.MessagingClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + assert(stub.called); + stub.restore(); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new messagingModule.v1beta1.MessagingClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/showcase/test/gapic_sequence_service_v1beta1.ts.baseline b/baselines/showcase/test/gapic_sequence_service_v1beta1.ts.baseline index b9dc68c2a..78d75f0ad 100644 --- a/baselines/showcase/test/gapic_sequence_service_v1beta1.ts.baseline +++ b/baselines/showcase/test/gapic_sequence_service_v1beta1.ts.baseline @@ -55,13 +55,42 @@ function stubSimpleCallWithCallback(response?: ResponseType, error describe('v1beta1.SequenceServiceClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = sequenceserviceModule.v1beta1.SequenceServiceClient.servicePath; - assert(servicePath); + const client = new sequenceserviceModule.v1beta1.SequenceServiceClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'localhost'); }); it('has apiEndpoint', () => { - const apiEndpoint = sequenceserviceModule.v1beta1.SequenceServiceClient.apiEndpoint; - assert(apiEndpoint); + const client = new sequenceserviceModule.v1beta1.SequenceServiceClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + }); + + it('has universeDomain', () => { + const client = new sequenceserviceModule.v1beta1.SequenceServiceClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = sequenceserviceModule.v1beta1.SequenceServiceClient.servicePath; + assert.strictEqual(servicePath, 'localhost'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = sequenceserviceModule.v1beta1.SequenceServiceClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + assert(stub.called); + stub.restore(); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new sequenceserviceModule.v1beta1.SequenceServiceClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/showcase/test/gapic_testing_v1beta1.ts.baseline b/baselines/showcase/test/gapic_testing_v1beta1.ts.baseline index 1afab612c..07152fc53 100644 --- a/baselines/showcase/test/gapic_testing_v1beta1.ts.baseline +++ b/baselines/showcase/test/gapic_testing_v1beta1.ts.baseline @@ -102,13 +102,42 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.TestingClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = testingModule.v1beta1.TestingClient.servicePath; - assert(servicePath); + const client = new testingModule.v1beta1.TestingClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'localhost'); }); it('has apiEndpoint', () => { - const apiEndpoint = testingModule.v1beta1.TestingClient.apiEndpoint; - assert(apiEndpoint); + const client = new testingModule.v1beta1.TestingClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + }); + + it('has universeDomain', () => { + const client = new testingModule.v1beta1.TestingClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = testingModule.v1beta1.TestingClient.servicePath; + assert.strictEqual(servicePath, 'localhost'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = testingModule.v1beta1.TestingClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'localhost'); + assert(stub.called); + stub.restore(); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new testingModule.v1beta1.TestingClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/tasks-esm/esm/src/v2/cloud_tasks_client.ts.baseline b/baselines/tasks-esm/esm/src/v2/cloud_tasks_client.ts.baseline index f73ded45e..10474f9fa 100644 --- a/baselines/tasks-esm/esm/src/v2/cloud_tasks_client.ts.baseline +++ b/baselines/tasks-esm/esm/src/v2/cloud_tasks_client.ts.baseline @@ -52,6 +52,8 @@ export class CloudTasksClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -107,7 +109,12 @@ export class CloudTasksClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof CloudTasksClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'cloudtasks.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -115,7 +122,7 @@ export class CloudTasksClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -140,10 +147,10 @@ export class CloudTasksClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -273,21 +280,49 @@ export class CloudTasksClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'cloudtasks.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'cloudtasks.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/tasks-esm/esm/test/gapic_cloud_tasks_v2.ts.baseline b/baselines/tasks-esm/esm/test/gapic_cloud_tasks_v2.ts.baseline index cbd29ed75..b76659c3e 100644 --- a/baselines/tasks-esm/esm/test/gapic_cloud_tasks_v2.ts.baseline +++ b/baselines/tasks-esm/esm/test/gapic_cloud_tasks_v2.ts.baseline @@ -111,13 +111,53 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v2.CloudTasksClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = cloudtasksModule.v2.CloudTasksClient.servicePath; - assert(servicePath); + const client = new cloudtasksModule.v2.CloudTasksClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'cloudtasks.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = cloudtasksModule.v2.CloudTasksClient.apiEndpoint; - assert(apiEndpoint); + const client = new cloudtasksModule.v2.CloudTasksClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'cloudtasks.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new cloudtasksModule.v2.CloudTasksClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = cloudtasksModule.v2.CloudTasksClient.servicePath; + assert.strictEqual(servicePath, 'cloudtasks.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = cloudtasksModule.v2.CloudTasksClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'cloudtasks.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new cloudtasksModule.v2.CloudTasksClient({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'cloudtasks.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new cloudtasksModule.v2.CloudTasksClient({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'cloudtasks.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new cloudtasksModule.v2.CloudTasksClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/tasks/src/v2/cloud_tasks_client.ts.baseline b/baselines/tasks/src/v2/cloud_tasks_client.ts.baseline index c2b400692..7bb7095c3 100644 --- a/baselines/tasks/src/v2/cloud_tasks_client.ts.baseline +++ b/baselines/tasks/src/v2/cloud_tasks_client.ts.baseline @@ -45,6 +45,8 @@ export class CloudTasksClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -99,7 +101,12 @@ export class CloudTasksClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof CloudTasksClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'cloudtasks.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -107,7 +114,7 @@ export class CloudTasksClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -132,10 +139,10 @@ export class CloudTasksClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -257,21 +264,49 @@ export class CloudTasksClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'cloudtasks.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'cloudtasks.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/tasks/test/gapic_cloud_tasks_v2.ts.baseline b/baselines/tasks/test/gapic_cloud_tasks_v2.ts.baseline index aca3ffabe..d8e30e249 100644 --- a/baselines/tasks/test/gapic_cloud_tasks_v2.ts.baseline +++ b/baselines/tasks/test/gapic_cloud_tasks_v2.ts.baseline @@ -102,13 +102,53 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v2.CloudTasksClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = cloudtasksModule.v2.CloudTasksClient.servicePath; - assert(servicePath); + const client = new cloudtasksModule.v2.CloudTasksClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'cloudtasks.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = cloudtasksModule.v2.CloudTasksClient.apiEndpoint; - assert(apiEndpoint); + const client = new cloudtasksModule.v2.CloudTasksClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'cloudtasks.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new cloudtasksModule.v2.CloudTasksClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = cloudtasksModule.v2.CloudTasksClient.servicePath; + assert.strictEqual(servicePath, 'cloudtasks.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = cloudtasksModule.v2.CloudTasksClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'cloudtasks.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new cloudtasksModule.v2.CloudTasksClient({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'cloudtasks.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new cloudtasksModule.v2.CloudTasksClient({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'cloudtasks.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new cloudtasksModule.v2.CloudTasksClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/texttospeech-esm/esm/src/v1/text_to_speech_client.ts.baseline b/baselines/texttospeech-esm/esm/src/v1/text_to_speech_client.ts.baseline index 01c3d26b6..4a75cd8c9 100644 --- a/baselines/texttospeech-esm/esm/src/v1/text_to_speech_client.ts.baseline +++ b/baselines/texttospeech-esm/esm/src/v1/text_to_speech_client.ts.baseline @@ -51,6 +51,8 @@ export class TextToSpeechClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -105,7 +107,12 @@ export class TextToSpeechClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof TextToSpeechClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'texttospeech.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -113,7 +120,7 @@ export class TextToSpeechClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -138,10 +145,10 @@ export class TextToSpeechClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -248,21 +255,49 @@ export class TextToSpeechClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'texttospeech.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'texttospeech.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/texttospeech-esm/esm/test/gapic_text_to_speech_v1.ts.baseline b/baselines/texttospeech-esm/esm/test/gapic_text_to_speech_v1.ts.baseline index 34aeeb5e1..a2531fb7d 100644 --- a/baselines/texttospeech-esm/esm/test/gapic_text_to_speech_v1.ts.baseline +++ b/baselines/texttospeech-esm/esm/test/gapic_text_to_speech_v1.ts.baseline @@ -64,13 +64,53 @@ function stubSimpleCallWithCallback(response?: ResponseType, error describe('v1.TextToSpeechClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = texttospeechModule.v1.TextToSpeechClient.servicePath; - assert(servicePath); + const client = new texttospeechModule.v1.TextToSpeechClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'texttospeech.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = texttospeechModule.v1.TextToSpeechClient.apiEndpoint; - assert(apiEndpoint); + const client = new texttospeechModule.v1.TextToSpeechClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'texttospeech.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new texttospeechModule.v1.TextToSpeechClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = texttospeechModule.v1.TextToSpeechClient.servicePath; + assert.strictEqual(servicePath, 'texttospeech.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = texttospeechModule.v1.TextToSpeechClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'texttospeech.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new texttospeechModule.v1.TextToSpeechClient({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'texttospeech.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new texttospeechModule.v1.TextToSpeechClient({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'texttospeech.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new texttospeechModule.v1.TextToSpeechClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/texttospeech/src/v1/text_to_speech_client.ts.baseline b/baselines/texttospeech/src/v1/text_to_speech_client.ts.baseline index 7f3af74fb..47b6863c5 100644 --- a/baselines/texttospeech/src/v1/text_to_speech_client.ts.baseline +++ b/baselines/texttospeech/src/v1/text_to_speech_client.ts.baseline @@ -44,6 +44,8 @@ export class TextToSpeechClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -97,7 +99,12 @@ export class TextToSpeechClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof TextToSpeechClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'texttospeech.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -105,7 +112,7 @@ export class TextToSpeechClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -130,10 +137,10 @@ export class TextToSpeechClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -232,21 +239,49 @@ export class TextToSpeechClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'texttospeech.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'texttospeech.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/texttospeech/test/gapic_text_to_speech_v1.ts.baseline b/baselines/texttospeech/test/gapic_text_to_speech_v1.ts.baseline index 99f65f4e9..cff2c30a6 100644 --- a/baselines/texttospeech/test/gapic_text_to_speech_v1.ts.baseline +++ b/baselines/texttospeech/test/gapic_text_to_speech_v1.ts.baseline @@ -55,13 +55,53 @@ function stubSimpleCallWithCallback(response?: ResponseType, error describe('v1.TextToSpeechClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = texttospeechModule.v1.TextToSpeechClient.servicePath; - assert(servicePath); + const client = new texttospeechModule.v1.TextToSpeechClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'texttospeech.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = texttospeechModule.v1.TextToSpeechClient.apiEndpoint; - assert(apiEndpoint); + const client = new texttospeechModule.v1.TextToSpeechClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'texttospeech.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new texttospeechModule.v1.TextToSpeechClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = texttospeechModule.v1.TextToSpeechClient.servicePath; + assert.strictEqual(servicePath, 'texttospeech.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = texttospeechModule.v1.TextToSpeechClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'texttospeech.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new texttospeechModule.v1.TextToSpeechClient({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'texttospeech.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new texttospeechModule.v1.TextToSpeechClient({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'texttospeech.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new texttospeechModule.v1.TextToSpeechClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/translate-esm/esm/src/v3beta1/translation_service_client.ts.baseline b/baselines/translate-esm/esm/src/v3beta1/translation_service_client.ts.baseline index b48f2bebf..64dffbb53 100644 --- a/baselines/translate-esm/esm/src/v3beta1/translation_service_client.ts.baseline +++ b/baselines/translate-esm/esm/src/v3beta1/translation_service_client.ts.baseline @@ -51,6 +51,8 @@ export class TranslationServiceClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -107,7 +109,12 @@ export class TranslationServiceClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof TranslationServiceClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'translate.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -115,7 +122,7 @@ export class TranslationServiceClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -140,10 +147,10 @@ export class TranslationServiceClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -313,21 +320,49 @@ export class TranslationServiceClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'translate.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'translate.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/translate-esm/esm/test/gapic_translation_service_v3beta1.ts.baseline b/baselines/translate-esm/esm/test/gapic_translation_service_v3beta1.ts.baseline index 1449ac56d..134da37e9 100644 --- a/baselines/translate-esm/esm/test/gapic_translation_service_v3beta1.ts.baseline +++ b/baselines/translate-esm/esm/test/gapic_translation_service_v3beta1.ts.baseline @@ -127,13 +127,53 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v3beta1.TranslationServiceClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = translationserviceModule.v3beta1.TranslationServiceClient.servicePath; - assert(servicePath); + const client = new translationserviceModule.v3beta1.TranslationServiceClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'translate.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = translationserviceModule.v3beta1.TranslationServiceClient.apiEndpoint; - assert(apiEndpoint); + const client = new translationserviceModule.v3beta1.TranslationServiceClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'translate.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new translationserviceModule.v3beta1.TranslationServiceClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = translationserviceModule.v3beta1.TranslationServiceClient.servicePath; + assert.strictEqual(servicePath, 'translate.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = translationserviceModule.v3beta1.TranslationServiceClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'translate.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new translationserviceModule.v3beta1.TranslationServiceClient({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'translate.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new translationserviceModule.v3beta1.TranslationServiceClient({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'translate.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new translationserviceModule.v3beta1.TranslationServiceClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/translate/src/v3beta1/translation_service_client.ts.baseline b/baselines/translate/src/v3beta1/translation_service_client.ts.baseline index 743ed60e3..fc7e2fd9c 100644 --- a/baselines/translate/src/v3beta1/translation_service_client.ts.baseline +++ b/baselines/translate/src/v3beta1/translation_service_client.ts.baseline @@ -44,6 +44,8 @@ export class TranslationServiceClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -99,7 +101,12 @@ export class TranslationServiceClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof TranslationServiceClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'translate.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -107,7 +114,7 @@ export class TranslationServiceClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -132,10 +139,10 @@ export class TranslationServiceClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -297,21 +304,49 @@ export class TranslationServiceClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'translate.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'translate.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/translate/test/gapic_translation_service_v3beta1.ts.baseline b/baselines/translate/test/gapic_translation_service_v3beta1.ts.baseline index b5c4d2c12..62e6b5c6a 100644 --- a/baselines/translate/test/gapic_translation_service_v3beta1.ts.baseline +++ b/baselines/translate/test/gapic_translation_service_v3beta1.ts.baseline @@ -118,13 +118,53 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v3beta1.TranslationServiceClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = translationserviceModule.v3beta1.TranslationServiceClient.servicePath; - assert(servicePath); + const client = new translationserviceModule.v3beta1.TranslationServiceClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'translate.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = translationserviceModule.v3beta1.TranslationServiceClient.apiEndpoint; - assert(apiEndpoint); + const client = new translationserviceModule.v3beta1.TranslationServiceClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'translate.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new translationserviceModule.v3beta1.TranslationServiceClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = translationserviceModule.v3beta1.TranslationServiceClient.servicePath; + assert.strictEqual(servicePath, 'translate.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = translationserviceModule.v3beta1.TranslationServiceClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'translate.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new translationserviceModule.v3beta1.TranslationServiceClient({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'translate.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new translationserviceModule.v3beta1.TranslationServiceClient({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'translate.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new translationserviceModule.v3beta1.TranslationServiceClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/videointelligence-esm/esm/src/v1/video_intelligence_service_client.ts.baseline b/baselines/videointelligence-esm/esm/src/v1/video_intelligence_service_client.ts.baseline index 3ce0deae7..865a6e568 100644 --- a/baselines/videointelligence-esm/esm/src/v1/video_intelligence_service_client.ts.baseline +++ b/baselines/videointelligence-esm/esm/src/v1/video_intelligence_service_client.ts.baseline @@ -51,6 +51,8 @@ export class VideoIntelligenceServiceClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -106,7 +108,12 @@ export class VideoIntelligenceServiceClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof VideoIntelligenceServiceClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'videointelligence.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -114,7 +121,7 @@ export class VideoIntelligenceServiceClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -139,10 +146,10 @@ export class VideoIntelligenceServiceClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -275,21 +282,49 @@ export class VideoIntelligenceServiceClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'videointelligence.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'videointelligence.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/videointelligence-esm/esm/test/gapic_video_intelligence_service_v1.ts.baseline b/baselines/videointelligence-esm/esm/test/gapic_video_intelligence_service_v1.ts.baseline index 40139a26e..f68a13658 100644 --- a/baselines/videointelligence-esm/esm/test/gapic_video_intelligence_service_v1.ts.baseline +++ b/baselines/videointelligence-esm/esm/test/gapic_video_intelligence_service_v1.ts.baseline @@ -76,13 +76,53 @@ function stubLongRunningCallWithCallback(response?: ResponseType, describe('v1.VideoIntelligenceServiceClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = videointelligenceserviceModule.v1.VideoIntelligenceServiceClient.servicePath; - assert(servicePath); + const client = new videointelligenceserviceModule.v1.VideoIntelligenceServiceClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'videointelligence.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = videointelligenceserviceModule.v1.VideoIntelligenceServiceClient.apiEndpoint; - assert(apiEndpoint); + const client = new videointelligenceserviceModule.v1.VideoIntelligenceServiceClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'videointelligence.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new videointelligenceserviceModule.v1.VideoIntelligenceServiceClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = videointelligenceserviceModule.v1.VideoIntelligenceServiceClient.servicePath; + assert.strictEqual(servicePath, 'videointelligence.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = videointelligenceserviceModule.v1.VideoIntelligenceServiceClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'videointelligence.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new videointelligenceserviceModule.v1.VideoIntelligenceServiceClient({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'videointelligence.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new videointelligenceserviceModule.v1.VideoIntelligenceServiceClient({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'videointelligence.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new videointelligenceserviceModule.v1.VideoIntelligenceServiceClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/baselines/videointelligence/src/v1/video_intelligence_service_client.ts.baseline b/baselines/videointelligence/src/v1/video_intelligence_service_client.ts.baseline index 65f6dbf4c..d80b8d033 100644 --- a/baselines/videointelligence/src/v1/video_intelligence_service_client.ts.baseline +++ b/baselines/videointelligence/src/v1/video_intelligence_service_client.ts.baseline @@ -44,6 +44,8 @@ export class VideoIntelligenceServiceClient { private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -98,7 +100,12 @@ export class VideoIntelligenceServiceClient { constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof VideoIntelligenceServiceClient; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'videointelligence.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; @@ -106,7 +113,7 @@ export class VideoIntelligenceServiceClient { opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; } @@ -131,10 +138,10 @@ export class VideoIntelligenceServiceClient { this.auth.useJWTAccessWithScope = true; // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.servicePath; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.scopes; } @@ -259,21 +266,49 @@ export class VideoIntelligenceServiceClient { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get servicePath() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'videointelligence.googleapis.com'; } /** - * The DNS address for this API service - same as servicePath(), + * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get apiEndpoint() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return 'videointelligence.googleapis.com'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get servicePath() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as servicePath(). + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/baselines/videointelligence/test/gapic_video_intelligence_service_v1.ts.baseline b/baselines/videointelligence/test/gapic_video_intelligence_service_v1.ts.baseline index 9230115e1..05b109a7e 100644 --- a/baselines/videointelligence/test/gapic_video_intelligence_service_v1.ts.baseline +++ b/baselines/videointelligence/test/gapic_video_intelligence_service_v1.ts.baseline @@ -67,13 +67,53 @@ function stubLongRunningCallWithCallback(response?: ResponseType, describe('v1.VideoIntelligenceServiceClient', () => { describe('Common methods', () => { it('has servicePath', () => { - const servicePath = videointelligenceserviceModule.v1.VideoIntelligenceServiceClient.servicePath; - assert(servicePath); + const client = new videointelligenceserviceModule.v1.VideoIntelligenceServiceClient(); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'videointelligence.googleapis.com'); }); it('has apiEndpoint', () => { - const apiEndpoint = videointelligenceserviceModule.v1.VideoIntelligenceServiceClient.apiEndpoint; - assert(apiEndpoint); + const client = new videointelligenceserviceModule.v1.VideoIntelligenceServiceClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'videointelligence.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new videointelligenceserviceModule.v1.VideoIntelligenceServiceClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = videointelligenceserviceModule.v1.VideoIntelligenceServiceClient.servicePath; + assert.strictEqual(servicePath, 'videointelligence.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = videointelligenceserviceModule.v1.VideoIntelligenceServiceClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'videointelligence.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets servicePath according to universe domain camelCase', () => { + const client = new videointelligenceserviceModule.v1.VideoIntelligenceServiceClient({universeDomain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'videointelligence.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new videointelligenceserviceModule.v1.VideoIntelligenceServiceClient({universe_domain: 'example.com'}); + const servicePath = client.servicePath; + assert.strictEqual(servicePath, 'videointelligence.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new videointelligenceserviceModule.v1.VideoIntelligenceServiceClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/templates/cjs/typescript_gapic/src/$version/$service_client.ts.njk b/templates/cjs/typescript_gapic/src/$version/$service_client.ts.njk index 58c88a27d..7f7f9bc86 100644 --- a/templates/cjs/typescript_gapic/src/$version/$service_client.ts.njk +++ b/templates/cjs/typescript_gapic/src/$version/$service_client.ts.njk @@ -78,6 +78,8 @@ export class {{ service.name }}Client { private _gaxGrpc: gax.GrpcClient{% if not api.legacyProtoLoad %} | gax.fallback.GrpcClient{% endif %}; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -145,7 +147,16 @@ export class {{ service.name }}Client { constructor(opts?: ClientOptions{% if not api.legacyProtoLoad %}, gaxInstance?: typeof gax | typeof gax.fallback{% endif %}) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof {{ service.name }}Client; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.{{ id.get("servicePath") }}; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + {%- if api.hostName.endsWith("googleapis.com") %} + this._servicePath = '{{ api.shortName }}.' + this._universeDomain; + {%- else %} + this._servicePath = '{{ api.hostName }}'; + {%- endif %} + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.{{ id.get("port") }}; const clientConfig = opts?.clientConfig ?? {}; @@ -170,7 +181,7 @@ export class {{ service.name }}Client { {%- endif %} // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.{{ id.get("servicePath") }} && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.{{ id.get("scopes") }}; } {%- if not api.legacyProtoLoad %} @@ -200,10 +211,10 @@ export class {{ service.name }}Client { {%- endif %} // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.{{ id.get("servicePath") }}; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.{{ id.get("servicePath") }}) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.{{ id.get("scopes") }}; } {%- if service.IAMPolicyMixin > 0 %} @@ -479,21 +490,49 @@ export class {{ service.name }}Client { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get {{ id.get("servicePath") }}() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static {{ id.get("servicePath") }} is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return '{{ api.hostName }}'; } /** - * The DNS address for this API service - same as {{ id.get("servicePath") }}(), + * The DNS address for this API service - same as {{ id.get("servicePath") }}, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get {{ id.get("apiEndpoint") }}() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static {{ id.get("apiEndpoint") }} is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return '{{ api.hostName }}'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get {{ id.get("servicePath") }}() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as {{ id.get("servicePath") }}(). + * @returns {string} The DNS address for this service. + */ + get {{ id.get("apiEndpoint") }}() { + return this._servicePath; + } + + get {{ id.get("universeDomain") }}() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/templates/cjs/typescript_gapic/test/gapic_$service_$version.ts.njk b/templates/cjs/typescript_gapic/test/gapic_$service_$version.ts.njk index 7ba3e077d..2abdda122 100644 --- a/templates/cjs/typescript_gapic/test/gapic_$service_$version.ts.njk +++ b/templates/cjs/typescript_gapic/test/gapic_$service_$version.ts.njk @@ -215,13 +215,57 @@ describe('{{ api.naming.version }}.{{ service.name }}Client', () => { {%- endif %} describe('Common methods', () => { it('has servicePath', () => { - const servicePath = {{ service.name.toLowerCase() }}Module.{{ api.naming.version }}.{{ service.name }}Client.{{ id.get("servicePath") }}; - assert(servicePath); + const client = new {{ service.name.toLowerCase() }}Module.{{ api.naming.version }}.{{ service.name }}Client(); + const servicePath = client.{{ id.get("servicePath") }}; + assert.strictEqual(servicePath, '{{ api.hostName }}'); }); it('has apiEndpoint', () => { - const apiEndpoint = {{ service.name.toLowerCase() }}Module.{{ api.naming.version }}.{{ service.name }}Client.{{ id.get("apiEndpoint") }}; - assert(apiEndpoint); + const client = new {{ service.name.toLowerCase() }}Module.{{ api.naming.version }}.{{ service.name }}Client(); + const apiEndpoint = client.{{ id.get("apiEndpoint") }}; + assert.strictEqual(apiEndpoint, '{{ api.hostName }}'); + }); + + it('has universeDomain', () => { + const client = new {{ service.name.toLowerCase() }}Module.{{ api.naming.version }}.{{ service.name }}Client(); + const universeDomain = client.{{ id.get("universeDomain") }}; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static {{ id.get("servicePath") }} is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = {{ service.name.toLowerCase() }}Module.{{ api.naming.version }}.{{ service.name }}Client.{{ id.get("servicePath") }}; + assert.strictEqual(servicePath, '{{ api.hostName }}'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static {{ id.get("apiEndpoint") }} is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = {{ service.name.toLowerCase() }}Module.{{ api.naming.version }}.{{ service.name }}Client.{{ id.get("apiEndpoint") }}; + assert.strictEqual(apiEndpoint, '{{ api.hostName }}'); + assert(stub.called); + stub.restore(); + }); + } + + {%- if api.hostName.endsWith("googleapis.com") %} + it('sets servicePath according to universe domain camelCase', () => { + const client = new {{ service.name.toLowerCase() }}Module.{{ api.naming.version }}.{{ service.name }}Client({universeDomain: 'example.com'}); + const servicePath = client.{{ id.get("servicePath") }}; + assert.strictEqual(servicePath, '{{ api.shortName }}.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new {{ service.name.toLowerCase() }}Module.{{ api.naming.version }}.{{ service.name }}Client({universe_domain: 'example.com'}); + const servicePath = client.{{ id.get("servicePath") }}; + assert.strictEqual(servicePath, '{{ api.shortName }}.example.com'); + }); + + {%- endif %} + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new {{ service.name.toLowerCase() }}Module.{{ api.naming.version }}.{{ service.name }}Client({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/templates/esm/typescript_gapic/esm/src/$version/$service_client.ts.njk b/templates/esm/typescript_gapic/esm/src/$version/$service_client.ts.njk index 888565eb4..e8c510292 100644 --- a/templates/esm/typescript_gapic/esm/src/$version/$service_client.ts.njk +++ b/templates/esm/typescript_gapic/esm/src/$version/$service_client.ts.njk @@ -77,6 +77,8 @@ export class {{ service.name }}Client { private _gaxGrpc: gax.GrpcClient{% if not api.legacyProtoLoad %} | gax.fallback.GrpcClient{% endif %}; private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; auth: gax.GoogleAuth; descriptors: Descriptors = { page: {}, @@ -145,7 +147,16 @@ export class {{ service.name }}Client { constructor(opts?: ClientOptions{% if not api.legacyProtoLoad %}, gaxInstance?: typeof gax | typeof gax.fallback{% endif %}) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof {{ service.name }}Client; - const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.{{ id.get("servicePath") }}; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + {%- if api.hostName.endsWith("googleapis.com") %} + this._servicePath = '{{ api.shortName }}.' + this._universeDomain; + {%- else %} + this._servicePath = '{{ api.hostName }}'; + {%- endif %} + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); const port = opts?.port || staticMembers.{{ id.get("port") }}; const clientConfig = opts?.clientConfig ?? {}; @@ -170,7 +181,7 @@ export class {{ service.name }}Client { {%- endif %} // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.{{ id.get("servicePath") }} && !('scopes' in opts)) { + if (servicePath !== this._servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.{{ id.get("scopes") }}; } {%- if not api.legacyProtoLoad %} @@ -200,10 +211,10 @@ export class {{ service.name }}Client { {%- endif %} // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = staticMembers.{{ id.get("servicePath") }}; + this.auth.defaultServicePath = this._servicePath; // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.{{ id.get("servicePath") }}) { + if (servicePath === this._servicePath) { this.auth.defaultScopes = staticMembers.{{ id.get("scopes") }}; } {%- if service.IAMPolicyMixin > 0 %} @@ -487,21 +498,49 @@ export class {{ service.name }}Client { /** * The DNS address for this API service. + * @deprecated * @returns {string} The DNS address for this service. */ static get {{ id.get("servicePath") }}() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static {{ id.get("servicePath") }} is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return '{{ api.hostName }}'; } /** - * The DNS address for this API service - same as {{ id.get("servicePath") }}(), + * The DNS address for this API service - same as {{ id.get("servicePath") }}, * exists for compatibility reasons. + * @deprecated * @returns {string} The DNS address for this service. */ static get {{ id.get("apiEndpoint") }}() { + if (typeof process !== undefined && typeof process.emitWarning === 'function') { + process.emitWarning('Static {{ id.get("apiEndpoint") }} is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } return '{{ api.hostName }}'; } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get {{ id.get("servicePath") }}() { + return this._servicePath; + } + + /** + * The DNS address for this API service - same as {{ id.get("servicePath") }}(). + * @returns {string} The DNS address for this service. + */ + get {{ id.get("apiEndpoint") }}() { + return this._servicePath; + } + + get {{ id.get("universeDomain") }}() { + return this._universeDomain; + } + /** * The port for this API service. * @returns {number} The default port for this service. diff --git a/templates/esm/typescript_gapic/esm/test/gapic_$service_$version.ts.njk b/templates/esm/typescript_gapic/esm/test/gapic_$service_$version.ts.njk index c51cf512c..97bd52eaf 100644 --- a/templates/esm/typescript_gapic/esm/test/gapic_$service_$version.ts.njk +++ b/templates/esm/typescript_gapic/esm/test/gapic_$service_$version.ts.njk @@ -223,13 +223,57 @@ describe('{{ api.naming.version }}.{{ service.name }}Client', () => { {%- endif %} describe('Common methods', () => { it('has servicePath', () => { - const servicePath = {{ service.name.toLowerCase() }}Module.{{ api.naming.version }}.{{ service.name }}Client.{{ id.get("servicePath") }}; - assert(servicePath); + const client = new {{ service.name.toLowerCase() }}Module.{{ api.naming.version }}.{{ service.name }}Client(); + const servicePath = client.{{ id.get("servicePath") }}; + assert.strictEqual(servicePath, '{{ api.hostName }}'); }); it('has apiEndpoint', () => { - const apiEndpoint = {{ service.name.toLowerCase() }}Module.{{ api.naming.version }}.{{ service.name }}Client.{{ id.get("apiEndpoint") }}; - assert(apiEndpoint); + const client = new {{ service.name.toLowerCase() }}Module.{{ api.naming.version }}.{{ service.name }}Client(); + const apiEndpoint = client.{{ id.get("apiEndpoint") }}; + assert.strictEqual(apiEndpoint, '{{ api.hostName }}'); + }); + + it('has universeDomain', () => { + const client = new {{ service.name.toLowerCase() }}Module.{{ api.naming.version }}.{{ service.name }}Client(); + const universeDomain = client.{{ id.get("universeDomain") }}; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static {{ id.get("servicePath") }} is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = {{ service.name.toLowerCase() }}Module.{{ api.naming.version }}.{{ service.name }}Client.{{ id.get("servicePath") }}; + assert.strictEqual(servicePath, '{{ api.hostName }}'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static {{ id.get("apiEndpoint") }} is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = {{ service.name.toLowerCase() }}Module.{{ api.naming.version }}.{{ service.name }}Client.{{ id.get("apiEndpoint") }}; + assert.strictEqual(apiEndpoint, '{{ api.hostName }}'); + assert(stub.called); + stub.restore(); + }); + } + + {%- if api.hostName.endsWith("googleapis.com") %} + it('sets servicePath according to universe domain camelCase', () => { + const client = new {{ service.name.toLowerCase() }}Module.{{ api.naming.version }}.{{ service.name }}Client({universeDomain: 'example.com'}); + const servicePath = client.{{ id.get("servicePath") }}; + assert.strictEqual(servicePath, '{{ api.shortName }}.example.com'); + }); + + it('sets servicePath according to universe domain snakeCase', () => { + const client = new {{ service.name.toLowerCase() }}Module.{{ api.naming.version }}.{{ service.name }}Client({universe_domain: 'example.com'}); + const servicePath = client.{{ id.get("servicePath") }}; + assert.strictEqual(servicePath, '{{ api.shortName }}.example.com'); + }); + + {%- endif %} + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new {{ service.name.toLowerCase() }}Module.{{ api.naming.version }}.{{ service.name }}Client({universe_domain: 'example.com', universeDomain: 'example.net'}); }); }); it('has port', () => { diff --git a/tsconfig.json b/tsconfig.json index 9c17e69ab..481adf9c8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,7 +7,8 @@ "moduleResolution": "node", "esModuleInterop": true, "sourceMap": false, - "lib": ["esnext", "DOM"] + "lib": ["esnext", "DOM"], + "target": "esnext" }, "include": [ "typescript/**/*.ts", diff --git a/typescript/src/schema/api.ts b/typescript/src/schema/api.ts index e05ef10a2..7d8f901fa 100644 --- a/typescript/src/schema/api.ts +++ b/typescript/src/schema/api.ts @@ -27,6 +27,7 @@ export class API { naming: Naming; protos: ProtosMap; hostName?: string; + shortName?: string; port?: string; // This field is for users passing proper publish package name like @google-cloud/text-to-speech. publishName: string; @@ -166,6 +167,7 @@ export class API { ); } this.hostName = hostname || this.hostName || 'localhost'; + this.shortName = this.hostName?.replace(/\.googleapis\.com$/, ''); this.port = port ?? this.port ?? '443'; serviceNamesList.push(service.name || this.naming.name); } From 949962cc146625d95e15d4b4cb922a375d7f548a Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 2 Feb 2024 11:57:11 -0800 Subject: [PATCH 13/35] chore(main): release 4.4.0 (#1520) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- CHANGELOG.md | 16 ++++++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6845b9660..d91a84b5d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,21 @@ # Changelog +## [4.4.0](https://github.com/googleapis/gapic-generator-typescript/compare/v4.3.0...v4.4.0) (2024-02-02) + + +### Features + +* Add UUID autogeneration for fields listed as autoPopulate in service.yaml ([#1511](https://github.com/googleapis/gapic-generator-typescript/issues/1511)) ([e731e91](https://github.com/googleapis/gapic-generator-typescript/commit/e731e912537599540c9efbe158409ab0f78c8882)) +* Implement support for Trusted Private Cloud ([#1529](https://github.com/googleapis/gapic-generator-typescript/issues/1529)) ([74149e1](https://github.com/googleapis/gapic-generator-typescript/commit/74149e1228f5403134ad67c29885f68076ade253)) + + +### Bug Fixes + +* **deps:** Update dependency proto3-json-serializer to ^2.0.1 ([#1521](https://github.com/googleapis/gapic-generator-typescript/issues/1521)) ([f68039b](https://github.com/googleapis/gapic-generator-typescript/commit/f68039b8932e4489f08e529661eee1d5348755ae)) +* **deps:** Update dependency protobufjs to v7.2.6 ([#1519](https://github.com/googleapis/gapic-generator-typescript/issues/1519)) ([58c2334](https://github.com/googleapis/gapic-generator-typescript/commit/58c23344c6b7d9088ddd225ac32ef90c90ba7acf)) +* Revert new streaming behavior ([#1528](https://github.com/googleapis/gapic-generator-typescript/issues/1528)) ([605e40a](https://github.com/googleapis/gapic-generator-typescript/commit/605e40a44095f1e9f2c0f8466cc6fb1be6815568)) +* **samples:** Remove useless await in async iteration sample ([#1527](https://github.com/googleapis/gapic-generator-typescript/issues/1527)) ([0bdb742](https://github.com/googleapis/gapic-generator-typescript/commit/0bdb74243c6eef89200b35abc0486fd897145d9e)) + ## [4.3.0](https://github.com/googleapis/gapic-generator-typescript/compare/v4.2.0...v4.3.0) (2024-01-18) diff --git a/package-lock.json b/package-lock.json index ef190af32..dcf2306c8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@google-cloud/gapic-generator", - "version": "4.3.0", + "version": "4.4.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@google-cloud/gapic-generator", - "version": "4.3.0", + "version": "4.4.0", "license": "Apache-2.0", "dependencies": { "@types/js-yaml": "^4.0.9", diff --git a/package.json b/package.json index 7f33e4e2a..f72ea17d6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@google-cloud/gapic-generator", - "version": "4.3.0", + "version": "4.4.0", "type": "module", "description": "Google API Client Library Generator for TypeScript, written in TypeScript.", "homepage": "https://github.com/googleapis/gapic-generator-typescript#readme", From 569a54fdd5216bd394327e93306fb75fd0bf4c6b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 6 Feb 2024 08:26:18 +0100 Subject: [PATCH 14/35] chore(deps): update rules_proto digest to f9b0b88 (#1492) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | rules_proto | http_archive | digest | `b1e0e9a` -> `f9b0b88` | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/gapic-generator-typescript). --- repositories.bzl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/repositories.bzl b/repositories.bzl index 14a5da23c..f0f37f146 100644 --- a/repositories.bzl +++ b/repositories.bzl @@ -21,11 +21,11 @@ def gapic_generator_typescript_repositories(): maybe( http_archive, name = "rules_proto", - sha256 = "5bc1a7136fc2d37f5162cb61dfc6e168983c7fcded2f9e15e4540daf833f1a1c", - strip_prefix = "rules_proto-b1e0e9ae6d6e8719abe70a076d410f4c0797dcf3", + sha256 = "f5ae0e582238fcd4ea3d0146a3f5f3db9517f8fe24491eab3c105ace53aad1bb", + strip_prefix = "rules_proto-f9b0b880d1e10e18daeeb168cef9d0f8316fdcb5", urls = [ - "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/b1e0e9ae6d6e8719abe70a076d410f4c0797dcf3.tar.gz", - "https://github.com/bazelbuild/rules_proto/archive/b1e0e9ae6d6e8719abe70a076d410f4c0797dcf3.tar.gz", + "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/f9b0b880d1e10e18daeeb168cef9d0f8316fdcb5.tar.gz", + "https://github.com/bazelbuild/rules_proto/archive/f9b0b880d1e10e18daeeb168cef9d0f8316fdcb5.tar.gz", ], ) From d0094d377dafa7cd7296748668158c6703d89e52 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 6 Feb 2024 22:10:18 +0100 Subject: [PATCH 15/35] chore(deps): update actions/checkout digest to b4ffde6 (#1491) Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com> Co-authored-by: gcf-merge-on-green[bot] <60162190+gcf-merge-on-green[bot]@users.noreply.github.com> --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 35ced07a4..988992a0b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -16,7 +16,7 @@ jobs: # time. steps: - - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 - name: Cache Bazel files id: cache-bazel @@ -142,7 +142,7 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 - uses: actions/setup-node@v3 with: node-version: 14 From 93127813253aac41bdd6f88ecda68e11c701b52c Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Tue, 6 Feb 2024 13:20:58 -0800 Subject: [PATCH 16/35] fix: remove name conflict for APIs that have servicePath (#1531) * fix: remove name conflict for APIs that have servicePath * fix: use correct name in the generated tests --- .../esm/src/v1/asset_service_client.ts.baseline | 12 ++---------- .../esm/test/gapic_asset_service_v1.ts.baseline | 16 +++++----------- .../src/v1/asset_service_client.ts.baseline | 15 +++------------ .../test/gapic_asset_service_v1.ts.baseline | 16 +++++----------- .../v1beta1/big_query_storage_client.ts.baseline | 12 ++---------- .../gapic_big_query_storage_v1beta1.ts.baseline | 16 +++++----------- .../v1beta1/big_query_storage_client.ts.baseline | 15 +++------------ .../gapic_big_query_storage_v1beta1.ts.baseline | 16 +++++----------- .../esm/src/v1/addresses_client.ts.baseline | 12 ++---------- .../src/v1/region_operations_client.ts.baseline | 12 ++---------- .../esm/test/gapic_addresses_v1.ts.baseline | 16 +++++----------- .../test/gapic_region_operations_v1.ts.baseline | 16 +++++----------- .../compute/src/v1/addresses_client.ts.baseline | 15 +++------------ .../src/v1/region_operations_client.ts.baseline | 15 +++------------ .../compute/test/gapic_addresses_v1.ts.baseline | 16 +++++----------- .../test/gapic_region_operations_v1.ts.baseline | 16 +++++----------- .../src/v1/deprecated_service_client.ts.baseline | 12 ++---------- .../test/gapic_deprecated_service_v1.ts.baseline | 8 +------- .../src/v1/deprecated_service_client.ts.baseline | 15 +++------------ .../test/gapic_deprecated_service_v1.ts.baseline | 8 +------- .../src/v1beta1/compliance_client.ts.baseline | 12 ++---------- .../esm/src/v1beta1/echo_client.ts.baseline | 12 ++---------- .../esm/src/v1beta1/identity_client.ts.baseline | 12 ++---------- .../esm/src/v1beta1/messaging_client.ts.baseline | 12 ++---------- .../v1beta1/sequence_service_client.ts.baseline | 12 ++---------- .../esm/src/v1beta1/testing_client.ts.baseline | 12 ++---------- .../test/gapic_compliance_v1beta1.ts.baseline | 8 +------- .../esm/test/gapic_echo_v1beta1.ts.baseline | 8 +------- .../esm/test/gapic_identity_v1beta1.ts.baseline | 8 +------- .../esm/test/gapic_messaging_v1beta1.ts.baseline | 8 +------- .../gapic_sequence_service_v1beta1.ts.baseline | 8 +------- .../esm/test/gapic_testing_v1beta1.ts.baseline | 8 +------- .../src/v1beta1/compliance_client.ts.baseline | 15 +++------------ .../src/v1beta1/echo_client.ts.baseline | 15 +++------------ .../src/v1beta1/identity_client.ts.baseline | 15 +++------------ .../src/v1beta1/messaging_client.ts.baseline | 15 +++------------ .../v1beta1/sequence_service_client.ts.baseline | 15 +++------------ .../src/v1beta1/testing_client.ts.baseline | 15 +++------------ .../test/gapic_compliance_v1beta1.ts.baseline | 8 +------- .../test/gapic_echo_v1beta1.ts.baseline | 8 +------- .../test/gapic_identity_v1beta1.ts.baseline | 8 +------- .../test/gapic_messaging_v1beta1.ts.baseline | 8 +------- .../gapic_sequence_service_v1beta1.ts.baseline | 8 +------- .../test/gapic_testing_v1beta1.ts.baseline | 8 +------- .../esm/src/v2/dlp_service_client.ts.baseline | 12 ++---------- .../esm/test/gapic_dlp_service_v2.ts.baseline | 16 +++++----------- .../dlp/src/v2/dlp_service_client.ts.baseline | 15 +++------------ .../dlp/test/gapic_dlp_service_v2.ts.baseline | 16 +++++----------- .../v1/key_management_service_client.ts.baseline | 12 ++---------- .../gapic_key_management_service_v1.ts.baseline | 16 +++++----------- .../v1/key_management_service_client.ts.baseline | 15 +++------------ .../gapic_key_management_service_v1.ts.baseline | 16 +++++----------- .../src/v2/config_service_v2_client.ts.baseline | 12 ++---------- .../src/v2/logging_service_v2_client.ts.baseline | 12 ++---------- .../src/v2/metrics_service_v2_client.ts.baseline | 12 ++---------- .../test/gapic_config_service_v2_v2.ts.baseline | 16 +++++----------- .../test/gapic_logging_service_v2_v2.ts.baseline | 16 +++++----------- .../test/gapic_metrics_service_v2_v2.ts.baseline | 16 +++++----------- .../src/v2/config_service_v2_client.ts.baseline | 15 +++------------ .../src/v2/logging_service_v2_client.ts.baseline | 15 +++------------ .../src/v2/metrics_service_v2_client.ts.baseline | 15 +++------------ .../test/gapic_config_service_v2_v2.ts.baseline | 16 +++++----------- .../test/gapic_logging_service_v2_v2.ts.baseline | 16 +++++----------- .../test/gapic_metrics_service_v2_v2.ts.baseline | 16 +++++----------- .../v3/alert_policy_service_client.ts.baseline | 12 ++---------- .../esm/src/v3/group_service_client.ts.baseline | 12 ++---------- .../esm/src/v3/metric_service_client.ts.baseline | 12 ++---------- ...tification_channel_service_client.ts.baseline | 12 ++---------- ...service_monitoring_service_client.ts.baseline | 12 ++---------- .../v3/uptime_check_service_client.ts.baseline | 12 ++---------- .../gapic_alert_policy_service_v3.ts.baseline | 16 +++++----------- .../esm/test/gapic_group_service_v3.ts.baseline | 16 +++++----------- .../esm/test/gapic_metric_service_v3.ts.baseline | 16 +++++----------- ...c_notification_channel_service_v3.ts.baseline | 16 +++++----------- ...pic_service_monitoring_service_v3.ts.baseline | 16 +++++----------- .../gapic_uptime_check_service_v3.ts.baseline | 16 +++++----------- .../v3/alert_policy_service_client.ts.baseline | 15 +++------------ .../src/v3/group_service_client.ts.baseline | 15 +++------------ .../src/v3/metric_service_client.ts.baseline | 15 +++------------ ...tification_channel_service_client.ts.baseline | 15 +++------------ ...service_monitoring_service_client.ts.baseline | 15 +++------------ .../v3/uptime_check_service_client.ts.baseline | 15 +++------------ .../gapic_alert_policy_service_v3.ts.baseline | 16 +++++----------- .../test/gapic_group_service_v3.ts.baseline | 16 +++++----------- .../test/gapic_metric_service_v3.ts.baseline | 16 +++++----------- ...c_notification_channel_service_v3.ts.baseline | 16 +++++----------- ...pic_service_monitoring_service_v3.ts.baseline | 16 +++++----------- .../gapic_uptime_check_service_v3.ts.baseline | 16 +++++----------- .../esm/src/v1beta1/naming_client.ts.baseline | 12 ++---------- .../esm/test/gapic_naming_v1beta1.ts.baseline | 8 +------- .../naming/src/v1beta1/naming_client.ts.baseline | 15 +++------------ .../naming/test/gapic_naming_v1beta1.ts.baseline | 8 +------- .../src/v1beta1/cloud_redis_client.ts.baseline | 12 ++---------- .../test/gapic_cloud_redis_v1beta1.ts.baseline | 16 +++++----------- .../src/v1beta1/cloud_redis_client.ts.baseline | 15 +++------------ .../test/gapic_cloud_redis_v1beta1.ts.baseline | 16 +++++----------- .../esm/src/v1/test_service_client.ts.baseline | 12 ++---------- .../esm/test/gapic_test_service_v1.ts.baseline | 8 +------- .../src/v1/test_service_client.ts.baseline | 15 +++------------ .../test/gapic_test_service_v1.ts.baseline | 8 +------- .../src/v1beta1/compliance_client.ts.baseline | 12 ++---------- .../esm/src/v1beta1/echo_client.ts.baseline | 12 ++---------- .../esm/src/v1beta1/identity_client.ts.baseline | 12 ++---------- .../esm/src/v1beta1/messaging_client.ts.baseline | 12 ++---------- .../v1beta1/sequence_service_client.ts.baseline | 12 ++---------- .../esm/src/v1beta1/testing_client.ts.baseline | 12 ++---------- .../test/gapic_compliance_v1beta1.ts.baseline | 8 +------- .../esm/test/gapic_echo_v1beta1.ts.baseline | 8 +------- .../esm/test/gapic_identity_v1beta1.ts.baseline | 8 +------- .../esm/test/gapic_messaging_v1beta1.ts.baseline | 8 +------- .../gapic_sequence_service_v1beta1.ts.baseline | 8 +------- .../esm/test/gapic_testing_v1beta1.ts.baseline | 8 +------- .../esm/src/v1beta1/echo_client.ts.baseline | 12 ++---------- .../esm/test/gapic_echo_v1beta1.ts.baseline | 8 +------- .../src/v1beta1/echo_client.ts.baseline | 15 +++------------ .../test/gapic_echo_v1beta1.ts.baseline | 8 +------- .../src/v1beta1/compliance_client.ts.baseline | 15 +++------------ .../showcase/src/v1beta1/echo_client.ts.baseline | 15 +++------------ .../src/v1beta1/identity_client.ts.baseline | 15 +++------------ .../src/v1beta1/messaging_client.ts.baseline | 15 +++------------ .../v1beta1/sequence_service_client.ts.baseline | 15 +++------------ .../src/v1beta1/testing_client.ts.baseline | 15 +++------------ .../test/gapic_compliance_v1beta1.ts.baseline | 8 +------- .../showcase/test/gapic_echo_v1beta1.ts.baseline | 8 +------- .../test/gapic_identity_v1beta1.ts.baseline | 8 +------- .../test/gapic_messaging_v1beta1.ts.baseline | 8 +------- .../gapic_sequence_service_v1beta1.ts.baseline | 8 +------- .../test/gapic_testing_v1beta1.ts.baseline | 8 +------- .../esm/src/v2/cloud_tasks_client.ts.baseline | 12 ++---------- .../esm/test/gapic_cloud_tasks_v2.ts.baseline | 16 +++++----------- .../tasks/src/v2/cloud_tasks_client.ts.baseline | 15 +++------------ .../tasks/test/gapic_cloud_tasks_v2.ts.baseline | 16 +++++----------- .../esm/src/v1/text_to_speech_client.ts.baseline | 12 ++---------- .../esm/test/gapic_text_to_speech_v1.ts.baseline | 16 +++++----------- .../src/v1/text_to_speech_client.ts.baseline | 15 +++------------ .../test/gapic_text_to_speech_v1.ts.baseline | 16 +++++----------- .../translation_service_client.ts.baseline | 12 ++---------- ...gapic_translation_service_v3beta1.ts.baseline | 16 +++++----------- .../translation_service_client.ts.baseline | 15 +++------------ ...gapic_translation_service_v3beta1.ts.baseline | 16 +++++----------- ...video_intelligence_service_client.ts.baseline | 12 ++---------- ...pic_video_intelligence_service_v1.ts.baseline | 16 +++++----------- ...video_intelligence_service_client.ts.baseline | 15 +++------------ ...pic_video_intelligence_service_v1.ts.baseline | 16 +++++----------- .../src/$version/$service_client.ts.njk | 15 +++------------ .../test/gapic_$service_$version.ts.njk | 16 +++++----------- .../esm/src/$version/$service_client.ts.njk | 12 ++---------- .../esm/test/gapic_$service_$version.ts.njk | 16 +++++----------- 148 files changed, 427 insertions(+), 1500 deletions(-) diff --git a/baselines/asset-esm/esm/src/v1/asset_service_client.ts.baseline b/baselines/asset-esm/esm/src/v1/asset_service_client.ts.baseline index 34d0ac852..57eb44789 100644 --- a/baselines/asset-esm/esm/src/v1/asset_service_client.ts.baseline +++ b/baselines/asset-esm/esm/src/v1/asset_service_client.ts.baseline @@ -298,7 +298,7 @@ export class AssetServiceClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -311,7 +311,7 @@ export class AssetServiceClient { /** * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -325,14 +325,6 @@ export class AssetServiceClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/asset-esm/esm/test/gapic_asset_service_v1.ts.baseline b/baselines/asset-esm/esm/test/gapic_asset_service_v1.ts.baseline index 141b19508..7c6860918 100644 --- a/baselines/asset-esm/esm/test/gapic_asset_service_v1.ts.baseline +++ b/baselines/asset-esm/esm/test/gapic_asset_service_v1.ts.baseline @@ -79,18 +79,12 @@ function stubLongRunningCallWithCallback(response?: ResponseType, describe('v1.AssetServiceClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new assetserviceModule.v1.AssetServiceClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'cloudasset.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new assetserviceModule.v1.AssetServiceClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'cloudasset.googleapis.com'); }); - + it('has universeDomain', () => { const client = new assetserviceModule.v1.AssetServiceClient(); const universeDomain = client.universeDomain; @@ -114,15 +108,15 @@ describe('v1.AssetServiceClient', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new assetserviceModule.v1.AssetServiceClient({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'cloudasset.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new assetserviceModule.v1.AssetServiceClient({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'cloudasset.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/baselines/asset/src/v1/asset_service_client.ts.baseline b/baselines/asset/src/v1/asset_service_client.ts.baseline index 8f2383e45..a28e5add5 100644 --- a/baselines/asset/src/v1/asset_service_client.ts.baseline +++ b/baselines/asset/src/v1/asset_service_client.ts.baseline @@ -282,7 +282,7 @@ export class AssetServiceClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -293,9 +293,8 @@ export class AssetServiceClient { } /** - * The DNS address for this API service - same as servicePath, - * exists for compatibility reasons. - * @deprecated + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -309,14 +308,6 @@ export class AssetServiceClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/asset/test/gapic_asset_service_v1.ts.baseline b/baselines/asset/test/gapic_asset_service_v1.ts.baseline index 66a6ed24e..fc8967fd5 100644 --- a/baselines/asset/test/gapic_asset_service_v1.ts.baseline +++ b/baselines/asset/test/gapic_asset_service_v1.ts.baseline @@ -70,18 +70,12 @@ function stubLongRunningCallWithCallback(response?: ResponseType, describe('v1.AssetServiceClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new assetserviceModule.v1.AssetServiceClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'cloudasset.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new assetserviceModule.v1.AssetServiceClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'cloudasset.googleapis.com'); }); - + it('has universeDomain', () => { const client = new assetserviceModule.v1.AssetServiceClient(); const universeDomain = client.universeDomain; @@ -105,15 +99,15 @@ describe('v1.AssetServiceClient', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new assetserviceModule.v1.AssetServiceClient({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'cloudasset.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new assetserviceModule.v1.AssetServiceClient({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'cloudasset.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/baselines/bigquery-storage-esm/esm/src/v1beta1/big_query_storage_client.ts.baseline b/baselines/bigquery-storage-esm/esm/src/v1beta1/big_query_storage_client.ts.baseline index bdf95414e..720d948ee 100644 --- a/baselines/bigquery-storage-esm/esm/src/v1beta1/big_query_storage_client.ts.baseline +++ b/baselines/bigquery-storage-esm/esm/src/v1beta1/big_query_storage_client.ts.baseline @@ -284,7 +284,7 @@ export class BigQueryStorageClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -297,7 +297,7 @@ export class BigQueryStorageClient { /** * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -311,14 +311,6 @@ export class BigQueryStorageClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/bigquery-storage-esm/esm/test/gapic_big_query_storage_v1beta1.ts.baseline b/baselines/bigquery-storage-esm/esm/test/gapic_big_query_storage_v1beta1.ts.baseline index 2c0d8bd2f..a9f76ee36 100644 --- a/baselines/bigquery-storage-esm/esm/test/gapic_big_query_storage_v1beta1.ts.baseline +++ b/baselines/bigquery-storage-esm/esm/test/gapic_big_query_storage_v1beta1.ts.baseline @@ -77,18 +77,12 @@ function stubServerStreamingCall(response?: ResponseType, error?: describe('v1beta1.BigQueryStorageClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new bigquerystorageModule.v1beta1.BigQueryStorageClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'bigquerystorage.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new bigquerystorageModule.v1beta1.BigQueryStorageClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'bigquerystorage.googleapis.com'); }); - + it('has universeDomain', () => { const client = new bigquerystorageModule.v1beta1.BigQueryStorageClient(); const universeDomain = client.universeDomain; @@ -112,15 +106,15 @@ describe('v1beta1.BigQueryStorageClient', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new bigquerystorageModule.v1beta1.BigQueryStorageClient({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'bigquerystorage.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new bigquerystorageModule.v1beta1.BigQueryStorageClient({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'bigquerystorage.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/baselines/bigquery-storage/src/v1beta1/big_query_storage_client.ts.baseline b/baselines/bigquery-storage/src/v1beta1/big_query_storage_client.ts.baseline index 3bba9ec98..456be9954 100644 --- a/baselines/bigquery-storage/src/v1beta1/big_query_storage_client.ts.baseline +++ b/baselines/bigquery-storage/src/v1beta1/big_query_storage_client.ts.baseline @@ -268,7 +268,7 @@ export class BigQueryStorageClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -279,9 +279,8 @@ export class BigQueryStorageClient { } /** - * The DNS address for this API service - same as servicePath, - * exists for compatibility reasons. - * @deprecated + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -295,14 +294,6 @@ export class BigQueryStorageClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/bigquery-storage/test/gapic_big_query_storage_v1beta1.ts.baseline b/baselines/bigquery-storage/test/gapic_big_query_storage_v1beta1.ts.baseline index 05fd294ac..c9b7dddb6 100644 --- a/baselines/bigquery-storage/test/gapic_big_query_storage_v1beta1.ts.baseline +++ b/baselines/bigquery-storage/test/gapic_big_query_storage_v1beta1.ts.baseline @@ -68,18 +68,12 @@ function stubServerStreamingCall(response?: ResponseType, error?: describe('v1beta1.BigQueryStorageClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new bigquerystorageModule.v1beta1.BigQueryStorageClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'bigquerystorage.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new bigquerystorageModule.v1beta1.BigQueryStorageClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'bigquerystorage.googleapis.com'); }); - + it('has universeDomain', () => { const client = new bigquerystorageModule.v1beta1.BigQueryStorageClient(); const universeDomain = client.universeDomain; @@ -103,15 +97,15 @@ describe('v1beta1.BigQueryStorageClient', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new bigquerystorageModule.v1beta1.BigQueryStorageClient({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'bigquerystorage.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new bigquerystorageModule.v1beta1.BigQueryStorageClient({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'bigquerystorage.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/baselines/compute-esm/esm/src/v1/addresses_client.ts.baseline b/baselines/compute-esm/esm/src/v1/addresses_client.ts.baseline index 0fcb62688..8684eb752 100644 --- a/baselines/compute-esm/esm/src/v1/addresses_client.ts.baseline +++ b/baselines/compute-esm/esm/src/v1/addresses_client.ts.baseline @@ -272,7 +272,7 @@ export class AddressesClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -285,7 +285,7 @@ export class AddressesClient { /** * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -299,14 +299,6 @@ export class AddressesClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/compute-esm/esm/src/v1/region_operations_client.ts.baseline b/baselines/compute-esm/esm/src/v1/region_operations_client.ts.baseline index 9fcf67b84..56f561f01 100644 --- a/baselines/compute-esm/esm/src/v1/region_operations_client.ts.baseline +++ b/baselines/compute-esm/esm/src/v1/region_operations_client.ts.baseline @@ -258,7 +258,7 @@ export class RegionOperationsClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -271,7 +271,7 @@ export class RegionOperationsClient { /** * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -285,14 +285,6 @@ export class RegionOperationsClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/compute-esm/esm/test/gapic_addresses_v1.ts.baseline b/baselines/compute-esm/esm/test/gapic_addresses_v1.ts.baseline index 03770d150..3a6fdf19c 100644 --- a/baselines/compute-esm/esm/test/gapic_addresses_v1.ts.baseline +++ b/baselines/compute-esm/esm/test/gapic_addresses_v1.ts.baseline @@ -121,18 +121,12 @@ describe('v1.AddressesClient', () => { sinon.restore(); }); describe('Common methods', () => { - it('has servicePath', () => { - const client = new addressesModule.v1.AddressesClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'compute.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new addressesModule.v1.AddressesClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); }); - + it('has universeDomain', () => { const client = new addressesModule.v1.AddressesClient(); const universeDomain = client.universeDomain; @@ -156,15 +150,15 @@ describe('v1.AddressesClient', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new addressesModule.v1.AddressesClient({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'compute.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new addressesModule.v1.AddressesClient({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'compute.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/baselines/compute-esm/esm/test/gapic_region_operations_v1.ts.baseline b/baselines/compute-esm/esm/test/gapic_region_operations_v1.ts.baseline index 19e525116..31eb19ab9 100644 --- a/baselines/compute-esm/esm/test/gapic_region_operations_v1.ts.baseline +++ b/baselines/compute-esm/esm/test/gapic_region_operations_v1.ts.baseline @@ -74,18 +74,12 @@ describe('v1.RegionOperationsClient', () => { sinon.restore(); }); describe('Common methods', () => { - it('has servicePath', () => { - const client = new regionoperationsModule.v1.RegionOperationsClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'compute.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new regionoperationsModule.v1.RegionOperationsClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); }); - + it('has universeDomain', () => { const client = new regionoperationsModule.v1.RegionOperationsClient(); const universeDomain = client.universeDomain; @@ -109,15 +103,15 @@ describe('v1.RegionOperationsClient', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new regionoperationsModule.v1.RegionOperationsClient({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'compute.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new regionoperationsModule.v1.RegionOperationsClient({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'compute.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/baselines/compute/src/v1/addresses_client.ts.baseline b/baselines/compute/src/v1/addresses_client.ts.baseline index 693a703e1..91bc5b2c9 100644 --- a/baselines/compute/src/v1/addresses_client.ts.baseline +++ b/baselines/compute/src/v1/addresses_client.ts.baseline @@ -256,7 +256,7 @@ export class AddressesClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -267,9 +267,8 @@ export class AddressesClient { } /** - * The DNS address for this API service - same as servicePath, - * exists for compatibility reasons. - * @deprecated + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -283,14 +282,6 @@ export class AddressesClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/compute/src/v1/region_operations_client.ts.baseline b/baselines/compute/src/v1/region_operations_client.ts.baseline index 05892aa4f..c52779ec7 100644 --- a/baselines/compute/src/v1/region_operations_client.ts.baseline +++ b/baselines/compute/src/v1/region_operations_client.ts.baseline @@ -242,7 +242,7 @@ export class RegionOperationsClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -253,9 +253,8 @@ export class RegionOperationsClient { } /** - * The DNS address for this API service - same as servicePath, - * exists for compatibility reasons. - * @deprecated + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -269,14 +268,6 @@ export class RegionOperationsClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/compute/test/gapic_addresses_v1.ts.baseline b/baselines/compute/test/gapic_addresses_v1.ts.baseline index 3e0858175..ba2f380fc 100644 --- a/baselines/compute/test/gapic_addresses_v1.ts.baseline +++ b/baselines/compute/test/gapic_addresses_v1.ts.baseline @@ -112,18 +112,12 @@ describe('v1.AddressesClient', () => { sinon.restore(); }); describe('Common methods', () => { - it('has servicePath', () => { - const client = new addressesModule.v1.AddressesClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'compute.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new addressesModule.v1.AddressesClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); }); - + it('has universeDomain', () => { const client = new addressesModule.v1.AddressesClient(); const universeDomain = client.universeDomain; @@ -147,15 +141,15 @@ describe('v1.AddressesClient', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new addressesModule.v1.AddressesClient({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'compute.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new addressesModule.v1.AddressesClient({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'compute.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/baselines/compute/test/gapic_region_operations_v1.ts.baseline b/baselines/compute/test/gapic_region_operations_v1.ts.baseline index 3e743f742..43b710db7 100644 --- a/baselines/compute/test/gapic_region_operations_v1.ts.baseline +++ b/baselines/compute/test/gapic_region_operations_v1.ts.baseline @@ -65,18 +65,12 @@ describe('v1.RegionOperationsClient', () => { sinon.restore(); }); describe('Common methods', () => { - it('has servicePath', () => { - const client = new regionoperationsModule.v1.RegionOperationsClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'compute.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new regionoperationsModule.v1.RegionOperationsClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); }); - + it('has universeDomain', () => { const client = new regionoperationsModule.v1.RegionOperationsClient(); const universeDomain = client.universeDomain; @@ -100,15 +94,15 @@ describe('v1.RegionOperationsClient', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new regionoperationsModule.v1.RegionOperationsClient({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'compute.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new regionoperationsModule.v1.RegionOperationsClient({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'compute.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/baselines/deprecatedtest-esm/esm/src/v1/deprecated_service_client.ts.baseline b/baselines/deprecatedtest-esm/esm/src/v1/deprecated_service_client.ts.baseline index 3f5858fbd..b3ab770aa 100644 --- a/baselines/deprecatedtest-esm/esm/src/v1/deprecated_service_client.ts.baseline +++ b/baselines/deprecatedtest-esm/esm/src/v1/deprecated_service_client.ts.baseline @@ -259,7 +259,7 @@ export class DeprecatedServiceClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -272,7 +272,7 @@ export class DeprecatedServiceClient { /** * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -286,14 +286,6 @@ export class DeprecatedServiceClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/deprecatedtest-esm/esm/test/gapic_deprecated_service_v1.ts.baseline b/baselines/deprecatedtest-esm/esm/test/gapic_deprecated_service_v1.ts.baseline index dd5f8c901..7e47431d0 100644 --- a/baselines/deprecatedtest-esm/esm/test/gapic_deprecated_service_v1.ts.baseline +++ b/baselines/deprecatedtest-esm/esm/test/gapic_deprecated_service_v1.ts.baseline @@ -63,18 +63,12 @@ function stubSimpleCallWithCallback(response?: ResponseType, error describe('v1.DeprecatedServiceClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new deprecatedserviceModule.v1.DeprecatedServiceClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'localhost'); - }); - it('has apiEndpoint', () => { const client = new deprecatedserviceModule.v1.DeprecatedServiceClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'localhost'); }); - + it('has universeDomain', () => { const client = new deprecatedserviceModule.v1.DeprecatedServiceClient(); const universeDomain = client.universeDomain; diff --git a/baselines/deprecatedtest/src/v1/deprecated_service_client.ts.baseline b/baselines/deprecatedtest/src/v1/deprecated_service_client.ts.baseline index 555b0f839..dafee24f9 100644 --- a/baselines/deprecatedtest/src/v1/deprecated_service_client.ts.baseline +++ b/baselines/deprecatedtest/src/v1/deprecated_service_client.ts.baseline @@ -243,7 +243,7 @@ export class DeprecatedServiceClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -254,9 +254,8 @@ export class DeprecatedServiceClient { } /** - * The DNS address for this API service - same as servicePath, - * exists for compatibility reasons. - * @deprecated + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -270,14 +269,6 @@ export class DeprecatedServiceClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/deprecatedtest/test/gapic_deprecated_service_v1.ts.baseline b/baselines/deprecatedtest/test/gapic_deprecated_service_v1.ts.baseline index 421844be7..f15bd2f4a 100644 --- a/baselines/deprecatedtest/test/gapic_deprecated_service_v1.ts.baseline +++ b/baselines/deprecatedtest/test/gapic_deprecated_service_v1.ts.baseline @@ -54,18 +54,12 @@ function stubSimpleCallWithCallback(response?: ResponseType, error describe('v1.DeprecatedServiceClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new deprecatedserviceModule.v1.DeprecatedServiceClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'localhost'); - }); - it('has apiEndpoint', () => { const client = new deprecatedserviceModule.v1.DeprecatedServiceClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'localhost'); }); - + it('has universeDomain', () => { const client = new deprecatedserviceModule.v1.DeprecatedServiceClient(); const universeDomain = client.universeDomain; diff --git a/baselines/disable-packing-test-esm/esm/src/v1beta1/compliance_client.ts.baseline b/baselines/disable-packing-test-esm/esm/src/v1beta1/compliance_client.ts.baseline index a5f3321ca..5dd195465 100644 --- a/baselines/disable-packing-test-esm/esm/src/v1beta1/compliance_client.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/src/v1beta1/compliance_client.ts.baseline @@ -297,7 +297,7 @@ export class ComplianceClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -310,7 +310,7 @@ export class ComplianceClient { /** * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -324,14 +324,6 @@ export class ComplianceClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/disable-packing-test-esm/esm/src/v1beta1/echo_client.ts.baseline b/baselines/disable-packing-test-esm/esm/src/v1beta1/echo_client.ts.baseline index 687ac718d..4bad0e4fd 100644 --- a/baselines/disable-packing-test-esm/esm/src/v1beta1/echo_client.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/src/v1beta1/echo_client.ts.baseline @@ -353,7 +353,7 @@ export class EchoClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -366,7 +366,7 @@ export class EchoClient { /** * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -380,14 +380,6 @@ export class EchoClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/disable-packing-test-esm/esm/src/v1beta1/identity_client.ts.baseline b/baselines/disable-packing-test-esm/esm/src/v1beta1/identity_client.ts.baseline index 52d919808..f467cd786 100644 --- a/baselines/disable-packing-test-esm/esm/src/v1beta1/identity_client.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/src/v1beta1/identity_client.ts.baseline @@ -304,7 +304,7 @@ export class IdentityClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -317,7 +317,7 @@ export class IdentityClient { /** * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -331,14 +331,6 @@ export class IdentityClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/disable-packing-test-esm/esm/src/v1beta1/messaging_client.ts.baseline b/baselines/disable-packing-test-esm/esm/src/v1beta1/messaging_client.ts.baseline index 0d05d7480..f9bc37e02 100644 --- a/baselines/disable-packing-test-esm/esm/src/v1beta1/messaging_client.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/src/v1beta1/messaging_client.ts.baseline @@ -352,7 +352,7 @@ export class MessagingClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -365,7 +365,7 @@ export class MessagingClient { /** * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -379,14 +379,6 @@ export class MessagingClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/disable-packing-test-esm/esm/src/v1beta1/sequence_service_client.ts.baseline b/baselines/disable-packing-test-esm/esm/src/v1beta1/sequence_service_client.ts.baseline index 18062bed7..2456ede8e 100644 --- a/baselines/disable-packing-test-esm/esm/src/v1beta1/sequence_service_client.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/src/v1beta1/sequence_service_client.ts.baseline @@ -294,7 +294,7 @@ export class SequenceServiceClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -307,7 +307,7 @@ export class SequenceServiceClient { /** * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -321,14 +321,6 @@ export class SequenceServiceClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/disable-packing-test-esm/esm/src/v1beta1/testing_client.ts.baseline b/baselines/disable-packing-test-esm/esm/src/v1beta1/testing_client.ts.baseline index 527ba2e03..d18027439 100644 --- a/baselines/disable-packing-test-esm/esm/src/v1beta1/testing_client.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/src/v1beta1/testing_client.ts.baseline @@ -307,7 +307,7 @@ export class TestingClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -320,7 +320,7 @@ export class TestingClient { /** * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -334,14 +334,6 @@ export class TestingClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/disable-packing-test-esm/esm/test/gapic_compliance_v1beta1.ts.baseline b/baselines/disable-packing-test-esm/esm/test/gapic_compliance_v1beta1.ts.baseline index d1c78ef38..13caa7b68 100644 --- a/baselines/disable-packing-test-esm/esm/test/gapic_compliance_v1beta1.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/test/gapic_compliance_v1beta1.ts.baseline @@ -63,18 +63,12 @@ function stubSimpleCallWithCallback(response?: ResponseType, error describe('v1beta1.ComplianceClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new complianceModule.v1beta1.ComplianceClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'localhost'); - }); - it('has apiEndpoint', () => { const client = new complianceModule.v1beta1.ComplianceClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'localhost'); }); - + it('has universeDomain', () => { const client = new complianceModule.v1beta1.ComplianceClient(); const universeDomain = client.universeDomain; diff --git a/baselines/disable-packing-test-esm/esm/test/gapic_echo_v1beta1.ts.baseline b/baselines/disable-packing-test-esm/esm/test/gapic_echo_v1beta1.ts.baseline index f5e1801bb..e288fcaee 100644 --- a/baselines/disable-packing-test-esm/esm/test/gapic_echo_v1beta1.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/test/gapic_echo_v1beta1.ts.baseline @@ -159,18 +159,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.EchoClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new echoModule.v1beta1.EchoClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'localhost'); - }); - it('has apiEndpoint', () => { const client = new echoModule.v1beta1.EchoClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'localhost'); }); - + it('has universeDomain', () => { const client = new echoModule.v1beta1.EchoClient(); const universeDomain = client.universeDomain; diff --git a/baselines/disable-packing-test-esm/esm/test/gapic_identity_v1beta1.ts.baseline b/baselines/disable-packing-test-esm/esm/test/gapic_identity_v1beta1.ts.baseline index 03efa6165..4570103a7 100644 --- a/baselines/disable-packing-test-esm/esm/test/gapic_identity_v1beta1.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/test/gapic_identity_v1beta1.ts.baseline @@ -110,18 +110,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.IdentityClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new identityModule.v1beta1.IdentityClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'localhost'); - }); - it('has apiEndpoint', () => { const client = new identityModule.v1beta1.IdentityClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'localhost'); }); - + it('has universeDomain', () => { const client = new identityModule.v1beta1.IdentityClient(); const universeDomain = client.universeDomain; diff --git a/baselines/disable-packing-test-esm/esm/test/gapic_messaging_v1beta1.ts.baseline b/baselines/disable-packing-test-esm/esm/test/gapic_messaging_v1beta1.ts.baseline index d3de767cb..a3710d628 100644 --- a/baselines/disable-packing-test-esm/esm/test/gapic_messaging_v1beta1.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/test/gapic_messaging_v1beta1.ts.baseline @@ -159,18 +159,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.MessagingClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new messagingModule.v1beta1.MessagingClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'localhost'); - }); - it('has apiEndpoint', () => { const client = new messagingModule.v1beta1.MessagingClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'localhost'); }); - + it('has universeDomain', () => { const client = new messagingModule.v1beta1.MessagingClient(); const universeDomain = client.universeDomain; diff --git a/baselines/disable-packing-test-esm/esm/test/gapic_sequence_service_v1beta1.ts.baseline b/baselines/disable-packing-test-esm/esm/test/gapic_sequence_service_v1beta1.ts.baseline index 0cee3be4f..7da6ab6b9 100644 --- a/baselines/disable-packing-test-esm/esm/test/gapic_sequence_service_v1beta1.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/test/gapic_sequence_service_v1beta1.ts.baseline @@ -63,18 +63,12 @@ function stubSimpleCallWithCallback(response?: ResponseType, error describe('v1beta1.SequenceServiceClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new sequenceserviceModule.v1beta1.SequenceServiceClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'localhost'); - }); - it('has apiEndpoint', () => { const client = new sequenceserviceModule.v1beta1.SequenceServiceClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'localhost'); }); - + it('has universeDomain', () => { const client = new sequenceserviceModule.v1beta1.SequenceServiceClient(); const universeDomain = client.universeDomain; diff --git a/baselines/disable-packing-test-esm/esm/test/gapic_testing_v1beta1.ts.baseline b/baselines/disable-packing-test-esm/esm/test/gapic_testing_v1beta1.ts.baseline index 79a17c15d..b90cab827 100644 --- a/baselines/disable-packing-test-esm/esm/test/gapic_testing_v1beta1.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/test/gapic_testing_v1beta1.ts.baseline @@ -110,18 +110,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.TestingClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new testingModule.v1beta1.TestingClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'localhost'); - }); - it('has apiEndpoint', () => { const client = new testingModule.v1beta1.TestingClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'localhost'); }); - + it('has universeDomain', () => { const client = new testingModule.v1beta1.TestingClient(); const universeDomain = client.universeDomain; diff --git a/baselines/disable-packing-test/src/v1beta1/compliance_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/compliance_client.ts.baseline index 8f2b6253d..5146e3be9 100644 --- a/baselines/disable-packing-test/src/v1beta1/compliance_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/compliance_client.ts.baseline @@ -281,7 +281,7 @@ export class ComplianceClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -292,9 +292,8 @@ export class ComplianceClient { } /** - * The DNS address for this API service - same as servicePath, - * exists for compatibility reasons. - * @deprecated + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -308,14 +307,6 @@ export class ComplianceClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline index 5e095f652..f348decd3 100644 --- a/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/echo_client.ts.baseline @@ -337,7 +337,7 @@ export class EchoClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -348,9 +348,8 @@ export class EchoClient { } /** - * The DNS address for this API service - same as servicePath, - * exists for compatibility reasons. - * @deprecated + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -364,14 +363,6 @@ export class EchoClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/disable-packing-test/src/v1beta1/identity_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/identity_client.ts.baseline index 2899b3200..da8f8eef6 100644 --- a/baselines/disable-packing-test/src/v1beta1/identity_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/identity_client.ts.baseline @@ -288,7 +288,7 @@ export class IdentityClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -299,9 +299,8 @@ export class IdentityClient { } /** - * The DNS address for this API service - same as servicePath, - * exists for compatibility reasons. - * @deprecated + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -315,14 +314,6 @@ export class IdentityClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline index 951f9b52a..d4798b16f 100644 --- a/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/messaging_client.ts.baseline @@ -336,7 +336,7 @@ export class MessagingClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -347,9 +347,8 @@ export class MessagingClient { } /** - * The DNS address for this API service - same as servicePath, - * exists for compatibility reasons. - * @deprecated + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -363,14 +362,6 @@ export class MessagingClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/disable-packing-test/src/v1beta1/sequence_service_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/sequence_service_client.ts.baseline index 185584370..241624d2d 100644 --- a/baselines/disable-packing-test/src/v1beta1/sequence_service_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/sequence_service_client.ts.baseline @@ -278,7 +278,7 @@ export class SequenceServiceClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -289,9 +289,8 @@ export class SequenceServiceClient { } /** - * The DNS address for this API service - same as servicePath, - * exists for compatibility reasons. - * @deprecated + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -305,14 +304,6 @@ export class SequenceServiceClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/disable-packing-test/src/v1beta1/testing_client.ts.baseline b/baselines/disable-packing-test/src/v1beta1/testing_client.ts.baseline index 1df4f245e..6249d44aa 100644 --- a/baselines/disable-packing-test/src/v1beta1/testing_client.ts.baseline +++ b/baselines/disable-packing-test/src/v1beta1/testing_client.ts.baseline @@ -291,7 +291,7 @@ export class TestingClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -302,9 +302,8 @@ export class TestingClient { } /** - * The DNS address for this API service - same as servicePath, - * exists for compatibility reasons. - * @deprecated + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -318,14 +317,6 @@ export class TestingClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/disable-packing-test/test/gapic_compliance_v1beta1.ts.baseline b/baselines/disable-packing-test/test/gapic_compliance_v1beta1.ts.baseline index 2391ba9d1..6ad065bd9 100644 --- a/baselines/disable-packing-test/test/gapic_compliance_v1beta1.ts.baseline +++ b/baselines/disable-packing-test/test/gapic_compliance_v1beta1.ts.baseline @@ -54,18 +54,12 @@ function stubSimpleCallWithCallback(response?: ResponseType, error describe('v1beta1.ComplianceClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new complianceModule.v1beta1.ComplianceClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'localhost'); - }); - it('has apiEndpoint', () => { const client = new complianceModule.v1beta1.ComplianceClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'localhost'); }); - + it('has universeDomain', () => { const client = new complianceModule.v1beta1.ComplianceClient(); const universeDomain = client.universeDomain; diff --git a/baselines/disable-packing-test/test/gapic_echo_v1beta1.ts.baseline b/baselines/disable-packing-test/test/gapic_echo_v1beta1.ts.baseline index 69f98c033..912743d18 100644 --- a/baselines/disable-packing-test/test/gapic_echo_v1beta1.ts.baseline +++ b/baselines/disable-packing-test/test/gapic_echo_v1beta1.ts.baseline @@ -150,18 +150,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.EchoClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new echoModule.v1beta1.EchoClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'localhost'); - }); - it('has apiEndpoint', () => { const client = new echoModule.v1beta1.EchoClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'localhost'); }); - + it('has universeDomain', () => { const client = new echoModule.v1beta1.EchoClient(); const universeDomain = client.universeDomain; diff --git a/baselines/disable-packing-test/test/gapic_identity_v1beta1.ts.baseline b/baselines/disable-packing-test/test/gapic_identity_v1beta1.ts.baseline index 7d9f7f3de..34b33e829 100644 --- a/baselines/disable-packing-test/test/gapic_identity_v1beta1.ts.baseline +++ b/baselines/disable-packing-test/test/gapic_identity_v1beta1.ts.baseline @@ -101,18 +101,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.IdentityClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new identityModule.v1beta1.IdentityClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'localhost'); - }); - it('has apiEndpoint', () => { const client = new identityModule.v1beta1.IdentityClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'localhost'); }); - + it('has universeDomain', () => { const client = new identityModule.v1beta1.IdentityClient(); const universeDomain = client.universeDomain; diff --git a/baselines/disable-packing-test/test/gapic_messaging_v1beta1.ts.baseline b/baselines/disable-packing-test/test/gapic_messaging_v1beta1.ts.baseline index adaa2ba8c..422c3d6a6 100644 --- a/baselines/disable-packing-test/test/gapic_messaging_v1beta1.ts.baseline +++ b/baselines/disable-packing-test/test/gapic_messaging_v1beta1.ts.baseline @@ -150,18 +150,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.MessagingClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new messagingModule.v1beta1.MessagingClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'localhost'); - }); - it('has apiEndpoint', () => { const client = new messagingModule.v1beta1.MessagingClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'localhost'); }); - + it('has universeDomain', () => { const client = new messagingModule.v1beta1.MessagingClient(); const universeDomain = client.universeDomain; diff --git a/baselines/disable-packing-test/test/gapic_sequence_service_v1beta1.ts.baseline b/baselines/disable-packing-test/test/gapic_sequence_service_v1beta1.ts.baseline index 78d75f0ad..883b81afd 100644 --- a/baselines/disable-packing-test/test/gapic_sequence_service_v1beta1.ts.baseline +++ b/baselines/disable-packing-test/test/gapic_sequence_service_v1beta1.ts.baseline @@ -54,18 +54,12 @@ function stubSimpleCallWithCallback(response?: ResponseType, error describe('v1beta1.SequenceServiceClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new sequenceserviceModule.v1beta1.SequenceServiceClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'localhost'); - }); - it('has apiEndpoint', () => { const client = new sequenceserviceModule.v1beta1.SequenceServiceClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'localhost'); }); - + it('has universeDomain', () => { const client = new sequenceserviceModule.v1beta1.SequenceServiceClient(); const universeDomain = client.universeDomain; diff --git a/baselines/disable-packing-test/test/gapic_testing_v1beta1.ts.baseline b/baselines/disable-packing-test/test/gapic_testing_v1beta1.ts.baseline index 07152fc53..2abfa4bce 100644 --- a/baselines/disable-packing-test/test/gapic_testing_v1beta1.ts.baseline +++ b/baselines/disable-packing-test/test/gapic_testing_v1beta1.ts.baseline @@ -101,18 +101,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.TestingClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new testingModule.v1beta1.TestingClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'localhost'); - }); - it('has apiEndpoint', () => { const client = new testingModule.v1beta1.TestingClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'localhost'); }); - + it('has universeDomain', () => { const client = new testingModule.v1beta1.TestingClient(); const universeDomain = client.universeDomain; diff --git a/baselines/dlp-esm/esm/src/v2/dlp_service_client.ts.baseline b/baselines/dlp-esm/esm/src/v2/dlp_service_client.ts.baseline index 7fd962afd..1fe28113e 100644 --- a/baselines/dlp-esm/esm/src/v2/dlp_service_client.ts.baseline +++ b/baselines/dlp-esm/esm/src/v2/dlp_service_client.ts.baseline @@ -317,7 +317,7 @@ export class DlpServiceClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -330,7 +330,7 @@ export class DlpServiceClient { /** * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -344,14 +344,6 @@ export class DlpServiceClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/dlp-esm/esm/test/gapic_dlp_service_v2.ts.baseline b/baselines/dlp-esm/esm/test/gapic_dlp_service_v2.ts.baseline index 8e908d6e5..446dc7917 100644 --- a/baselines/dlp-esm/esm/test/gapic_dlp_service_v2.ts.baseline +++ b/baselines/dlp-esm/esm/test/gapic_dlp_service_v2.ts.baseline @@ -110,18 +110,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v2.DlpServiceClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new dlpserviceModule.v2.DlpServiceClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'dlp.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new dlpserviceModule.v2.DlpServiceClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'dlp.googleapis.com'); }); - + it('has universeDomain', () => { const client = new dlpserviceModule.v2.DlpServiceClient(); const universeDomain = client.universeDomain; @@ -145,15 +139,15 @@ describe('v2.DlpServiceClient', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new dlpserviceModule.v2.DlpServiceClient({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'dlp.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new dlpserviceModule.v2.DlpServiceClient({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'dlp.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/baselines/dlp/src/v2/dlp_service_client.ts.baseline b/baselines/dlp/src/v2/dlp_service_client.ts.baseline index f311723a6..c75315770 100644 --- a/baselines/dlp/src/v2/dlp_service_client.ts.baseline +++ b/baselines/dlp/src/v2/dlp_service_client.ts.baseline @@ -301,7 +301,7 @@ export class DlpServiceClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -312,9 +312,8 @@ export class DlpServiceClient { } /** - * The DNS address for this API service - same as servicePath, - * exists for compatibility reasons. - * @deprecated + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -328,14 +327,6 @@ export class DlpServiceClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/dlp/test/gapic_dlp_service_v2.ts.baseline b/baselines/dlp/test/gapic_dlp_service_v2.ts.baseline index 73b584c52..2cb424ed0 100644 --- a/baselines/dlp/test/gapic_dlp_service_v2.ts.baseline +++ b/baselines/dlp/test/gapic_dlp_service_v2.ts.baseline @@ -101,18 +101,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v2.DlpServiceClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new dlpserviceModule.v2.DlpServiceClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'dlp.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new dlpserviceModule.v2.DlpServiceClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'dlp.googleapis.com'); }); - + it('has universeDomain', () => { const client = new dlpserviceModule.v2.DlpServiceClient(); const universeDomain = client.universeDomain; @@ -136,15 +130,15 @@ describe('v2.DlpServiceClient', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new dlpserviceModule.v2.DlpServiceClient({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'dlp.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new dlpserviceModule.v2.DlpServiceClient({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'dlp.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/baselines/kms-esm/esm/src/v1/key_management_service_client.ts.baseline b/baselines/kms-esm/esm/src/v1/key_management_service_client.ts.baseline index 4e6ecf68e..67e21e688 100644 --- a/baselines/kms-esm/esm/src/v1/key_management_service_client.ts.baseline +++ b/baselines/kms-esm/esm/src/v1/key_management_service_client.ts.baseline @@ -283,7 +283,7 @@ export class KeyManagementServiceClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -296,7 +296,7 @@ export class KeyManagementServiceClient { /** * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -310,14 +310,6 @@ export class KeyManagementServiceClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/kms-esm/esm/test/gapic_key_management_service_v1.ts.baseline b/baselines/kms-esm/esm/test/gapic_key_management_service_v1.ts.baseline index e48206abf..ab5f45760 100644 --- a/baselines/kms-esm/esm/test/gapic_key_management_service_v1.ts.baseline +++ b/baselines/kms-esm/esm/test/gapic_key_management_service_v1.ts.baseline @@ -110,18 +110,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1.KeyManagementServiceClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new keymanagementserviceModule.v1.KeyManagementServiceClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'cloudkms.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new keymanagementserviceModule.v1.KeyManagementServiceClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'cloudkms.googleapis.com'); }); - + it('has universeDomain', () => { const client = new keymanagementserviceModule.v1.KeyManagementServiceClient(); const universeDomain = client.universeDomain; @@ -145,15 +139,15 @@ describe('v1.KeyManagementServiceClient', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new keymanagementserviceModule.v1.KeyManagementServiceClient({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'cloudkms.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new keymanagementserviceModule.v1.KeyManagementServiceClient({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'cloudkms.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/baselines/kms/src/v1/key_management_service_client.ts.baseline b/baselines/kms/src/v1/key_management_service_client.ts.baseline index 0b3bacf03..38ceb859b 100644 --- a/baselines/kms/src/v1/key_management_service_client.ts.baseline +++ b/baselines/kms/src/v1/key_management_service_client.ts.baseline @@ -267,7 +267,7 @@ export class KeyManagementServiceClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -278,9 +278,8 @@ export class KeyManagementServiceClient { } /** - * The DNS address for this API service - same as servicePath, - * exists for compatibility reasons. - * @deprecated + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -294,14 +293,6 @@ export class KeyManagementServiceClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/kms/test/gapic_key_management_service_v1.ts.baseline b/baselines/kms/test/gapic_key_management_service_v1.ts.baseline index 99d0bf032..b01e86a05 100644 --- a/baselines/kms/test/gapic_key_management_service_v1.ts.baseline +++ b/baselines/kms/test/gapic_key_management_service_v1.ts.baseline @@ -101,18 +101,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1.KeyManagementServiceClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new keymanagementserviceModule.v1.KeyManagementServiceClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'cloudkms.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new keymanagementserviceModule.v1.KeyManagementServiceClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'cloudkms.googleapis.com'); }); - + it('has universeDomain', () => { const client = new keymanagementserviceModule.v1.KeyManagementServiceClient(); const universeDomain = client.universeDomain; @@ -136,15 +130,15 @@ describe('v1.KeyManagementServiceClient', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new keymanagementserviceModule.v1.KeyManagementServiceClient({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'cloudkms.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new keymanagementserviceModule.v1.KeyManagementServiceClient({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'cloudkms.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/baselines/logging-esm/esm/src/v2/config_service_v2_client.ts.baseline b/baselines/logging-esm/esm/src/v2/config_service_v2_client.ts.baseline index 0cd6894fd..83ba8e109 100644 --- a/baselines/logging-esm/esm/src/v2/config_service_v2_client.ts.baseline +++ b/baselines/logging-esm/esm/src/v2/config_service_v2_client.ts.baseline @@ -397,7 +397,7 @@ export class ConfigServiceV2Client { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -410,7 +410,7 @@ export class ConfigServiceV2Client { /** * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -424,14 +424,6 @@ export class ConfigServiceV2Client { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/logging-esm/esm/src/v2/logging_service_v2_client.ts.baseline b/baselines/logging-esm/esm/src/v2/logging_service_v2_client.ts.baseline index 4f2a7ae26..c6d836229 100644 --- a/baselines/logging-esm/esm/src/v2/logging_service_v2_client.ts.baseline +++ b/baselines/logging-esm/esm/src/v2/logging_service_v2_client.ts.baseline @@ -396,7 +396,7 @@ export class LoggingServiceV2Client { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -409,7 +409,7 @@ export class LoggingServiceV2Client { /** * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -423,14 +423,6 @@ export class LoggingServiceV2Client { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/logging-esm/esm/src/v2/metrics_service_v2_client.ts.baseline b/baselines/logging-esm/esm/src/v2/metrics_service_v2_client.ts.baseline index ed4693bce..c4d4218a0 100644 --- a/baselines/logging-esm/esm/src/v2/metrics_service_v2_client.ts.baseline +++ b/baselines/logging-esm/esm/src/v2/metrics_service_v2_client.ts.baseline @@ -361,7 +361,7 @@ export class MetricsServiceV2Client { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -374,7 +374,7 @@ export class MetricsServiceV2Client { /** * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -388,14 +388,6 @@ export class MetricsServiceV2Client { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/logging-esm/esm/test/gapic_config_service_v2_v2.ts.baseline b/baselines/logging-esm/esm/test/gapic_config_service_v2_v2.ts.baseline index 84043a111..4896c2317 100644 --- a/baselines/logging-esm/esm/test/gapic_config_service_v2_v2.ts.baseline +++ b/baselines/logging-esm/esm/test/gapic_config_service_v2_v2.ts.baseline @@ -126,18 +126,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v2.ConfigServiceV2Client', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new configservicev2Module.v2.ConfigServiceV2Client(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'logging.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new configservicev2Module.v2.ConfigServiceV2Client(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'logging.googleapis.com'); }); - + it('has universeDomain', () => { const client = new configservicev2Module.v2.ConfigServiceV2Client(); const universeDomain = client.universeDomain; @@ -161,15 +155,15 @@ describe('v2.ConfigServiceV2Client', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new configservicev2Module.v2.ConfigServiceV2Client({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'logging.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new configservicev2Module.v2.ConfigServiceV2Client({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'logging.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/baselines/logging-esm/esm/test/gapic_logging_service_v2_v2.ts.baseline b/baselines/logging-esm/esm/test/gapic_logging_service_v2_v2.ts.baseline index a34ca78c5..602e5fc9a 100644 --- a/baselines/logging-esm/esm/test/gapic_logging_service_v2_v2.ts.baseline +++ b/baselines/logging-esm/esm/test/gapic_logging_service_v2_v2.ts.baseline @@ -119,18 +119,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v2.LoggingServiceV2Client', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new loggingservicev2Module.v2.LoggingServiceV2Client(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'logging.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new loggingservicev2Module.v2.LoggingServiceV2Client(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'logging.googleapis.com'); }); - + it('has universeDomain', () => { const client = new loggingservicev2Module.v2.LoggingServiceV2Client(); const universeDomain = client.universeDomain; @@ -154,15 +148,15 @@ describe('v2.LoggingServiceV2Client', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new loggingservicev2Module.v2.LoggingServiceV2Client({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'logging.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new loggingservicev2Module.v2.LoggingServiceV2Client({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'logging.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/baselines/logging-esm/esm/test/gapic_metrics_service_v2_v2.ts.baseline b/baselines/logging-esm/esm/test/gapic_metrics_service_v2_v2.ts.baseline index 1d7318b9c..61e1df350 100644 --- a/baselines/logging-esm/esm/test/gapic_metrics_service_v2_v2.ts.baseline +++ b/baselines/logging-esm/esm/test/gapic_metrics_service_v2_v2.ts.baseline @@ -110,18 +110,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v2.MetricsServiceV2Client', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new metricsservicev2Module.v2.MetricsServiceV2Client(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'logging.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new metricsservicev2Module.v2.MetricsServiceV2Client(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'logging.googleapis.com'); }); - + it('has universeDomain', () => { const client = new metricsservicev2Module.v2.MetricsServiceV2Client(); const universeDomain = client.universeDomain; @@ -145,15 +139,15 @@ describe('v2.MetricsServiceV2Client', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new metricsservicev2Module.v2.MetricsServiceV2Client({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'logging.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new metricsservicev2Module.v2.MetricsServiceV2Client({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'logging.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/baselines/logging/src/v2/config_service_v2_client.ts.baseline b/baselines/logging/src/v2/config_service_v2_client.ts.baseline index d3906f589..581c5ee2a 100644 --- a/baselines/logging/src/v2/config_service_v2_client.ts.baseline +++ b/baselines/logging/src/v2/config_service_v2_client.ts.baseline @@ -381,7 +381,7 @@ export class ConfigServiceV2Client { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -392,9 +392,8 @@ export class ConfigServiceV2Client { } /** - * The DNS address for this API service - same as servicePath, - * exists for compatibility reasons. - * @deprecated + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -408,14 +407,6 @@ export class ConfigServiceV2Client { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/logging/src/v2/logging_service_v2_client.ts.baseline b/baselines/logging/src/v2/logging_service_v2_client.ts.baseline index 16fac17f8..215941095 100644 --- a/baselines/logging/src/v2/logging_service_v2_client.ts.baseline +++ b/baselines/logging/src/v2/logging_service_v2_client.ts.baseline @@ -380,7 +380,7 @@ export class LoggingServiceV2Client { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -391,9 +391,8 @@ export class LoggingServiceV2Client { } /** - * The DNS address for this API service - same as servicePath, - * exists for compatibility reasons. - * @deprecated + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -407,14 +406,6 @@ export class LoggingServiceV2Client { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/logging/src/v2/metrics_service_v2_client.ts.baseline b/baselines/logging/src/v2/metrics_service_v2_client.ts.baseline index 62a8ef0f1..0371dff32 100644 --- a/baselines/logging/src/v2/metrics_service_v2_client.ts.baseline +++ b/baselines/logging/src/v2/metrics_service_v2_client.ts.baseline @@ -345,7 +345,7 @@ export class MetricsServiceV2Client { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -356,9 +356,8 @@ export class MetricsServiceV2Client { } /** - * The DNS address for this API service - same as servicePath, - * exists for compatibility reasons. - * @deprecated + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -372,14 +371,6 @@ export class MetricsServiceV2Client { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/logging/test/gapic_config_service_v2_v2.ts.baseline b/baselines/logging/test/gapic_config_service_v2_v2.ts.baseline index e81888141..20eea1c69 100644 --- a/baselines/logging/test/gapic_config_service_v2_v2.ts.baseline +++ b/baselines/logging/test/gapic_config_service_v2_v2.ts.baseline @@ -117,18 +117,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v2.ConfigServiceV2Client', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new configservicev2Module.v2.ConfigServiceV2Client(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'logging.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new configservicev2Module.v2.ConfigServiceV2Client(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'logging.googleapis.com'); }); - + it('has universeDomain', () => { const client = new configservicev2Module.v2.ConfigServiceV2Client(); const universeDomain = client.universeDomain; @@ -152,15 +146,15 @@ describe('v2.ConfigServiceV2Client', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new configservicev2Module.v2.ConfigServiceV2Client({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'logging.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new configservicev2Module.v2.ConfigServiceV2Client({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'logging.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/baselines/logging/test/gapic_logging_service_v2_v2.ts.baseline b/baselines/logging/test/gapic_logging_service_v2_v2.ts.baseline index 609f9aede..efbe36277 100644 --- a/baselines/logging/test/gapic_logging_service_v2_v2.ts.baseline +++ b/baselines/logging/test/gapic_logging_service_v2_v2.ts.baseline @@ -110,18 +110,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v2.LoggingServiceV2Client', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new loggingservicev2Module.v2.LoggingServiceV2Client(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'logging.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new loggingservicev2Module.v2.LoggingServiceV2Client(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'logging.googleapis.com'); }); - + it('has universeDomain', () => { const client = new loggingservicev2Module.v2.LoggingServiceV2Client(); const universeDomain = client.universeDomain; @@ -145,15 +139,15 @@ describe('v2.LoggingServiceV2Client', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new loggingservicev2Module.v2.LoggingServiceV2Client({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'logging.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new loggingservicev2Module.v2.LoggingServiceV2Client({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'logging.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/baselines/logging/test/gapic_metrics_service_v2_v2.ts.baseline b/baselines/logging/test/gapic_metrics_service_v2_v2.ts.baseline index c16ea9126..cda8f834c 100644 --- a/baselines/logging/test/gapic_metrics_service_v2_v2.ts.baseline +++ b/baselines/logging/test/gapic_metrics_service_v2_v2.ts.baseline @@ -101,18 +101,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v2.MetricsServiceV2Client', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new metricsservicev2Module.v2.MetricsServiceV2Client(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'logging.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new metricsservicev2Module.v2.MetricsServiceV2Client(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'logging.googleapis.com'); }); - + it('has universeDomain', () => { const client = new metricsservicev2Module.v2.MetricsServiceV2Client(); const universeDomain = client.universeDomain; @@ -136,15 +130,15 @@ describe('v2.MetricsServiceV2Client', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new metricsservicev2Module.v2.MetricsServiceV2Client({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'logging.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new metricsservicev2Module.v2.MetricsServiceV2Client({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'logging.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/baselines/monitoring-esm/esm/src/v3/alert_policy_service_client.ts.baseline b/baselines/monitoring-esm/esm/src/v3/alert_policy_service_client.ts.baseline index f5bf6a2b7..18547cd53 100644 --- a/baselines/monitoring-esm/esm/src/v3/alert_policy_service_client.ts.baseline +++ b/baselines/monitoring-esm/esm/src/v3/alert_policy_service_client.ts.baseline @@ -351,7 +351,7 @@ export class AlertPolicyServiceClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -364,7 +364,7 @@ export class AlertPolicyServiceClient { /** * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -378,14 +378,6 @@ export class AlertPolicyServiceClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/monitoring-esm/esm/src/v3/group_service_client.ts.baseline b/baselines/monitoring-esm/esm/src/v3/group_service_client.ts.baseline index 4d69f7c14..9f440b74c 100644 --- a/baselines/monitoring-esm/esm/src/v3/group_service_client.ts.baseline +++ b/baselines/monitoring-esm/esm/src/v3/group_service_client.ts.baseline @@ -356,7 +356,7 @@ export class GroupServiceClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -369,7 +369,7 @@ export class GroupServiceClient { /** * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -383,14 +383,6 @@ export class GroupServiceClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/monitoring-esm/esm/src/v3/metric_service_client.ts.baseline b/baselines/monitoring-esm/esm/src/v3/metric_service_client.ts.baseline index 5d6baf467..b7fad64ba 100644 --- a/baselines/monitoring-esm/esm/src/v3/metric_service_client.ts.baseline +++ b/baselines/monitoring-esm/esm/src/v3/metric_service_client.ts.baseline @@ -366,7 +366,7 @@ export class MetricServiceClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -379,7 +379,7 @@ export class MetricServiceClient { /** * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -393,14 +393,6 @@ export class MetricServiceClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/monitoring-esm/esm/src/v3/notification_channel_service_client.ts.baseline b/baselines/monitoring-esm/esm/src/v3/notification_channel_service_client.ts.baseline index c2fe6c9d8..3606e7d73 100644 --- a/baselines/monitoring-esm/esm/src/v3/notification_channel_service_client.ts.baseline +++ b/baselines/monitoring-esm/esm/src/v3/notification_channel_service_client.ts.baseline @@ -346,7 +346,7 @@ export class NotificationChannelServiceClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -359,7 +359,7 @@ export class NotificationChannelServiceClient { /** * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -373,14 +373,6 @@ export class NotificationChannelServiceClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/monitoring-esm/esm/src/v3/service_monitoring_service_client.ts.baseline b/baselines/monitoring-esm/esm/src/v3/service_monitoring_service_client.ts.baseline index e82bc868b..cb41d5817 100644 --- a/baselines/monitoring-esm/esm/src/v3/service_monitoring_service_client.ts.baseline +++ b/baselines/monitoring-esm/esm/src/v3/service_monitoring_service_client.ts.baseline @@ -348,7 +348,7 @@ export class ServiceMonitoringServiceClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -361,7 +361,7 @@ export class ServiceMonitoringServiceClient { /** * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -375,14 +375,6 @@ export class ServiceMonitoringServiceClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/monitoring-esm/esm/src/v3/uptime_check_service_client.ts.baseline b/baselines/monitoring-esm/esm/src/v3/uptime_check_service_client.ts.baseline index 0dbe38270..35130b4f4 100644 --- a/baselines/monitoring-esm/esm/src/v3/uptime_check_service_client.ts.baseline +++ b/baselines/monitoring-esm/esm/src/v3/uptime_check_service_client.ts.baseline @@ -352,7 +352,7 @@ export class UptimeCheckServiceClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -365,7 +365,7 @@ export class UptimeCheckServiceClient { /** * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -379,14 +379,6 @@ export class UptimeCheckServiceClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/monitoring-esm/esm/test/gapic_alert_policy_service_v3.ts.baseline b/baselines/monitoring-esm/esm/test/gapic_alert_policy_service_v3.ts.baseline index ec0ddb562..dc12acf46 100644 --- a/baselines/monitoring-esm/esm/test/gapic_alert_policy_service_v3.ts.baseline +++ b/baselines/monitoring-esm/esm/test/gapic_alert_policy_service_v3.ts.baseline @@ -110,18 +110,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v3.AlertPolicyServiceClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new alertpolicyserviceModule.v3.AlertPolicyServiceClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'monitoring.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new alertpolicyserviceModule.v3.AlertPolicyServiceClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'monitoring.googleapis.com'); }); - + it('has universeDomain', () => { const client = new alertpolicyserviceModule.v3.AlertPolicyServiceClient(); const universeDomain = client.universeDomain; @@ -145,15 +139,15 @@ describe('v3.AlertPolicyServiceClient', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new alertpolicyserviceModule.v3.AlertPolicyServiceClient({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'monitoring.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new alertpolicyserviceModule.v3.AlertPolicyServiceClient({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'monitoring.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/baselines/monitoring-esm/esm/test/gapic_group_service_v3.ts.baseline b/baselines/monitoring-esm/esm/test/gapic_group_service_v3.ts.baseline index d1826fa53..557848c6d 100644 --- a/baselines/monitoring-esm/esm/test/gapic_group_service_v3.ts.baseline +++ b/baselines/monitoring-esm/esm/test/gapic_group_service_v3.ts.baseline @@ -110,18 +110,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v3.GroupServiceClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new groupserviceModule.v3.GroupServiceClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'monitoring.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new groupserviceModule.v3.GroupServiceClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'monitoring.googleapis.com'); }); - + it('has universeDomain', () => { const client = new groupserviceModule.v3.GroupServiceClient(); const universeDomain = client.universeDomain; @@ -145,15 +139,15 @@ describe('v3.GroupServiceClient', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new groupserviceModule.v3.GroupServiceClient({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'monitoring.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new groupserviceModule.v3.GroupServiceClient({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'monitoring.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/baselines/monitoring-esm/esm/test/gapic_metric_service_v3.ts.baseline b/baselines/monitoring-esm/esm/test/gapic_metric_service_v3.ts.baseline index 67a0af65c..1239c562d 100644 --- a/baselines/monitoring-esm/esm/test/gapic_metric_service_v3.ts.baseline +++ b/baselines/monitoring-esm/esm/test/gapic_metric_service_v3.ts.baseline @@ -110,18 +110,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v3.MetricServiceClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new metricserviceModule.v3.MetricServiceClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'monitoring.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new metricserviceModule.v3.MetricServiceClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'monitoring.googleapis.com'); }); - + it('has universeDomain', () => { const client = new metricserviceModule.v3.MetricServiceClient(); const universeDomain = client.universeDomain; @@ -145,15 +139,15 @@ describe('v3.MetricServiceClient', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new metricserviceModule.v3.MetricServiceClient({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'monitoring.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new metricserviceModule.v3.MetricServiceClient({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'monitoring.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/baselines/monitoring-esm/esm/test/gapic_notification_channel_service_v3.ts.baseline b/baselines/monitoring-esm/esm/test/gapic_notification_channel_service_v3.ts.baseline index 88adb6f4a..36c9e2926 100644 --- a/baselines/monitoring-esm/esm/test/gapic_notification_channel_service_v3.ts.baseline +++ b/baselines/monitoring-esm/esm/test/gapic_notification_channel_service_v3.ts.baseline @@ -110,18 +110,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v3.NotificationChannelServiceClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new notificationchannelserviceModule.v3.NotificationChannelServiceClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'monitoring.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new notificationchannelserviceModule.v3.NotificationChannelServiceClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'monitoring.googleapis.com'); }); - + it('has universeDomain', () => { const client = new notificationchannelserviceModule.v3.NotificationChannelServiceClient(); const universeDomain = client.universeDomain; @@ -145,15 +139,15 @@ describe('v3.NotificationChannelServiceClient', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new notificationchannelserviceModule.v3.NotificationChannelServiceClient({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'monitoring.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new notificationchannelserviceModule.v3.NotificationChannelServiceClient({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'monitoring.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/baselines/monitoring-esm/esm/test/gapic_service_monitoring_service_v3.ts.baseline b/baselines/monitoring-esm/esm/test/gapic_service_monitoring_service_v3.ts.baseline index c529c9836..cef0ce261 100644 --- a/baselines/monitoring-esm/esm/test/gapic_service_monitoring_service_v3.ts.baseline +++ b/baselines/monitoring-esm/esm/test/gapic_service_monitoring_service_v3.ts.baseline @@ -110,18 +110,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v3.ServiceMonitoringServiceClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new servicemonitoringserviceModule.v3.ServiceMonitoringServiceClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'monitoring.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new servicemonitoringserviceModule.v3.ServiceMonitoringServiceClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'monitoring.googleapis.com'); }); - + it('has universeDomain', () => { const client = new servicemonitoringserviceModule.v3.ServiceMonitoringServiceClient(); const universeDomain = client.universeDomain; @@ -145,15 +139,15 @@ describe('v3.ServiceMonitoringServiceClient', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new servicemonitoringserviceModule.v3.ServiceMonitoringServiceClient({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'monitoring.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new servicemonitoringserviceModule.v3.ServiceMonitoringServiceClient({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'monitoring.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/baselines/monitoring-esm/esm/test/gapic_uptime_check_service_v3.ts.baseline b/baselines/monitoring-esm/esm/test/gapic_uptime_check_service_v3.ts.baseline index 88ba8ea86..5fc0b50bb 100644 --- a/baselines/monitoring-esm/esm/test/gapic_uptime_check_service_v3.ts.baseline +++ b/baselines/monitoring-esm/esm/test/gapic_uptime_check_service_v3.ts.baseline @@ -110,18 +110,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v3.UptimeCheckServiceClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new uptimecheckserviceModule.v3.UptimeCheckServiceClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'monitoring.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new uptimecheckserviceModule.v3.UptimeCheckServiceClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'monitoring.googleapis.com'); }); - + it('has universeDomain', () => { const client = new uptimecheckserviceModule.v3.UptimeCheckServiceClient(); const universeDomain = client.universeDomain; @@ -145,15 +139,15 @@ describe('v3.UptimeCheckServiceClient', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new uptimecheckserviceModule.v3.UptimeCheckServiceClient({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'monitoring.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new uptimecheckserviceModule.v3.UptimeCheckServiceClient({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'monitoring.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/baselines/monitoring/src/v3/alert_policy_service_client.ts.baseline b/baselines/monitoring/src/v3/alert_policy_service_client.ts.baseline index d9ad66dc2..46f6b09a6 100644 --- a/baselines/monitoring/src/v3/alert_policy_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/alert_policy_service_client.ts.baseline @@ -335,7 +335,7 @@ export class AlertPolicyServiceClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -346,9 +346,8 @@ export class AlertPolicyServiceClient { } /** - * The DNS address for this API service - same as servicePath, - * exists for compatibility reasons. - * @deprecated + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -362,14 +361,6 @@ export class AlertPolicyServiceClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/monitoring/src/v3/group_service_client.ts.baseline b/baselines/monitoring/src/v3/group_service_client.ts.baseline index 5e55d526a..9dbad988c 100644 --- a/baselines/monitoring/src/v3/group_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/group_service_client.ts.baseline @@ -340,7 +340,7 @@ export class GroupServiceClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -351,9 +351,8 @@ export class GroupServiceClient { } /** - * The DNS address for this API service - same as servicePath, - * exists for compatibility reasons. - * @deprecated + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -367,14 +366,6 @@ export class GroupServiceClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/monitoring/src/v3/metric_service_client.ts.baseline b/baselines/monitoring/src/v3/metric_service_client.ts.baseline index 4ceb8797e..5ca5af3aa 100644 --- a/baselines/monitoring/src/v3/metric_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/metric_service_client.ts.baseline @@ -350,7 +350,7 @@ export class MetricServiceClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -361,9 +361,8 @@ export class MetricServiceClient { } /** - * The DNS address for this API service - same as servicePath, - * exists for compatibility reasons. - * @deprecated + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -377,14 +376,6 @@ export class MetricServiceClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/monitoring/src/v3/notification_channel_service_client.ts.baseline b/baselines/monitoring/src/v3/notification_channel_service_client.ts.baseline index 5496f1f6f..a9f5e8fd3 100644 --- a/baselines/monitoring/src/v3/notification_channel_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/notification_channel_service_client.ts.baseline @@ -330,7 +330,7 @@ export class NotificationChannelServiceClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -341,9 +341,8 @@ export class NotificationChannelServiceClient { } /** - * The DNS address for this API service - same as servicePath, - * exists for compatibility reasons. - * @deprecated + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -357,14 +356,6 @@ export class NotificationChannelServiceClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/monitoring/src/v3/service_monitoring_service_client.ts.baseline b/baselines/monitoring/src/v3/service_monitoring_service_client.ts.baseline index 8f1cb39c2..a6eeb10fc 100644 --- a/baselines/monitoring/src/v3/service_monitoring_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/service_monitoring_service_client.ts.baseline @@ -332,7 +332,7 @@ export class ServiceMonitoringServiceClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -343,9 +343,8 @@ export class ServiceMonitoringServiceClient { } /** - * The DNS address for this API service - same as servicePath, - * exists for compatibility reasons. - * @deprecated + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -359,14 +358,6 @@ export class ServiceMonitoringServiceClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/monitoring/src/v3/uptime_check_service_client.ts.baseline b/baselines/monitoring/src/v3/uptime_check_service_client.ts.baseline index 9f511e3cf..ca8d12712 100644 --- a/baselines/monitoring/src/v3/uptime_check_service_client.ts.baseline +++ b/baselines/monitoring/src/v3/uptime_check_service_client.ts.baseline @@ -336,7 +336,7 @@ export class UptimeCheckServiceClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -347,9 +347,8 @@ export class UptimeCheckServiceClient { } /** - * The DNS address for this API service - same as servicePath, - * exists for compatibility reasons. - * @deprecated + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -363,14 +362,6 @@ export class UptimeCheckServiceClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/monitoring/test/gapic_alert_policy_service_v3.ts.baseline b/baselines/monitoring/test/gapic_alert_policy_service_v3.ts.baseline index e3dacfeae..44b950fd6 100644 --- a/baselines/monitoring/test/gapic_alert_policy_service_v3.ts.baseline +++ b/baselines/monitoring/test/gapic_alert_policy_service_v3.ts.baseline @@ -101,18 +101,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v3.AlertPolicyServiceClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new alertpolicyserviceModule.v3.AlertPolicyServiceClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'monitoring.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new alertpolicyserviceModule.v3.AlertPolicyServiceClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'monitoring.googleapis.com'); }); - + it('has universeDomain', () => { const client = new alertpolicyserviceModule.v3.AlertPolicyServiceClient(); const universeDomain = client.universeDomain; @@ -136,15 +130,15 @@ describe('v3.AlertPolicyServiceClient', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new alertpolicyserviceModule.v3.AlertPolicyServiceClient({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'monitoring.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new alertpolicyserviceModule.v3.AlertPolicyServiceClient({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'monitoring.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/baselines/monitoring/test/gapic_group_service_v3.ts.baseline b/baselines/monitoring/test/gapic_group_service_v3.ts.baseline index bbc33c182..28d409338 100644 --- a/baselines/monitoring/test/gapic_group_service_v3.ts.baseline +++ b/baselines/monitoring/test/gapic_group_service_v3.ts.baseline @@ -101,18 +101,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v3.GroupServiceClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new groupserviceModule.v3.GroupServiceClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'monitoring.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new groupserviceModule.v3.GroupServiceClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'monitoring.googleapis.com'); }); - + it('has universeDomain', () => { const client = new groupserviceModule.v3.GroupServiceClient(); const universeDomain = client.universeDomain; @@ -136,15 +130,15 @@ describe('v3.GroupServiceClient', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new groupserviceModule.v3.GroupServiceClient({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'monitoring.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new groupserviceModule.v3.GroupServiceClient({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'monitoring.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/baselines/monitoring/test/gapic_metric_service_v3.ts.baseline b/baselines/monitoring/test/gapic_metric_service_v3.ts.baseline index 682deaaa5..fb5a57b3f 100644 --- a/baselines/monitoring/test/gapic_metric_service_v3.ts.baseline +++ b/baselines/monitoring/test/gapic_metric_service_v3.ts.baseline @@ -101,18 +101,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v3.MetricServiceClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new metricserviceModule.v3.MetricServiceClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'monitoring.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new metricserviceModule.v3.MetricServiceClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'monitoring.googleapis.com'); }); - + it('has universeDomain', () => { const client = new metricserviceModule.v3.MetricServiceClient(); const universeDomain = client.universeDomain; @@ -136,15 +130,15 @@ describe('v3.MetricServiceClient', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new metricserviceModule.v3.MetricServiceClient({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'monitoring.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new metricserviceModule.v3.MetricServiceClient({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'monitoring.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/baselines/monitoring/test/gapic_notification_channel_service_v3.ts.baseline b/baselines/monitoring/test/gapic_notification_channel_service_v3.ts.baseline index fb7642d38..9526e9394 100644 --- a/baselines/monitoring/test/gapic_notification_channel_service_v3.ts.baseline +++ b/baselines/monitoring/test/gapic_notification_channel_service_v3.ts.baseline @@ -101,18 +101,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v3.NotificationChannelServiceClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new notificationchannelserviceModule.v3.NotificationChannelServiceClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'monitoring.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new notificationchannelserviceModule.v3.NotificationChannelServiceClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'monitoring.googleapis.com'); }); - + it('has universeDomain', () => { const client = new notificationchannelserviceModule.v3.NotificationChannelServiceClient(); const universeDomain = client.universeDomain; @@ -136,15 +130,15 @@ describe('v3.NotificationChannelServiceClient', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new notificationchannelserviceModule.v3.NotificationChannelServiceClient({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'monitoring.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new notificationchannelserviceModule.v3.NotificationChannelServiceClient({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'monitoring.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/baselines/monitoring/test/gapic_service_monitoring_service_v3.ts.baseline b/baselines/monitoring/test/gapic_service_monitoring_service_v3.ts.baseline index f80e9565d..b1359b518 100644 --- a/baselines/monitoring/test/gapic_service_monitoring_service_v3.ts.baseline +++ b/baselines/monitoring/test/gapic_service_monitoring_service_v3.ts.baseline @@ -101,18 +101,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v3.ServiceMonitoringServiceClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new servicemonitoringserviceModule.v3.ServiceMonitoringServiceClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'monitoring.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new servicemonitoringserviceModule.v3.ServiceMonitoringServiceClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'monitoring.googleapis.com'); }); - + it('has universeDomain', () => { const client = new servicemonitoringserviceModule.v3.ServiceMonitoringServiceClient(); const universeDomain = client.universeDomain; @@ -136,15 +130,15 @@ describe('v3.ServiceMonitoringServiceClient', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new servicemonitoringserviceModule.v3.ServiceMonitoringServiceClient({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'monitoring.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new servicemonitoringserviceModule.v3.ServiceMonitoringServiceClient({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'monitoring.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/baselines/monitoring/test/gapic_uptime_check_service_v3.ts.baseline b/baselines/monitoring/test/gapic_uptime_check_service_v3.ts.baseline index fdf3e79c4..afa626063 100644 --- a/baselines/monitoring/test/gapic_uptime_check_service_v3.ts.baseline +++ b/baselines/monitoring/test/gapic_uptime_check_service_v3.ts.baseline @@ -101,18 +101,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v3.UptimeCheckServiceClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new uptimecheckserviceModule.v3.UptimeCheckServiceClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'monitoring.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new uptimecheckserviceModule.v3.UptimeCheckServiceClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'monitoring.googleapis.com'); }); - + it('has universeDomain', () => { const client = new uptimecheckserviceModule.v3.UptimeCheckServiceClient(); const universeDomain = client.universeDomain; @@ -136,15 +130,15 @@ describe('v3.UptimeCheckServiceClient', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new uptimecheckserviceModule.v3.UptimeCheckServiceClient({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'monitoring.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new uptimecheckserviceModule.v3.UptimeCheckServiceClient({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'monitoring.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/baselines/naming-esm/esm/src/v1beta1/naming_client.ts.baseline b/baselines/naming-esm/esm/src/v1beta1/naming_client.ts.baseline index f89bfb986..6e1b511ad 100644 --- a/baselines/naming-esm/esm/src/v1beta1/naming_client.ts.baseline +++ b/baselines/naming-esm/esm/src/v1beta1/naming_client.ts.baseline @@ -304,7 +304,7 @@ export class NamingClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint1 method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath1() { @@ -317,7 +317,7 @@ export class NamingClient { /** * The DNS address for this API service - same as servicePath1, * exists for compatibility reasons. - * @deprecated + * @deprecated Use the apiEndpoint1 method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint1() { @@ -331,14 +331,6 @@ export class NamingClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath1() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath1(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint1() { return this._servicePath; } diff --git a/baselines/naming-esm/esm/test/gapic_naming_v1beta1.ts.baseline b/baselines/naming-esm/esm/test/gapic_naming_v1beta1.ts.baseline index 8ff1212d9..be727c21a 100644 --- a/baselines/naming-esm/esm/test/gapic_naming_v1beta1.ts.baseline +++ b/baselines/naming-esm/esm/test/gapic_naming_v1beta1.ts.baseline @@ -126,18 +126,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.NamingClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new namingModule.v1beta1.NamingClient(); - const servicePath = client.servicePath1; - assert.strictEqual(servicePath, 'localhost'); - }); - it('has apiEndpoint', () => { const client = new namingModule.v1beta1.NamingClient(); const apiEndpoint = client.apiEndpoint1; assert.strictEqual(apiEndpoint, 'localhost'); }); - + it('has universeDomain', () => { const client = new namingModule.v1beta1.NamingClient(); const universeDomain = client.universeDomain; diff --git a/baselines/naming/src/v1beta1/naming_client.ts.baseline b/baselines/naming/src/v1beta1/naming_client.ts.baseline index c9a311d47..dafa911b4 100644 --- a/baselines/naming/src/v1beta1/naming_client.ts.baseline +++ b/baselines/naming/src/v1beta1/naming_client.ts.baseline @@ -288,7 +288,7 @@ export class NamingClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint1 method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath1() { @@ -299,9 +299,8 @@ export class NamingClient { } /** - * The DNS address for this API service - same as servicePath1, - * exists for compatibility reasons. - * @deprecated + * The DNS address for this API service - same as servicePath1. + * @deprecated Use the apiEndpoint1 method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint1() { @@ -315,14 +314,6 @@ export class NamingClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath1() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath1(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint1() { return this._servicePath; } diff --git a/baselines/naming/test/gapic_naming_v1beta1.ts.baseline b/baselines/naming/test/gapic_naming_v1beta1.ts.baseline index cacfdf3c6..89ce1dbf5 100644 --- a/baselines/naming/test/gapic_naming_v1beta1.ts.baseline +++ b/baselines/naming/test/gapic_naming_v1beta1.ts.baseline @@ -117,18 +117,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.NamingClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new namingModule.v1beta1.NamingClient(); - const servicePath = client.servicePath1; - assert.strictEqual(servicePath, 'localhost'); - }); - it('has apiEndpoint', () => { const client = new namingModule.v1beta1.NamingClient(); const apiEndpoint = client.apiEndpoint1; assert.strictEqual(apiEndpoint, 'localhost'); }); - + it('has universeDomain', () => { const client = new namingModule.v1beta1.NamingClient(); const universeDomain = client.universeDomain; diff --git a/baselines/redis-esm/esm/src/v1beta1/cloud_redis_client.ts.baseline b/baselines/redis-esm/esm/src/v1beta1/cloud_redis_client.ts.baseline index 66ddb2e04..e22a33623 100644 --- a/baselines/redis-esm/esm/src/v1beta1/cloud_redis_client.ts.baseline +++ b/baselines/redis-esm/esm/src/v1beta1/cloud_redis_client.ts.baseline @@ -358,7 +358,7 @@ export class CloudRedisClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -371,7 +371,7 @@ export class CloudRedisClient { /** * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -385,14 +385,6 @@ export class CloudRedisClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/redis-esm/esm/test/gapic_cloud_redis_v1beta1.ts.baseline b/baselines/redis-esm/esm/test/gapic_cloud_redis_v1beta1.ts.baseline index 2f1e3ca01..2865f3f2f 100644 --- a/baselines/redis-esm/esm/test/gapic_cloud_redis_v1beta1.ts.baseline +++ b/baselines/redis-esm/esm/test/gapic_cloud_redis_v1beta1.ts.baseline @@ -126,18 +126,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.CloudRedisClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new cloudredisModule.v1beta1.CloudRedisClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'redis.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new cloudredisModule.v1beta1.CloudRedisClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'redis.googleapis.com'); }); - + it('has universeDomain', () => { const client = new cloudredisModule.v1beta1.CloudRedisClient(); const universeDomain = client.universeDomain; @@ -161,15 +155,15 @@ describe('v1beta1.CloudRedisClient', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new cloudredisModule.v1beta1.CloudRedisClient({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'redis.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new cloudredisModule.v1beta1.CloudRedisClient({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'redis.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/baselines/redis/src/v1beta1/cloud_redis_client.ts.baseline b/baselines/redis/src/v1beta1/cloud_redis_client.ts.baseline index 66d05245e..b7decdf7b 100644 --- a/baselines/redis/src/v1beta1/cloud_redis_client.ts.baseline +++ b/baselines/redis/src/v1beta1/cloud_redis_client.ts.baseline @@ -342,7 +342,7 @@ export class CloudRedisClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -353,9 +353,8 @@ export class CloudRedisClient { } /** - * The DNS address for this API service - same as servicePath, - * exists for compatibility reasons. - * @deprecated + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -369,14 +368,6 @@ export class CloudRedisClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/redis/test/gapic_cloud_redis_v1beta1.ts.baseline b/baselines/redis/test/gapic_cloud_redis_v1beta1.ts.baseline index b6656f90d..e3fa69718 100644 --- a/baselines/redis/test/gapic_cloud_redis_v1beta1.ts.baseline +++ b/baselines/redis/test/gapic_cloud_redis_v1beta1.ts.baseline @@ -117,18 +117,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.CloudRedisClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new cloudredisModule.v1beta1.CloudRedisClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'redis.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new cloudredisModule.v1beta1.CloudRedisClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'redis.googleapis.com'); }); - + it('has universeDomain', () => { const client = new cloudredisModule.v1beta1.CloudRedisClient(); const universeDomain = client.universeDomain; @@ -152,15 +146,15 @@ describe('v1beta1.CloudRedisClient', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new cloudredisModule.v1beta1.CloudRedisClient({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'redis.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new cloudredisModule.v1beta1.CloudRedisClient({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'redis.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/baselines/routingtest-esm/esm/src/v1/test_service_client.ts.baseline b/baselines/routingtest-esm/esm/src/v1/test_service_client.ts.baseline index 035219267..e1a4459c2 100644 --- a/baselines/routingtest-esm/esm/src/v1/test_service_client.ts.baseline +++ b/baselines/routingtest-esm/esm/src/v1/test_service_client.ts.baseline @@ -256,7 +256,7 @@ export class TestServiceClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -269,7 +269,7 @@ export class TestServiceClient { /** * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -283,14 +283,6 @@ export class TestServiceClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/routingtest-esm/esm/test/gapic_test_service_v1.ts.baseline b/baselines/routingtest-esm/esm/test/gapic_test_service_v1.ts.baseline index 61d2c57a1..8a1a2ae5b 100644 --- a/baselines/routingtest-esm/esm/test/gapic_test_service_v1.ts.baseline +++ b/baselines/routingtest-esm/esm/test/gapic_test_service_v1.ts.baseline @@ -63,18 +63,12 @@ function stubSimpleCallWithCallback(response?: ResponseType, error describe('v1.TestServiceClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new testserviceModule.v1.TestServiceClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'localhost'); - }); - it('has apiEndpoint', () => { const client = new testserviceModule.v1.TestServiceClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'localhost'); }); - + it('has universeDomain', () => { const client = new testserviceModule.v1.TestServiceClient(); const universeDomain = client.universeDomain; diff --git a/baselines/routingtest/src/v1/test_service_client.ts.baseline b/baselines/routingtest/src/v1/test_service_client.ts.baseline index 81793a2be..13e681320 100644 --- a/baselines/routingtest/src/v1/test_service_client.ts.baseline +++ b/baselines/routingtest/src/v1/test_service_client.ts.baseline @@ -240,7 +240,7 @@ export class TestServiceClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -251,9 +251,8 @@ export class TestServiceClient { } /** - * The DNS address for this API service - same as servicePath, - * exists for compatibility reasons. - * @deprecated + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -267,14 +266,6 @@ export class TestServiceClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/routingtest/test/gapic_test_service_v1.ts.baseline b/baselines/routingtest/test/gapic_test_service_v1.ts.baseline index 2a63f7f62..ad2a95ded 100644 --- a/baselines/routingtest/test/gapic_test_service_v1.ts.baseline +++ b/baselines/routingtest/test/gapic_test_service_v1.ts.baseline @@ -54,18 +54,12 @@ function stubSimpleCallWithCallback(response?: ResponseType, error describe('v1.TestServiceClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new testserviceModule.v1.TestServiceClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'localhost'); - }); - it('has apiEndpoint', () => { const client = new testserviceModule.v1.TestServiceClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'localhost'); }); - + it('has universeDomain', () => { const client = new testserviceModule.v1.TestServiceClient(); const universeDomain = client.universeDomain; diff --git a/baselines/showcase-esm/esm/src/v1beta1/compliance_client.ts.baseline b/baselines/showcase-esm/esm/src/v1beta1/compliance_client.ts.baseline index e233e3ce5..3c1154570 100644 --- a/baselines/showcase-esm/esm/src/v1beta1/compliance_client.ts.baseline +++ b/baselines/showcase-esm/esm/src/v1beta1/compliance_client.ts.baseline @@ -300,7 +300,7 @@ export class ComplianceClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -313,7 +313,7 @@ export class ComplianceClient { /** * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -327,14 +327,6 @@ export class ComplianceClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/showcase-esm/esm/src/v1beta1/echo_client.ts.baseline b/baselines/showcase-esm/esm/src/v1beta1/echo_client.ts.baseline index 71945b0c6..6087f5538 100644 --- a/baselines/showcase-esm/esm/src/v1beta1/echo_client.ts.baseline +++ b/baselines/showcase-esm/esm/src/v1beta1/echo_client.ts.baseline @@ -359,7 +359,7 @@ export class EchoClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -372,7 +372,7 @@ export class EchoClient { /** * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -386,14 +386,6 @@ export class EchoClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/showcase-esm/esm/src/v1beta1/identity_client.ts.baseline b/baselines/showcase-esm/esm/src/v1beta1/identity_client.ts.baseline index 11381b3d5..7b9238b43 100644 --- a/baselines/showcase-esm/esm/src/v1beta1/identity_client.ts.baseline +++ b/baselines/showcase-esm/esm/src/v1beta1/identity_client.ts.baseline @@ -307,7 +307,7 @@ export class IdentityClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -320,7 +320,7 @@ export class IdentityClient { /** * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -334,14 +334,6 @@ export class IdentityClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/showcase-esm/esm/src/v1beta1/messaging_client.ts.baseline b/baselines/showcase-esm/esm/src/v1beta1/messaging_client.ts.baseline index 953e4f1c2..d259b7766 100644 --- a/baselines/showcase-esm/esm/src/v1beta1/messaging_client.ts.baseline +++ b/baselines/showcase-esm/esm/src/v1beta1/messaging_client.ts.baseline @@ -358,7 +358,7 @@ export class MessagingClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -371,7 +371,7 @@ export class MessagingClient { /** * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -385,14 +385,6 @@ export class MessagingClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/showcase-esm/esm/src/v1beta1/sequence_service_client.ts.baseline b/baselines/showcase-esm/esm/src/v1beta1/sequence_service_client.ts.baseline index 26e6d622d..e65203887 100644 --- a/baselines/showcase-esm/esm/src/v1beta1/sequence_service_client.ts.baseline +++ b/baselines/showcase-esm/esm/src/v1beta1/sequence_service_client.ts.baseline @@ -297,7 +297,7 @@ export class SequenceServiceClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -310,7 +310,7 @@ export class SequenceServiceClient { /** * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -324,14 +324,6 @@ export class SequenceServiceClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/showcase-esm/esm/src/v1beta1/testing_client.ts.baseline b/baselines/showcase-esm/esm/src/v1beta1/testing_client.ts.baseline index e8fd944ce..950599766 100644 --- a/baselines/showcase-esm/esm/src/v1beta1/testing_client.ts.baseline +++ b/baselines/showcase-esm/esm/src/v1beta1/testing_client.ts.baseline @@ -310,7 +310,7 @@ export class TestingClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -323,7 +323,7 @@ export class TestingClient { /** * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -337,14 +337,6 @@ export class TestingClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/showcase-esm/esm/test/gapic_compliance_v1beta1.ts.baseline b/baselines/showcase-esm/esm/test/gapic_compliance_v1beta1.ts.baseline index d1c78ef38..13caa7b68 100644 --- a/baselines/showcase-esm/esm/test/gapic_compliance_v1beta1.ts.baseline +++ b/baselines/showcase-esm/esm/test/gapic_compliance_v1beta1.ts.baseline @@ -63,18 +63,12 @@ function stubSimpleCallWithCallback(response?: ResponseType, error describe('v1beta1.ComplianceClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new complianceModule.v1beta1.ComplianceClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'localhost'); - }); - it('has apiEndpoint', () => { const client = new complianceModule.v1beta1.ComplianceClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'localhost'); }); - + it('has universeDomain', () => { const client = new complianceModule.v1beta1.ComplianceClient(); const universeDomain = client.universeDomain; diff --git a/baselines/showcase-esm/esm/test/gapic_echo_v1beta1.ts.baseline b/baselines/showcase-esm/esm/test/gapic_echo_v1beta1.ts.baseline index 013f450d4..969fe9602 100644 --- a/baselines/showcase-esm/esm/test/gapic_echo_v1beta1.ts.baseline +++ b/baselines/showcase-esm/esm/test/gapic_echo_v1beta1.ts.baseline @@ -159,18 +159,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.EchoClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new echoModule.v1beta1.EchoClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'localhost'); - }); - it('has apiEndpoint', () => { const client = new echoModule.v1beta1.EchoClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'localhost'); }); - + it('has universeDomain', () => { const client = new echoModule.v1beta1.EchoClient(); const universeDomain = client.universeDomain; diff --git a/baselines/showcase-esm/esm/test/gapic_identity_v1beta1.ts.baseline b/baselines/showcase-esm/esm/test/gapic_identity_v1beta1.ts.baseline index 03efa6165..4570103a7 100644 --- a/baselines/showcase-esm/esm/test/gapic_identity_v1beta1.ts.baseline +++ b/baselines/showcase-esm/esm/test/gapic_identity_v1beta1.ts.baseline @@ -110,18 +110,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.IdentityClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new identityModule.v1beta1.IdentityClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'localhost'); - }); - it('has apiEndpoint', () => { const client = new identityModule.v1beta1.IdentityClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'localhost'); }); - + it('has universeDomain', () => { const client = new identityModule.v1beta1.IdentityClient(); const universeDomain = client.universeDomain; diff --git a/baselines/showcase-esm/esm/test/gapic_messaging_v1beta1.ts.baseline b/baselines/showcase-esm/esm/test/gapic_messaging_v1beta1.ts.baseline index d3de767cb..a3710d628 100644 --- a/baselines/showcase-esm/esm/test/gapic_messaging_v1beta1.ts.baseline +++ b/baselines/showcase-esm/esm/test/gapic_messaging_v1beta1.ts.baseline @@ -159,18 +159,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.MessagingClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new messagingModule.v1beta1.MessagingClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'localhost'); - }); - it('has apiEndpoint', () => { const client = new messagingModule.v1beta1.MessagingClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'localhost'); }); - + it('has universeDomain', () => { const client = new messagingModule.v1beta1.MessagingClient(); const universeDomain = client.universeDomain; diff --git a/baselines/showcase-esm/esm/test/gapic_sequence_service_v1beta1.ts.baseline b/baselines/showcase-esm/esm/test/gapic_sequence_service_v1beta1.ts.baseline index 0cee3be4f..7da6ab6b9 100644 --- a/baselines/showcase-esm/esm/test/gapic_sequence_service_v1beta1.ts.baseline +++ b/baselines/showcase-esm/esm/test/gapic_sequence_service_v1beta1.ts.baseline @@ -63,18 +63,12 @@ function stubSimpleCallWithCallback(response?: ResponseType, error describe('v1beta1.SequenceServiceClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new sequenceserviceModule.v1beta1.SequenceServiceClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'localhost'); - }); - it('has apiEndpoint', () => { const client = new sequenceserviceModule.v1beta1.SequenceServiceClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'localhost'); }); - + it('has universeDomain', () => { const client = new sequenceserviceModule.v1beta1.SequenceServiceClient(); const universeDomain = client.universeDomain; diff --git a/baselines/showcase-esm/esm/test/gapic_testing_v1beta1.ts.baseline b/baselines/showcase-esm/esm/test/gapic_testing_v1beta1.ts.baseline index 79a17c15d..b90cab827 100644 --- a/baselines/showcase-esm/esm/test/gapic_testing_v1beta1.ts.baseline +++ b/baselines/showcase-esm/esm/test/gapic_testing_v1beta1.ts.baseline @@ -110,18 +110,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.TestingClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new testingModule.v1beta1.TestingClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'localhost'); - }); - it('has apiEndpoint', () => { const client = new testingModule.v1beta1.TestingClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'localhost'); }); - + it('has universeDomain', () => { const client = new testingModule.v1beta1.TestingClient(); const universeDomain = client.universeDomain; diff --git a/baselines/showcase-legacy-esm/esm/src/v1beta1/echo_client.ts.baseline b/baselines/showcase-legacy-esm/esm/src/v1beta1/echo_client.ts.baseline index 9b5e8d01c..d35017afc 100644 --- a/baselines/showcase-legacy-esm/esm/src/v1beta1/echo_client.ts.baseline +++ b/baselines/showcase-legacy-esm/esm/src/v1beta1/echo_client.ts.baseline @@ -290,7 +290,7 @@ export class EchoClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -303,7 +303,7 @@ export class EchoClient { /** * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -317,14 +317,6 @@ export class EchoClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/showcase-legacy-esm/esm/test/gapic_echo_v1beta1.ts.baseline b/baselines/showcase-legacy-esm/esm/test/gapic_echo_v1beta1.ts.baseline index 9f68c5c48..78c048967 100644 --- a/baselines/showcase-legacy-esm/esm/test/gapic_echo_v1beta1.ts.baseline +++ b/baselines/showcase-legacy-esm/esm/test/gapic_echo_v1beta1.ts.baseline @@ -145,18 +145,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.EchoClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new echoModule.v1beta1.EchoClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'localhost'); - }); - it('has apiEndpoint', () => { const client = new echoModule.v1beta1.EchoClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'localhost'); }); - + it('has universeDomain', () => { const client = new echoModule.v1beta1.EchoClient(); const universeDomain = client.universeDomain; diff --git a/baselines/showcase-legacy/src/v1beta1/echo_client.ts.baseline b/baselines/showcase-legacy/src/v1beta1/echo_client.ts.baseline index 623ead694..044db66a6 100644 --- a/baselines/showcase-legacy/src/v1beta1/echo_client.ts.baseline +++ b/baselines/showcase-legacy/src/v1beta1/echo_client.ts.baseline @@ -276,7 +276,7 @@ export class EchoClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -287,9 +287,8 @@ export class EchoClient { } /** - * The DNS address for this API service - same as servicePath, - * exists for compatibility reasons. - * @deprecated + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -303,14 +302,6 @@ export class EchoClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/showcase-legacy/test/gapic_echo_v1beta1.ts.baseline b/baselines/showcase-legacy/test/gapic_echo_v1beta1.ts.baseline index 10246647a..4d27a64eb 100644 --- a/baselines/showcase-legacy/test/gapic_echo_v1beta1.ts.baseline +++ b/baselines/showcase-legacy/test/gapic_echo_v1beta1.ts.baseline @@ -144,18 +144,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.EchoClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new echoModule.v1beta1.EchoClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'localhost'); - }); - it('has apiEndpoint', () => { const client = new echoModule.v1beta1.EchoClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'localhost'); }); - + it('has universeDomain', () => { const client = new echoModule.v1beta1.EchoClient(); const universeDomain = client.universeDomain; diff --git a/baselines/showcase/src/v1beta1/compliance_client.ts.baseline b/baselines/showcase/src/v1beta1/compliance_client.ts.baseline index 744e3fc19..386fd4e2c 100644 --- a/baselines/showcase/src/v1beta1/compliance_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/compliance_client.ts.baseline @@ -284,7 +284,7 @@ export class ComplianceClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -295,9 +295,8 @@ export class ComplianceClient { } /** - * The DNS address for this API service - same as servicePath, - * exists for compatibility reasons. - * @deprecated + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -311,14 +310,6 @@ export class ComplianceClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/showcase/src/v1beta1/echo_client.ts.baseline b/baselines/showcase/src/v1beta1/echo_client.ts.baseline index e9e7c49ae..e56df8c61 100644 --- a/baselines/showcase/src/v1beta1/echo_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/echo_client.ts.baseline @@ -343,7 +343,7 @@ export class EchoClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -354,9 +354,8 @@ export class EchoClient { } /** - * The DNS address for this API service - same as servicePath, - * exists for compatibility reasons. - * @deprecated + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -370,14 +369,6 @@ export class EchoClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/showcase/src/v1beta1/identity_client.ts.baseline b/baselines/showcase/src/v1beta1/identity_client.ts.baseline index 968da66bc..aa42588c2 100644 --- a/baselines/showcase/src/v1beta1/identity_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/identity_client.ts.baseline @@ -291,7 +291,7 @@ export class IdentityClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -302,9 +302,8 @@ export class IdentityClient { } /** - * The DNS address for this API service - same as servicePath, - * exists for compatibility reasons. - * @deprecated + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -318,14 +317,6 @@ export class IdentityClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/showcase/src/v1beta1/messaging_client.ts.baseline b/baselines/showcase/src/v1beta1/messaging_client.ts.baseline index 3fb2eb087..251e73928 100644 --- a/baselines/showcase/src/v1beta1/messaging_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/messaging_client.ts.baseline @@ -342,7 +342,7 @@ export class MessagingClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -353,9 +353,8 @@ export class MessagingClient { } /** - * The DNS address for this API service - same as servicePath, - * exists for compatibility reasons. - * @deprecated + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -369,14 +368,6 @@ export class MessagingClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/showcase/src/v1beta1/sequence_service_client.ts.baseline b/baselines/showcase/src/v1beta1/sequence_service_client.ts.baseline index 8600019b9..e91fd3e4f 100644 --- a/baselines/showcase/src/v1beta1/sequence_service_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/sequence_service_client.ts.baseline @@ -281,7 +281,7 @@ export class SequenceServiceClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -292,9 +292,8 @@ export class SequenceServiceClient { } /** - * The DNS address for this API service - same as servicePath, - * exists for compatibility reasons. - * @deprecated + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -308,14 +307,6 @@ export class SequenceServiceClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/showcase/src/v1beta1/testing_client.ts.baseline b/baselines/showcase/src/v1beta1/testing_client.ts.baseline index 4b7dd6183..2346ae7fb 100644 --- a/baselines/showcase/src/v1beta1/testing_client.ts.baseline +++ b/baselines/showcase/src/v1beta1/testing_client.ts.baseline @@ -294,7 +294,7 @@ export class TestingClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -305,9 +305,8 @@ export class TestingClient { } /** - * The DNS address for this API service - same as servicePath, - * exists for compatibility reasons. - * @deprecated + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -321,14 +320,6 @@ export class TestingClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/showcase/test/gapic_compliance_v1beta1.ts.baseline b/baselines/showcase/test/gapic_compliance_v1beta1.ts.baseline index 2391ba9d1..6ad065bd9 100644 --- a/baselines/showcase/test/gapic_compliance_v1beta1.ts.baseline +++ b/baselines/showcase/test/gapic_compliance_v1beta1.ts.baseline @@ -54,18 +54,12 @@ function stubSimpleCallWithCallback(response?: ResponseType, error describe('v1beta1.ComplianceClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new complianceModule.v1beta1.ComplianceClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'localhost'); - }); - it('has apiEndpoint', () => { const client = new complianceModule.v1beta1.ComplianceClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'localhost'); }); - + it('has universeDomain', () => { const client = new complianceModule.v1beta1.ComplianceClient(); const universeDomain = client.universeDomain; diff --git a/baselines/showcase/test/gapic_echo_v1beta1.ts.baseline b/baselines/showcase/test/gapic_echo_v1beta1.ts.baseline index 374a8fefe..c0c8b5ad3 100644 --- a/baselines/showcase/test/gapic_echo_v1beta1.ts.baseline +++ b/baselines/showcase/test/gapic_echo_v1beta1.ts.baseline @@ -150,18 +150,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.EchoClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new echoModule.v1beta1.EchoClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'localhost'); - }); - it('has apiEndpoint', () => { const client = new echoModule.v1beta1.EchoClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'localhost'); }); - + it('has universeDomain', () => { const client = new echoModule.v1beta1.EchoClient(); const universeDomain = client.universeDomain; diff --git a/baselines/showcase/test/gapic_identity_v1beta1.ts.baseline b/baselines/showcase/test/gapic_identity_v1beta1.ts.baseline index 7d9f7f3de..34b33e829 100644 --- a/baselines/showcase/test/gapic_identity_v1beta1.ts.baseline +++ b/baselines/showcase/test/gapic_identity_v1beta1.ts.baseline @@ -101,18 +101,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.IdentityClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new identityModule.v1beta1.IdentityClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'localhost'); - }); - it('has apiEndpoint', () => { const client = new identityModule.v1beta1.IdentityClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'localhost'); }); - + it('has universeDomain', () => { const client = new identityModule.v1beta1.IdentityClient(); const universeDomain = client.universeDomain; diff --git a/baselines/showcase/test/gapic_messaging_v1beta1.ts.baseline b/baselines/showcase/test/gapic_messaging_v1beta1.ts.baseline index adaa2ba8c..422c3d6a6 100644 --- a/baselines/showcase/test/gapic_messaging_v1beta1.ts.baseline +++ b/baselines/showcase/test/gapic_messaging_v1beta1.ts.baseline @@ -150,18 +150,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.MessagingClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new messagingModule.v1beta1.MessagingClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'localhost'); - }); - it('has apiEndpoint', () => { const client = new messagingModule.v1beta1.MessagingClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'localhost'); }); - + it('has universeDomain', () => { const client = new messagingModule.v1beta1.MessagingClient(); const universeDomain = client.universeDomain; diff --git a/baselines/showcase/test/gapic_sequence_service_v1beta1.ts.baseline b/baselines/showcase/test/gapic_sequence_service_v1beta1.ts.baseline index 78d75f0ad..883b81afd 100644 --- a/baselines/showcase/test/gapic_sequence_service_v1beta1.ts.baseline +++ b/baselines/showcase/test/gapic_sequence_service_v1beta1.ts.baseline @@ -54,18 +54,12 @@ function stubSimpleCallWithCallback(response?: ResponseType, error describe('v1beta1.SequenceServiceClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new sequenceserviceModule.v1beta1.SequenceServiceClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'localhost'); - }); - it('has apiEndpoint', () => { const client = new sequenceserviceModule.v1beta1.SequenceServiceClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'localhost'); }); - + it('has universeDomain', () => { const client = new sequenceserviceModule.v1beta1.SequenceServiceClient(); const universeDomain = client.universeDomain; diff --git a/baselines/showcase/test/gapic_testing_v1beta1.ts.baseline b/baselines/showcase/test/gapic_testing_v1beta1.ts.baseline index 07152fc53..2abfa4bce 100644 --- a/baselines/showcase/test/gapic_testing_v1beta1.ts.baseline +++ b/baselines/showcase/test/gapic_testing_v1beta1.ts.baseline @@ -101,18 +101,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v1beta1.TestingClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new testingModule.v1beta1.TestingClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'localhost'); - }); - it('has apiEndpoint', () => { const client = new testingModule.v1beta1.TestingClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'localhost'); }); - + it('has universeDomain', () => { const client = new testingModule.v1beta1.TestingClient(); const universeDomain = client.universeDomain; diff --git a/baselines/tasks-esm/esm/src/v2/cloud_tasks_client.ts.baseline b/baselines/tasks-esm/esm/src/v2/cloud_tasks_client.ts.baseline index 10474f9fa..54ca6d57b 100644 --- a/baselines/tasks-esm/esm/src/v2/cloud_tasks_client.ts.baseline +++ b/baselines/tasks-esm/esm/src/v2/cloud_tasks_client.ts.baseline @@ -280,7 +280,7 @@ export class CloudTasksClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -293,7 +293,7 @@ export class CloudTasksClient { /** * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -307,14 +307,6 @@ export class CloudTasksClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/tasks-esm/esm/test/gapic_cloud_tasks_v2.ts.baseline b/baselines/tasks-esm/esm/test/gapic_cloud_tasks_v2.ts.baseline index b76659c3e..c537a3ddd 100644 --- a/baselines/tasks-esm/esm/test/gapic_cloud_tasks_v2.ts.baseline +++ b/baselines/tasks-esm/esm/test/gapic_cloud_tasks_v2.ts.baseline @@ -110,18 +110,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v2.CloudTasksClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new cloudtasksModule.v2.CloudTasksClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'cloudtasks.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new cloudtasksModule.v2.CloudTasksClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'cloudtasks.googleapis.com'); }); - + it('has universeDomain', () => { const client = new cloudtasksModule.v2.CloudTasksClient(); const universeDomain = client.universeDomain; @@ -145,15 +139,15 @@ describe('v2.CloudTasksClient', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new cloudtasksModule.v2.CloudTasksClient({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'cloudtasks.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new cloudtasksModule.v2.CloudTasksClient({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'cloudtasks.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/baselines/tasks/src/v2/cloud_tasks_client.ts.baseline b/baselines/tasks/src/v2/cloud_tasks_client.ts.baseline index 7bb7095c3..48df9ece8 100644 --- a/baselines/tasks/src/v2/cloud_tasks_client.ts.baseline +++ b/baselines/tasks/src/v2/cloud_tasks_client.ts.baseline @@ -264,7 +264,7 @@ export class CloudTasksClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -275,9 +275,8 @@ export class CloudTasksClient { } /** - * The DNS address for this API service - same as servicePath, - * exists for compatibility reasons. - * @deprecated + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -291,14 +290,6 @@ export class CloudTasksClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/tasks/test/gapic_cloud_tasks_v2.ts.baseline b/baselines/tasks/test/gapic_cloud_tasks_v2.ts.baseline index d8e30e249..e071a4047 100644 --- a/baselines/tasks/test/gapic_cloud_tasks_v2.ts.baseline +++ b/baselines/tasks/test/gapic_cloud_tasks_v2.ts.baseline @@ -101,18 +101,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v2.CloudTasksClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new cloudtasksModule.v2.CloudTasksClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'cloudtasks.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new cloudtasksModule.v2.CloudTasksClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'cloudtasks.googleapis.com'); }); - + it('has universeDomain', () => { const client = new cloudtasksModule.v2.CloudTasksClient(); const universeDomain = client.universeDomain; @@ -136,15 +130,15 @@ describe('v2.CloudTasksClient', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new cloudtasksModule.v2.CloudTasksClient({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'cloudtasks.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new cloudtasksModule.v2.CloudTasksClient({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'cloudtasks.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/baselines/texttospeech-esm/esm/src/v1/text_to_speech_client.ts.baseline b/baselines/texttospeech-esm/esm/src/v1/text_to_speech_client.ts.baseline index 4a75cd8c9..5be6d0d25 100644 --- a/baselines/texttospeech-esm/esm/src/v1/text_to_speech_client.ts.baseline +++ b/baselines/texttospeech-esm/esm/src/v1/text_to_speech_client.ts.baseline @@ -255,7 +255,7 @@ export class TextToSpeechClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -268,7 +268,7 @@ export class TextToSpeechClient { /** * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -282,14 +282,6 @@ export class TextToSpeechClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/texttospeech-esm/esm/test/gapic_text_to_speech_v1.ts.baseline b/baselines/texttospeech-esm/esm/test/gapic_text_to_speech_v1.ts.baseline index a2531fb7d..008077f5c 100644 --- a/baselines/texttospeech-esm/esm/test/gapic_text_to_speech_v1.ts.baseline +++ b/baselines/texttospeech-esm/esm/test/gapic_text_to_speech_v1.ts.baseline @@ -63,18 +63,12 @@ function stubSimpleCallWithCallback(response?: ResponseType, error describe('v1.TextToSpeechClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new texttospeechModule.v1.TextToSpeechClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'texttospeech.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new texttospeechModule.v1.TextToSpeechClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'texttospeech.googleapis.com'); }); - + it('has universeDomain', () => { const client = new texttospeechModule.v1.TextToSpeechClient(); const universeDomain = client.universeDomain; @@ -98,15 +92,15 @@ describe('v1.TextToSpeechClient', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new texttospeechModule.v1.TextToSpeechClient({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'texttospeech.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new texttospeechModule.v1.TextToSpeechClient({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'texttospeech.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/baselines/texttospeech/src/v1/text_to_speech_client.ts.baseline b/baselines/texttospeech/src/v1/text_to_speech_client.ts.baseline index 47b6863c5..0c913e76d 100644 --- a/baselines/texttospeech/src/v1/text_to_speech_client.ts.baseline +++ b/baselines/texttospeech/src/v1/text_to_speech_client.ts.baseline @@ -239,7 +239,7 @@ export class TextToSpeechClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -250,9 +250,8 @@ export class TextToSpeechClient { } /** - * The DNS address for this API service - same as servicePath, - * exists for compatibility reasons. - * @deprecated + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -266,14 +265,6 @@ export class TextToSpeechClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/texttospeech/test/gapic_text_to_speech_v1.ts.baseline b/baselines/texttospeech/test/gapic_text_to_speech_v1.ts.baseline index cff2c30a6..b4fe34c8e 100644 --- a/baselines/texttospeech/test/gapic_text_to_speech_v1.ts.baseline +++ b/baselines/texttospeech/test/gapic_text_to_speech_v1.ts.baseline @@ -54,18 +54,12 @@ function stubSimpleCallWithCallback(response?: ResponseType, error describe('v1.TextToSpeechClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new texttospeechModule.v1.TextToSpeechClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'texttospeech.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new texttospeechModule.v1.TextToSpeechClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'texttospeech.googleapis.com'); }); - + it('has universeDomain', () => { const client = new texttospeechModule.v1.TextToSpeechClient(); const universeDomain = client.universeDomain; @@ -89,15 +83,15 @@ describe('v1.TextToSpeechClient', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new texttospeechModule.v1.TextToSpeechClient({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'texttospeech.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new texttospeechModule.v1.TextToSpeechClient({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'texttospeech.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/baselines/translate-esm/esm/src/v3beta1/translation_service_client.ts.baseline b/baselines/translate-esm/esm/src/v3beta1/translation_service_client.ts.baseline index 64dffbb53..7b166315d 100644 --- a/baselines/translate-esm/esm/src/v3beta1/translation_service_client.ts.baseline +++ b/baselines/translate-esm/esm/src/v3beta1/translation_service_client.ts.baseline @@ -320,7 +320,7 @@ export class TranslationServiceClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -333,7 +333,7 @@ export class TranslationServiceClient { /** * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -347,14 +347,6 @@ export class TranslationServiceClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/translate-esm/esm/test/gapic_translation_service_v3beta1.ts.baseline b/baselines/translate-esm/esm/test/gapic_translation_service_v3beta1.ts.baseline index 134da37e9..0714f505e 100644 --- a/baselines/translate-esm/esm/test/gapic_translation_service_v3beta1.ts.baseline +++ b/baselines/translate-esm/esm/test/gapic_translation_service_v3beta1.ts.baseline @@ -126,18 +126,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v3beta1.TranslationServiceClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new translationserviceModule.v3beta1.TranslationServiceClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'translate.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new translationserviceModule.v3beta1.TranslationServiceClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'translate.googleapis.com'); }); - + it('has universeDomain', () => { const client = new translationserviceModule.v3beta1.TranslationServiceClient(); const universeDomain = client.universeDomain; @@ -161,15 +155,15 @@ describe('v3beta1.TranslationServiceClient', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new translationserviceModule.v3beta1.TranslationServiceClient({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'translate.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new translationserviceModule.v3beta1.TranslationServiceClient({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'translate.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/baselines/translate/src/v3beta1/translation_service_client.ts.baseline b/baselines/translate/src/v3beta1/translation_service_client.ts.baseline index fc7e2fd9c..a33900dc7 100644 --- a/baselines/translate/src/v3beta1/translation_service_client.ts.baseline +++ b/baselines/translate/src/v3beta1/translation_service_client.ts.baseline @@ -304,7 +304,7 @@ export class TranslationServiceClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -315,9 +315,8 @@ export class TranslationServiceClient { } /** - * The DNS address for this API service - same as servicePath, - * exists for compatibility reasons. - * @deprecated + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -331,14 +330,6 @@ export class TranslationServiceClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/translate/test/gapic_translation_service_v3beta1.ts.baseline b/baselines/translate/test/gapic_translation_service_v3beta1.ts.baseline index 62e6b5c6a..2eaff74de 100644 --- a/baselines/translate/test/gapic_translation_service_v3beta1.ts.baseline +++ b/baselines/translate/test/gapic_translation_service_v3beta1.ts.baseline @@ -117,18 +117,12 @@ function stubAsyncIterationCall(responses?: ResponseType[], error? describe('v3beta1.TranslationServiceClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new translationserviceModule.v3beta1.TranslationServiceClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'translate.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new translationserviceModule.v3beta1.TranslationServiceClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'translate.googleapis.com'); }); - + it('has universeDomain', () => { const client = new translationserviceModule.v3beta1.TranslationServiceClient(); const universeDomain = client.universeDomain; @@ -152,15 +146,15 @@ describe('v3beta1.TranslationServiceClient', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new translationserviceModule.v3beta1.TranslationServiceClient({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'translate.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new translationserviceModule.v3beta1.TranslationServiceClient({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'translate.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/baselines/videointelligence-esm/esm/src/v1/video_intelligence_service_client.ts.baseline b/baselines/videointelligence-esm/esm/src/v1/video_intelligence_service_client.ts.baseline index 865a6e568..87bc40178 100644 --- a/baselines/videointelligence-esm/esm/src/v1/video_intelligence_service_client.ts.baseline +++ b/baselines/videointelligence-esm/esm/src/v1/video_intelligence_service_client.ts.baseline @@ -282,7 +282,7 @@ export class VideoIntelligenceServiceClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -295,7 +295,7 @@ export class VideoIntelligenceServiceClient { /** * The DNS address for this API service - same as servicePath, * exists for compatibility reasons. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -309,14 +309,6 @@ export class VideoIntelligenceServiceClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/videointelligence-esm/esm/test/gapic_video_intelligence_service_v1.ts.baseline b/baselines/videointelligence-esm/esm/test/gapic_video_intelligence_service_v1.ts.baseline index f68a13658..c12c497c7 100644 --- a/baselines/videointelligence-esm/esm/test/gapic_video_intelligence_service_v1.ts.baseline +++ b/baselines/videointelligence-esm/esm/test/gapic_video_intelligence_service_v1.ts.baseline @@ -75,18 +75,12 @@ function stubLongRunningCallWithCallback(response?: ResponseType, describe('v1.VideoIntelligenceServiceClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new videointelligenceserviceModule.v1.VideoIntelligenceServiceClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'videointelligence.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new videointelligenceserviceModule.v1.VideoIntelligenceServiceClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'videointelligence.googleapis.com'); }); - + it('has universeDomain', () => { const client = new videointelligenceserviceModule.v1.VideoIntelligenceServiceClient(); const universeDomain = client.universeDomain; @@ -110,15 +104,15 @@ describe('v1.VideoIntelligenceServiceClient', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new videointelligenceserviceModule.v1.VideoIntelligenceServiceClient({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'videointelligence.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new videointelligenceserviceModule.v1.VideoIntelligenceServiceClient({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'videointelligence.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/baselines/videointelligence/src/v1/video_intelligence_service_client.ts.baseline b/baselines/videointelligence/src/v1/video_intelligence_service_client.ts.baseline index d80b8d033..096a49ce4 100644 --- a/baselines/videointelligence/src/v1/video_intelligence_service_client.ts.baseline +++ b/baselines/videointelligence/src/v1/video_intelligence_service_client.ts.baseline @@ -266,7 +266,7 @@ export class VideoIntelligenceServiceClient { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath() { @@ -277,9 +277,8 @@ export class VideoIntelligenceServiceClient { } /** - * The DNS address for this API service - same as servicePath, - * exists for compatibility reasons. - * @deprecated + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint() { @@ -293,14 +292,6 @@ export class VideoIntelligenceServiceClient { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get servicePath() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as servicePath(). - * @returns {string} The DNS address for this service. - */ get apiEndpoint() { return this._servicePath; } diff --git a/baselines/videointelligence/test/gapic_video_intelligence_service_v1.ts.baseline b/baselines/videointelligence/test/gapic_video_intelligence_service_v1.ts.baseline index 05b109a7e..98cdddb44 100644 --- a/baselines/videointelligence/test/gapic_video_intelligence_service_v1.ts.baseline +++ b/baselines/videointelligence/test/gapic_video_intelligence_service_v1.ts.baseline @@ -66,18 +66,12 @@ function stubLongRunningCallWithCallback(response?: ResponseType, describe('v1.VideoIntelligenceServiceClient', () => { describe('Common methods', () => { - it('has servicePath', () => { - const client = new videointelligenceserviceModule.v1.VideoIntelligenceServiceClient(); - const servicePath = client.servicePath; - assert.strictEqual(servicePath, 'videointelligence.googleapis.com'); - }); - it('has apiEndpoint', () => { const client = new videointelligenceserviceModule.v1.VideoIntelligenceServiceClient(); const apiEndpoint = client.apiEndpoint; assert.strictEqual(apiEndpoint, 'videointelligence.googleapis.com'); }); - + it('has universeDomain', () => { const client = new videointelligenceserviceModule.v1.VideoIntelligenceServiceClient(); const universeDomain = client.universeDomain; @@ -101,15 +95,15 @@ describe('v1.VideoIntelligenceServiceClient', () => { stub.restore(); }); } - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new videointelligenceserviceModule.v1.VideoIntelligenceServiceClient({universeDomain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'videointelligence.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new videointelligenceserviceModule.v1.VideoIntelligenceServiceClient({universe_domain: 'example.com'}); - const servicePath = client.servicePath; + const servicePath = client.apiEndpoint; assert.strictEqual(servicePath, 'videointelligence.example.com'); }); it('does not allow setting both universeDomain and universe_domain', () => { diff --git a/templates/cjs/typescript_gapic/src/$version/$service_client.ts.njk b/templates/cjs/typescript_gapic/src/$version/$service_client.ts.njk index 7f7f9bc86..e2d8bbe93 100644 --- a/templates/cjs/typescript_gapic/src/$version/$service_client.ts.njk +++ b/templates/cjs/typescript_gapic/src/$version/$service_client.ts.njk @@ -490,7 +490,7 @@ export class {{ service.name }}Client { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the {{ id.get("apiEndpoint") }} method of the client instance. * @returns {string} The DNS address for this service. */ static get {{ id.get("servicePath") }}() { @@ -501,9 +501,8 @@ export class {{ service.name }}Client { } /** - * The DNS address for this API service - same as {{ id.get("servicePath") }}, - * exists for compatibility reasons. - * @deprecated + * The DNS address for this API service - same as {{ id.get("servicePath") }}. + * @deprecated Use the {{ id.get("apiEndpoint") }} method of the client instance. * @returns {string} The DNS address for this service. */ static get {{ id.get("apiEndpoint") }}() { @@ -517,14 +516,6 @@ export class {{ service.name }}Client { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get {{ id.get("servicePath") }}() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as {{ id.get("servicePath") }}(). - * @returns {string} The DNS address for this service. - */ get {{ id.get("apiEndpoint") }}() { return this._servicePath; } diff --git a/templates/cjs/typescript_gapic/test/gapic_$service_$version.ts.njk b/templates/cjs/typescript_gapic/test/gapic_$service_$version.ts.njk index 2abdda122..aaf26a883 100644 --- a/templates/cjs/typescript_gapic/test/gapic_$service_$version.ts.njk +++ b/templates/cjs/typescript_gapic/test/gapic_$service_$version.ts.njk @@ -214,18 +214,12 @@ describe('{{ api.naming.version }}.{{ service.name }}Client', () => { }); {%- endif %} describe('Common methods', () => { - it('has servicePath', () => { - const client = new {{ service.name.toLowerCase() }}Module.{{ api.naming.version }}.{{ service.name }}Client(); - const servicePath = client.{{ id.get("servicePath") }}; - assert.strictEqual(servicePath, '{{ api.hostName }}'); - }); - it('has apiEndpoint', () => { const client = new {{ service.name.toLowerCase() }}Module.{{ api.naming.version }}.{{ service.name }}Client(); const apiEndpoint = client.{{ id.get("apiEndpoint") }}; assert.strictEqual(apiEndpoint, '{{ api.hostName }}'); }); - + it('has universeDomain', () => { const client = new {{ service.name.toLowerCase() }}Module.{{ api.naming.version }}.{{ service.name }}Client(); const universeDomain = client.{{ id.get("universeDomain") }}; @@ -251,15 +245,15 @@ describe('{{ api.naming.version }}.{{ service.name }}Client', () => { } {%- if api.hostName.endsWith("googleapis.com") %} - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new {{ service.name.toLowerCase() }}Module.{{ api.naming.version }}.{{ service.name }}Client({universeDomain: 'example.com'}); - const servicePath = client.{{ id.get("servicePath") }}; + const servicePath = client.{{ id.get("apiEndpoint") }}; assert.strictEqual(servicePath, '{{ api.shortName }}.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new {{ service.name.toLowerCase() }}Module.{{ api.naming.version }}.{{ service.name }}Client({universe_domain: 'example.com'}); - const servicePath = client.{{ id.get("servicePath") }}; + const servicePath = client.{{ id.get("apiEndpoint") }}; assert.strictEqual(servicePath, '{{ api.shortName }}.example.com'); }); diff --git a/templates/esm/typescript_gapic/esm/src/$version/$service_client.ts.njk b/templates/esm/typescript_gapic/esm/src/$version/$service_client.ts.njk index e8c510292..b39582673 100644 --- a/templates/esm/typescript_gapic/esm/src/$version/$service_client.ts.njk +++ b/templates/esm/typescript_gapic/esm/src/$version/$service_client.ts.njk @@ -498,7 +498,7 @@ export class {{ service.name }}Client { /** * The DNS address for this API service. - * @deprecated + * @deprecated Use the {{ id.get("apiEndpoint") }} method of the client instance. * @returns {string} The DNS address for this service. */ static get {{ id.get("servicePath") }}() { @@ -511,7 +511,7 @@ export class {{ service.name }}Client { /** * The DNS address for this API service - same as {{ id.get("servicePath") }}, * exists for compatibility reasons. - * @deprecated + * @deprecated Use the {{ id.get("apiEndpoint") }} method of the client instance. * @returns {string} The DNS address for this service. */ static get {{ id.get("apiEndpoint") }}() { @@ -525,14 +525,6 @@ export class {{ service.name }}Client { * The DNS address for this API service. * @returns {string} The DNS address for this service. */ - get {{ id.get("servicePath") }}() { - return this._servicePath; - } - - /** - * The DNS address for this API service - same as {{ id.get("servicePath") }}(). - * @returns {string} The DNS address for this service. - */ get {{ id.get("apiEndpoint") }}() { return this._servicePath; } diff --git a/templates/esm/typescript_gapic/esm/test/gapic_$service_$version.ts.njk b/templates/esm/typescript_gapic/esm/test/gapic_$service_$version.ts.njk index 97bd52eaf..d799ea9d8 100644 --- a/templates/esm/typescript_gapic/esm/test/gapic_$service_$version.ts.njk +++ b/templates/esm/typescript_gapic/esm/test/gapic_$service_$version.ts.njk @@ -222,18 +222,12 @@ describe('{{ api.naming.version }}.{{ service.name }}Client', () => { }); {%- endif %} describe('Common methods', () => { - it('has servicePath', () => { - const client = new {{ service.name.toLowerCase() }}Module.{{ api.naming.version }}.{{ service.name }}Client(); - const servicePath = client.{{ id.get("servicePath") }}; - assert.strictEqual(servicePath, '{{ api.hostName }}'); - }); - it('has apiEndpoint', () => { const client = new {{ service.name.toLowerCase() }}Module.{{ api.naming.version }}.{{ service.name }}Client(); const apiEndpoint = client.{{ id.get("apiEndpoint") }}; assert.strictEqual(apiEndpoint, '{{ api.hostName }}'); }); - + it('has universeDomain', () => { const client = new {{ service.name.toLowerCase() }}Module.{{ api.naming.version }}.{{ service.name }}Client(); const universeDomain = client.{{ id.get("universeDomain") }}; @@ -259,15 +253,15 @@ describe('{{ api.naming.version }}.{{ service.name }}Client', () => { } {%- if api.hostName.endsWith("googleapis.com") %} - it('sets servicePath according to universe domain camelCase', () => { + it('sets apiEndpoint according to universe domain camelCase', () => { const client = new {{ service.name.toLowerCase() }}Module.{{ api.naming.version }}.{{ service.name }}Client({universeDomain: 'example.com'}); - const servicePath = client.{{ id.get("servicePath") }}; + const servicePath = client.{{ id.get("apiEndpoint") }}; assert.strictEqual(servicePath, '{{ api.shortName }}.example.com'); }); - it('sets servicePath according to universe domain snakeCase', () => { + it('sets apiEndpoint according to universe domain snakeCase', () => { const client = new {{ service.name.toLowerCase() }}Module.{{ api.naming.version }}.{{ service.name }}Client({universe_domain: 'example.com'}); - const servicePath = client.{{ id.get("servicePath") }}; + const servicePath = client.{{ id.get("apiEndpoint") }}; assert.strictEqual(servicePath, '{{ api.shortName }}.example.com'); }); From d12482199cdadd2691a3a139b3726a7f0af485c6 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 6 Feb 2024 13:28:42 -0800 Subject: [PATCH 17/35] chore(main): release 4.4.1 (#1533) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- CHANGELOG.md | 7 +++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d91a84b5d..031243679 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [4.4.1](https://github.com/googleapis/gapic-generator-typescript/compare/v4.4.0...v4.4.1) (2024-02-06) + + +### Bug Fixes + +* Remove name conflict for APIs that have servicePath ([#1531](https://github.com/googleapis/gapic-generator-typescript/issues/1531)) ([9312781](https://github.com/googleapis/gapic-generator-typescript/commit/93127813253aac41bdd6f88ecda68e11c701b52c)) + ## [4.4.0](https://github.com/googleapis/gapic-generator-typescript/compare/v4.3.0...v4.4.0) (2024-02-02) diff --git a/package-lock.json b/package-lock.json index dcf2306c8..b8154f195 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@google-cloud/gapic-generator", - "version": "4.4.0", + "version": "4.4.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@google-cloud/gapic-generator", - "version": "4.4.0", + "version": "4.4.1", "license": "Apache-2.0", "dependencies": { "@types/js-yaml": "^4.0.9", diff --git a/package.json b/package.json index f72ea17d6..63d13a413 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@google-cloud/gapic-generator", - "version": "4.4.0", + "version": "4.4.1", "type": "module", "description": "Google API Client Library Generator for TypeScript, written in TypeScript.", "homepage": "https://github.com/googleapis/gapic-generator-typescript#readme", From 0867184447407c0d5fdfd597d8c84e0ae85a5300 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 9 Feb 2024 19:18:41 +0100 Subject: [PATCH 18/35] chore(deps): update dependency @types/node to v20 (#1532) --- baselines/asset-esm/package.json | 2 +- baselines/asset/package.json | 2 +- baselines/bigquery-storage-esm/package.json | 2 +- baselines/bigquery-storage/package.json | 2 +- baselines/compute-esm/package.json | 2 +- baselines/compute/package.json | 2 +- baselines/deprecatedtest-esm/package.json | 2 +- baselines/deprecatedtest/package.json | 2 +- .../disable-packing-test-esm/package.json | 2 +- baselines/disable-packing-test/package.json | 2 +- baselines/dlp-esm/package.json | 2 +- baselines/dlp/package.json | 2 +- baselines/kms-esm/package.json | 2 +- baselines/kms/package.json | 2 +- baselines/logging-esm/package.json | 2 +- baselines/logging/package.json | 2 +- baselines/monitoring-esm/package.json | 2 +- baselines/monitoring/package.json | 2 +- baselines/naming-esm/package.json | 2 +- baselines/naming/package.json | 2 +- baselines/redis-esm/package.json | 2 +- baselines/redis/package.json | 2 +- baselines/routingtest-esm/package.json | 2 +- baselines/routingtest/package.json | 2 +- baselines/showcase-esm/package.json | 2 +- baselines/showcase-legacy-esm/package.json | 2 +- baselines/showcase-legacy/package.json | 2 +- baselines/showcase/package.json | 2 +- baselines/tasks-esm/package.json | 2 +- baselines/tasks/package.json | 2 +- baselines/texttospeech-esm/package.json | 2 +- baselines/texttospeech/package.json | 2 +- baselines/translate-esm/package.json | 2 +- baselines/translate/package.json | 2 +- baselines/videointelligence-esm/package.json | 2 +- baselines/videointelligence/package.json | 2 +- package-lock.json | 24 +- package.json | 2 +- pnpm-lock.yaml | 24 +- templates/cjs/typescript_gapic/package.json | 2 +- templates/esm/typescript_gapic/package.json | 2 +- yarn.lock | 371 +++++++----------- 42 files changed, 200 insertions(+), 297 deletions(-) diff --git a/baselines/asset-esm/package.json b/baselines/asset-esm/package.json index cc20ee8b3..9803b69f2 100644 --- a/baselines/asset-esm/package.json +++ b/baselines/asset-esm/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.23.2", "@babel/preset-typescript": "^7.23.2", "@types/mocha": "^10.0.6", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/asset/package.json b/baselines/asset/package.json index a293d2420..105e8e870 100644 --- a/baselines/asset/package.json +++ b/baselines/asset/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/bigquery-storage-esm/package.json b/baselines/bigquery-storage-esm/package.json index 841d32cc3..dbb142110 100644 --- a/baselines/bigquery-storage-esm/package.json +++ b/baselines/bigquery-storage-esm/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.23.2", "@babel/preset-typescript": "^7.23.2", "@types/mocha": "^10.0.6", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/bigquery-storage/package.json b/baselines/bigquery-storage/package.json index 4b6a5a6ab..4ccfd3e04 100644 --- a/baselines/bigquery-storage/package.json +++ b/baselines/bigquery-storage/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/compute-esm/package.json b/baselines/compute-esm/package.json index 81c3b8c6c..42746c229 100644 --- a/baselines/compute-esm/package.json +++ b/baselines/compute-esm/package.json @@ -72,7 +72,7 @@ "@babel/preset-env": "^7.23.2", "@babel/preset-typescript": "^7.23.2", "@types/mocha": "^10.0.6", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/compute/package.json b/baselines/compute/package.json index ad7c4e36e..b48ec3ec2 100644 --- a/baselines/compute/package.json +++ b/baselines/compute/package.json @@ -40,7 +40,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/deprecatedtest-esm/package.json b/baselines/deprecatedtest-esm/package.json index bf342d27a..3c004e14b 100644 --- a/baselines/deprecatedtest-esm/package.json +++ b/baselines/deprecatedtest-esm/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.23.2", "@babel/preset-typescript": "^7.23.2", "@types/mocha": "^10.0.6", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/deprecatedtest/package.json b/baselines/deprecatedtest/package.json index 7a5b564de..937660259 100644 --- a/baselines/deprecatedtest/package.json +++ b/baselines/deprecatedtest/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/disable-packing-test-esm/package.json b/baselines/disable-packing-test-esm/package.json index a8510a02d..e0e0a80e1 100644 --- a/baselines/disable-packing-test-esm/package.json +++ b/baselines/disable-packing-test-esm/package.json @@ -76,7 +76,7 @@ "@babel/preset-env": "^7.23.2", "@babel/preset-typescript": "^7.23.2", "@types/mocha": "^10.0.6", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/disable-packing-test/package.json b/baselines/disable-packing-test/package.json index 8d7ba29e7..28cf2ef43 100644 --- a/baselines/disable-packing-test/package.json +++ b/baselines/disable-packing-test/package.json @@ -44,7 +44,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/dlp-esm/package.json b/baselines/dlp-esm/package.json index c66a5541c..bc6e86304 100644 --- a/baselines/dlp-esm/package.json +++ b/baselines/dlp-esm/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.23.2", "@babel/preset-typescript": "^7.23.2", "@types/mocha": "^10.0.6", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/dlp/package.json b/baselines/dlp/package.json index 5cee671e9..f37d8e2a1 100644 --- a/baselines/dlp/package.json +++ b/baselines/dlp/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/kms-esm/package.json b/baselines/kms-esm/package.json index 1c4bfef2b..1bf5fab0a 100644 --- a/baselines/kms-esm/package.json +++ b/baselines/kms-esm/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.23.2", "@babel/preset-typescript": "^7.23.2", "@types/mocha": "^10.0.6", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/kms/package.json b/baselines/kms/package.json index 994db4daa..2b84cecac 100644 --- a/baselines/kms/package.json +++ b/baselines/kms/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/logging-esm/package.json b/baselines/logging-esm/package.json index b5e421eff..29e98afd7 100644 --- a/baselines/logging-esm/package.json +++ b/baselines/logging-esm/package.json @@ -73,7 +73,7 @@ "@babel/preset-env": "^7.23.2", "@babel/preset-typescript": "^7.23.2", "@types/mocha": "^10.0.6", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/logging/package.json b/baselines/logging/package.json index fb63990f0..6122869f1 100644 --- a/baselines/logging/package.json +++ b/baselines/logging/package.json @@ -41,7 +41,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/monitoring-esm/package.json b/baselines/monitoring-esm/package.json index f17f69c07..e76ddb768 100644 --- a/baselines/monitoring-esm/package.json +++ b/baselines/monitoring-esm/package.json @@ -76,7 +76,7 @@ "@babel/preset-env": "^7.23.2", "@babel/preset-typescript": "^7.23.2", "@types/mocha": "^10.0.6", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/monitoring/package.json b/baselines/monitoring/package.json index b71307606..ee664d2bc 100644 --- a/baselines/monitoring/package.json +++ b/baselines/monitoring/package.json @@ -44,7 +44,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/naming-esm/package.json b/baselines/naming-esm/package.json index 8592c270e..7b13167f5 100644 --- a/baselines/naming-esm/package.json +++ b/baselines/naming-esm/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.23.2", "@babel/preset-typescript": "^7.23.2", "@types/mocha": "^10.0.6", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/naming/package.json b/baselines/naming/package.json index 76ea2a076..91a89a624 100644 --- a/baselines/naming/package.json +++ b/baselines/naming/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/redis-esm/package.json b/baselines/redis-esm/package.json index 8ec923f4b..c11ac81d5 100644 --- a/baselines/redis-esm/package.json +++ b/baselines/redis-esm/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.23.2", "@babel/preset-typescript": "^7.23.2", "@types/mocha": "^10.0.6", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/redis/package.json b/baselines/redis/package.json index 52d1aa3d2..7a45d36c4 100644 --- a/baselines/redis/package.json +++ b/baselines/redis/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/routingtest-esm/package.json b/baselines/routingtest-esm/package.json index b50548b5b..ce6099113 100644 --- a/baselines/routingtest-esm/package.json +++ b/baselines/routingtest-esm/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.23.2", "@babel/preset-typescript": "^7.23.2", "@types/mocha": "^10.0.6", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/routingtest/package.json b/baselines/routingtest/package.json index d0e434435..40f66aabb 100644 --- a/baselines/routingtest/package.json +++ b/baselines/routingtest/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/showcase-esm/package.json b/baselines/showcase-esm/package.json index a8510a02d..e0e0a80e1 100644 --- a/baselines/showcase-esm/package.json +++ b/baselines/showcase-esm/package.json @@ -76,7 +76,7 @@ "@babel/preset-env": "^7.23.2", "@babel/preset-typescript": "^7.23.2", "@types/mocha": "^10.0.6", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/showcase-legacy-esm/package.json b/baselines/showcase-legacy-esm/package.json index aa843e8a0..e9a06381f 100644 --- a/baselines/showcase-legacy-esm/package.json +++ b/baselines/showcase-legacy-esm/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.23.2", "@babel/preset-typescript": "^7.23.2", "@types/mocha": "^10.0.6", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/showcase-legacy/package.json b/baselines/showcase-legacy/package.json index c49208aa6..35e751ea5 100644 --- a/baselines/showcase-legacy/package.json +++ b/baselines/showcase-legacy/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/showcase/package.json b/baselines/showcase/package.json index 8d7ba29e7..28cf2ef43 100644 --- a/baselines/showcase/package.json +++ b/baselines/showcase/package.json @@ -44,7 +44,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/tasks-esm/package.json b/baselines/tasks-esm/package.json index c4bdeaa6d..6501a089a 100644 --- a/baselines/tasks-esm/package.json +++ b/baselines/tasks-esm/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.23.2", "@babel/preset-typescript": "^7.23.2", "@types/mocha": "^10.0.6", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/tasks/package.json b/baselines/tasks/package.json index 18cdffe7d..530c926e4 100644 --- a/baselines/tasks/package.json +++ b/baselines/tasks/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/texttospeech-esm/package.json b/baselines/texttospeech-esm/package.json index c146aae12..2eb7d7050 100644 --- a/baselines/texttospeech-esm/package.json +++ b/baselines/texttospeech-esm/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.23.2", "@babel/preset-typescript": "^7.23.2", "@types/mocha": "^10.0.6", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/texttospeech/package.json b/baselines/texttospeech/package.json index 0156d8ccb..661d8ae9e 100644 --- a/baselines/texttospeech/package.json +++ b/baselines/texttospeech/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/translate-esm/package.json b/baselines/translate-esm/package.json index 0b28a4244..f76f1d338 100644 --- a/baselines/translate-esm/package.json +++ b/baselines/translate-esm/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.23.2", "@babel/preset-typescript": "^7.23.2", "@types/mocha": "^10.0.6", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/translate/package.json b/baselines/translate/package.json index 6b483c182..8c932f7aa 100644 --- a/baselines/translate/package.json +++ b/baselines/translate/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/videointelligence-esm/package.json b/baselines/videointelligence-esm/package.json index c7eeb2080..0fae89e49 100644 --- a/baselines/videointelligence-esm/package.json +++ b/baselines/videointelligence-esm/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.23.2", "@babel/preset-typescript": "^7.23.2", "@types/mocha": "^10.0.6", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/videointelligence/package.json b/baselines/videointelligence/package.json index 757d29a41..62601cb04 100644 --- a/baselines/videointelligence/package.json +++ b/baselines/videointelligence/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/package-lock.json b/package-lock.json index b8154f195..1b995b99b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,13 +27,13 @@ "@bazel/bazelisk": "^1.19.0", "@types/mocha": "^10.0.6", "@types/module-alias": "^2.0.4", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/nunjucks": "^3.2.6", "@types/object-hash": "^3.0.6", "@types/yargs": "^17.0.32", "espower-typescript": "^10.0.1", "gapic-tools": "^0.3.0", - "google-gax": "^4.2.1", + "google-gax": "^4.3.0", "gts": "^5.2.0", "mocha": "^10.2.0", "typescript": "5.1.6" @@ -954,9 +954,12 @@ "dev": true }, "node_modules/@types/node": { - "version": "18.17.14", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.17.14.tgz", - "integrity": "sha512-ZE/5aB73CyGqgQULkLG87N9GnyGe5TcQjv34pwS8tfBs1IkCh0ASM69mydb2znqd6v0eX+9Ytvk6oQRqu8T1Vw==" + "version": "20.11.17", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.17.tgz", + "integrity": "sha512-QmgQZGWu1Yw9TDyAP9ZzpFJKynYNeOvwMJmaxABfieQoVoiVOS6MN1WSpqpRcbeA5+RW82kraAVxCCJg+780Qw==", + "dependencies": { + "undici-types": "~5.26.4" + } }, "node_modules/@types/normalize-package-data": { "version": "2.4.1", @@ -3523,9 +3526,9 @@ "dev": true }, "node_modules/google-gax": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/google-gax/-/google-gax-4.2.1.tgz", - "integrity": "sha512-Yal4oh2GMHBsFX8zunxwaRuD2bP7rrA7Oz/ooXK8uOMGnP71jNVRl6fUv8chYLkPTqEzBSij9TZw49B86SDVTg==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/google-gax/-/google-gax-4.3.0.tgz", + "integrity": "sha512-SWHX72gbccNfpPoeTkNmZJxmLyKWeLr0+5Ch6qtrf4oAN8KFXnyXe5EixatILnJWufM3L59MRZ4hSJWVJ3IQqw==", "dev": true, "dependencies": { "@grpc/grpc-js": "~1.9.6", @@ -6710,6 +6713,11 @@ "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.6.tgz", "integrity": "sha512-+A5Sja4HP1M08MaXya7p5LvjuM7K6q/2EaC0+iovj/wOcMsTzMvDFbasi/oSapiwOlt252IqsKqPjCl7huKS0A==" }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" + }, "node_modules/untildify": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz", diff --git a/package.json b/package.json index 63d13a413..7ca0d4553 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "@bazel/bazelisk": "^1.19.0", "@types/mocha": "^10.0.6", "@types/module-alias": "^2.0.4", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/nunjucks": "^3.2.6", "@types/object-hash": "^3.0.6", "@types/yargs": "^17.0.32", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 787e9389f..259e56568 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -44,8 +44,8 @@ devDependencies: specifier: ^2.0.4 version: 2.0.4 '@types/node': - specifier: ^18.11.18 - version: 18.19.8 + specifier: ^20.11.17 + version: 20.11.17 '@types/nunjucks': specifier: ^3.2.6 version: 3.2.6 @@ -57,7 +57,7 @@ devDependencies: version: 17.0.32 espower-typescript: specifier: ^10.0.1 - version: 10.0.1(@types/node@18.19.8)(typescript@5.1.6) + version: 10.0.1(@types/node@20.11.17)(typescript@5.1.6) gapic-tools: specifier: ^0.3.0 version: 0.3.0(protobufjs@7.2.6) @@ -330,7 +330,7 @@ packages: engines: {node: ^8.13.0 || >=10.10.0} dependencies: '@grpc/proto-loader': 0.7.10 - '@types/node': 18.19.8 + '@types/node': 20.11.17 dev: true /@grpc/proto-loader@0.7.10: @@ -546,8 +546,8 @@ packages: resolution: {integrity: sha512-5+G/QXO/DvHZw60FjvbDzO4JmlD/nG5m2/vVGt25VN1eeP3w2bCoks1Wa7VuptMPM1TxJdx6RjO70N9Fw0nZPA==} dev: true - /@types/node@18.19.8: - resolution: {integrity: sha512-g1pZtPhsvGVTwmeVoexWZLTQaOvXwoSq//pTL0DHeNzUDrFnir4fgETdhjhIxjVnN+hKOuh98+E1eMLnUXstFg==} + /@types/node@20.11.17: + resolution: {integrity: sha512-QmgQZGWu1Yw9TDyAP9ZzpFJKynYNeOvwMJmaxABfieQoVoiVOS6MN1WSpqpRcbeA5+RW82kraAVxCCJg+780Qw==} dependencies: undici-types: 5.26.5 @@ -567,7 +567,7 @@ packages: resolution: {integrity: sha512-G3sY+NpsA9jnwm0ixhAFQSJ3Q9JkpLZpJbI3GMv0mIAT0y3mRabYeINzal5WOChIiaTEGQYlHOKgkaM9EisWHw==} dependencies: '@types/caseless': 0.12.5 - '@types/node': 18.19.8 + '@types/node': 20.11.17 '@types/tough-cookie': 4.0.5 form-data: 2.5.1 dev: true @@ -1516,7 +1516,7 @@ packages: xtend: 4.0.2 dev: true - /espower-typescript@10.0.1(@types/node@18.19.8)(typescript@5.1.6): + /espower-typescript@10.0.1(@types/node@20.11.17)(typescript@5.1.6): resolution: {integrity: sha512-Otz3g+JKQCPG3CxyUQnmcmr9LeYXe+bEU2F/WtBeaByIj+kgR+8lyYSa1Rcqh27b/sp9EjrDLDUTW+d7dsfJQw==} engines: {node: '>=10.17'} peerDependencies: @@ -1525,7 +1525,7 @@ packages: espower-source: 2.3.0 minimatch: 5.1.6 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.8)(typescript@5.1.6) + ts-node: 10.9.2(@types/node@20.11.17)(typescript@5.1.6) typescript: 5.1.6 transitivePeerDependencies: - '@swc/core' @@ -2936,7 +2936,7 @@ packages: '@protobufjs/path': 1.1.2 '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.0 - '@types/node': 18.19.8 + '@types/node': 20.11.17 long: 5.2.3 /punycode@2.3.1: @@ -3372,7 +3372,7 @@ packages: engines: {node: '>=8'} dev: true - /ts-node@10.9.2(@types/node@18.19.8)(typescript@5.1.6): + /ts-node@10.9.2(@types/node@20.11.17)(typescript@5.1.6): resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} hasBin: true peerDependencies: @@ -3391,7 +3391,7 @@ packages: '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 18.19.8 + '@types/node': 20.11.17 acorn: 8.11.3 acorn-walk: 8.3.2 arg: 4.1.3 diff --git a/templates/cjs/typescript_gapic/package.json b/templates/cjs/typescript_gapic/package.json index 17d6b5227..cb96475a6 100644 --- a/templates/cjs/typescript_gapic/package.json +++ b/templates/cjs/typescript_gapic/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/templates/esm/typescript_gapic/package.json b/templates/esm/typescript_gapic/package.json index 036ad9dac..101ab5199 100644 --- a/templates/esm/typescript_gapic/package.json +++ b/templates/esm/typescript_gapic/package.json @@ -72,7 +72,7 @@ "@babel/preset-env": "^7.23.2", "@babel/preset-typescript": "^7.23.2", "@types/mocha": "^10.0.6", - "@types/node": "^18.11.18", + "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/yarn.lock b/yarn.lock index 546146420..dbd880e25 100644 --- a/yarn.lock +++ b/yarn.lock @@ -28,7 +28,7 @@ resolved "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.22.20.tgz" integrity sha512-BQYjKbpXjoXwFW5jGqiizJQQT/aC7pFm9Ok1OWssonuguICi264lbgMzRp2ZMmRSlfkX6DsWDDcsrctK8Rwfiw== -"@babel/core@^7.0.0", "@babel/core@^7.22.5": +"@babel/core@^7.22.5": version "7.23.0" resolved "https://registry.npmjs.org/@babel/core/-/core-7.23.0.tgz" integrity sha512-97z/ju/Jy1rZmDxybphrBuI+jtJjFVoz7Mr9yUQVVVi+DNZE333uFQeMOqcCIy1x3WYBIbWftUSLmbNXNT7qFQ== @@ -311,14 +311,6 @@ resolved "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz" integrity sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg== -"@jridgewell/trace-mapping@^0.3.17", "@jridgewell/trace-mapping@^0.3.9": - version "0.3.19" - resolved "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.19.tgz" - integrity sha512-kf37QtfW+Hwx/buWGMPcR60iF9ziHa6r/CZJIHbmcm4+0qrXiVdxegAH0F6yddEVQ7zdkjcGCgCzUu+BcbhQxw== - dependencies: - "@jridgewell/resolve-uri" "^3.1.0" - "@jridgewell/sourcemap-codec" "^1.4.14" - "@jridgewell/trace-mapping@0.3.9": version "0.3.9" resolved "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz" @@ -327,6 +319,14 @@ "@jridgewell/resolve-uri" "^3.0.3" "@jridgewell/sourcemap-codec" "^1.4.10" +"@jridgewell/trace-mapping@^0.3.17", "@jridgewell/trace-mapping@^0.3.9": + version "0.3.19" + resolved "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.19.tgz" + integrity sha512-kf37QtfW+Hwx/buWGMPcR60iF9ziHa6r/CZJIHbmcm4+0qrXiVdxegAH0F6yddEVQ7zdkjcGCgCzUu+BcbhQxw== + dependencies: + "@jridgewell/resolve-uri" "^3.1.0" + "@jridgewell/sourcemap-codec" "^1.4.14" + "@jsdoc/salty@^0.2.1": version "0.2.5" resolved "https://registry.npmjs.org/@jsdoc/salty/-/salty-0.2.5.tgz" @@ -342,7 +342,7 @@ "@nodelib/fs.stat" "2.0.5" run-parallel "^1.1.9" -"@nodelib/fs.stat@^2.0.2", "@nodelib/fs.stat@2.0.5": +"@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2": version "2.0.5" resolved "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz" integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== @@ -475,7 +475,7 @@ resolved "https://registry.npmjs.org/@types/long/-/long-4.0.2.tgz" integrity sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA== -"@types/markdown-it@*", "@types/markdown-it@^12.2.3": +"@types/markdown-it@^12.2.3": version "12.2.3" resolved "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-12.2.3.tgz" integrity sha512-GKMHFfv3458yYy+v/N8gjufHO6MSZKCOXpZc5GXIWWy8uldwfmPn98vp81gZ5f9SVw8YYBctgfJ22a2d7AOMeQ== @@ -503,10 +503,12 @@ resolved "https://registry.npmjs.org/@types/module-alias/-/module-alias-2.0.4.tgz" integrity sha512-5+G/QXO/DvHZw60FjvbDzO4JmlD/nG5m2/vVGt25VN1eeP3w2bCoks1Wa7VuptMPM1TxJdx6RjO70N9Fw0nZPA== -"@types/node@*", "@types/node@^18.11.18", "@types/node@>=12.12.47", "@types/node@>=13.7.0": - version "18.17.14" - resolved "https://registry.npmjs.org/@types/node/-/node-18.17.14.tgz" - integrity sha512-ZE/5aB73CyGqgQULkLG87N9GnyGe5TcQjv34pwS8tfBs1IkCh0ASM69mydb2znqd6v0eX+9Ytvk6oQRqu8T1Vw== +"@types/node@*", "@types/node@>=12.12.47", "@types/node@>=13.7.0", "@types/node@^20.11.17": + version "20.11.17" + resolved "https://registry.npmjs.org/@types/node/-/node-20.11.17.tgz" + integrity sha512-QmgQZGWu1Yw9TDyAP9ZzpFJKynYNeOvwMJmaxABfieQoVoiVOS6MN1WSpqpRcbeA5+RW82kraAVxCCJg+780Qw== + dependencies: + undici-types "~5.26.4" "@types/normalize-package-data@^2.4.0": version "2.4.1" @@ -571,7 +573,7 @@ semver "^7.3.7" tsutils "^3.21.0" -"@typescript-eslint/parser@^5.0.0", "@typescript-eslint/parser@5.62.0": +"@typescript-eslint/parser@5.62.0": version "5.62.0" resolved "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.62.0.tgz" integrity sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA== @@ -671,15 +673,17 @@ acorn@^5.0.0: resolved "https://registry.npmjs.org/acorn/-/acorn-5.7.4.tgz" integrity sha512-1D++VG7BhrtvQpNbBzovKNc1FLGGEE/oGe7b9xJm/RFHMBeUaUGpluV9RLjZa47YFdPcDAenEYuq9pQPcMdLJg== -"acorn@^6.0.0 || ^7.0.0 || ^8.0.0", acorn@^8.9.0: +acorn@^8.4.1, acorn@^8.9.0: version "8.10.0" resolved "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz" integrity sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw== -acorn@^8.4.1: - version "8.10.0" - resolved "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz" - integrity sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw== +agent-base@6: + version "6.0.2" + resolved "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz" + integrity sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ== + dependencies: + debug "4" agent-base@^7.0.2: version "7.1.0" @@ -688,13 +692,6 @@ agent-base@^7.0.2: dependencies: debug "^4.3.4" -agent-base@6: - version "6.0.2" - resolved "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz" - integrity sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ== - dependencies: - debug "4" - ajv@^6.12.4: version "6.12.6" resolved "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz" @@ -739,14 +736,7 @@ ansi-styles@^3.2.1: dependencies: color-convert "^1.9.0" -ansi-styles@^4.0.0: - version "4.3.0" - resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz" - integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== - dependencies: - color-convert "^2.0.1" - -ansi-styles@^4.1.0: +ansi-styles@^4.0.0, ansi-styles@^4.1.0: version "4.3.0" resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz" integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== @@ -865,7 +855,7 @@ browser-stdout@1.3.1: resolved "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz" integrity sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw== -browserslist@^4.21.9, "browserslist@>= 4.21.0": +browserslist@^4.21.9: version "4.22.1" resolved "https://registry.npmjs.org/browserslist/-/browserslist-4.22.1.tgz" integrity sha512-FEVc202+2iuClEhZhrWy6ZiAcRLvNMyYcxZ8raemul1DYVOVdFsbqckWLdsixQZCpJlwe77Z3UTalE7jsjnKfQ== @@ -955,23 +945,7 @@ chalk@^2.4.2: escape-string-regexp "^1.0.5" supports-color "^5.3.0" -chalk@^4.0.0: - version "4.1.2" - resolved "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz" - integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== - dependencies: - ansi-styles "^4.1.0" - supports-color "^7.1.0" - -chalk@^4.1.0: - version "4.1.2" - resolved "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz" - integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== - dependencies: - ansi-styles "^4.1.0" - supports-color "^7.1.0" - -chalk@^4.1.2: +chalk@^4.0.0, chalk@^4.1.0, chalk@^4.1.2: version "4.1.2" resolved "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz" integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== @@ -984,7 +958,7 @@ chardet@^0.7.0: resolved "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz" integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA== -chokidar@^3.3.0, chokidar@3.5.3: +chokidar@3.5.3: version "3.5.3" resolved "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz" integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw== @@ -1043,16 +1017,16 @@ color-convert@^2.0.1: dependencies: color-name "~1.1.4" -color-name@~1.1.4: - version "1.1.4" - resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz" - integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== - color-name@1.1.3: version "1.1.3" resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz" integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw== +color-name@~1.1.4: + version "1.1.4" + resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz" + integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== + combined-stream@^1.0.6: version "1.0.8" resolved "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz" @@ -1099,7 +1073,7 @@ cross-spawn@^7.0.0, cross-spawn@^7.0.2, cross-spawn@^7.0.3: shebang-command "^2.0.0" which "^2.0.1" -d@^1.0.1, d@1: +d@1, d@^1.0.1: version "1.0.1" resolved "https://registry.npmjs.org/d/-/d-1.0.1.tgz" integrity sha512-m62ShEObQ39CfralilEQRjH6oAMtNCV1xJyEx5LpRYUVN+EviphDgUc/F3hnYbADmkiNs67Y+3ylmlG7Lnu+FA== @@ -1107,7 +1081,7 @@ d@^1.0.1, d@1: es5-ext "^0.10.50" type "^1.0.1" -debug@^4.1.0, debug@^4.1.1, debug@^4.3.2, debug@^4.3.4, debug@4, debug@4.3.4: +debug@4, debug@4.3.4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.2, debug@^4.3.4: version "4.3.4" resolved "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz" integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== @@ -1185,16 +1159,16 @@ delayed-stream@~1.0.0: resolved "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz" integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== -diff@^4.0.1: - version "4.0.2" - resolved "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz" - integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== - diff@5.0.0: version "5.0.0" resolved "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz" integrity sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w== +diff@^4.0.1: + version "4.0.2" + resolved "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz" + integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== + dir-glob@^3.0.1: version "3.0.1" resolved "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz" @@ -1224,7 +1198,7 @@ eastasianwidth@^0.2.0: resolved "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz" integrity sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA== -ecdsa-sig-formatter@^1.0.11, ecdsa-sig-formatter@1.0.11: +ecdsa-sig-formatter@1.0.11, ecdsa-sig-formatter@^1.0.11: version "1.0.11" resolved "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz" integrity sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ== @@ -1345,6 +1319,11 @@ escallmatch@^1.5.0: call-matcher "^1.0.0" esprima "^2.0.0" +escape-string-regexp@4.0.0, escape-string-regexp@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz" + integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== + escape-string-regexp@^1.0.5: version "1.0.5" resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz" @@ -1355,16 +1334,6 @@ escape-string-regexp@^2.0.0: resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz" integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w== -escape-string-regexp@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz" - integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== - -escape-string-regexp@4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz" - integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== - escodegen@^1.10.0, escodegen@^1.13.0, escodegen@^1.7.0: version "1.14.3" resolved "https://registry.npmjs.org/escodegen/-/escodegen-1.14.3.tgz" @@ -1453,7 +1422,7 @@ eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1, eslint-visitor-keys@^3.4 resolved "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz" integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag== -eslint@*, "eslint@^6.0.0 || ^7.0.0 || ^8.0.0", "eslint@^6.0.0 || ^7.0.0 || >=8.0.0", eslint@>=4.19.1, eslint@>=5.16.0, eslint@>=7.0.0, eslint@>=8.0.0, eslint@8.50.0: +eslint@8.50.0: version "8.50.0" resolved "https://registry.npmjs.org/eslint/-/eslint-8.50.0.tgz" integrity sha512-FOnOGSuFuFLv/Sa+FDVRZl4GGVAAFFi8LecRsI5a1tMO5HIE8nCm4ivAlzt4dT3ol/PaaGC0rJEEXQmHJBGoOg== @@ -1593,12 +1562,7 @@ estraverse@^4.0.0, estraverse@^4.1.0, estraverse@^4.1.1, estraverse@^4.2.0: resolved "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz" integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw== -estraverse@^5.1.0: - version "5.3.0" - resolved "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz" - integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== - -estraverse@^5.2.0: +estraverse@^5.1.0, estraverse@^5.2.0: version "5.3.0" resolved "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz" integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== @@ -1731,6 +1695,14 @@ fill-range@^7.0.1: dependencies: to-regex-range "^5.0.1" +find-up@5.0.0, find-up@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz" + integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== + dependencies: + locate-path "^6.0.0" + path-exists "^4.0.0" + find-up@^4.1.0: version "4.1.0" resolved "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz" @@ -1739,14 +1711,6 @@ find-up@^4.1.0: locate-path "^5.0.0" path-exists "^4.0.0" -find-up@^5.0.0, find-up@5.0.0: - version "5.0.0" - resolved "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz" - integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== - dependencies: - locate-path "^6.0.0" - path-exists "^4.0.0" - flat-cache@^3.0.4: version "3.1.0" resolved "https://registry.npmjs.org/flat-cache/-/flat-cache-3.1.0.tgz" @@ -1788,6 +1752,11 @@ fs.realpath@^1.0.0: resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz" integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== +fsevents@~2.3.2: + version "2.3.3" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6" + integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== + function-bind@^1.1.1: version "1.1.1" resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz" @@ -1855,7 +1824,7 @@ get-stream@^6.0.0, get-stream@^6.0.1: resolved "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz" integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== -glob-parent@^5.1.2: +glob-parent@^5.1.2, glob-parent@~5.1.2: version "5.1.2" resolved "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz" integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== @@ -1869,12 +1838,17 @@ glob-parent@^6.0.2: dependencies: is-glob "^4.0.3" -glob-parent@~5.1.2: - version "5.1.2" - resolved "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz" - integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== +glob@7.2.0, glob@^7.1.3: + version "7.2.0" + resolved "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz" + integrity sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q== dependencies: - is-glob "^4.0.1" + 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@^10.2.5: version "10.3.4" @@ -1887,18 +1861,6 @@ glob@^10.2.5: minipass "^5.0.0 || ^6.0.2 || ^7.0.0" path-scurry "^1.10.1" -glob@^7.1.3, glob@7.2.0: - version "7.2.0" - resolved "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz" - integrity sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q== - dependencies: - 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@^8.0.0: version "8.1.0" resolved "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz" @@ -1947,10 +1909,10 @@ google-auth-library@^9.0.0: jws "^4.0.0" lru-cache "^6.0.0" -google-gax@^4.1.0, google-gax@^4.2.1: - version "4.2.1" - resolved "https://registry.npmjs.org/google-gax/-/google-gax-4.2.1.tgz" - integrity sha512-Yal4oh2GMHBsFX8zunxwaRuD2bP7rrA7Oz/ooXK8uOMGnP71jNVRl6fUv8chYLkPTqEzBSij9TZw49B86SDVTg== +google-gax@^4.1.0, google-gax@^4.3.0: + version "4.3.0" + resolved "https://registry.npmjs.org/google-gax/-/google-gax-4.3.0.tgz" + integrity sha512-SWHX72gbccNfpPoeTkNmZJxmLyKWeLr0+5Ch6qtrf4oAN8KFXnyXe5EixatILnJWufM3L59MRZ4hSJWVJ3IQqw== dependencies: "@grpc/grpc-js" "~1.9.6" "@grpc/proto-loader" "^0.7.0" @@ -2148,7 +2110,7 @@ inflight@^1.0.4: once "^1.3.0" wrappy "1" -inherits@^2.0.3, inherits@2: +inherits@2, inherits@^2.0.3: version "2.0.4" resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== @@ -2314,7 +2276,7 @@ js-tokens@^4.0.0: resolved "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz" integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== -js-yaml@^4.1.0, js-yaml@4.1.0: +js-yaml@4.1.0, js-yaml@^4.1.0: version "4.1.0" resolved "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz" integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== @@ -2531,7 +2493,7 @@ markdown-it-anchor@^8.4.1: resolved "https://registry.npmjs.org/markdown-it-anchor/-/markdown-it-anchor-8.6.7.tgz" integrity sha512-FlCHFwNnutLgVTflOYHPW2pPcl2AACqVzExlkGQNsi4CJgqOHN7YTgDd4LuhgN1BFO3TS0vLAruV1Td6dwWPJA== -markdown-it@*, markdown-it@^12.3.2: +markdown-it@^12.3.2: version "12.3.2" resolved "https://registry.npmjs.org/markdown-it/-/markdown-it-12.3.2.tgz" integrity sha512-TchMembfxfNVpHkbtriWltGWc+m3xszaRD0CZup7GFFhzIgQqxIfn3eGj1yZpfuflzPvfkt611B2Q/Bsk1YnGg== @@ -2622,21 +2584,14 @@ min-indent@^1.0.0: resolved "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz" integrity sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg== -minimatch@^3.0.4: - version "3.1.2" - resolved "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz" - integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== - dependencies: - brace-expansion "^1.1.7" - -minimatch@^3.0.5: - version "3.1.2" - resolved "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz" - integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== +minimatch@5.0.1: + version "5.0.1" + resolved "https://registry.npmjs.org/minimatch/-/minimatch-5.0.1.tgz" + integrity sha512-nLDxIFRyhDblz3qMuq+SoRZED4+miJ/G+tdDrjkkkRnjAsBexeGpgjLEQ0blJy7rHhR2b93rhQY4SvyWu9v03g== dependencies: - brace-expansion "^1.1.7" + brace-expansion "^2.0.1" -minimatch@^3.1.2: +minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.2: version "3.1.2" resolved "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz" integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== @@ -2657,13 +2612,6 @@ minimatch@^9.0.1: dependencies: brace-expansion "^2.0.1" -minimatch@5.0.1: - version "5.0.1" - resolved "https://registry.npmjs.org/minimatch/-/minimatch-5.0.1.tgz" - integrity sha512-nLDxIFRyhDblz3qMuq+SoRZED4+miJ/G+tdDrjkkkRnjAsBexeGpgjLEQ0blJy7rHhR2b93rhQY4SvyWu9v03g== - dependencies: - brace-expansion "^2.0.1" - minimist-options@4.1.0: version "4.1.0" resolved "https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz" @@ -3015,7 +2963,7 @@ prettier-linter-helpers@^1.0.0: dependencies: fast-diff "^1.1.2" -prettier@>=3.0.0, prettier@3.0.3: +prettier@3.0.3: version "3.0.3" resolved "https://registry.npmjs.org/prettier/-/prettier-3.0.3.tgz" integrity sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg== @@ -3027,7 +2975,7 @@ proto3-json-serializer@^2.0.0, proto3-json-serializer@^2.0.1: dependencies: protobufjs "^7.2.5" -protobufjs-cli@^1.1.2, protobufjs-cli@1.1.2: +protobufjs-cli@1.1.2, protobufjs-cli@^1.1.2: version "1.1.2" resolved "https://registry.npmjs.org/protobufjs-cli/-/protobufjs-cli-1.1.2.tgz" integrity sha512-8ivXWxT39gZN4mm4ArQyJrRgnIwZqffBWoLDsE21TmMcKI3XwJMV4lEF2WU02C4JAtgYYc2SfJIltelD8to35g== @@ -3043,7 +2991,7 @@ protobufjs-cli@^1.1.2, protobufjs-cli@1.1.2: tmp "^0.2.1" uglify-js "^3.7.7" -protobufjs@^7.0.0, protobufjs@^7.2.4, protobufjs@^7.2.5, protobufjs@7.2.6: +protobufjs@7.2.6, protobufjs@^7.0.0, protobufjs@^7.2.4, protobufjs@^7.2.5: version "7.2.6" resolved "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.6.tgz" integrity sha512-dgJaEDDL6x8ASUZ1YqWciTRrdOuYNzoOf27oHNfdyvKqHr5i0FV7FSLU+aIeFjyFgVxrpTOtQUi0BLLBymZaBw== @@ -3189,14 +3137,7 @@ reusify@^1.0.4: resolved "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz" integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== -rimraf@^3.0.0: - version "3.0.2" - resolved "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz" - integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== - dependencies: - glob "^7.1.3" - -rimraf@^3.0.2: +rimraf@3.0.2, rimraf@^3.0.0, rimraf@^3.0.2: version "3.0.2" resolved "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz" integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== @@ -3210,13 +3151,6 @@ rimraf@^5.0.1: dependencies: glob "^10.2.5" -rimraf@3.0.2: - version "3.0.2" - resolved "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz" - integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== - dependencies: - glob "^7.1.3" - run-applescript@^5.0.0: version "5.0.0" resolved "https://registry.npmjs.org/run-applescript/-/run-applescript-5.0.0.tgz" @@ -3253,37 +3187,23 @@ safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@~5.2.0: resolved "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz" integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== +"semver@2 || 3 || 4 || 5": + version "5.7.2" + resolved "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz" + integrity sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g== + semver@^6.1.0, semver@^6.3.1: version "6.3.1" resolved "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz" integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== -semver@^7.1.2: +semver@^7.1.2, semver@^7.3.4, semver@^7.3.7: version "7.5.4" resolved "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz" integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA== dependencies: lru-cache "^6.0.0" -semver@^7.3.4: - version "7.5.4" - resolved "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz" - integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA== - dependencies: - lru-cache "^6.0.0" - -semver@^7.3.7: - version "7.5.4" - resolved "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz" - integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA== - dependencies: - lru-cache "^6.0.0" - -"semver@2 || 3 || 4 || 5": - version "5.7.2" - resolved "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz" - integrity sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g== - serialize-javascript@6.0.0: version "6.0.0" resolved "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz" @@ -3381,23 +3301,7 @@ stream-shift@^1.0.0: resolved "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.1.tgz" integrity sha512-AiisoFqQ0vbGcZgQPY1cdP2I76glaVA/RauYR4G4thNFgkTqr90yXTo4LYX60Jl+sIlPNHHdGSwo01AvbKUSVQ== -string_decoder@^1.1.1: - version "1.3.0" - resolved "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz" - integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA== - dependencies: - safe-buffer "~5.2.0" - -"string-width-cjs@npm:string-width@^4.2.0": - version "4.2.3" - resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz" - integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.1" - -string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: +"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: version "4.2.3" resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz" integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== @@ -3415,14 +3319,14 @@ string-width@^5.0.1, string-width@^5.1.2: emoji-regex "^9.2.2" strip-ansi "^7.0.1" -"strip-ansi-cjs@npm:strip-ansi@^6.0.1": - version "6.0.1" - resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz" - integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== +string_decoder@^1.1.1: + version "1.3.0" + resolved "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz" + integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA== dependencies: - ansi-regex "^5.0.1" + safe-buffer "~5.2.0" -strip-ansi@^6.0.0, strip-ansi@^6.0.1: +"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1: version "6.0.1" resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz" integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== @@ -3453,7 +3357,7 @@ strip-indent@^3.0.0: dependencies: min-indent "^1.0.0" -strip-json-comments@^3.1.0, strip-json-comments@^3.1.1, strip-json-comments@3.1.1: +strip-json-comments@3.1.1, strip-json-comments@^3.1.0, strip-json-comments@^3.1.1: 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== @@ -3463,6 +3367,13 @@ stubs@^3.0.0: resolved "https://registry.npmjs.org/stubs/-/stubs-3.0.0.tgz" integrity sha512-PdHt7hHUJKxvTCgbKX9C1V/ftOcjJQgz8BZwNfV5c4B6dcGqlpelTbJ999jBGZ2jYiPAwcX5dP6oBwVlBlUbxw== +supports-color@8.1.1: + version "8.1.1" + resolved "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz" + integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q== + dependencies: + has-flag "^4.0.0" + supports-color@^5.3.0: version "5.5.0" resolved "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz" @@ -3477,13 +3388,6 @@ supports-color@^7.1.0: dependencies: has-flag "^4.0.0" -supports-color@8.1.1: - version "8.1.1" - resolved "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz" - integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q== - dependencies: - has-flag "^4.0.0" - supports-preserve-symlinks-flag@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz" @@ -3583,12 +3487,7 @@ tslib@^1.8.1, tslib@^1.9.0: resolved "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== -tslib@^2.5.0: - version "2.6.2" - resolved "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz" - integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q== - -tslib@^2.6.0: +tslib@^2.5.0, tslib@^2.6.0: version "2.6.2" resolved "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz" integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q== @@ -3654,7 +3553,7 @@ type@^2.7.2: resolved "https://registry.npmjs.org/type/-/type-2.7.2.tgz" integrity sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw== -"typescript@>= 2.7", typescript@>=2.7, "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta", typescript@>=3, typescript@5.1.6: +typescript@5.1.6: version "5.1.6" resolved "https://registry.npmjs.org/typescript/-/typescript-5.1.6.tgz" integrity sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA== @@ -3674,6 +3573,11 @@ underscore@~1.13.2: resolved "https://registry.npmjs.org/underscore/-/underscore-1.13.6.tgz" integrity sha512-+A5Sja4HP1M08MaXya7p5LvjuM7K6q/2EaC0+iovj/wOcMsTzMvDFbasi/oSapiwOlt252IqsKqPjCl7huKS0A== +undici-types@~5.26.4: + version "5.26.5" + resolved "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz" + integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA== + untildify@^4.0.0: version "4.0.0" resolved "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz" @@ -3752,16 +3656,7 @@ workerpool@6.2.1: resolved "https://registry.npmjs.org/workerpool/-/workerpool-6.2.1.tgz" integrity sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw== -"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0": - version "7.0.0" - resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz" - integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - -wrap-ansi@^7.0.0: +"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0: version "7.0.0" resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz" integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== @@ -3817,7 +3712,7 @@ yallist@^4.0.0: resolved "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz" integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== -yargs-parser@^20.2.2, yargs-parser@20.2.4: +yargs-parser@20.2.4, yargs-parser@^20.2.2: version "20.2.4" resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz" integrity sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA== @@ -3842,19 +3737,6 @@ yargs-unparser@2.0.0: flat "^5.0.2" is-plain-obj "^2.1.0" -yargs@^17.7.2: - version "17.7.2" - resolved "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz" - integrity sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w== - dependencies: - cliui "^8.0.1" - escalade "^3.1.1" - get-caller-file "^2.0.5" - require-directory "^2.1.1" - string-width "^4.2.3" - y18n "^5.0.5" - yargs-parser "^21.1.1" - yargs@16.2.0: version "16.2.0" resolved "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz" @@ -3868,6 +3750,19 @@ yargs@16.2.0: y18n "^5.0.5" yargs-parser "^20.2.2" +yargs@^17.7.2: + version "17.7.2" + resolved "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz" + integrity sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w== + dependencies: + cliui "^8.0.1" + escalade "^3.1.1" + get-caller-file "^2.0.5" + require-directory "^2.1.1" + string-width "^4.2.3" + y18n "^5.0.5" + yargs-parser "^21.1.1" + yn@3.1.1: version "3.1.1" resolved "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz" From 00f12954a2686dd7f793da04a1fa636296e21c2c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 9 Feb 2024 19:26:15 +0100 Subject: [PATCH 19/35] chore(deps): update babel monorepo (#1501) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@babel/cli](https://babel.dev/docs/en/next/babel-cli) ([source](https://togithub.com/babel/babel/tree/HEAD/packages/babel-cli)) | [`^7.23.0` -> `^7.23.9`](https://renovatebot.com/diffs/npm/@babel%2fcli/7.23.0/7.23.9) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@babel%2fcli/7.23.9?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@babel%2fcli/7.23.9?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@babel%2fcli/7.23.0/7.23.9?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@babel%2fcli/7.23.0/7.23.9?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [@babel/core](https://babel.dev/docs/en/next/babel-core) ([source](https://togithub.com/babel/babel/tree/HEAD/packages/babel-core)) | [`^7.23.2` -> `^7.23.9`](https://renovatebot.com/diffs/npm/@babel%2fcore/7.23.2/7.23.9) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@babel%2fcore/7.23.9?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@babel%2fcore/7.23.9?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@babel%2fcore/7.23.2/7.23.9?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@babel%2fcore/7.23.2/7.23.9?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [@babel/preset-env](https://babel.dev/docs/en/next/babel-preset-env) ([source](https://togithub.com/babel/babel/tree/HEAD/packages/babel-preset-env)) | [`^7.23.2` -> `^7.23.9`](https://renovatebot.com/diffs/npm/@babel%2fpreset-env/7.23.2/7.23.9) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@babel%2fpreset-env/7.23.9?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@babel%2fpreset-env/7.23.9?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@babel%2fpreset-env/7.23.2/7.23.9?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@babel%2fpreset-env/7.23.2/7.23.9?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [@babel/preset-typescript](https://babel.dev/docs/en/next/babel-preset-typescript) ([source](https://togithub.com/babel/babel/tree/HEAD/packages/babel-preset-typescript)) | [`^7.23.2` -> `^7.23.3`](https://renovatebot.com/diffs/npm/@babel%2fpreset-typescript/7.23.2/7.23.3) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@babel%2fpreset-typescript/7.23.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@babel%2fpreset-typescript/7.23.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@babel%2fpreset-typescript/7.23.2/7.23.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@babel%2fpreset-typescript/7.23.2/7.23.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
babel/babel (@​babel/cli) ### [`v7.23.9`](https://togithub.com/babel/babel/blob/HEAD/CHANGELOG.md#v7239-2024-01-25) [Compare Source](https://togithub.com/babel/babel/compare/v7.23.4...v7.23.9) ##### :bug: Bug Fix - `babel-helper-transform-fixture-test-runner`, `babel-plugin-transform-function-name`, `babel-plugin-transform-modules-systemjs`, `babel-preset-env` - [#​16225](https://togithub.com/babel/babel/pull/16225) fix: `systemjs` re-traverses helpers ([@​liuxingbaoyu](https://togithub.com/liuxingbaoyu)) - `babel-helper-create-class-features-plugin`, `babel-plugin-proposal-decorators` - [#​16226](https://togithub.com/babel/babel/pull/16226) Improve decorated private method check ([@​JLHwung](https://togithub.com/JLHwung)) - `babel-plugin-proposal-decorators`, `babel-plugin-transform-async-generator-functions`, `babel-plugin-transform-runtime`, `babel-preset-env` - [#​16224](https://togithub.com/babel/babel/pull/16224) Properly sort `core-js@3` imports ([@​nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) - `babel-traverse` - [#​15383](https://togithub.com/babel/babel/pull/15383) fix: Don't throw in `getTypeAnnotation` when using TS+inference ([@​liuxingbaoyu](https://togithub.com/liuxingbaoyu)) - Other - [#​16210](https://togithub.com/babel/babel/pull/16210) \[eslint] Fix `no-use-before-define` for class ref in fields ([@​nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) ##### :house: Internal - `babel-core`, `babel-parser`, `babel-template` - [#​16222](https://togithub.com/babel/babel/pull/16222) Migrate `eslint-parser` to cts ([@​liuxingbaoyu](https://togithub.com/liuxingbaoyu)) - `babel-types` - [#​16213](https://togithub.com/babel/babel/pull/16213) Remove `@babel/types` props that are not produced by the parser ([@​liuxingbaoyu](https://togithub.com/liuxingbaoyu)) ##### :running_woman: Performance - `babel-parser` - [#​16072](https://togithub.com/babel/babel/pull/16072) perf: Improve parser performance for typescript ([@​liuxingbaoyu](https://togithub.com/liuxingbaoyu)) ##### :microscope: Output optimization - `babel-helper-create-class-features-plugin`, `babel-plugin-proposal-decorators`, `babel-plugin-proposal-destructuring-private`, `babel-plugin-proposal-pipeline-operator`, `babel-plugin-transform-class-properties`, `babel-plugin-transform-class-static-block`, `babel-plugin-transform-new-target`, `babel-plugin-transform-parameters`, `babel-plugin-transform-private-methods`, `babel-preset-env` - [#​16218](https://togithub.com/babel/babel/pull/16218) Improve temporary variables for decorators ([@​liuxingbaoyu](https://togithub.com/liuxingbaoyu)) - `babel-helpers`, `babel-plugin-proposal-explicit-resource-management`, `babel-runtime-corejs2`, `babel-runtime-corejs3`, `babel-runtime` - [#​15959](https://togithub.com/babel/babel/pull/15959) Improve output of `using` ([@​liuxingbaoyu](https://togithub.com/liuxingbaoyu)) ### [`v7.23.4`](https://togithub.com/babel/babel/blob/HEAD/CHANGELOG.md#v7234-2023-11-20) [Compare Source](https://togithub.com/babel/babel/compare/v7.23.0...v7.23.4) ##### :bug: Bug Fix - `babel-generator` - [#​16104](https://togithub.com/babel/babel/pull/16104) fix: Pure comments missing parentheses ([@​liuxingbaoyu](https://togithub.com/liuxingbaoyu))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/gapic-generator-typescript). --- baselines/asset-esm/package.json | 8 ++++---- baselines/bigquery-storage-esm/package.json | 8 ++++---- baselines/compute-esm/package.json | 8 ++++---- baselines/deprecatedtest-esm/package.json | 8 ++++---- baselines/disable-packing-test-esm/package.json | 8 ++++---- baselines/dlp-esm/package.json | 8 ++++---- baselines/kms-esm/package.json | 8 ++++---- baselines/logging-esm/package.json | 8 ++++---- baselines/monitoring-esm/package.json | 8 ++++---- baselines/naming-esm/package.json | 8 ++++---- baselines/redis-esm/package.json | 8 ++++---- baselines/routingtest-esm/package.json | 8 ++++---- baselines/showcase-esm/package.json | 8 ++++---- baselines/showcase-legacy-esm/package.json | 8 ++++---- baselines/tasks-esm/package.json | 8 ++++---- baselines/texttospeech-esm/package.json | 8 ++++---- baselines/translate-esm/package.json | 8 ++++---- baselines/videointelligence-esm/package.json | 8 ++++---- templates/esm/typescript_gapic/package.json | 8 ++++---- 19 files changed, 76 insertions(+), 76 deletions(-) diff --git a/baselines/asset-esm/package.json b/baselines/asset-esm/package.json index 9803b69f2..997eb3a45 100644 --- a/baselines/asset-esm/package.json +++ b/baselines/asset-esm/package.json @@ -66,10 +66,10 @@ "google-gax": "^4.3.0" }, "devDependencies": { - "@babel/cli": "^7.23.0", - "@babel/core": "^7.23.2", - "@babel/preset-env": "^7.23.2", - "@babel/preset-typescript": "^7.23.2", + "@babel/cli": "^7.23.9", + "@babel/core": "^7.23.9", + "@babel/preset-env": "^7.23.9", + "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", diff --git a/baselines/bigquery-storage-esm/package.json b/baselines/bigquery-storage-esm/package.json index dbb142110..7edad2b87 100644 --- a/baselines/bigquery-storage-esm/package.json +++ b/baselines/bigquery-storage-esm/package.json @@ -66,10 +66,10 @@ "google-gax": "^4.3.0" }, "devDependencies": { - "@babel/cli": "^7.23.0", - "@babel/core": "^7.23.2", - "@babel/preset-env": "^7.23.2", - "@babel/preset-typescript": "^7.23.2", + "@babel/cli": "^7.23.9", + "@babel/core": "^7.23.9", + "@babel/preset-env": "^7.23.9", + "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", diff --git a/baselines/compute-esm/package.json b/baselines/compute-esm/package.json index 42746c229..dcec36dd6 100644 --- a/baselines/compute-esm/package.json +++ b/baselines/compute-esm/package.json @@ -67,10 +67,10 @@ "google-gax": "^4.3.0" }, "devDependencies": { - "@babel/cli": "^7.23.0", - "@babel/core": "^7.23.2", - "@babel/preset-env": "^7.23.2", - "@babel/preset-typescript": "^7.23.2", + "@babel/cli": "^7.23.9", + "@babel/core": "^7.23.9", + "@babel/preset-env": "^7.23.9", + "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", diff --git a/baselines/deprecatedtest-esm/package.json b/baselines/deprecatedtest-esm/package.json index 3c004e14b..5fdd12f35 100644 --- a/baselines/deprecatedtest-esm/package.json +++ b/baselines/deprecatedtest-esm/package.json @@ -66,10 +66,10 @@ "google-gax": "^4.3.0" }, "devDependencies": { - "@babel/cli": "^7.23.0", - "@babel/core": "^7.23.2", - "@babel/preset-env": "^7.23.2", - "@babel/preset-typescript": "^7.23.2", + "@babel/cli": "^7.23.9", + "@babel/core": "^7.23.9", + "@babel/preset-env": "^7.23.9", + "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", diff --git a/baselines/disable-packing-test-esm/package.json b/baselines/disable-packing-test-esm/package.json index e0e0a80e1..093b8e499 100644 --- a/baselines/disable-packing-test-esm/package.json +++ b/baselines/disable-packing-test-esm/package.json @@ -71,10 +71,10 @@ "google-gax": "^4.3.0" }, "devDependencies": { - "@babel/cli": "^7.23.0", - "@babel/core": "^7.23.2", - "@babel/preset-env": "^7.23.2", - "@babel/preset-typescript": "^7.23.2", + "@babel/cli": "^7.23.9", + "@babel/core": "^7.23.9", + "@babel/preset-env": "^7.23.9", + "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", diff --git a/baselines/dlp-esm/package.json b/baselines/dlp-esm/package.json index bc6e86304..6c418994c 100644 --- a/baselines/dlp-esm/package.json +++ b/baselines/dlp-esm/package.json @@ -66,10 +66,10 @@ "google-gax": "^4.3.0" }, "devDependencies": { - "@babel/cli": "^7.23.0", - "@babel/core": "^7.23.2", - "@babel/preset-env": "^7.23.2", - "@babel/preset-typescript": "^7.23.2", + "@babel/cli": "^7.23.9", + "@babel/core": "^7.23.9", + "@babel/preset-env": "^7.23.9", + "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", diff --git a/baselines/kms-esm/package.json b/baselines/kms-esm/package.json index 1bf5fab0a..cb9fd041e 100644 --- a/baselines/kms-esm/package.json +++ b/baselines/kms-esm/package.json @@ -66,10 +66,10 @@ "google-gax": "^4.3.0" }, "devDependencies": { - "@babel/cli": "^7.23.0", - "@babel/core": "^7.23.2", - "@babel/preset-env": "^7.23.2", - "@babel/preset-typescript": "^7.23.2", + "@babel/cli": "^7.23.9", + "@babel/core": "^7.23.9", + "@babel/preset-env": "^7.23.9", + "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", diff --git a/baselines/logging-esm/package.json b/baselines/logging-esm/package.json index 29e98afd7..24ff7f0df 100644 --- a/baselines/logging-esm/package.json +++ b/baselines/logging-esm/package.json @@ -68,10 +68,10 @@ "google-gax": "^4.3.0" }, "devDependencies": { - "@babel/cli": "^7.23.0", - "@babel/core": "^7.23.2", - "@babel/preset-env": "^7.23.2", - "@babel/preset-typescript": "^7.23.2", + "@babel/cli": "^7.23.9", + "@babel/core": "^7.23.9", + "@babel/preset-env": "^7.23.9", + "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", diff --git a/baselines/monitoring-esm/package.json b/baselines/monitoring-esm/package.json index e76ddb768..6772ac52c 100644 --- a/baselines/monitoring-esm/package.json +++ b/baselines/monitoring-esm/package.json @@ -71,10 +71,10 @@ "google-gax": "^4.3.0" }, "devDependencies": { - "@babel/cli": "^7.23.0", - "@babel/core": "^7.23.2", - "@babel/preset-env": "^7.23.2", - "@babel/preset-typescript": "^7.23.2", + "@babel/cli": "^7.23.9", + "@babel/core": "^7.23.9", + "@babel/preset-env": "^7.23.9", + "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", diff --git a/baselines/naming-esm/package.json b/baselines/naming-esm/package.json index 7b13167f5..751f6cef4 100644 --- a/baselines/naming-esm/package.json +++ b/baselines/naming-esm/package.json @@ -66,10 +66,10 @@ "google-gax": "^4.3.0" }, "devDependencies": { - "@babel/cli": "^7.23.0", - "@babel/core": "^7.23.2", - "@babel/preset-env": "^7.23.2", - "@babel/preset-typescript": "^7.23.2", + "@babel/cli": "^7.23.9", + "@babel/core": "^7.23.9", + "@babel/preset-env": "^7.23.9", + "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", diff --git a/baselines/redis-esm/package.json b/baselines/redis-esm/package.json index c11ac81d5..8ad7e7a3a 100644 --- a/baselines/redis-esm/package.json +++ b/baselines/redis-esm/package.json @@ -66,10 +66,10 @@ "google-gax": "^4.3.0" }, "devDependencies": { - "@babel/cli": "^7.23.0", - "@babel/core": "^7.23.2", - "@babel/preset-env": "^7.23.2", - "@babel/preset-typescript": "^7.23.2", + "@babel/cli": "^7.23.9", + "@babel/core": "^7.23.9", + "@babel/preset-env": "^7.23.9", + "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", diff --git a/baselines/routingtest-esm/package.json b/baselines/routingtest-esm/package.json index ce6099113..50954c006 100644 --- a/baselines/routingtest-esm/package.json +++ b/baselines/routingtest-esm/package.json @@ -66,10 +66,10 @@ "google-gax": "^4.3.0" }, "devDependencies": { - "@babel/cli": "^7.23.0", - "@babel/core": "^7.23.2", - "@babel/preset-env": "^7.23.2", - "@babel/preset-typescript": "^7.23.2", + "@babel/cli": "^7.23.9", + "@babel/core": "^7.23.9", + "@babel/preset-env": "^7.23.9", + "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", diff --git a/baselines/showcase-esm/package.json b/baselines/showcase-esm/package.json index e0e0a80e1..093b8e499 100644 --- a/baselines/showcase-esm/package.json +++ b/baselines/showcase-esm/package.json @@ -71,10 +71,10 @@ "google-gax": "^4.3.0" }, "devDependencies": { - "@babel/cli": "^7.23.0", - "@babel/core": "^7.23.2", - "@babel/preset-env": "^7.23.2", - "@babel/preset-typescript": "^7.23.2", + "@babel/cli": "^7.23.9", + "@babel/core": "^7.23.9", + "@babel/preset-env": "^7.23.9", + "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", diff --git a/baselines/showcase-legacy-esm/package.json b/baselines/showcase-legacy-esm/package.json index e9a06381f..4e0c08d6d 100644 --- a/baselines/showcase-legacy-esm/package.json +++ b/baselines/showcase-legacy-esm/package.json @@ -66,10 +66,10 @@ "google-gax": "^4.3.0" }, "devDependencies": { - "@babel/cli": "^7.23.0", - "@babel/core": "^7.23.2", - "@babel/preset-env": "^7.23.2", - "@babel/preset-typescript": "^7.23.2", + "@babel/cli": "^7.23.9", + "@babel/core": "^7.23.9", + "@babel/preset-env": "^7.23.9", + "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", diff --git a/baselines/tasks-esm/package.json b/baselines/tasks-esm/package.json index 6501a089a..9a057af71 100644 --- a/baselines/tasks-esm/package.json +++ b/baselines/tasks-esm/package.json @@ -66,10 +66,10 @@ "google-gax": "^4.3.0" }, "devDependencies": { - "@babel/cli": "^7.23.0", - "@babel/core": "^7.23.2", - "@babel/preset-env": "^7.23.2", - "@babel/preset-typescript": "^7.23.2", + "@babel/cli": "^7.23.9", + "@babel/core": "^7.23.9", + "@babel/preset-env": "^7.23.9", + "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", diff --git a/baselines/texttospeech-esm/package.json b/baselines/texttospeech-esm/package.json index 2eb7d7050..b0637743e 100644 --- a/baselines/texttospeech-esm/package.json +++ b/baselines/texttospeech-esm/package.json @@ -66,10 +66,10 @@ "google-gax": "^4.3.0" }, "devDependencies": { - "@babel/cli": "^7.23.0", - "@babel/core": "^7.23.2", - "@babel/preset-env": "^7.23.2", - "@babel/preset-typescript": "^7.23.2", + "@babel/cli": "^7.23.9", + "@babel/core": "^7.23.9", + "@babel/preset-env": "^7.23.9", + "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", diff --git a/baselines/translate-esm/package.json b/baselines/translate-esm/package.json index f76f1d338..0a4fca7b8 100644 --- a/baselines/translate-esm/package.json +++ b/baselines/translate-esm/package.json @@ -66,10 +66,10 @@ "google-gax": "^4.3.0" }, "devDependencies": { - "@babel/cli": "^7.23.0", - "@babel/core": "^7.23.2", - "@babel/preset-env": "^7.23.2", - "@babel/preset-typescript": "^7.23.2", + "@babel/cli": "^7.23.9", + "@babel/core": "^7.23.9", + "@babel/preset-env": "^7.23.9", + "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", diff --git a/baselines/videointelligence-esm/package.json b/baselines/videointelligence-esm/package.json index 0fae89e49..c193c3fcc 100644 --- a/baselines/videointelligence-esm/package.json +++ b/baselines/videointelligence-esm/package.json @@ -66,10 +66,10 @@ "google-gax": "^4.3.0" }, "devDependencies": { - "@babel/cli": "^7.23.0", - "@babel/core": "^7.23.2", - "@babel/preset-env": "^7.23.2", - "@babel/preset-typescript": "^7.23.2", + "@babel/cli": "^7.23.9", + "@babel/core": "^7.23.9", + "@babel/preset-env": "^7.23.9", + "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", diff --git a/templates/esm/typescript_gapic/package.json b/templates/esm/typescript_gapic/package.json index 101ab5199..2316187cb 100644 --- a/templates/esm/typescript_gapic/package.json +++ b/templates/esm/typescript_gapic/package.json @@ -67,10 +67,10 @@ "google-gax": "^4.3.0" }, "devDependencies": { - "@babel/cli": "^7.23.0", - "@babel/core": "^7.23.2", - "@babel/preset-env": "^7.23.2", - "@babel/preset-typescript": "^7.23.2", + "@babel/cli": "^7.23.9", + "@babel/core": "^7.23.9", + "@babel/preset-env": "^7.23.9", + "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", "@types/node": "^20.11.17", "@types/sinon": "^10.0.20", From 182602e10c8ef881520ca1f4659270076d7e98ad Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 9 Feb 2024 19:36:17 +0100 Subject: [PATCH 20/35] chore(deps): update dependency mocha to ^10.3.0 (#1534) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [mocha](https://mochajs.org/) ([source](https://togithub.com/mochajs/mocha)) | [`^10.2.0` -> `^10.3.0`](https://renovatebot.com/diffs/npm/mocha/10.2.0/10.3.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/mocha/10.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/mocha/10.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/mocha/10.2.0/10.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/mocha/10.2.0/10.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
mochajs/mocha (mocha) ### [`v10.3.0`](https://togithub.com/mochajs/mocha/releases/tag/v10.3.0) [Compare Source](https://togithub.com/mochajs/mocha/compare/v10.2.0...v10.3.0) This is a stable release equivalent to [v10.3.0-preminor.0](https://togithub.com/mochajs/mocha/releases/tag/v10.3.0-preminor.0). #### What's Changed - Fix deprecated warn gh actions by [@​outsideris](https://togithub.com/outsideris) in [https://togithub.com/mochajs/mocha/pull/4962](https://togithub.com/mochajs/mocha/pull/4962) - fix [#​4837](https://togithub.com/mochajs/mocha/issues/4837) Update glob due to vulnerability in dep by [@​jb2311](https://togithub.com/jb2311) in [https://togithub.com/mochajs/mocha/pull/4970](https://togithub.com/mochajs/mocha/pull/4970) - Add Node v19 to test matrix by [@​juergba](https://togithub.com/juergba) in [https://togithub.com/mochajs/mocha/pull/4974](https://togithub.com/mochajs/mocha/pull/4974) - chore: fix the ci by [@​Uzlopak](https://togithub.com/Uzlopak) in [https://togithub.com/mochajs/mocha/pull/5020](https://togithub.com/mochajs/mocha/pull/5020) - update can-i-use by [@​Uzlopak](https://togithub.com/Uzlopak) in [https://togithub.com/mochajs/mocha/pull/5021](https://togithub.com/mochajs/mocha/pull/5021) - chore: remove uuid dev dependency by [@​Uzlopak](https://togithub.com/Uzlopak) in [https://togithub.com/mochajs/mocha/pull/5022](https://togithub.com/mochajs/mocha/pull/5022) - chore: remove nanoid as dependency by [@​Uzlopak](https://togithub.com/Uzlopak) in [https://togithub.com/mochajs/mocha/pull/5024](https://togithub.com/mochajs/mocha/pull/5024) - chore: remove touch as dev dependency by [@​Uzlopak](https://togithub.com/Uzlopak) in [https://togithub.com/mochajs/mocha/pull/5023](https://togithub.com/mochajs/mocha/pull/5023) - chore: remove stale workflow by [@​JoshuaKGoldberg](https://togithub.com/JoshuaKGoldberg) in [https://togithub.com/mochajs/mocha/pull/5029](https://togithub.com/mochajs/mocha/pull/5029) - docs: fix fragment ID for yargs' "extends" documentation by [@​Spencer-Doak](https://togithub.com/Spencer-Doak) in [https://togithub.com/mochajs/mocha/pull/4918](https://togithub.com/mochajs/mocha/pull/4918) - docs: use mocha.js instead of mocha in the example run by [@​nikolas](https://togithub.com/nikolas) in [https://togithub.com/mochajs/mocha/pull/4927](https://togithub.com/mochajs/mocha/pull/4927) - docs: fix jsdoc return type of `titlePath` method by [@​F3n67u](https://togithub.com/F3n67u) in [https://togithub.com/mochajs/mocha/pull/4886](https://togithub.com/mochajs/mocha/pull/4886) - docs: overhaul contributing and maintenance docs for end-of-year 2023 by [@​JoshuaKGoldberg](https://togithub.com/JoshuaKGoldberg) in [https://togithub.com/mochajs/mocha/pull/5038](https://togithub.com/mochajs/mocha/pull/5038) - docs: touchups to labels and a template title post-revamp by [@​JoshuaKGoldberg](https://togithub.com/JoshuaKGoldberg) in [https://togithub.com/mochajs/mocha/pull/5050](https://togithub.com/mochajs/mocha/pull/5050) - fix: add alt text to Built with Netlify badge by [@​JoshuaKGoldberg](https://togithub.com/JoshuaKGoldberg) in [https://togithub.com/mochajs/mocha/pull/5068](https://togithub.com/mochajs/mocha/pull/5068) - chore: inline nyan reporter's write function by [@​JoshuaKGoldberg](https://togithub.com/JoshuaKGoldberg) in [https://togithub.com/mochajs/mocha/pull/5056](https://togithub.com/mochajs/mocha/pull/5056) - chore: remove unnecessary canvas dependency by [@​JoshuaKGoldberg](https://togithub.com/JoshuaKGoldberg) in [https://togithub.com/mochajs/mocha/pull/5069](https://togithub.com/mochajs/mocha/pull/5069) #### New Contributors - [@​jb2311](https://togithub.com/jb2311) made their first contribution in [https://togithub.com/mochajs/mocha/pull/4970](https://togithub.com/mochajs/mocha/pull/4970) - [@​Uzlopak](https://togithub.com/Uzlopak) made their first contribution in [https://togithub.com/mochajs/mocha/pull/5020](https://togithub.com/mochajs/mocha/pull/5020) - [@​Spencer-Doak](https://togithub.com/Spencer-Doak) made their first contribution in [https://togithub.com/mochajs/mocha/pull/4918](https://togithub.com/mochajs/mocha/pull/4918) - [@​nikolas](https://togithub.com/nikolas) made their first contribution in [https://togithub.com/mochajs/mocha/pull/4927](https://togithub.com/mochajs/mocha/pull/4927) - [@​F3n67u](https://togithub.com/F3n67u) made their first contribution in [https://togithub.com/mochajs/mocha/pull/4886](https://togithub.com/mochajs/mocha/pull/4886) **Full Changelog**: https://togithub.com/mochajs/mocha/compare/v10.2.0...v10.3.0
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/gapic-generator-typescript). --- baselines/asset-esm/package.json | 2 +- baselines/asset/package.json | 2 +- baselines/bigquery-storage-esm/package.json | 2 +- baselines/bigquery-storage/package.json | 2 +- baselines/compute-esm/package.json | 2 +- baselines/compute/package.json | 2 +- baselines/deprecatedtest-esm/package.json | 2 +- baselines/deprecatedtest/package.json | 2 +- .../disable-packing-test-esm/package.json | 2 +- baselines/disable-packing-test/package.json | 2 +- baselines/dlp-esm/package.json | 2 +- baselines/dlp/package.json | 2 +- baselines/kms-esm/package.json | 2 +- baselines/kms/package.json | 2 +- baselines/logging-esm/package.json | 2 +- baselines/logging/package.json | 2 +- baselines/monitoring-esm/package.json | 2 +- baselines/monitoring/package.json | 2 +- baselines/naming-esm/package.json | 2 +- baselines/naming/package.json | 2 +- baselines/redis-esm/package.json | 2 +- baselines/redis/package.json | 2 +- baselines/routingtest-esm/package.json | 2 +- baselines/routingtest/package.json | 2 +- baselines/showcase-esm/package.json | 2 +- baselines/showcase-legacy-esm/package.json | 2 +- baselines/showcase-legacy/package.json | 2 +- baselines/showcase/package.json | 2 +- baselines/tasks-esm/package.json | 2 +- baselines/tasks/package.json | 2 +- baselines/texttospeech-esm/package.json | 2 +- baselines/texttospeech/package.json | 2 +- baselines/translate-esm/package.json | 2 +- baselines/translate/package.json | 2 +- baselines/videointelligence-esm/package.json | 2 +- baselines/videointelligence/package.json | 2 +- package-lock.json | 46 ++++++++++--------- package.json | 2 +- pnpm-lock.yaml | 30 +++--------- templates/cjs/typescript_gapic/package.json | 2 +- templates/esm/typescript_gapic/package.json | 2 +- yarn.lock | 38 +++++++-------- 42 files changed, 85 insertions(+), 107 deletions(-) diff --git a/baselines/asset-esm/package.json b/baselines/asset-esm/package.json index 997eb3a45..2d2235cda 100644 --- a/baselines/asset-esm/package.json +++ b/baselines/asset-esm/package.json @@ -81,7 +81,7 @@ "jsdoc-region-tag": "^3.0.0", "jsdoc-fresh": "^3.0.0", "long": "^5.2.3", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "pack-n-play": "^2.0.3", "sinon": "^15.2.0", "typescript": "5.1.6", diff --git a/baselines/asset/package.json b/baselines/asset/package.json index 105e8e870..0c81d90ee 100644 --- a/baselines/asset/package.json +++ b/baselines/asset/package.json @@ -47,7 +47,7 @@ "jsdoc": "^4.0.2", "jsdoc-fresh": "^3.0.0", "jsdoc-region-tag": "^3.0.0", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "pack-n-play": "^2.0.3", "sinon": "^15.2.0", "typescript": "5.1.6" diff --git a/baselines/bigquery-storage-esm/package.json b/baselines/bigquery-storage-esm/package.json index 7edad2b87..a2c4d267d 100644 --- a/baselines/bigquery-storage-esm/package.json +++ b/baselines/bigquery-storage-esm/package.json @@ -81,7 +81,7 @@ "jsdoc-region-tag": "^3.0.0", "jsdoc-fresh": "^3.0.0", "long": "^5.2.3", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "pack-n-play": "^2.0.3", "sinon": "^15.2.0", "typescript": "5.1.6", diff --git a/baselines/bigquery-storage/package.json b/baselines/bigquery-storage/package.json index 4ccfd3e04..b604d5a80 100644 --- a/baselines/bigquery-storage/package.json +++ b/baselines/bigquery-storage/package.json @@ -47,7 +47,7 @@ "jsdoc": "^4.0.2", "jsdoc-fresh": "^3.0.0", "jsdoc-region-tag": "^3.0.0", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "pack-n-play": "^2.0.3", "sinon": "^15.2.0", "typescript": "5.1.6" diff --git a/baselines/compute-esm/package.json b/baselines/compute-esm/package.json index dcec36dd6..2033f4f04 100644 --- a/baselines/compute-esm/package.json +++ b/baselines/compute-esm/package.json @@ -82,7 +82,7 @@ "jsdoc-region-tag": "^3.0.0", "jsdoc-fresh": "^3.0.0", "long": "^5.2.3", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "pack-n-play": "^2.0.3", "sinon": "^15.2.0", "typescript": "5.1.6", diff --git a/baselines/compute/package.json b/baselines/compute/package.json index b48ec3ec2..2509de7f9 100644 --- a/baselines/compute/package.json +++ b/baselines/compute/package.json @@ -48,7 +48,7 @@ "jsdoc": "^4.0.2", "jsdoc-fresh": "^3.0.0", "jsdoc-region-tag": "^3.0.0", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "pack-n-play": "^2.0.3", "sinon": "^15.2.0", "typescript": "5.1.6" diff --git a/baselines/deprecatedtest-esm/package.json b/baselines/deprecatedtest-esm/package.json index 5fdd12f35..222e86186 100644 --- a/baselines/deprecatedtest-esm/package.json +++ b/baselines/deprecatedtest-esm/package.json @@ -81,7 +81,7 @@ "jsdoc-region-tag": "^3.0.0", "jsdoc-fresh": "^3.0.0", "long": "^5.2.3", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "pack-n-play": "^2.0.3", "sinon": "^15.2.0", "typescript": "5.1.6", diff --git a/baselines/deprecatedtest/package.json b/baselines/deprecatedtest/package.json index 937660259..30ddbbca0 100644 --- a/baselines/deprecatedtest/package.json +++ b/baselines/deprecatedtest/package.json @@ -47,7 +47,7 @@ "jsdoc": "^4.0.2", "jsdoc-fresh": "^3.0.0", "jsdoc-region-tag": "^3.0.0", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "pack-n-play": "^2.0.3", "sinon": "^15.2.0", "typescript": "5.1.6" diff --git a/baselines/disable-packing-test-esm/package.json b/baselines/disable-packing-test-esm/package.json index 093b8e499..fcbc55730 100644 --- a/baselines/disable-packing-test-esm/package.json +++ b/baselines/disable-packing-test-esm/package.json @@ -86,7 +86,7 @@ "jsdoc-region-tag": "^3.0.0", "jsdoc-fresh": "^3.0.0", "long": "^5.2.3", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "pack-n-play": "^2.0.3", "sinon": "^15.2.0", "typescript": "5.1.6", diff --git a/baselines/disable-packing-test/package.json b/baselines/disable-packing-test/package.json index 28cf2ef43..42a93a189 100644 --- a/baselines/disable-packing-test/package.json +++ b/baselines/disable-packing-test/package.json @@ -52,7 +52,7 @@ "jsdoc": "^4.0.2", "jsdoc-fresh": "^3.0.0", "jsdoc-region-tag": "^3.0.0", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "pack-n-play": "^2.0.3", "sinon": "^15.2.0", "typescript": "5.1.6" diff --git a/baselines/dlp-esm/package.json b/baselines/dlp-esm/package.json index 6c418994c..131061bc8 100644 --- a/baselines/dlp-esm/package.json +++ b/baselines/dlp-esm/package.json @@ -81,7 +81,7 @@ "jsdoc-region-tag": "^3.0.0", "jsdoc-fresh": "^3.0.0", "long": "^5.2.3", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "pack-n-play": "^2.0.3", "sinon": "^15.2.0", "typescript": "5.1.6", diff --git a/baselines/dlp/package.json b/baselines/dlp/package.json index f37d8e2a1..3abb1e98f 100644 --- a/baselines/dlp/package.json +++ b/baselines/dlp/package.json @@ -47,7 +47,7 @@ "jsdoc": "^4.0.2", "jsdoc-fresh": "^3.0.0", "jsdoc-region-tag": "^3.0.0", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "pack-n-play": "^2.0.3", "sinon": "^15.2.0", "typescript": "5.1.6" diff --git a/baselines/kms-esm/package.json b/baselines/kms-esm/package.json index cb9fd041e..619d7d1f4 100644 --- a/baselines/kms-esm/package.json +++ b/baselines/kms-esm/package.json @@ -81,7 +81,7 @@ "jsdoc-region-tag": "^3.0.0", "jsdoc-fresh": "^3.0.0", "long": "^5.2.3", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "pack-n-play": "^2.0.3", "sinon": "^15.2.0", "typescript": "5.1.6", diff --git a/baselines/kms/package.json b/baselines/kms/package.json index 2b84cecac..869af94f9 100644 --- a/baselines/kms/package.json +++ b/baselines/kms/package.json @@ -47,7 +47,7 @@ "jsdoc": "^4.0.2", "jsdoc-fresh": "^3.0.0", "jsdoc-region-tag": "^3.0.0", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "pack-n-play": "^2.0.3", "sinon": "^15.2.0", "typescript": "5.1.6" diff --git a/baselines/logging-esm/package.json b/baselines/logging-esm/package.json index 24ff7f0df..17e4b49c3 100644 --- a/baselines/logging-esm/package.json +++ b/baselines/logging-esm/package.json @@ -83,7 +83,7 @@ "jsdoc-region-tag": "^3.0.0", "jsdoc-fresh": "^3.0.0", "long": "^5.2.3", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "pack-n-play": "^2.0.3", "sinon": "^15.2.0", "typescript": "5.1.6", diff --git a/baselines/logging/package.json b/baselines/logging/package.json index 6122869f1..2b4dcf561 100644 --- a/baselines/logging/package.json +++ b/baselines/logging/package.json @@ -49,7 +49,7 @@ "jsdoc": "^4.0.2", "jsdoc-fresh": "^3.0.0", "jsdoc-region-tag": "^3.0.0", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "pack-n-play": "^2.0.3", "sinon": "^15.2.0", "typescript": "5.1.6" diff --git a/baselines/monitoring-esm/package.json b/baselines/monitoring-esm/package.json index 6772ac52c..af8e864d6 100644 --- a/baselines/monitoring-esm/package.json +++ b/baselines/monitoring-esm/package.json @@ -86,7 +86,7 @@ "jsdoc-region-tag": "^3.0.0", "jsdoc-fresh": "^3.0.0", "long": "^5.2.3", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "pack-n-play": "^2.0.3", "sinon": "^15.2.0", "typescript": "5.1.6", diff --git a/baselines/monitoring/package.json b/baselines/monitoring/package.json index ee664d2bc..a9a7e93e1 100644 --- a/baselines/monitoring/package.json +++ b/baselines/monitoring/package.json @@ -52,7 +52,7 @@ "jsdoc": "^4.0.2", "jsdoc-fresh": "^3.0.0", "jsdoc-region-tag": "^3.0.0", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "pack-n-play": "^2.0.3", "sinon": "^15.2.0", "typescript": "5.1.6" diff --git a/baselines/naming-esm/package.json b/baselines/naming-esm/package.json index 751f6cef4..12e007eb3 100644 --- a/baselines/naming-esm/package.json +++ b/baselines/naming-esm/package.json @@ -81,7 +81,7 @@ "jsdoc-region-tag": "^3.0.0", "jsdoc-fresh": "^3.0.0", "long": "^5.2.3", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "pack-n-play": "^2.0.3", "sinon": "^15.2.0", "typescript": "5.1.6", diff --git a/baselines/naming/package.json b/baselines/naming/package.json index 91a89a624..ed4bea0c8 100644 --- a/baselines/naming/package.json +++ b/baselines/naming/package.json @@ -47,7 +47,7 @@ "jsdoc": "^4.0.2", "jsdoc-fresh": "^3.0.0", "jsdoc-region-tag": "^3.0.0", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "pack-n-play": "^2.0.3", "sinon": "^15.2.0", "typescript": "5.1.6" diff --git a/baselines/redis-esm/package.json b/baselines/redis-esm/package.json index 8ad7e7a3a..02078f031 100644 --- a/baselines/redis-esm/package.json +++ b/baselines/redis-esm/package.json @@ -81,7 +81,7 @@ "jsdoc-region-tag": "^3.0.0", "jsdoc-fresh": "^3.0.0", "long": "^5.2.3", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "pack-n-play": "^2.0.3", "sinon": "^15.2.0", "typescript": "5.1.6", diff --git a/baselines/redis/package.json b/baselines/redis/package.json index 7a45d36c4..0d15f1e4a 100644 --- a/baselines/redis/package.json +++ b/baselines/redis/package.json @@ -47,7 +47,7 @@ "jsdoc": "^4.0.2", "jsdoc-fresh": "^3.0.0", "jsdoc-region-tag": "^3.0.0", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "pack-n-play": "^2.0.3", "sinon": "^15.2.0", "typescript": "5.1.6" diff --git a/baselines/routingtest-esm/package.json b/baselines/routingtest-esm/package.json index 50954c006..bcdd5f87a 100644 --- a/baselines/routingtest-esm/package.json +++ b/baselines/routingtest-esm/package.json @@ -81,7 +81,7 @@ "jsdoc-region-tag": "^3.0.0", "jsdoc-fresh": "^3.0.0", "long": "^5.2.3", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "pack-n-play": "^2.0.3", "sinon": "^15.2.0", "typescript": "5.1.6", diff --git a/baselines/routingtest/package.json b/baselines/routingtest/package.json index 40f66aabb..b00644de9 100644 --- a/baselines/routingtest/package.json +++ b/baselines/routingtest/package.json @@ -47,7 +47,7 @@ "jsdoc": "^4.0.2", "jsdoc-fresh": "^3.0.0", "jsdoc-region-tag": "^3.0.0", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "pack-n-play": "^2.0.3", "sinon": "^15.2.0", "typescript": "5.1.6" diff --git a/baselines/showcase-esm/package.json b/baselines/showcase-esm/package.json index 093b8e499..fcbc55730 100644 --- a/baselines/showcase-esm/package.json +++ b/baselines/showcase-esm/package.json @@ -86,7 +86,7 @@ "jsdoc-region-tag": "^3.0.0", "jsdoc-fresh": "^3.0.0", "long": "^5.2.3", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "pack-n-play": "^2.0.3", "sinon": "^15.2.0", "typescript": "5.1.6", diff --git a/baselines/showcase-legacy-esm/package.json b/baselines/showcase-legacy-esm/package.json index 4e0c08d6d..05b398ab4 100644 --- a/baselines/showcase-legacy-esm/package.json +++ b/baselines/showcase-legacy-esm/package.json @@ -81,7 +81,7 @@ "jsdoc-region-tag": "^3.0.0", "jsdoc-fresh": "^3.0.0", "long": "^5.2.3", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "pack-n-play": "^2.0.3", "sinon": "^15.2.0", "typescript": "5.1.6", diff --git a/baselines/showcase-legacy/package.json b/baselines/showcase-legacy/package.json index 35e751ea5..ccb738055 100644 --- a/baselines/showcase-legacy/package.json +++ b/baselines/showcase-legacy/package.json @@ -47,7 +47,7 @@ "jsdoc": "^4.0.2", "jsdoc-fresh": "^3.0.0", "jsdoc-region-tag": "^3.0.0", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "pack-n-play": "^2.0.3", "sinon": "^15.2.0", "typescript": "5.1.6" diff --git a/baselines/showcase/package.json b/baselines/showcase/package.json index 28cf2ef43..42a93a189 100644 --- a/baselines/showcase/package.json +++ b/baselines/showcase/package.json @@ -52,7 +52,7 @@ "jsdoc": "^4.0.2", "jsdoc-fresh": "^3.0.0", "jsdoc-region-tag": "^3.0.0", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "pack-n-play": "^2.0.3", "sinon": "^15.2.0", "typescript": "5.1.6" diff --git a/baselines/tasks-esm/package.json b/baselines/tasks-esm/package.json index 9a057af71..a45d439a3 100644 --- a/baselines/tasks-esm/package.json +++ b/baselines/tasks-esm/package.json @@ -81,7 +81,7 @@ "jsdoc-region-tag": "^3.0.0", "jsdoc-fresh": "^3.0.0", "long": "^5.2.3", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "pack-n-play": "^2.0.3", "sinon": "^15.2.0", "typescript": "5.1.6", diff --git a/baselines/tasks/package.json b/baselines/tasks/package.json index 530c926e4..c656112f7 100644 --- a/baselines/tasks/package.json +++ b/baselines/tasks/package.json @@ -47,7 +47,7 @@ "jsdoc": "^4.0.2", "jsdoc-fresh": "^3.0.0", "jsdoc-region-tag": "^3.0.0", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "pack-n-play": "^2.0.3", "sinon": "^15.2.0", "typescript": "5.1.6" diff --git a/baselines/texttospeech-esm/package.json b/baselines/texttospeech-esm/package.json index b0637743e..969c98a70 100644 --- a/baselines/texttospeech-esm/package.json +++ b/baselines/texttospeech-esm/package.json @@ -81,7 +81,7 @@ "jsdoc-region-tag": "^3.0.0", "jsdoc-fresh": "^3.0.0", "long": "^5.2.3", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "pack-n-play": "^2.0.3", "sinon": "^15.2.0", "typescript": "5.1.6", diff --git a/baselines/texttospeech/package.json b/baselines/texttospeech/package.json index 661d8ae9e..2f88b9609 100644 --- a/baselines/texttospeech/package.json +++ b/baselines/texttospeech/package.json @@ -47,7 +47,7 @@ "jsdoc": "^4.0.2", "jsdoc-fresh": "^3.0.0", "jsdoc-region-tag": "^3.0.0", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "pack-n-play": "^2.0.3", "sinon": "^15.2.0", "typescript": "5.1.6" diff --git a/baselines/translate-esm/package.json b/baselines/translate-esm/package.json index 0a4fca7b8..25a7f6957 100644 --- a/baselines/translate-esm/package.json +++ b/baselines/translate-esm/package.json @@ -81,7 +81,7 @@ "jsdoc-region-tag": "^3.0.0", "jsdoc-fresh": "^3.0.0", "long": "^5.2.3", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "pack-n-play": "^2.0.3", "sinon": "^15.2.0", "typescript": "5.1.6", diff --git a/baselines/translate/package.json b/baselines/translate/package.json index 8c932f7aa..b855f9464 100644 --- a/baselines/translate/package.json +++ b/baselines/translate/package.json @@ -47,7 +47,7 @@ "jsdoc": "^4.0.2", "jsdoc-fresh": "^3.0.0", "jsdoc-region-tag": "^3.0.0", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "pack-n-play": "^2.0.3", "sinon": "^15.2.0", "typescript": "5.1.6" diff --git a/baselines/videointelligence-esm/package.json b/baselines/videointelligence-esm/package.json index c193c3fcc..a5a980355 100644 --- a/baselines/videointelligence-esm/package.json +++ b/baselines/videointelligence-esm/package.json @@ -81,7 +81,7 @@ "jsdoc-region-tag": "^3.0.0", "jsdoc-fresh": "^3.0.0", "long": "^5.2.3", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "pack-n-play": "^2.0.3", "sinon": "^15.2.0", "typescript": "5.1.6", diff --git a/baselines/videointelligence/package.json b/baselines/videointelligence/package.json index 62601cb04..14346734d 100644 --- a/baselines/videointelligence/package.json +++ b/baselines/videointelligence/package.json @@ -47,7 +47,7 @@ "jsdoc": "^4.0.2", "jsdoc-fresh": "^3.0.0", "jsdoc-region-tag": "^3.0.0", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "pack-n-play": "^2.0.3", "sinon": "^15.2.0", "typescript": "5.1.6" diff --git a/package-lock.json b/package-lock.json index 1b995b99b..3d25ed214 100644 --- a/package-lock.json +++ b/package-lock.json @@ -35,7 +35,7 @@ "gapic-tools": "^0.3.0", "google-gax": "^4.3.0", "gts": "^5.2.0", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "typescript": "5.1.6" }, "engines": { @@ -4830,9 +4830,9 @@ } }, "node_modules/mocha": { - "version": "10.2.0", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.2.0.tgz", - "integrity": "sha512-IDY7fl/BecMwFHzoqF2sg/SHHANeBoMMXFlS9r0OXKDssYE1M5O43wUY/9BVPeIvfH2zmEbBfseqN9gBQZzXkg==", + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.3.0.tgz", + "integrity": "sha512-uF2XJs+7xSLsrmIvn37i/wnc91nw7XjOQB8ccyx5aEgdnohr7n+rEiZP23WkCYHjilR6+EboEnbq/ZQDz4LSbg==", "dev": true, "dependencies": { "ansi-colors": "4.1.1", @@ -4842,13 +4842,12 @@ "diff": "5.0.0", "escape-string-regexp": "4.0.0", "find-up": "5.0.0", - "glob": "7.2.0", + "glob": "8.1.0", "he": "1.2.0", "js-yaml": "4.1.0", "log-symbols": "4.1.0", "minimatch": "5.0.1", "ms": "2.1.3", - "nanoid": "3.3.3", "serialize-javascript": "6.0.0", "strip-json-comments": "3.1.1", "supports-color": "8.1.1", @@ -4863,10 +4862,6 @@ }, "engines": { "node": ">= 14.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/mochajs" } }, "node_modules/mocha/node_modules/cliui": { @@ -4892,6 +4887,25 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/mocha/node_modules/glob": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", + "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^5.0.1", + "once": "^1.3.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/mocha/node_modules/has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", @@ -4994,18 +5008,6 @@ "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", "dev": true }, - "node_modules/nanoid": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.3.tgz", - "integrity": "sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w==", - "dev": true, - "bin": { - "nanoid": "bin/nanoid.cjs" - }, - "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" - } - }, "node_modules/natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", diff --git a/package.json b/package.json index 7ca0d4553..2bea9269a 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "gapic-tools": "^0.3.0", "google-gax": "^4.3.0", "gts": "^5.2.0", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "typescript": "5.1.6" }, "engines": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 259e56568..93d45ff77 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -68,8 +68,8 @@ devDependencies: specifier: ^5.2.0 version: 5.2.0(typescript@5.1.6) mocha: - specifier: ^10.2.0 - version: 10.2.0 + specifier: ^10.3.0 + version: 10.3.0 typescript: specifier: 5.1.6 version: 5.1.6 @@ -1859,17 +1859,6 @@ packages: path-scurry: 1.10.1 dev: true - /glob@7.2.0: - resolution: {integrity: sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==} - dependencies: - fs.realpath: 1.0.0 - inflight: 1.0.6 - inherits: 2.0.4 - minimatch: 3.1.2 - once: 1.4.0 - path-is-absolute: 1.0.1 - dev: true - /glob@7.2.3: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} dependencies: @@ -2596,8 +2585,8 @@ packages: engines: {node: '>=10'} hasBin: true - /mocha@10.2.0: - resolution: {integrity: sha512-IDY7fl/BecMwFHzoqF2sg/SHHANeBoMMXFlS9r0OXKDssYE1M5O43wUY/9BVPeIvfH2zmEbBfseqN9gBQZzXkg==} + /mocha@10.3.0: + resolution: {integrity: sha512-uF2XJs+7xSLsrmIvn37i/wnc91nw7XjOQB8ccyx5aEgdnohr7n+rEiZP23WkCYHjilR6+EboEnbq/ZQDz4LSbg==} engines: {node: '>= 14.0.0'} hasBin: true dependencies: @@ -2608,13 +2597,12 @@ packages: diff: 5.0.0 escape-string-regexp: 4.0.0 find-up: 5.0.0 - glob: 7.2.0 + glob: 8.1.0 he: 1.2.0 js-yaml: 4.1.0 log-symbols: 4.1.0 minimatch: 5.0.1 ms: 2.1.3 - nanoid: 3.3.3 serialize-javascript: 6.0.0 strip-json-comments: 3.1.1 supports-color: 8.1.1 @@ -2642,12 +2630,6 @@ packages: resolution: {integrity: sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==} dev: true - /nanoid@3.3.3: - resolution: {integrity: sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w==} - engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} - hasBin: true - dev: true - /natural-compare-lite@1.4.0: resolution: {integrity: sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==} dev: true @@ -3641,7 +3623,7 @@ packages: require-directory: 2.1.1 string-width: 4.2.3 y18n: 5.0.8 - yargs-parser: 20.2.4 + yargs-parser: 20.2.9 dev: true /yargs@17.7.2: diff --git a/templates/cjs/typescript_gapic/package.json b/templates/cjs/typescript_gapic/package.json index cb96475a6..eaad092da 100644 --- a/templates/cjs/typescript_gapic/package.json +++ b/templates/cjs/typescript_gapic/package.json @@ -47,7 +47,7 @@ "jsdoc": "^4.0.2", "jsdoc-fresh": "^3.0.0", "jsdoc-region-tag": "^3.0.0", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "pack-n-play": "^2.0.3", "sinon": "^15.2.0", "typescript": "5.1.6" diff --git a/templates/esm/typescript_gapic/package.json b/templates/esm/typescript_gapic/package.json index 2316187cb..4b78dd393 100644 --- a/templates/esm/typescript_gapic/package.json +++ b/templates/esm/typescript_gapic/package.json @@ -82,7 +82,7 @@ "jsdoc-region-tag": "^3.0.0", "jsdoc-fresh": "^3.0.0", "long": "^5.2.3", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "pack-n-play": "^2.0.3", "sinon": "^15.2.0", "typescript": "5.1.6", diff --git a/yarn.lock b/yarn.lock index dbd880e25..171b9b112 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1838,17 +1838,16 @@ glob-parent@^6.0.2: dependencies: is-glob "^4.0.3" -glob@7.2.0, glob@^7.1.3: - version "7.2.0" - resolved "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz" - integrity sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q== +glob@8.1.0, glob@^8.0.0: + version "8.1.0" + resolved "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz" + integrity sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ== dependencies: fs.realpath "^1.0.0" inflight "^1.0.4" inherits "2" - minimatch "^3.0.4" + minimatch "^5.0.1" once "^1.3.0" - path-is-absolute "^1.0.0" glob@^10.2.5: version "10.3.4" @@ -1861,16 +1860,17 @@ glob@^10.2.5: minipass "^5.0.0 || ^6.0.2 || ^7.0.0" path-scurry "^1.10.1" -glob@^8.0.0: - version "8.1.0" - resolved "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz" - integrity sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ== +glob@^7.1.3: + version "7.2.0" + resolved "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz" + integrity sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q== dependencies: fs.realpath "^1.0.0" inflight "^1.0.4" inherits "2" - minimatch "^5.0.1" + minimatch "^3.0.4" once "^1.3.0" + path-is-absolute "^1.0.0" globals@^11.1.0: version "11.12.0" @@ -2636,10 +2636,10 @@ mkdirp@^1.0.4: resolved "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz" integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== -mocha@^10.2.0: - version "10.2.0" - resolved "https://registry.npmjs.org/mocha/-/mocha-10.2.0.tgz" - integrity sha512-IDY7fl/BecMwFHzoqF2sg/SHHANeBoMMXFlS9r0OXKDssYE1M5O43wUY/9BVPeIvfH2zmEbBfseqN9gBQZzXkg== +mocha@^10.3.0: + version "10.3.0" + resolved "https://registry.npmjs.org/mocha/-/mocha-10.3.0.tgz" + integrity sha512-uF2XJs+7xSLsrmIvn37i/wnc91nw7XjOQB8ccyx5aEgdnohr7n+rEiZP23WkCYHjilR6+EboEnbq/ZQDz4LSbg== dependencies: ansi-colors "4.1.1" browser-stdout "1.3.1" @@ -2648,13 +2648,12 @@ mocha@^10.2.0: diff "5.0.0" escape-string-regexp "4.0.0" find-up "5.0.0" - glob "7.2.0" + glob "8.1.0" he "1.2.0" js-yaml "4.1.0" log-symbols "4.1.0" minimatch "5.0.1" ms "2.1.3" - nanoid "3.3.3" serialize-javascript "6.0.0" strip-json-comments "3.1.1" supports-color "8.1.1" @@ -2685,11 +2684,6 @@ mute-stream@0.0.8: resolved "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz" integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA== -nanoid@3.3.3: - version "3.3.3" - resolved "https://registry.npmjs.org/nanoid/-/nanoid-3.3.3.tgz" - integrity sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w== - natural-compare-lite@^1.4.0: version "1.4.0" resolved "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz" From fde69badfde2712d661614c1df4f67bf25687f56 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Sat, 17 Feb 2024 16:42:15 +0100 Subject: [PATCH 21/35] chore(deps): update dependency @types/node to ^20.11.19 (#1539) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@types/node](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node) ([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)) | [`^20.11.17` -> `^20.11.19`](https://renovatebot.com/diffs/npm/@types%2fnode/20.11.17/20.11.19) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fnode/20.11.19?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fnode/20.11.19?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fnode/20.11.17/20.11.19?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fnode/20.11.17/20.11.19?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/gapic-generator-typescript). --- baselines/asset-esm/package.json | 2 +- baselines/asset/package.json | 2 +- baselines/bigquery-storage-esm/package.json | 2 +- baselines/bigquery-storage/package.json | 2 +- baselines/compute-esm/package.json | 2 +- baselines/compute/package.json | 2 +- baselines/deprecatedtest-esm/package.json | 2 +- baselines/deprecatedtest/package.json | 2 +- .../disable-packing-test-esm/package.json | 2 +- baselines/disable-packing-test/package.json | 2 +- baselines/dlp-esm/package.json | 2 +- baselines/dlp/package.json | 2 +- baselines/kms-esm/package.json | 2 +- baselines/kms/package.json | 2 +- baselines/logging-esm/package.json | 2 +- baselines/logging/package.json | 2 +- baselines/monitoring-esm/package.json | 2 +- baselines/monitoring/package.json | 2 +- baselines/naming-esm/package.json | 2 +- baselines/naming/package.json | 2 +- baselines/redis-esm/package.json | 2 +- baselines/redis/package.json | 2 +- baselines/routingtest-esm/package.json | 2 +- baselines/routingtest/package.json | 2 +- baselines/showcase-esm/package.json | 2 +- baselines/showcase-legacy-esm/package.json | 2 +- baselines/showcase-legacy/package.json | 2 +- baselines/showcase/package.json | 2 +- baselines/tasks-esm/package.json | 2 +- baselines/tasks/package.json | 2 +- baselines/texttospeech-esm/package.json | 2 +- baselines/texttospeech/package.json | 2 +- baselines/translate-esm/package.json | 2 +- baselines/translate/package.json | 2 +- baselines/videointelligence-esm/package.json | 2 +- baselines/videointelligence/package.json | 2 +- package-lock.json | 8 +++---- package.json | 2 +- pnpm-lock.yaml | 24 +++++++++---------- templates/cjs/typescript_gapic/package.json | 2 +- templates/esm/typescript_gapic/package.json | 2 +- yarn.lock | 8 +++---- 42 files changed, 59 insertions(+), 59 deletions(-) diff --git a/baselines/asset-esm/package.json b/baselines/asset-esm/package.json index 2d2235cda..c65791490 100644 --- a/baselines/asset-esm/package.json +++ b/baselines/asset-esm/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/asset/package.json b/baselines/asset/package.json index 0c81d90ee..fd8534e15 100644 --- a/baselines/asset/package.json +++ b/baselines/asset/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/bigquery-storage-esm/package.json b/baselines/bigquery-storage-esm/package.json index a2c4d267d..436414910 100644 --- a/baselines/bigquery-storage-esm/package.json +++ b/baselines/bigquery-storage-esm/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/bigquery-storage/package.json b/baselines/bigquery-storage/package.json index b604d5a80..d69a36254 100644 --- a/baselines/bigquery-storage/package.json +++ b/baselines/bigquery-storage/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/compute-esm/package.json b/baselines/compute-esm/package.json index 2033f4f04..b0d67f668 100644 --- a/baselines/compute-esm/package.json +++ b/baselines/compute-esm/package.json @@ -72,7 +72,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/compute/package.json b/baselines/compute/package.json index 2509de7f9..b50a8b916 100644 --- a/baselines/compute/package.json +++ b/baselines/compute/package.json @@ -40,7 +40,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/deprecatedtest-esm/package.json b/baselines/deprecatedtest-esm/package.json index 222e86186..9c58896dc 100644 --- a/baselines/deprecatedtest-esm/package.json +++ b/baselines/deprecatedtest-esm/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/deprecatedtest/package.json b/baselines/deprecatedtest/package.json index 30ddbbca0..efaa5f8a2 100644 --- a/baselines/deprecatedtest/package.json +++ b/baselines/deprecatedtest/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/disable-packing-test-esm/package.json b/baselines/disable-packing-test-esm/package.json index fcbc55730..e3cc34ce9 100644 --- a/baselines/disable-packing-test-esm/package.json +++ b/baselines/disable-packing-test-esm/package.json @@ -76,7 +76,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/disable-packing-test/package.json b/baselines/disable-packing-test/package.json index 42a93a189..3f27538cf 100644 --- a/baselines/disable-packing-test/package.json +++ b/baselines/disable-packing-test/package.json @@ -44,7 +44,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/dlp-esm/package.json b/baselines/dlp-esm/package.json index 131061bc8..9715b3402 100644 --- a/baselines/dlp-esm/package.json +++ b/baselines/dlp-esm/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/dlp/package.json b/baselines/dlp/package.json index 3abb1e98f..d22808ef4 100644 --- a/baselines/dlp/package.json +++ b/baselines/dlp/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/kms-esm/package.json b/baselines/kms-esm/package.json index 619d7d1f4..80aef3eb4 100644 --- a/baselines/kms-esm/package.json +++ b/baselines/kms-esm/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/kms/package.json b/baselines/kms/package.json index 869af94f9..4f1b48f2c 100644 --- a/baselines/kms/package.json +++ b/baselines/kms/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/logging-esm/package.json b/baselines/logging-esm/package.json index 17e4b49c3..0838db176 100644 --- a/baselines/logging-esm/package.json +++ b/baselines/logging-esm/package.json @@ -73,7 +73,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/logging/package.json b/baselines/logging/package.json index 2b4dcf561..6eb8d4c12 100644 --- a/baselines/logging/package.json +++ b/baselines/logging/package.json @@ -41,7 +41,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/monitoring-esm/package.json b/baselines/monitoring-esm/package.json index af8e864d6..799dc4a61 100644 --- a/baselines/monitoring-esm/package.json +++ b/baselines/monitoring-esm/package.json @@ -76,7 +76,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/monitoring/package.json b/baselines/monitoring/package.json index a9a7e93e1..86a1db81d 100644 --- a/baselines/monitoring/package.json +++ b/baselines/monitoring/package.json @@ -44,7 +44,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/naming-esm/package.json b/baselines/naming-esm/package.json index 12e007eb3..4ba333fb6 100644 --- a/baselines/naming-esm/package.json +++ b/baselines/naming-esm/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/naming/package.json b/baselines/naming/package.json index ed4bea0c8..3243a58b8 100644 --- a/baselines/naming/package.json +++ b/baselines/naming/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/redis-esm/package.json b/baselines/redis-esm/package.json index 02078f031..c45d7851a 100644 --- a/baselines/redis-esm/package.json +++ b/baselines/redis-esm/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/redis/package.json b/baselines/redis/package.json index 0d15f1e4a..b8e426aec 100644 --- a/baselines/redis/package.json +++ b/baselines/redis/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/routingtest-esm/package.json b/baselines/routingtest-esm/package.json index bcdd5f87a..90ba5adc6 100644 --- a/baselines/routingtest-esm/package.json +++ b/baselines/routingtest-esm/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/routingtest/package.json b/baselines/routingtest/package.json index b00644de9..d0755d529 100644 --- a/baselines/routingtest/package.json +++ b/baselines/routingtest/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/showcase-esm/package.json b/baselines/showcase-esm/package.json index fcbc55730..e3cc34ce9 100644 --- a/baselines/showcase-esm/package.json +++ b/baselines/showcase-esm/package.json @@ -76,7 +76,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/showcase-legacy-esm/package.json b/baselines/showcase-legacy-esm/package.json index 05b398ab4..49e8e4c90 100644 --- a/baselines/showcase-legacy-esm/package.json +++ b/baselines/showcase-legacy-esm/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/showcase-legacy/package.json b/baselines/showcase-legacy/package.json index ccb738055..331748ea0 100644 --- a/baselines/showcase-legacy/package.json +++ b/baselines/showcase-legacy/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/showcase/package.json b/baselines/showcase/package.json index 42a93a189..3f27538cf 100644 --- a/baselines/showcase/package.json +++ b/baselines/showcase/package.json @@ -44,7 +44,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/tasks-esm/package.json b/baselines/tasks-esm/package.json index a45d439a3..dfb34ebe9 100644 --- a/baselines/tasks-esm/package.json +++ b/baselines/tasks-esm/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/tasks/package.json b/baselines/tasks/package.json index c656112f7..b3cc24375 100644 --- a/baselines/tasks/package.json +++ b/baselines/tasks/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/texttospeech-esm/package.json b/baselines/texttospeech-esm/package.json index 969c98a70..88ffdc60e 100644 --- a/baselines/texttospeech-esm/package.json +++ b/baselines/texttospeech-esm/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/texttospeech/package.json b/baselines/texttospeech/package.json index 2f88b9609..a0815132b 100644 --- a/baselines/texttospeech/package.json +++ b/baselines/texttospeech/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/translate-esm/package.json b/baselines/translate-esm/package.json index 25a7f6957..6524388f4 100644 --- a/baselines/translate-esm/package.json +++ b/baselines/translate-esm/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/translate/package.json b/baselines/translate/package.json index b855f9464..2dd4d266c 100644 --- a/baselines/translate/package.json +++ b/baselines/translate/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/videointelligence-esm/package.json b/baselines/videointelligence-esm/package.json index a5a980355..a502ace58 100644 --- a/baselines/videointelligence-esm/package.json +++ b/baselines/videointelligence-esm/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/videointelligence/package.json b/baselines/videointelligence/package.json index 14346734d..6b4682958 100644 --- a/baselines/videointelligence/package.json +++ b/baselines/videointelligence/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/package-lock.json b/package-lock.json index 3d25ed214..5c043f62d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,7 +27,7 @@ "@bazel/bazelisk": "^1.19.0", "@types/mocha": "^10.0.6", "@types/module-alias": "^2.0.4", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/nunjucks": "^3.2.6", "@types/object-hash": "^3.0.6", "@types/yargs": "^17.0.32", @@ -954,9 +954,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "20.11.17", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.17.tgz", - "integrity": "sha512-QmgQZGWu1Yw9TDyAP9ZzpFJKynYNeOvwMJmaxABfieQoVoiVOS6MN1WSpqpRcbeA5+RW82kraAVxCCJg+780Qw==", + "version": "20.11.19", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.19.tgz", + "integrity": "sha512-7xMnVEcZFu0DikYjWOlRq7NTPETrm7teqUT2WkQjrTIkEgUyyGdWsj/Zg8bEJt5TNklzbPD1X3fqfsHw3SpapQ==", "dependencies": { "undici-types": "~5.26.4" } diff --git a/package.json b/package.json index 2bea9269a..f7c433b35 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "@bazel/bazelisk": "^1.19.0", "@types/mocha": "^10.0.6", "@types/module-alias": "^2.0.4", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/nunjucks": "^3.2.6", "@types/object-hash": "^3.0.6", "@types/yargs": "^17.0.32", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 93d45ff77..4b0230835 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -44,8 +44,8 @@ devDependencies: specifier: ^2.0.4 version: 2.0.4 '@types/node': - specifier: ^20.11.17 - version: 20.11.17 + specifier: ^20.11.19 + version: 20.11.19 '@types/nunjucks': specifier: ^3.2.6 version: 3.2.6 @@ -57,7 +57,7 @@ devDependencies: version: 17.0.32 espower-typescript: specifier: ^10.0.1 - version: 10.0.1(@types/node@20.11.17)(typescript@5.1.6) + version: 10.0.1(@types/node@20.11.19)(typescript@5.1.6) gapic-tools: specifier: ^0.3.0 version: 0.3.0(protobufjs@7.2.6) @@ -330,7 +330,7 @@ packages: engines: {node: ^8.13.0 || >=10.10.0} dependencies: '@grpc/proto-loader': 0.7.10 - '@types/node': 20.11.17 + '@types/node': 20.11.19 dev: true /@grpc/proto-loader@0.7.10: @@ -546,8 +546,8 @@ packages: resolution: {integrity: sha512-5+G/QXO/DvHZw60FjvbDzO4JmlD/nG5m2/vVGt25VN1eeP3w2bCoks1Wa7VuptMPM1TxJdx6RjO70N9Fw0nZPA==} dev: true - /@types/node@20.11.17: - resolution: {integrity: sha512-QmgQZGWu1Yw9TDyAP9ZzpFJKynYNeOvwMJmaxABfieQoVoiVOS6MN1WSpqpRcbeA5+RW82kraAVxCCJg+780Qw==} + /@types/node@20.11.19: + resolution: {integrity: sha512-7xMnVEcZFu0DikYjWOlRq7NTPETrm7teqUT2WkQjrTIkEgUyyGdWsj/Zg8bEJt5TNklzbPD1X3fqfsHw3SpapQ==} dependencies: undici-types: 5.26.5 @@ -567,7 +567,7 @@ packages: resolution: {integrity: sha512-G3sY+NpsA9jnwm0ixhAFQSJ3Q9JkpLZpJbI3GMv0mIAT0y3mRabYeINzal5WOChIiaTEGQYlHOKgkaM9EisWHw==} dependencies: '@types/caseless': 0.12.5 - '@types/node': 20.11.17 + '@types/node': 20.11.19 '@types/tough-cookie': 4.0.5 form-data: 2.5.1 dev: true @@ -1516,7 +1516,7 @@ packages: xtend: 4.0.2 dev: true - /espower-typescript@10.0.1(@types/node@20.11.17)(typescript@5.1.6): + /espower-typescript@10.0.1(@types/node@20.11.19)(typescript@5.1.6): resolution: {integrity: sha512-Otz3g+JKQCPG3CxyUQnmcmr9LeYXe+bEU2F/WtBeaByIj+kgR+8lyYSa1Rcqh27b/sp9EjrDLDUTW+d7dsfJQw==} engines: {node: '>=10.17'} peerDependencies: @@ -1525,7 +1525,7 @@ packages: espower-source: 2.3.0 minimatch: 5.1.6 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@20.11.17)(typescript@5.1.6) + ts-node: 10.9.2(@types/node@20.11.19)(typescript@5.1.6) typescript: 5.1.6 transitivePeerDependencies: - '@swc/core' @@ -2918,7 +2918,7 @@ packages: '@protobufjs/path': 1.1.2 '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.0 - '@types/node': 20.11.17 + '@types/node': 20.11.19 long: 5.2.3 /punycode@2.3.1: @@ -3354,7 +3354,7 @@ packages: engines: {node: '>=8'} dev: true - /ts-node@10.9.2(@types/node@20.11.17)(typescript@5.1.6): + /ts-node@10.9.2(@types/node@20.11.19)(typescript@5.1.6): resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} hasBin: true peerDependencies: @@ -3373,7 +3373,7 @@ packages: '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 20.11.17 + '@types/node': 20.11.19 acorn: 8.11.3 acorn-walk: 8.3.2 arg: 4.1.3 diff --git a/templates/cjs/typescript_gapic/package.json b/templates/cjs/typescript_gapic/package.json index eaad092da..7f713cf7c 100644 --- a/templates/cjs/typescript_gapic/package.json +++ b/templates/cjs/typescript_gapic/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/templates/esm/typescript_gapic/package.json b/templates/esm/typescript_gapic/package.json index 4b78dd393..f28155ac4 100644 --- a/templates/esm/typescript_gapic/package.json +++ b/templates/esm/typescript_gapic/package.json @@ -72,7 +72,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.17", + "@types/node": "^20.11.19", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/yarn.lock b/yarn.lock index 171b9b112..836ba1aac 100644 --- a/yarn.lock +++ b/yarn.lock @@ -503,10 +503,10 @@ resolved "https://registry.npmjs.org/@types/module-alias/-/module-alias-2.0.4.tgz" integrity sha512-5+G/QXO/DvHZw60FjvbDzO4JmlD/nG5m2/vVGt25VN1eeP3w2bCoks1Wa7VuptMPM1TxJdx6RjO70N9Fw0nZPA== -"@types/node@*", "@types/node@>=12.12.47", "@types/node@>=13.7.0", "@types/node@^20.11.17": - version "20.11.17" - resolved "https://registry.npmjs.org/@types/node/-/node-20.11.17.tgz" - integrity sha512-QmgQZGWu1Yw9TDyAP9ZzpFJKynYNeOvwMJmaxABfieQoVoiVOS6MN1WSpqpRcbeA5+RW82kraAVxCCJg+780Qw== +"@types/node@*", "@types/node@>=12.12.47", "@types/node@>=13.7.0", "@types/node@^20.11.19": + version "20.11.19" + resolved "https://registry.npmjs.org/@types/node/-/node-20.11.19.tgz" + integrity sha512-7xMnVEcZFu0DikYjWOlRq7NTPETrm7teqUT2WkQjrTIkEgUyyGdWsj/Zg8bEJt5TNklzbPD1X3fqfsHw3SpapQ== dependencies: undici-types "~5.26.4" From 846c62edc09979215c9643959af86befd2557996 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Sat, 17 Feb 2024 16:52:15 +0100 Subject: [PATCH 22/35] fix(deps): update dependency google-gax to ^4.3.1 (#1540) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [google-gax](https://togithub.com/googleapis/gax-nodejs) ([source](https://togithub.com/googleapis/gax-nodejs/tree/HEAD/gax)) | [`^4.3.0` -> `^4.3.1`](https://renovatebot.com/diffs/npm/google-gax/4.3.0/4.3.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/google-gax/4.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/google-gax/4.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/google-gax/4.3.0/4.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/google-gax/4.3.0/4.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/gax-nodejs (google-gax) ### [`v4.3.1`](https://togithub.com/googleapis/gax-nodejs/blob/HEAD/gax/CHANGELOG.md#431-2024-02-08) [Compare Source](https://togithub.com/googleapis/gax-nodejs/compare/v4.3.0...google-gax-v4.3.1) ##### Bug Fixes - **deps:** update dependency [@​grpc/grpc-js](https://togithub.com/grpc/grpc-js) to ~1.10.0 ([#​1558](https://togithub.com/googleapis/gax-nodejs/issues/1558)) ([ea84b7b](https://togithub.com/googleapis/gax-nodejs/commit/ea84b7bc723fbc333b809cc4fb0a0615774738ea)) - **deps:** update google-auth-library to 9.3.0 ([#​1559](https://togithub.com/googleapis/gax-nodejs/issues/1559)) ([81978ac](https://togithub.com/googleapis/gax-nodejs/commit/81978ac52d40559258281a3a9d98508401a1822c))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/gapic-generator-typescript). --- baselines/asset-esm/package.json | 2 +- baselines/asset/package.json | 2 +- baselines/bigquery-storage-esm/package.json | 2 +- baselines/bigquery-storage/package.json | 2 +- baselines/compute-esm/package.json | 2 +- baselines/compute/package.json | 2 +- baselines/deprecatedtest-esm/package.json | 2 +- baselines/deprecatedtest/package.json | 2 +- .../disable-packing-test-esm/package.json | 2 +- baselines/disable-packing-test/package.json | 2 +- baselines/dlp-esm/package.json | 2 +- baselines/dlp/package.json | 2 +- baselines/kms-esm/package.json | 2 +- baselines/kms/package.json | 2 +- baselines/logging-esm/package.json | 2 +- baselines/logging/package.json | 2 +- baselines/monitoring-esm/package.json | 2 +- baselines/monitoring/package.json | 2 +- baselines/naming-esm/package.json | 2 +- baselines/naming/package.json | 2 +- baselines/redis-esm/package.json | 2 +- baselines/redis/package.json | 2 +- baselines/routingtest-esm/package.json | 2 +- baselines/routingtest/package.json | 2 +- baselines/showcase-esm/package.json | 2 +- baselines/showcase-legacy-esm/package.json | 2 +- baselines/showcase-legacy/package.json | 2 +- baselines/showcase/package.json | 2 +- baselines/tasks-esm/package.json | 2 +- baselines/tasks/package.json | 2 +- baselines/texttospeech-esm/package.json | 2 +- baselines/texttospeech/package.json | 2 +- baselines/translate-esm/package.json | 2 +- baselines/translate/package.json | 2 +- baselines/videointelligence-esm/package.json | 2 +- baselines/videointelligence/package.json | 2 +- package-lock.json | 61 +++++++------------ package.json | 2 +- pnpm-lock.yaml | 16 ++--- templates/cjs/typescript_gapic/package.json | 2 +- templates/esm/typescript_gapic/package.json | 2 +- yarn.lock | 49 ++++++++------- 42 files changed, 92 insertions(+), 112 deletions(-) diff --git a/baselines/asset-esm/package.json b/baselines/asset-esm/package.json index c65791490..57ff3c002 100644 --- a/baselines/asset-esm/package.json +++ b/baselines/asset-esm/package.json @@ -63,7 +63,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.3.0" + "google-gax": "^4.3.1" }, "devDependencies": { "@babel/cli": "^7.23.9", diff --git a/baselines/asset/package.json b/baselines/asset/package.json index fd8534e15..b469538ce 100644 --- a/baselines/asset/package.json +++ b/baselines/asset/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.3.0" + "google-gax": "^4.3.1" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/bigquery-storage-esm/package.json b/baselines/bigquery-storage-esm/package.json index 436414910..52f7d0da5 100644 --- a/baselines/bigquery-storage-esm/package.json +++ b/baselines/bigquery-storage-esm/package.json @@ -63,7 +63,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.3.0" + "google-gax": "^4.3.1" }, "devDependencies": { "@babel/cli": "^7.23.9", diff --git a/baselines/bigquery-storage/package.json b/baselines/bigquery-storage/package.json index d69a36254..9c3b6e987 100644 --- a/baselines/bigquery-storage/package.json +++ b/baselines/bigquery-storage/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.3.0" + "google-gax": "^4.3.1" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/compute-esm/package.json b/baselines/compute-esm/package.json index b0d67f668..1a4c4a6c6 100644 --- a/baselines/compute-esm/package.json +++ b/baselines/compute-esm/package.json @@ -64,7 +64,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.3.0" + "google-gax": "^4.3.1" }, "devDependencies": { "@babel/cli": "^7.23.9", diff --git a/baselines/compute/package.json b/baselines/compute/package.json index b50a8b916..60972530a 100644 --- a/baselines/compute/package.json +++ b/baselines/compute/package.json @@ -36,7 +36,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.3.0" + "google-gax": "^4.3.1" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/deprecatedtest-esm/package.json b/baselines/deprecatedtest-esm/package.json index 9c58896dc..2f2c9d3a2 100644 --- a/baselines/deprecatedtest-esm/package.json +++ b/baselines/deprecatedtest-esm/package.json @@ -63,7 +63,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.3.0" + "google-gax": "^4.3.1" }, "devDependencies": { "@babel/cli": "^7.23.9", diff --git a/baselines/deprecatedtest/package.json b/baselines/deprecatedtest/package.json index efaa5f8a2..6fc76ac5d 100644 --- a/baselines/deprecatedtest/package.json +++ b/baselines/deprecatedtest/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.3.0" + "google-gax": "^4.3.1" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/disable-packing-test-esm/package.json b/baselines/disable-packing-test-esm/package.json index e3cc34ce9..2e17a0b07 100644 --- a/baselines/disable-packing-test-esm/package.json +++ b/baselines/disable-packing-test-esm/package.json @@ -68,7 +68,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.3.0" + "google-gax": "^4.3.1" }, "devDependencies": { "@babel/cli": "^7.23.9", diff --git a/baselines/disable-packing-test/package.json b/baselines/disable-packing-test/package.json index 3f27538cf..ddc516091 100644 --- a/baselines/disable-packing-test/package.json +++ b/baselines/disable-packing-test/package.json @@ -40,7 +40,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.3.0" + "google-gax": "^4.3.1" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/dlp-esm/package.json b/baselines/dlp-esm/package.json index 9715b3402..c5b5e2dad 100644 --- a/baselines/dlp-esm/package.json +++ b/baselines/dlp-esm/package.json @@ -63,7 +63,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.3.0" + "google-gax": "^4.3.1" }, "devDependencies": { "@babel/cli": "^7.23.9", diff --git a/baselines/dlp/package.json b/baselines/dlp/package.json index d22808ef4..8f25430ca 100644 --- a/baselines/dlp/package.json +++ b/baselines/dlp/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.3.0" + "google-gax": "^4.3.1" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/kms-esm/package.json b/baselines/kms-esm/package.json index 80aef3eb4..8d7951222 100644 --- a/baselines/kms-esm/package.json +++ b/baselines/kms-esm/package.json @@ -63,7 +63,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.3.0" + "google-gax": "^4.3.1" }, "devDependencies": { "@babel/cli": "^7.23.9", diff --git a/baselines/kms/package.json b/baselines/kms/package.json index 4f1b48f2c..3d05dec3c 100644 --- a/baselines/kms/package.json +++ b/baselines/kms/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.3.0" + "google-gax": "^4.3.1" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/logging-esm/package.json b/baselines/logging-esm/package.json index 0838db176..ba35dcbac 100644 --- a/baselines/logging-esm/package.json +++ b/baselines/logging-esm/package.json @@ -65,7 +65,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.3.0" + "google-gax": "^4.3.1" }, "devDependencies": { "@babel/cli": "^7.23.9", diff --git a/baselines/logging/package.json b/baselines/logging/package.json index 6eb8d4c12..11288b921 100644 --- a/baselines/logging/package.json +++ b/baselines/logging/package.json @@ -37,7 +37,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.3.0" + "google-gax": "^4.3.1" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/monitoring-esm/package.json b/baselines/monitoring-esm/package.json index 799dc4a61..55d38059c 100644 --- a/baselines/monitoring-esm/package.json +++ b/baselines/monitoring-esm/package.json @@ -68,7 +68,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.3.0" + "google-gax": "^4.3.1" }, "devDependencies": { "@babel/cli": "^7.23.9", diff --git a/baselines/monitoring/package.json b/baselines/monitoring/package.json index 86a1db81d..c57c0f19f 100644 --- a/baselines/monitoring/package.json +++ b/baselines/monitoring/package.json @@ -40,7 +40,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.3.0" + "google-gax": "^4.3.1" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/naming-esm/package.json b/baselines/naming-esm/package.json index 4ba333fb6..4aaa6e228 100644 --- a/baselines/naming-esm/package.json +++ b/baselines/naming-esm/package.json @@ -63,7 +63,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.3.0" + "google-gax": "^4.3.1" }, "devDependencies": { "@babel/cli": "^7.23.9", diff --git a/baselines/naming/package.json b/baselines/naming/package.json index 3243a58b8..7c3e4c059 100644 --- a/baselines/naming/package.json +++ b/baselines/naming/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.3.0" + "google-gax": "^4.3.1" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/redis-esm/package.json b/baselines/redis-esm/package.json index c45d7851a..44da1a14d 100644 --- a/baselines/redis-esm/package.json +++ b/baselines/redis-esm/package.json @@ -63,7 +63,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.3.0" + "google-gax": "^4.3.1" }, "devDependencies": { "@babel/cli": "^7.23.9", diff --git a/baselines/redis/package.json b/baselines/redis/package.json index b8e426aec..6ef0b5a41 100644 --- a/baselines/redis/package.json +++ b/baselines/redis/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.3.0" + "google-gax": "^4.3.1" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/routingtest-esm/package.json b/baselines/routingtest-esm/package.json index 90ba5adc6..3db58d49f 100644 --- a/baselines/routingtest-esm/package.json +++ b/baselines/routingtest-esm/package.json @@ -63,7 +63,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.3.0" + "google-gax": "^4.3.1" }, "devDependencies": { "@babel/cli": "^7.23.9", diff --git a/baselines/routingtest/package.json b/baselines/routingtest/package.json index d0755d529..bf297a3d6 100644 --- a/baselines/routingtest/package.json +++ b/baselines/routingtest/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.3.0" + "google-gax": "^4.3.1" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/showcase-esm/package.json b/baselines/showcase-esm/package.json index e3cc34ce9..2e17a0b07 100644 --- a/baselines/showcase-esm/package.json +++ b/baselines/showcase-esm/package.json @@ -68,7 +68,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.3.0" + "google-gax": "^4.3.1" }, "devDependencies": { "@babel/cli": "^7.23.9", diff --git a/baselines/showcase-legacy-esm/package.json b/baselines/showcase-legacy-esm/package.json index 49e8e4c90..ebc8d7d89 100644 --- a/baselines/showcase-legacy-esm/package.json +++ b/baselines/showcase-legacy-esm/package.json @@ -63,7 +63,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.3.0" + "google-gax": "^4.3.1" }, "devDependencies": { "@babel/cli": "^7.23.9", diff --git a/baselines/showcase-legacy/package.json b/baselines/showcase-legacy/package.json index 331748ea0..71fcf895a 100644 --- a/baselines/showcase-legacy/package.json +++ b/baselines/showcase-legacy/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.3.0" + "google-gax": "^4.3.1" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/showcase/package.json b/baselines/showcase/package.json index 3f27538cf..ddc516091 100644 --- a/baselines/showcase/package.json +++ b/baselines/showcase/package.json @@ -40,7 +40,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.3.0" + "google-gax": "^4.3.1" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/tasks-esm/package.json b/baselines/tasks-esm/package.json index dfb34ebe9..4c82b9841 100644 --- a/baselines/tasks-esm/package.json +++ b/baselines/tasks-esm/package.json @@ -63,7 +63,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.3.0" + "google-gax": "^4.3.1" }, "devDependencies": { "@babel/cli": "^7.23.9", diff --git a/baselines/tasks/package.json b/baselines/tasks/package.json index b3cc24375..10f32fb76 100644 --- a/baselines/tasks/package.json +++ b/baselines/tasks/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.3.0" + "google-gax": "^4.3.1" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/texttospeech-esm/package.json b/baselines/texttospeech-esm/package.json index 88ffdc60e..c10c9a996 100644 --- a/baselines/texttospeech-esm/package.json +++ b/baselines/texttospeech-esm/package.json @@ -63,7 +63,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.3.0" + "google-gax": "^4.3.1" }, "devDependencies": { "@babel/cli": "^7.23.9", diff --git a/baselines/texttospeech/package.json b/baselines/texttospeech/package.json index a0815132b..a188bb8f6 100644 --- a/baselines/texttospeech/package.json +++ b/baselines/texttospeech/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.3.0" + "google-gax": "^4.3.1" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/translate-esm/package.json b/baselines/translate-esm/package.json index 6524388f4..fe586eb2e 100644 --- a/baselines/translate-esm/package.json +++ b/baselines/translate-esm/package.json @@ -63,7 +63,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.3.0" + "google-gax": "^4.3.1" }, "devDependencies": { "@babel/cli": "^7.23.9", diff --git a/baselines/translate/package.json b/baselines/translate/package.json index 2dd4d266c..176c0e76e 100644 --- a/baselines/translate/package.json +++ b/baselines/translate/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.3.0" + "google-gax": "^4.3.1" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/baselines/videointelligence-esm/package.json b/baselines/videointelligence-esm/package.json index a502ace58..e92ea9a69 100644 --- a/baselines/videointelligence-esm/package.json +++ b/baselines/videointelligence-esm/package.json @@ -63,7 +63,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.3.0" + "google-gax": "^4.3.1" }, "devDependencies": { "@babel/cli": "^7.23.9", diff --git a/baselines/videointelligence/package.json b/baselines/videointelligence/package.json index 6b4682958..263fb0ca8 100644 --- a/baselines/videointelligence/package.json +++ b/baselines/videointelligence/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.3.0" + "google-gax": "^4.3.1" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/package-lock.json b/package-lock.json index 5c043f62d..bc305d460 100644 --- a/package-lock.json +++ b/package-lock.json @@ -33,7 +33,7 @@ "@types/yargs": "^17.0.32", "espower-typescript": "^10.0.1", "gapic-tools": "^0.3.0", - "google-gax": "^4.3.0", + "google-gax": "^4.3.1", "gts": "^5.2.0", "mocha": "^10.3.0", "typescript": "5.1.6" @@ -495,9 +495,9 @@ } }, "node_modules/@grpc/grpc-js": { - "version": "1.9.6", - "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.9.6.tgz", - "integrity": "sha512-yq3qTy23u++8zdvf+h4mz4ohDFi681JAkMZZPTKh8zmUVh0AKLisFlgxcn22FMNowXz15oJ6pqgwT7DJ+PdJvg==", + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.10.1.tgz", + "integrity": "sha512-55ONqFytZExfOIjF1RjXPcVmT/jJqFzbbDqxK9jmRV4nxiYWtL9hENSW1Jfx0SdZfrvoqd44YJ/GJTqfRrawSQ==", "dev": true, "dependencies": { "@grpc/proto-loader": "^0.7.8", @@ -3335,9 +3335,9 @@ } }, "node_modules/gaxios": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-6.1.0.tgz", - "integrity": "sha512-EIHuesZxNyIkUGcTQKQPMICyOpDD/bi+LJIJx+NLsSGmnS7N+xCLRX5bi4e9yAu9AlSZdVq+qlyWWVuTh/483w==", + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-6.2.0.tgz", + "integrity": "sha512-H6+bHeoEAU5D6XNc6mPKeN5dLZqEDs9Gpk6I+SZBEzK5So58JVrHPmevNi35fRl1J9Y5TaeLW0kYx3pCJ1U2mQ==", "dev": true, "dependencies": { "extend": "^3.0.2", @@ -3350,9 +3350,9 @@ } }, "node_modules/gcp-metadata": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-6.0.0.tgz", - "integrity": "sha512-Ozxyi23/1Ar51wjUT2RDklK+3HxqDr8TLBNK8rBBFQ7T85iIGnXnVusauj06QyqCXRFZig8LZC+TUddWbndlpQ==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-6.1.0.tgz", + "integrity": "sha512-Jh/AIwwgaxan+7ZUUmRLCjtchyDiqh4KjBJ5tW3plBZb5iL/BPcso8A5DlzeD9qlw0duCamnNdpFjxwaT0KyKg==", "dev": true, "dependencies": { "gaxios": "^6.0.0", @@ -3490,53 +3490,34 @@ } }, "node_modules/google-auth-library": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-9.0.0.tgz", - "integrity": "sha512-IQGjgQoVUAfOk6khqTVMLvWx26R+yPw9uLyb1MNyMQpdKiKt0Fd9sp4NWoINjyGHR8S3iw12hMTYK7O8J07c6Q==", + "version": "9.6.3", + "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-9.6.3.tgz", + "integrity": "sha512-4CacM29MLC2eT9Cey5GDVK4Q8t+MMp8+OEdOaqD9MG6b0dOyLORaaeJMPQ7EESVgm/+z5EKYyFLxgzBJlJgyHQ==", "dev": true, "dependencies": { "base64-js": "^1.3.0", "ecdsa-sig-formatter": "^1.0.11", - "gaxios": "^6.0.0", - "gcp-metadata": "^6.0.0", + "gaxios": "^6.1.1", + "gcp-metadata": "^6.1.0", "gtoken": "^7.0.0", - "jws": "^4.0.0", - "lru-cache": "^6.0.0" + "jws": "^4.0.0" }, "engines": { "node": ">=14" } }, - "node_modules/google-auth-library/node_modules/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==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/google-auth-library/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/google-gax": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/google-gax/-/google-gax-4.3.0.tgz", - "integrity": "sha512-SWHX72gbccNfpPoeTkNmZJxmLyKWeLr0+5Ch6qtrf4oAN8KFXnyXe5EixatILnJWufM3L59MRZ4hSJWVJ3IQqw==", + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/google-gax/-/google-gax-4.3.1.tgz", + "integrity": "sha512-qpSfslpwqToIgQ+Tf3MjWIDjYK4UFIZ0uz6nLtttlW9N1NQA4PhGf9tlGo6KDYJ4rgL2w4CjXVd0z5yeNpN/Iw==", "dev": true, "dependencies": { - "@grpc/grpc-js": "~1.9.6", + "@grpc/grpc-js": "~1.10.0", "@grpc/proto-loader": "^0.7.0", "@types/long": "^4.0.0", "abort-controller": "^3.0.0", "duplexify": "^4.0.0", - "google-auth-library": "^9.0.0", + "google-auth-library": "^9.3.0", "node-fetch": "^2.6.1", "object-hash": "^3.0.0", "proto3-json-serializer": "^2.0.0", diff --git a/package.json b/package.json index f7c433b35..c31a46735 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,7 @@ "@types/yargs": "^17.0.32", "espower-typescript": "^10.0.1", "gapic-tools": "^0.3.0", - "google-gax": "^4.3.0", + "google-gax": "^4.3.1", "gts": "^5.2.0", "mocha": "^10.3.0", "typescript": "5.1.6" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4b0230835..5cbbb1cf6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -62,8 +62,8 @@ devDependencies: specifier: ^0.3.0 version: 0.3.0(protobufjs@7.2.6) google-gax: - specifier: ^4.3.0 - version: 4.3.0 + specifier: ^4.3.1 + version: 4.3.1 gts: specifier: ^5.2.0 version: 5.2.0(typescript@5.1.6) @@ -325,8 +325,8 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /@grpc/grpc-js@1.9.14: - resolution: {integrity: sha512-nOpuzZ2G3IuMFN+UPPpKrC6NsLmWsTqSsm66IRfnBt1D4pwTqE27lmbpcPM+l2Ua4gE7PfjRHI6uedAy7hoXUw==} + /@grpc/grpc-js@1.10.1: + resolution: {integrity: sha512-55ONqFytZExfOIjF1RjXPcVmT/jJqFzbbDqxK9jmRV4nxiYWtL9hENSW1Jfx0SdZfrvoqd44YJ/GJTqfRrawSQ==} engines: {node: ^8.13.0 || >=10.10.0} dependencies: '@grpc/proto-loader': 0.7.10 @@ -1774,7 +1774,7 @@ packages: dependencies: '@babel/core': 7.23.7 '@babel/traverse': 7.23.7 - google-gax: 4.3.0 + google-gax: 4.3.1 google-proto-files: 4.1.0 protobufjs-cli: 1.1.2(protobufjs@7.2.6) rimraf: 5.0.5 @@ -1918,11 +1918,11 @@ packages: - supports-color dev: true - /google-gax@4.3.0: - resolution: {integrity: sha512-SWHX72gbccNfpPoeTkNmZJxmLyKWeLr0+5Ch6qtrf4oAN8KFXnyXe5EixatILnJWufM3L59MRZ4hSJWVJ3IQqw==} + /google-gax@4.3.1: + resolution: {integrity: sha512-qpSfslpwqToIgQ+Tf3MjWIDjYK4UFIZ0uz6nLtttlW9N1NQA4PhGf9tlGo6KDYJ4rgL2w4CjXVd0z5yeNpN/Iw==} engines: {node: '>=14'} dependencies: - '@grpc/grpc-js': 1.9.14 + '@grpc/grpc-js': 1.10.1 '@grpc/proto-loader': 0.7.10 '@types/long': 4.0.2 abort-controller: 3.0.0 diff --git a/templates/cjs/typescript_gapic/package.json b/templates/cjs/typescript_gapic/package.json index 7f713cf7c..dd301995b 100644 --- a/templates/cjs/typescript_gapic/package.json +++ b/templates/cjs/typescript_gapic/package.json @@ -35,7 +35,7 @@ "test": "c8 mocha build/test" }, "dependencies": { - "google-gax": "^4.3.0" + "google-gax": "^4.3.1" }, "devDependencies": { "@types/mocha": "^10.0.6", diff --git a/templates/esm/typescript_gapic/package.json b/templates/esm/typescript_gapic/package.json index f28155ac4..04707cce4 100644 --- a/templates/esm/typescript_gapic/package.json +++ b/templates/esm/typescript_gapic/package.json @@ -64,7 +64,7 @@ "samples-test": "cd samples/ && npm link ../ && npm i && npm test" }, "dependencies": { - "google-gax": "^4.3.0" + "google-gax": "^4.3.1" }, "devDependencies": { "@babel/cli": "^7.23.9", diff --git a/yarn.lock b/yarn.lock index 836ba1aac..e385d8a3c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -238,10 +238,10 @@ resolved "https://registry.npmjs.org/@eslint/js/-/js-8.50.0.tgz" integrity sha512-NCC3zz2+nvYd+Ckfh87rA47zfu2QsQpvc6k1yzTk+b9KzRj0wkGa8LSoGOXN6Zv4lRf/EIoZ80biDh9HOI+RNQ== -"@grpc/grpc-js@~1.9.6": - version "1.9.6" - resolved "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.9.6.tgz" - integrity sha512-yq3qTy23u++8zdvf+h4mz4ohDFi681JAkMZZPTKh8zmUVh0AKLisFlgxcn22FMNowXz15oJ6pqgwT7DJ+PdJvg== +"@grpc/grpc-js@~1.10.0": + version "1.10.1" + resolved "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.10.1.tgz" + integrity sha512-55ONqFytZExfOIjF1RjXPcVmT/jJqFzbbDqxK9jmRV4nxiYWtL9hENSW1Jfx0SdZfrvoqd44YJ/GJTqfRrawSQ== dependencies: "@grpc/proto-loader" "^0.7.8" "@types/node" ">=12.12.47" @@ -1781,20 +1781,20 @@ gapic-tools@^0.3.0: uglify-js "^3.17.0" walkdir "^0.4.0" -gaxios@^6.0.0: - version "6.1.0" - resolved "https://registry.npmjs.org/gaxios/-/gaxios-6.1.0.tgz" - integrity sha512-EIHuesZxNyIkUGcTQKQPMICyOpDD/bi+LJIJx+NLsSGmnS7N+xCLRX5bi4e9yAu9AlSZdVq+qlyWWVuTh/483w== +gaxios@^6.0.0, gaxios@^6.1.1: + version "6.2.0" + resolved "https://registry.npmjs.org/gaxios/-/gaxios-6.2.0.tgz" + integrity sha512-H6+bHeoEAU5D6XNc6mPKeN5dLZqEDs9Gpk6I+SZBEzK5So58JVrHPmevNi35fRl1J9Y5TaeLW0kYx3pCJ1U2mQ== dependencies: extend "^3.0.2" https-proxy-agent "^7.0.1" is-stream "^2.0.0" node-fetch "^2.6.9" -gcp-metadata@^6.0.0: - version "6.0.0" - resolved "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-6.0.0.tgz" - integrity sha512-Ozxyi23/1Ar51wjUT2RDklK+3HxqDr8TLBNK8rBBFQ7T85iIGnXnVusauj06QyqCXRFZig8LZC+TUddWbndlpQ== +gcp-metadata@^6.1.0: + version "6.1.0" + resolved "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-6.1.0.tgz" + integrity sha512-Jh/AIwwgaxan+7ZUUmRLCjtchyDiqh4KjBJ5tW3plBZb5iL/BPcso8A5DlzeD9qlw0duCamnNdpFjxwaT0KyKg== dependencies: gaxios "^6.0.0" json-bigint "^1.0.0" @@ -1896,30 +1896,29 @@ globby@^11.1.0: merge2 "^1.4.1" slash "^3.0.0" -google-auth-library@^9.0.0: - version "9.0.0" - resolved "https://registry.npmjs.org/google-auth-library/-/google-auth-library-9.0.0.tgz" - integrity sha512-IQGjgQoVUAfOk6khqTVMLvWx26R+yPw9uLyb1MNyMQpdKiKt0Fd9sp4NWoINjyGHR8S3iw12hMTYK7O8J07c6Q== +google-auth-library@^9.3.0: + version "9.6.3" + resolved "https://registry.npmjs.org/google-auth-library/-/google-auth-library-9.6.3.tgz" + integrity sha512-4CacM29MLC2eT9Cey5GDVK4Q8t+MMp8+OEdOaqD9MG6b0dOyLORaaeJMPQ7EESVgm/+z5EKYyFLxgzBJlJgyHQ== dependencies: base64-js "^1.3.0" ecdsa-sig-formatter "^1.0.11" - gaxios "^6.0.0" - gcp-metadata "^6.0.0" + gaxios "^6.1.1" + gcp-metadata "^6.1.0" gtoken "^7.0.0" jws "^4.0.0" - lru-cache "^6.0.0" -google-gax@^4.1.0, google-gax@^4.3.0: - version "4.3.0" - resolved "https://registry.npmjs.org/google-gax/-/google-gax-4.3.0.tgz" - integrity sha512-SWHX72gbccNfpPoeTkNmZJxmLyKWeLr0+5Ch6qtrf4oAN8KFXnyXe5EixatILnJWufM3L59MRZ4hSJWVJ3IQqw== +google-gax@^4.1.0, google-gax@^4.3.1: + version "4.3.1" + resolved "https://registry.npmjs.org/google-gax/-/google-gax-4.3.1.tgz" + integrity sha512-qpSfslpwqToIgQ+Tf3MjWIDjYK4UFIZ0uz6nLtttlW9N1NQA4PhGf9tlGo6KDYJ4rgL2w4CjXVd0z5yeNpN/Iw== dependencies: - "@grpc/grpc-js" "~1.9.6" + "@grpc/grpc-js" "~1.10.0" "@grpc/proto-loader" "^0.7.0" "@types/long" "^4.0.0" abort-controller "^3.0.0" duplexify "^4.0.0" - google-auth-library "^9.0.0" + google-auth-library "^9.3.0" node-fetch "^2.6.1" object-hash "^3.0.0" proto3-json-serializer "^2.0.0" From cb8f7e55f0810cbe619934f6426b8ba63998a57d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 22 Feb 2024 20:58:20 +0100 Subject: [PATCH 23/35] chore(deps): update dependency @types/node to ^20.11.20 (#1544) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@types/node](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node) ([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)) | [`^20.11.19` -> `^20.11.20`](https://renovatebot.com/diffs/npm/@types%2fnode/20.11.19/20.11.20) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fnode/20.11.20?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fnode/20.11.20?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fnode/20.11.19/20.11.20?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fnode/20.11.19/20.11.20?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/gapic-generator-typescript). --- baselines/asset-esm/package.json | 2 +- baselines/asset/package.json | 2 +- baselines/bigquery-storage-esm/package.json | 2 +- baselines/bigquery-storage/package.json | 2 +- baselines/compute-esm/package.json | 2 +- baselines/compute/package.json | 2 +- baselines/deprecatedtest-esm/package.json | 2 +- baselines/deprecatedtest/package.json | 2 +- .../disable-packing-test-esm/package.json | 2 +- baselines/disable-packing-test/package.json | 2 +- baselines/dlp-esm/package.json | 2 +- baselines/dlp/package.json | 2 +- baselines/kms-esm/package.json | 2 +- baselines/kms/package.json | 2 +- baselines/logging-esm/package.json | 2 +- baselines/logging/package.json | 2 +- baselines/monitoring-esm/package.json | 2 +- baselines/monitoring/package.json | 2 +- baselines/naming-esm/package.json | 2 +- baselines/naming/package.json | 2 +- baselines/redis-esm/package.json | 2 +- baselines/redis/package.json | 2 +- baselines/routingtest-esm/package.json | 2 +- baselines/routingtest/package.json | 2 +- baselines/showcase-esm/package.json | 2 +- baselines/showcase-legacy-esm/package.json | 2 +- baselines/showcase-legacy/package.json | 2 +- baselines/showcase/package.json | 2 +- baselines/tasks-esm/package.json | 2 +- baselines/tasks/package.json | 2 +- baselines/texttospeech-esm/package.json | 2 +- baselines/texttospeech/package.json | 2 +- baselines/translate-esm/package.json | 2 +- baselines/translate/package.json | 2 +- baselines/videointelligence-esm/package.json | 2 +- baselines/videointelligence/package.json | 2 +- package-lock.json | 8 +++---- package.json | 2 +- pnpm-lock.yaml | 24 +++++++++---------- templates/cjs/typescript_gapic/package.json | 2 +- templates/esm/typescript_gapic/package.json | 2 +- yarn.lock | 8 +++---- 42 files changed, 59 insertions(+), 59 deletions(-) diff --git a/baselines/asset-esm/package.json b/baselines/asset-esm/package.json index 57ff3c002..2e3dd4ba9 100644 --- a/baselines/asset-esm/package.json +++ b/baselines/asset-esm/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/asset/package.json b/baselines/asset/package.json index b469538ce..13cdf92a3 100644 --- a/baselines/asset/package.json +++ b/baselines/asset/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/bigquery-storage-esm/package.json b/baselines/bigquery-storage-esm/package.json index 52f7d0da5..3fb06e2a0 100644 --- a/baselines/bigquery-storage-esm/package.json +++ b/baselines/bigquery-storage-esm/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/bigquery-storage/package.json b/baselines/bigquery-storage/package.json index 9c3b6e987..3adcf4a3a 100644 --- a/baselines/bigquery-storage/package.json +++ b/baselines/bigquery-storage/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/compute-esm/package.json b/baselines/compute-esm/package.json index 1a4c4a6c6..229ec04ae 100644 --- a/baselines/compute-esm/package.json +++ b/baselines/compute-esm/package.json @@ -72,7 +72,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/compute/package.json b/baselines/compute/package.json index 60972530a..f853bdda9 100644 --- a/baselines/compute/package.json +++ b/baselines/compute/package.json @@ -40,7 +40,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/deprecatedtest-esm/package.json b/baselines/deprecatedtest-esm/package.json index 2f2c9d3a2..5c60a7f0d 100644 --- a/baselines/deprecatedtest-esm/package.json +++ b/baselines/deprecatedtest-esm/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/deprecatedtest/package.json b/baselines/deprecatedtest/package.json index 6fc76ac5d..ed06d023c 100644 --- a/baselines/deprecatedtest/package.json +++ b/baselines/deprecatedtest/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/disable-packing-test-esm/package.json b/baselines/disable-packing-test-esm/package.json index 2e17a0b07..9a87b4b9c 100644 --- a/baselines/disable-packing-test-esm/package.json +++ b/baselines/disable-packing-test-esm/package.json @@ -76,7 +76,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/disable-packing-test/package.json b/baselines/disable-packing-test/package.json index ddc516091..c84c713a3 100644 --- a/baselines/disable-packing-test/package.json +++ b/baselines/disable-packing-test/package.json @@ -44,7 +44,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/dlp-esm/package.json b/baselines/dlp-esm/package.json index c5b5e2dad..929288f00 100644 --- a/baselines/dlp-esm/package.json +++ b/baselines/dlp-esm/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/dlp/package.json b/baselines/dlp/package.json index 8f25430ca..24ca17bab 100644 --- a/baselines/dlp/package.json +++ b/baselines/dlp/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/kms-esm/package.json b/baselines/kms-esm/package.json index 8d7951222..5c89e01f1 100644 --- a/baselines/kms-esm/package.json +++ b/baselines/kms-esm/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/kms/package.json b/baselines/kms/package.json index 3d05dec3c..d1f2b641d 100644 --- a/baselines/kms/package.json +++ b/baselines/kms/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/logging-esm/package.json b/baselines/logging-esm/package.json index ba35dcbac..5acdcb138 100644 --- a/baselines/logging-esm/package.json +++ b/baselines/logging-esm/package.json @@ -73,7 +73,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/logging/package.json b/baselines/logging/package.json index 11288b921..bf932a6d5 100644 --- a/baselines/logging/package.json +++ b/baselines/logging/package.json @@ -41,7 +41,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/monitoring-esm/package.json b/baselines/monitoring-esm/package.json index 55d38059c..f770a6142 100644 --- a/baselines/monitoring-esm/package.json +++ b/baselines/monitoring-esm/package.json @@ -76,7 +76,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/monitoring/package.json b/baselines/monitoring/package.json index c57c0f19f..dfab2b1e8 100644 --- a/baselines/monitoring/package.json +++ b/baselines/monitoring/package.json @@ -44,7 +44,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/naming-esm/package.json b/baselines/naming-esm/package.json index 4aaa6e228..245d408d2 100644 --- a/baselines/naming-esm/package.json +++ b/baselines/naming-esm/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/naming/package.json b/baselines/naming/package.json index 7c3e4c059..51bb03691 100644 --- a/baselines/naming/package.json +++ b/baselines/naming/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/redis-esm/package.json b/baselines/redis-esm/package.json index 44da1a14d..c1c5dd6bb 100644 --- a/baselines/redis-esm/package.json +++ b/baselines/redis-esm/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/redis/package.json b/baselines/redis/package.json index 6ef0b5a41..fe26e8439 100644 --- a/baselines/redis/package.json +++ b/baselines/redis/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/routingtest-esm/package.json b/baselines/routingtest-esm/package.json index 3db58d49f..89ff2c930 100644 --- a/baselines/routingtest-esm/package.json +++ b/baselines/routingtest-esm/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/routingtest/package.json b/baselines/routingtest/package.json index bf297a3d6..5409086e7 100644 --- a/baselines/routingtest/package.json +++ b/baselines/routingtest/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/showcase-esm/package.json b/baselines/showcase-esm/package.json index 2e17a0b07..9a87b4b9c 100644 --- a/baselines/showcase-esm/package.json +++ b/baselines/showcase-esm/package.json @@ -76,7 +76,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/showcase-legacy-esm/package.json b/baselines/showcase-legacy-esm/package.json index ebc8d7d89..78fdb7b9a 100644 --- a/baselines/showcase-legacy-esm/package.json +++ b/baselines/showcase-legacy-esm/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/showcase-legacy/package.json b/baselines/showcase-legacy/package.json index 71fcf895a..da94515b1 100644 --- a/baselines/showcase-legacy/package.json +++ b/baselines/showcase-legacy/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/showcase/package.json b/baselines/showcase/package.json index ddc516091..c84c713a3 100644 --- a/baselines/showcase/package.json +++ b/baselines/showcase/package.json @@ -44,7 +44,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/tasks-esm/package.json b/baselines/tasks-esm/package.json index 4c82b9841..dd078de95 100644 --- a/baselines/tasks-esm/package.json +++ b/baselines/tasks-esm/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/tasks/package.json b/baselines/tasks/package.json index 10f32fb76..12084c4bf 100644 --- a/baselines/tasks/package.json +++ b/baselines/tasks/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/texttospeech-esm/package.json b/baselines/texttospeech-esm/package.json index c10c9a996..8d3e8fe21 100644 --- a/baselines/texttospeech-esm/package.json +++ b/baselines/texttospeech-esm/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/texttospeech/package.json b/baselines/texttospeech/package.json index a188bb8f6..6900eb88c 100644 --- a/baselines/texttospeech/package.json +++ b/baselines/texttospeech/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/translate-esm/package.json b/baselines/translate-esm/package.json index fe586eb2e..a2c3d950a 100644 --- a/baselines/translate-esm/package.json +++ b/baselines/translate-esm/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/translate/package.json b/baselines/translate/package.json index 176c0e76e..9beb61b93 100644 --- a/baselines/translate/package.json +++ b/baselines/translate/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/videointelligence-esm/package.json b/baselines/videointelligence-esm/package.json index e92ea9a69..0c4cacbdc 100644 --- a/baselines/videointelligence-esm/package.json +++ b/baselines/videointelligence-esm/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/videointelligence/package.json b/baselines/videointelligence/package.json index 263fb0ca8..f25d22e76 100644 --- a/baselines/videointelligence/package.json +++ b/baselines/videointelligence/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/package-lock.json b/package-lock.json index bc305d460..6191c606f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,7 +27,7 @@ "@bazel/bazelisk": "^1.19.0", "@types/mocha": "^10.0.6", "@types/module-alias": "^2.0.4", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/nunjucks": "^3.2.6", "@types/object-hash": "^3.0.6", "@types/yargs": "^17.0.32", @@ -954,9 +954,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "20.11.19", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.19.tgz", - "integrity": "sha512-7xMnVEcZFu0DikYjWOlRq7NTPETrm7teqUT2WkQjrTIkEgUyyGdWsj/Zg8bEJt5TNklzbPD1X3fqfsHw3SpapQ==", + "version": "20.11.20", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.20.tgz", + "integrity": "sha512-7/rR21OS+fq8IyHTgtLkDK949uzsa6n8BkziAKtPVpugIkO6D+/ooXMvzXxDnZrmtXVfjb1bKQafYpb8s89LOg==", "dependencies": { "undici-types": "~5.26.4" } diff --git a/package.json b/package.json index c31a46735..14ec9810e 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "@bazel/bazelisk": "^1.19.0", "@types/mocha": "^10.0.6", "@types/module-alias": "^2.0.4", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/nunjucks": "^3.2.6", "@types/object-hash": "^3.0.6", "@types/yargs": "^17.0.32", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5cbbb1cf6..c6a780ff2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -44,8 +44,8 @@ devDependencies: specifier: ^2.0.4 version: 2.0.4 '@types/node': - specifier: ^20.11.19 - version: 20.11.19 + specifier: ^20.11.20 + version: 20.11.20 '@types/nunjucks': specifier: ^3.2.6 version: 3.2.6 @@ -57,7 +57,7 @@ devDependencies: version: 17.0.32 espower-typescript: specifier: ^10.0.1 - version: 10.0.1(@types/node@20.11.19)(typescript@5.1.6) + version: 10.0.1(@types/node@20.11.20)(typescript@5.1.6) gapic-tools: specifier: ^0.3.0 version: 0.3.0(protobufjs@7.2.6) @@ -330,7 +330,7 @@ packages: engines: {node: ^8.13.0 || >=10.10.0} dependencies: '@grpc/proto-loader': 0.7.10 - '@types/node': 20.11.19 + '@types/node': 20.11.20 dev: true /@grpc/proto-loader@0.7.10: @@ -546,8 +546,8 @@ packages: resolution: {integrity: sha512-5+G/QXO/DvHZw60FjvbDzO4JmlD/nG5m2/vVGt25VN1eeP3w2bCoks1Wa7VuptMPM1TxJdx6RjO70N9Fw0nZPA==} dev: true - /@types/node@20.11.19: - resolution: {integrity: sha512-7xMnVEcZFu0DikYjWOlRq7NTPETrm7teqUT2WkQjrTIkEgUyyGdWsj/Zg8bEJt5TNklzbPD1X3fqfsHw3SpapQ==} + /@types/node@20.11.20: + resolution: {integrity: sha512-7/rR21OS+fq8IyHTgtLkDK949uzsa6n8BkziAKtPVpugIkO6D+/ooXMvzXxDnZrmtXVfjb1bKQafYpb8s89LOg==} dependencies: undici-types: 5.26.5 @@ -567,7 +567,7 @@ packages: resolution: {integrity: sha512-G3sY+NpsA9jnwm0ixhAFQSJ3Q9JkpLZpJbI3GMv0mIAT0y3mRabYeINzal5WOChIiaTEGQYlHOKgkaM9EisWHw==} dependencies: '@types/caseless': 0.12.5 - '@types/node': 20.11.19 + '@types/node': 20.11.20 '@types/tough-cookie': 4.0.5 form-data: 2.5.1 dev: true @@ -1516,7 +1516,7 @@ packages: xtend: 4.0.2 dev: true - /espower-typescript@10.0.1(@types/node@20.11.19)(typescript@5.1.6): + /espower-typescript@10.0.1(@types/node@20.11.20)(typescript@5.1.6): resolution: {integrity: sha512-Otz3g+JKQCPG3CxyUQnmcmr9LeYXe+bEU2F/WtBeaByIj+kgR+8lyYSa1Rcqh27b/sp9EjrDLDUTW+d7dsfJQw==} engines: {node: '>=10.17'} peerDependencies: @@ -1525,7 +1525,7 @@ packages: espower-source: 2.3.0 minimatch: 5.1.6 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@20.11.19)(typescript@5.1.6) + ts-node: 10.9.2(@types/node@20.11.20)(typescript@5.1.6) typescript: 5.1.6 transitivePeerDependencies: - '@swc/core' @@ -2918,7 +2918,7 @@ packages: '@protobufjs/path': 1.1.2 '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.0 - '@types/node': 20.11.19 + '@types/node': 20.11.20 long: 5.2.3 /punycode@2.3.1: @@ -3354,7 +3354,7 @@ packages: engines: {node: '>=8'} dev: true - /ts-node@10.9.2(@types/node@20.11.19)(typescript@5.1.6): + /ts-node@10.9.2(@types/node@20.11.20)(typescript@5.1.6): resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} hasBin: true peerDependencies: @@ -3373,7 +3373,7 @@ packages: '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 20.11.19 + '@types/node': 20.11.20 acorn: 8.11.3 acorn-walk: 8.3.2 arg: 4.1.3 diff --git a/templates/cjs/typescript_gapic/package.json b/templates/cjs/typescript_gapic/package.json index dd301995b..7f5563531 100644 --- a/templates/cjs/typescript_gapic/package.json +++ b/templates/cjs/typescript_gapic/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/templates/esm/typescript_gapic/package.json b/templates/esm/typescript_gapic/package.json index 04707cce4..2d0123163 100644 --- a/templates/esm/typescript_gapic/package.json +++ b/templates/esm/typescript_gapic/package.json @@ -72,7 +72,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.19", + "@types/node": "^20.11.20", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/yarn.lock b/yarn.lock index e385d8a3c..81c55f92f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -503,10 +503,10 @@ resolved "https://registry.npmjs.org/@types/module-alias/-/module-alias-2.0.4.tgz" integrity sha512-5+G/QXO/DvHZw60FjvbDzO4JmlD/nG5m2/vVGt25VN1eeP3w2bCoks1Wa7VuptMPM1TxJdx6RjO70N9Fw0nZPA== -"@types/node@*", "@types/node@>=12.12.47", "@types/node@>=13.7.0", "@types/node@^20.11.19": - version "20.11.19" - resolved "https://registry.npmjs.org/@types/node/-/node-20.11.19.tgz" - integrity sha512-7xMnVEcZFu0DikYjWOlRq7NTPETrm7teqUT2WkQjrTIkEgUyyGdWsj/Zg8bEJt5TNklzbPD1X3fqfsHw3SpapQ== +"@types/node@*", "@types/node@>=12.12.47", "@types/node@>=13.7.0", "@types/node@^20.11.20": + version "20.11.20" + resolved "https://registry.npmjs.org/@types/node/-/node-20.11.20.tgz" + integrity sha512-7/rR21OS+fq8IyHTgtLkDK949uzsa6n8BkziAKtPVpugIkO6D+/ooXMvzXxDnZrmtXVfjb1bKQafYpb8s89LOg== dependencies: undici-types "~5.26.4" From 28f06d64f55aec7f77a485a0b97119654e00ce0d Mon Sep 17 00:00:00 2001 From: sofisl <55454395+sofisl@users.noreply.github.com> Date: Thu, 22 Feb 2024 16:40:16 -0800 Subject: [PATCH 24/35] fix: export types from protos in esm (#1543) Fixes https://togithub.com/googleapis/google-cloud-node/issues/5058 --- baselines/asset-esm/package.json | 10 ++++++++++ baselines/bigquery-storage-esm/package.json | 10 ++++++++++ baselines/compute-esm/package.json | 10 ++++++++++ baselines/deprecatedtest-esm/package.json | 10 ++++++++++ baselines/disable-packing-test-esm/package.json | 10 ++++++++++ baselines/dlp-esm/package.json | 10 ++++++++++ baselines/kms-esm/package.json | 10 ++++++++++ baselines/logging-esm/package.json | 10 ++++++++++ baselines/monitoring-esm/package.json | 10 ++++++++++ baselines/naming-esm/package.json | 10 ++++++++++ baselines/redis-esm/package.json | 10 ++++++++++ baselines/routingtest-esm/package.json | 10 ++++++++++ baselines/showcase-esm/package.json | 10 ++++++++++ baselines/showcase-legacy-esm/package.json | 10 ++++++++++ baselines/tasks-esm/package.json | 10 ++++++++++ baselines/texttospeech-esm/package.json | 10 ++++++++++ baselines/translate-esm/package.json | 10 ++++++++++ baselines/videointelligence-esm/package.json | 10 ++++++++++ templates/esm/typescript_gapic/package.json | 10 ++++++++++ 19 files changed, 190 insertions(+) diff --git a/baselines/asset-esm/package.json b/baselines/asset-esm/package.json index 2e3dd4ba9..ce25be7c8 100644 --- a/baselines/asset-esm/package.json +++ b/baselines/asset-esm/package.json @@ -18,6 +18,16 @@ "types": "./build/cjs/src/index.d.ts", "default": "./build/cjs/src/index.cjs" } + }, + "./build/protos/protos": { + "import": { + "types": "./build/protos/protos/protos.d.ts", + "default": "./build/protos/protos/protos.js" + }, + "require": { + "types": "./build/protos/protos/protos.d.ts", + "default": "./build/protos/protos/protos.cjs" + } } }, "files": [ diff --git a/baselines/bigquery-storage-esm/package.json b/baselines/bigquery-storage-esm/package.json index 3fb06e2a0..f9bf4b79f 100644 --- a/baselines/bigquery-storage-esm/package.json +++ b/baselines/bigquery-storage-esm/package.json @@ -18,6 +18,16 @@ "types": "./build/cjs/src/index.d.ts", "default": "./build/cjs/src/index.cjs" } + }, + "./build/protos/protos": { + "import": { + "types": "./build/protos/protos/protos.d.ts", + "default": "./build/protos/protos/protos.js" + }, + "require": { + "types": "./build/protos/protos/protos.d.ts", + "default": "./build/protos/protos/protos.cjs" + } } }, "files": [ diff --git a/baselines/compute-esm/package.json b/baselines/compute-esm/package.json index 229ec04ae..79690e78d 100644 --- a/baselines/compute-esm/package.json +++ b/baselines/compute-esm/package.json @@ -18,6 +18,16 @@ "types": "./build/cjs/src/index.d.ts", "default": "./build/cjs/src/index.cjs" } + }, + "./build/protos/protos": { + "import": { + "types": "./build/protos/protos/protos.d.ts", + "default": "./build/protos/protos/protos.js" + }, + "require": { + "types": "./build/protos/protos/protos.d.ts", + "default": "./build/protos/protos/protos.cjs" + } } }, "files": [ diff --git a/baselines/deprecatedtest-esm/package.json b/baselines/deprecatedtest-esm/package.json index 5c60a7f0d..1b81b5b79 100644 --- a/baselines/deprecatedtest-esm/package.json +++ b/baselines/deprecatedtest-esm/package.json @@ -18,6 +18,16 @@ "types": "./build/cjs/src/index.d.ts", "default": "./build/cjs/src/index.cjs" } + }, + "./build/protos/protos": { + "import": { + "types": "./build/protos/protos/protos.d.ts", + "default": "./build/protos/protos/protos.js" + }, + "require": { + "types": "./build/protos/protos/protos.d.ts", + "default": "./build/protos/protos/protos.cjs" + } } }, "files": [ diff --git a/baselines/disable-packing-test-esm/package.json b/baselines/disable-packing-test-esm/package.json index 9a87b4b9c..691987cc7 100644 --- a/baselines/disable-packing-test-esm/package.json +++ b/baselines/disable-packing-test-esm/package.json @@ -18,6 +18,16 @@ "types": "./build/cjs/src/index.d.ts", "default": "./build/cjs/src/index.cjs" } + }, + "./build/protos/protos": { + "import": { + "types": "./build/protos/protos/protos.d.ts", + "default": "./build/protos/protos/protos.js" + }, + "require": { + "types": "./build/protos/protos/protos.d.ts", + "default": "./build/protos/protos/protos.cjs" + } } }, "files": [ diff --git a/baselines/dlp-esm/package.json b/baselines/dlp-esm/package.json index 929288f00..b7df18030 100644 --- a/baselines/dlp-esm/package.json +++ b/baselines/dlp-esm/package.json @@ -18,6 +18,16 @@ "types": "./build/cjs/src/index.d.ts", "default": "./build/cjs/src/index.cjs" } + }, + "./build/protos/protos": { + "import": { + "types": "./build/protos/protos/protos.d.ts", + "default": "./build/protos/protos/protos.js" + }, + "require": { + "types": "./build/protos/protos/protos.d.ts", + "default": "./build/protos/protos/protos.cjs" + } } }, "files": [ diff --git a/baselines/kms-esm/package.json b/baselines/kms-esm/package.json index 5c89e01f1..c13d3e924 100644 --- a/baselines/kms-esm/package.json +++ b/baselines/kms-esm/package.json @@ -18,6 +18,16 @@ "types": "./build/cjs/src/index.d.ts", "default": "./build/cjs/src/index.cjs" } + }, + "./build/protos/protos": { + "import": { + "types": "./build/protos/protos/protos.d.ts", + "default": "./build/protos/protos/protos.js" + }, + "require": { + "types": "./build/protos/protos/protos.d.ts", + "default": "./build/protos/protos/protos.cjs" + } } }, "files": [ diff --git a/baselines/logging-esm/package.json b/baselines/logging-esm/package.json index 5acdcb138..66cc5ece9 100644 --- a/baselines/logging-esm/package.json +++ b/baselines/logging-esm/package.json @@ -18,6 +18,16 @@ "types": "./build/cjs/src/index.d.ts", "default": "./build/cjs/src/index.cjs" } + }, + "./build/protos/protos": { + "import": { + "types": "./build/protos/protos/protos.d.ts", + "default": "./build/protos/protos/protos.js" + }, + "require": { + "types": "./build/protos/protos/protos.d.ts", + "default": "./build/protos/protos/protos.cjs" + } } }, "files": [ diff --git a/baselines/monitoring-esm/package.json b/baselines/monitoring-esm/package.json index f770a6142..ed861d559 100644 --- a/baselines/monitoring-esm/package.json +++ b/baselines/monitoring-esm/package.json @@ -18,6 +18,16 @@ "types": "./build/cjs/src/index.d.ts", "default": "./build/cjs/src/index.cjs" } + }, + "./build/protos/protos": { + "import": { + "types": "./build/protos/protos/protos.d.ts", + "default": "./build/protos/protos/protos.js" + }, + "require": { + "types": "./build/protos/protos/protos.d.ts", + "default": "./build/protos/protos/protos.cjs" + } } }, "files": [ diff --git a/baselines/naming-esm/package.json b/baselines/naming-esm/package.json index 245d408d2..059753360 100644 --- a/baselines/naming-esm/package.json +++ b/baselines/naming-esm/package.json @@ -18,6 +18,16 @@ "types": "./build/cjs/src/index.d.ts", "default": "./build/cjs/src/index.cjs" } + }, + "./build/protos/protos": { + "import": { + "types": "./build/protos/protos/protos.d.ts", + "default": "./build/protos/protos/protos.js" + }, + "require": { + "types": "./build/protos/protos/protos.d.ts", + "default": "./build/protos/protos/protos.cjs" + } } }, "files": [ diff --git a/baselines/redis-esm/package.json b/baselines/redis-esm/package.json index c1c5dd6bb..3fb5a14b3 100644 --- a/baselines/redis-esm/package.json +++ b/baselines/redis-esm/package.json @@ -18,6 +18,16 @@ "types": "./build/cjs/src/index.d.ts", "default": "./build/cjs/src/index.cjs" } + }, + "./build/protos/protos": { + "import": { + "types": "./build/protos/protos/protos.d.ts", + "default": "./build/protos/protos/protos.js" + }, + "require": { + "types": "./build/protos/protos/protos.d.ts", + "default": "./build/protos/protos/protos.cjs" + } } }, "files": [ diff --git a/baselines/routingtest-esm/package.json b/baselines/routingtest-esm/package.json index 89ff2c930..e7095dfd3 100644 --- a/baselines/routingtest-esm/package.json +++ b/baselines/routingtest-esm/package.json @@ -18,6 +18,16 @@ "types": "./build/cjs/src/index.d.ts", "default": "./build/cjs/src/index.cjs" } + }, + "./build/protos/protos": { + "import": { + "types": "./build/protos/protos/protos.d.ts", + "default": "./build/protos/protos/protos.js" + }, + "require": { + "types": "./build/protos/protos/protos.d.ts", + "default": "./build/protos/protos/protos.cjs" + } } }, "files": [ diff --git a/baselines/showcase-esm/package.json b/baselines/showcase-esm/package.json index 9a87b4b9c..691987cc7 100644 --- a/baselines/showcase-esm/package.json +++ b/baselines/showcase-esm/package.json @@ -18,6 +18,16 @@ "types": "./build/cjs/src/index.d.ts", "default": "./build/cjs/src/index.cjs" } + }, + "./build/protos/protos": { + "import": { + "types": "./build/protos/protos/protos.d.ts", + "default": "./build/protos/protos/protos.js" + }, + "require": { + "types": "./build/protos/protos/protos.d.ts", + "default": "./build/protos/protos/protos.cjs" + } } }, "files": [ diff --git a/baselines/showcase-legacy-esm/package.json b/baselines/showcase-legacy-esm/package.json index 78fdb7b9a..16ccdedc4 100644 --- a/baselines/showcase-legacy-esm/package.json +++ b/baselines/showcase-legacy-esm/package.json @@ -18,6 +18,16 @@ "types": "./build/cjs/src/index.d.ts", "default": "./build/cjs/src/index.cjs" } + }, + "./build/protos/protos": { + "import": { + "types": "./build/protos/protos/protos.d.ts", + "default": "./build/protos/protos/protos.js" + }, + "require": { + "types": "./build/protos/protos/protos.d.ts", + "default": "./build/protos/protos/protos.cjs" + } } }, "files": [ diff --git a/baselines/tasks-esm/package.json b/baselines/tasks-esm/package.json index dd078de95..8cb585bdc 100644 --- a/baselines/tasks-esm/package.json +++ b/baselines/tasks-esm/package.json @@ -18,6 +18,16 @@ "types": "./build/cjs/src/index.d.ts", "default": "./build/cjs/src/index.cjs" } + }, + "./build/protos/protos": { + "import": { + "types": "./build/protos/protos/protos.d.ts", + "default": "./build/protos/protos/protos.js" + }, + "require": { + "types": "./build/protos/protos/protos.d.ts", + "default": "./build/protos/protos/protos.cjs" + } } }, "files": [ diff --git a/baselines/texttospeech-esm/package.json b/baselines/texttospeech-esm/package.json index 8d3e8fe21..bc38535b9 100644 --- a/baselines/texttospeech-esm/package.json +++ b/baselines/texttospeech-esm/package.json @@ -18,6 +18,16 @@ "types": "./build/cjs/src/index.d.ts", "default": "./build/cjs/src/index.cjs" } + }, + "./build/protos/protos": { + "import": { + "types": "./build/protos/protos/protos.d.ts", + "default": "./build/protos/protos/protos.js" + }, + "require": { + "types": "./build/protos/protos/protos.d.ts", + "default": "./build/protos/protos/protos.cjs" + } } }, "files": [ diff --git a/baselines/translate-esm/package.json b/baselines/translate-esm/package.json index a2c3d950a..7dda97502 100644 --- a/baselines/translate-esm/package.json +++ b/baselines/translate-esm/package.json @@ -18,6 +18,16 @@ "types": "./build/cjs/src/index.d.ts", "default": "./build/cjs/src/index.cjs" } + }, + "./build/protos/protos": { + "import": { + "types": "./build/protos/protos/protos.d.ts", + "default": "./build/protos/protos/protos.js" + }, + "require": { + "types": "./build/protos/protos/protos.d.ts", + "default": "./build/protos/protos/protos.cjs" + } } }, "files": [ diff --git a/baselines/videointelligence-esm/package.json b/baselines/videointelligence-esm/package.json index 0c4cacbdc..5eff5d1fc 100644 --- a/baselines/videointelligence-esm/package.json +++ b/baselines/videointelligence-esm/package.json @@ -18,6 +18,16 @@ "types": "./build/cjs/src/index.d.ts", "default": "./build/cjs/src/index.cjs" } + }, + "./build/protos/protos": { + "import": { + "types": "./build/protos/protos/protos.d.ts", + "default": "./build/protos/protos/protos.js" + }, + "require": { + "types": "./build/protos/protos/protos.d.ts", + "default": "./build/protos/protos/protos.cjs" + } } }, "files": [ diff --git a/templates/esm/typescript_gapic/package.json b/templates/esm/typescript_gapic/package.json index 2d0123163..be0ec593b 100644 --- a/templates/esm/typescript_gapic/package.json +++ b/templates/esm/typescript_gapic/package.json @@ -19,6 +19,16 @@ "types": "./build/cjs/src/index.d.ts", "default": "./build/cjs/src/index.cjs" } + }, + "./build/protos/protos": { + "import": { + "types": "./build/protos/protos/protos.d.ts", + "default": "./build/protos/protos/protos.js" + }, + "require": { + "types": "./build/protos/protos/protos.d.ts", + "default": "./build/protos/protos/protos.cjs" + } } }, "files": [ From a281c3116f7ddb04a4d8eea43d652d63a3369851 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 23 Feb 2024 04:56:19 +0100 Subject: [PATCH 25/35] chore(deps): update dependency aspect_rules_js to v1.38.0 (#1546) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [aspect_rules_js](https://togithub.com/aspect-build/rules_js) | http_archive | minor | `v1.37.1` -> `v1.38.0` | --- ### Release Notes
aspect-build/rules_js (aspect_rules_js) ### [`v1.38.0`](https://togithub.com/aspect-build/rules_js/compare/v1.37.1...v1.38.0) [Compare Source](https://togithub.com/aspect-build/rules_js/compare/v1.37.1...v1.38.0)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/gapic-generator-typescript). --- repositories.bzl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/repositories.bzl b/repositories.bzl index f0f37f146..baacc40b9 100644 --- a/repositories.bzl +++ b/repositories.bzl @@ -5,9 +5,9 @@ def gapic_generator_typescript_repositories(): maybe( http_archive, name = "aspect_rules_js", - sha256 = "ab56f5e8b001926bef9a23261ff97e70b82b9cc1117a1e4cdc4231c6b8b43568", - strip_prefix = "rules_js-1.37.1", - url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v1.37.1.tar.gz", + sha256 = "46d63efa86b9f87670603022500f3f0a9893b914b401a40183cee59069249052", + strip_prefix = "rules_js-1.38.0", + url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v1.38.0.tar.gz", ) maybe( From f911ac838d09a1ed0c4e56ea41039a953ed0741c Mon Sep 17 00:00:00 2001 From: sofisl <55454395+sofisl@users.noreply.github.com> Date: Fri, 23 Feb 2024 11:06:44 -0800 Subject: [PATCH 26/35] fix: allow bundlers to bundle JSON files correctly (#1545) * fix: allow bundlers to bundle JSON files correctly --- .../esm/src/json-helper.cjs.baseline | 20 +++++++++++++++++++ .../src/v1/asset_service_client.ts.baseline | 15 +++++++++++--- baselines/asset-esm/package.json | 2 +- .../asset-esm/tsconfig.esm.json.baseline | 3 +++ .../esm/src/json-helper.cjs.baseline | 20 +++++++++++++++++++ .../big_query_storage_client.ts.baseline | 15 +++++++++++--- baselines/bigquery-storage-esm/package.json | 2 +- .../tsconfig.esm.json.baseline | 3 +++ .../esm/src/json-helper.cjs.baseline | 20 +++++++++++++++++++ .../esm/src/v1/addresses_client.ts.baseline | 15 +++++++++++--- .../v1/region_operations_client.ts.baseline | 15 +++++++++++--- baselines/compute-esm/package.json | 2 +- .../compute-esm/tsconfig.esm.json.baseline | 3 +++ .../esm/src/json-helper.cjs.baseline | 20 +++++++++++++++++++ .../v1/deprecated_service_client.ts.baseline | 15 +++++++++++--- baselines/deprecatedtest-esm/package.json | 2 +- .../tsconfig.esm.json.baseline | 3 +++ .../esm/src/json-helper.cjs.baseline | 20 +++++++++++++++++++ .../src/v1beta1/compliance_client.ts.baseline | 15 +++++++++++--- .../esm/src/v1beta1/echo_client.ts.baseline | 15 +++++++++++--- .../src/v1beta1/identity_client.ts.baseline | 15 +++++++++++--- .../src/v1beta1/messaging_client.ts.baseline | 15 +++++++++++--- .../sequence_service_client.ts.baseline | 15 +++++++++++--- .../src/v1beta1/testing_client.ts.baseline | 15 +++++++++++--- .../disable-packing-test-esm/package.json | 2 +- .../tsconfig.esm.json.baseline | 3 +++ .../dlp-esm/esm/src/json-helper.cjs.baseline | 20 +++++++++++++++++++ .../esm/src/v2/dlp_service_client.ts.baseline | 15 +++++++++++--- baselines/dlp-esm/package.json | 2 +- baselines/dlp-esm/tsconfig.esm.json.baseline | 3 +++ .../kms-esm/esm/src/json-helper.cjs.baseline | 20 +++++++++++++++++++ .../key_management_service_client.ts.baseline | 15 +++++++++++--- baselines/kms-esm/package.json | 2 +- baselines/kms-esm/tsconfig.esm.json.baseline | 3 +++ .../esm/src/json-helper.cjs.baseline | 20 +++++++++++++++++++ .../v2/config_service_v2_client.ts.baseline | 15 +++++++++++--- .../v2/logging_service_v2_client.ts.baseline | 15 +++++++++++--- .../v2/metrics_service_v2_client.ts.baseline | 15 +++++++++++--- baselines/logging-esm/package.json | 2 +- .../logging-esm/tsconfig.esm.json.baseline | 3 +++ .../esm/src/json-helper.cjs.baseline | 20 +++++++++++++++++++ .../alert_policy_service_client.ts.baseline | 15 +++++++++++--- .../src/v3/group_service_client.ts.baseline | 15 +++++++++++--- .../src/v3/metric_service_client.ts.baseline | 15 +++++++++++--- ...ication_channel_service_client.ts.baseline | 15 +++++++++++--- ...vice_monitoring_service_client.ts.baseline | 15 +++++++++++--- .../uptime_check_service_client.ts.baseline | 15 +++++++++++--- baselines/monitoring-esm/package.json | 2 +- .../monitoring-esm/tsconfig.esm.json.baseline | 3 +++ .../esm/src/json-helper.cjs.baseline | 20 +++++++++++++++++++ .../esm/src/v1beta1/naming_client.ts.baseline | 15 +++++++++++--- baselines/naming-esm/package.json | 2 +- .../naming-esm/tsconfig.esm.json.baseline | 3 +++ .../esm/src/json-helper.cjs.baseline | 20 +++++++++++++++++++ .../v1beta1/cloud_redis_client.ts.baseline | 15 +++++++++++--- baselines/redis-esm/package.json | 2 +- .../redis-esm/tsconfig.esm.json.baseline | 3 +++ .../esm/src/json-helper.cjs.baseline | 20 +++++++++++++++++++ .../src/v1/test_service_client.ts.baseline | 15 +++++++++++--- baselines/routingtest-esm/package.json | 2 +- .../tsconfig.esm.json.baseline | 3 +++ .../esm/src/json-helper.cjs.baseline | 20 +++++++++++++++++++ .../src/v1beta1/compliance_client.ts.baseline | 15 +++++++++++--- .../esm/src/v1beta1/echo_client.ts.baseline | 15 +++++++++++--- .../src/v1beta1/identity_client.ts.baseline | 15 +++++++++++--- .../src/v1beta1/messaging_client.ts.baseline | 15 +++++++++++--- .../sequence_service_client.ts.baseline | 15 +++++++++++--- .../src/v1beta1/testing_client.ts.baseline | 15 +++++++++++--- baselines/showcase-esm/package.json | 2 +- .../showcase-esm/tsconfig.esm.json.baseline | 3 +++ .../esm/src/json-helper.cjs.baseline | 20 +++++++++++++++++++ .../esm/src/v1beta1/echo_client.ts.baseline | 10 ++++++++-- baselines/showcase-legacy-esm/package.json | 2 +- .../tsconfig.esm.json.baseline | 3 +++ .../esm/src/json-helper.cjs.baseline | 20 +++++++++++++++++++ .../esm/src/v2/cloud_tasks_client.ts.baseline | 15 +++++++++++--- baselines/tasks-esm/package.json | 2 +- .../tasks-esm/tsconfig.esm.json.baseline | 3 +++ .../esm/src/json-helper.cjs.baseline | 20 +++++++++++++++++++ .../src/v1/text_to_speech_client.ts.baseline | 15 +++++++++++--- baselines/texttospeech-esm/package.json | 2 +- .../tsconfig.esm.json.baseline | 3 +++ .../esm/src/json-helper.cjs.baseline | 20 +++++++++++++++++++ .../translation_service_client.ts.baseline | 15 +++++++++++--- baselines/translate-esm/package.json | 2 +- .../translate-esm/tsconfig.esm.json.baseline | 3 +++ .../esm/src/json-helper.cjs.baseline | 20 +++++++++++++++++++ ...eo_intelligence_service_client.ts.baseline | 15 +++++++++++--- baselines/videointelligence-esm/package.json | 2 +- .../tsconfig.esm.json.baseline | 3 +++ .../esm/src/$version/$service_client.ts.njk | 17 +++++++++++----- .../esm/src/json-helper.cjs.njk | 20 +++++++++++++++++++ templates/esm/typescript_gapic/package.json | 2 +- .../typescript_gapic/tsconfig.esm.json.njk | 3 +++ 94 files changed, 896 insertions(+), 131 deletions(-) create mode 100644 baselines/asset-esm/esm/src/json-helper.cjs.baseline create mode 100644 baselines/bigquery-storage-esm/esm/src/json-helper.cjs.baseline create mode 100644 baselines/compute-esm/esm/src/json-helper.cjs.baseline create mode 100644 baselines/deprecatedtest-esm/esm/src/json-helper.cjs.baseline create mode 100644 baselines/disable-packing-test-esm/esm/src/json-helper.cjs.baseline create mode 100644 baselines/dlp-esm/esm/src/json-helper.cjs.baseline create mode 100644 baselines/kms-esm/esm/src/json-helper.cjs.baseline create mode 100644 baselines/logging-esm/esm/src/json-helper.cjs.baseline create mode 100644 baselines/monitoring-esm/esm/src/json-helper.cjs.baseline create mode 100644 baselines/naming-esm/esm/src/json-helper.cjs.baseline create mode 100644 baselines/redis-esm/esm/src/json-helper.cjs.baseline create mode 100644 baselines/routingtest-esm/esm/src/json-helper.cjs.baseline create mode 100644 baselines/showcase-esm/esm/src/json-helper.cjs.baseline create mode 100644 baselines/showcase-legacy-esm/esm/src/json-helper.cjs.baseline create mode 100644 baselines/tasks-esm/esm/src/json-helper.cjs.baseline create mode 100644 baselines/texttospeech-esm/esm/src/json-helper.cjs.baseline create mode 100644 baselines/translate-esm/esm/src/json-helper.cjs.baseline create mode 100644 baselines/videointelligence-esm/esm/src/json-helper.cjs.baseline create mode 100644 templates/esm/typescript_gapic/esm/src/json-helper.cjs.njk diff --git a/baselines/asset-esm/esm/src/json-helper.cjs.baseline b/baselines/asset-esm/esm/src/json-helper.cjs.baseline new file mode 100644 index 000000000..3c1fc7302 --- /dev/null +++ b/baselines/asset-esm/esm/src/json-helper.cjs.baseline @@ -0,0 +1,20 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/* eslint-disable node/no-missing-require */ +function getJSON(path) { + return require(path); +} + +exports.getJSON = getJSON; diff --git a/baselines/asset-esm/esm/src/v1/asset_service_client.ts.baseline b/baselines/asset-esm/esm/src/v1/asset_service_client.ts.baseline index 57eb44789..ad72f4afb 100644 --- a/baselines/asset-esm/esm/src/v1/asset_service_client.ts.baseline +++ b/baselines/asset-esm/esm/src/v1/asset_service_client.ts.baseline @@ -26,6 +26,7 @@ import * as asset_service_client_config from './asset_service_client_config.json import fs from 'fs'; import path from 'path'; import {fileURLToPath} from 'url'; +import {getJSON} from '../json-helper.cjs'; // @ts-ignore const dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -34,9 +35,17 @@ const dirname = path.dirname(fileURLToPath(import.meta.url)); * `src/v1/asset_service_client_config.json`. * This file defines retry strategy and timeouts for all API methods in this library. */ -const gapicConfig = JSON.parse(fs.readFileSync(path.join(dirname, 'asset_service_client_config.json'),'utf8')); -const jsonProtos = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', 'protos/protos.json'), 'utf8')); -const version = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', '..', 'package.json'), 'utf8')).version; +const gapicConfig = getJSON( + path.join(dirname, 'asset_service_client_config.json') +); + +const jsonProtos = getJSON( + path.join(dirname, '..', '..', '..', 'protos/protos.json') +); + +const version = getJSON( + path.join(dirname, '..', '..', '..', '..', 'package.json') +).version; /** * Asset service definition. diff --git a/baselines/asset-esm/package.json b/baselines/asset-esm/package.json index ce25be7c8..80b892031 100644 --- a/baselines/asset-esm/package.json +++ b/baselines/asset-esm/package.json @@ -66,7 +66,7 @@ "test:cjs": "c8 mocha build/cjs/test", "test:esm": "c8 mocha build/esm/test", "test": "npm run test:cjs && npm run test:esm", - "compile:esm": "tsc -p ./tsconfig.esm.json", + "compile:esm": "tsc -p ./tsconfig.esm.json && cp -r esm/src/json-helper.cjs build/esm/src/json-helper.cjs", "babel": "babel esm --out-dir build/cjs --ignore \"esm/**/*.d.ts\" --extensions \".ts\" --out-file-extension .cjs --copy-files", "compile:cjs": "tsc -p ./tsconfig.json && npm run babel", "compile": "npm run compile:esm && npm run compile:cjs && cp -r protos build/protos", diff --git a/baselines/asset-esm/tsconfig.esm.json.baseline b/baselines/asset-esm/tsconfig.esm.json.baseline index c2cf8c94c..1ea52fa0e 100644 --- a/baselines/asset-esm/tsconfig.esm.json.baseline +++ b/baselines/asset-esm/tsconfig.esm.json.baseline @@ -20,5 +20,8 @@ "esm/test/*.ts", "esm/test/**/*.ts", "esm/system-test/*.ts" + ], + "exclude": [ + "esm/src/json-helper.cjs" ] } diff --git a/baselines/bigquery-storage-esm/esm/src/json-helper.cjs.baseline b/baselines/bigquery-storage-esm/esm/src/json-helper.cjs.baseline new file mode 100644 index 000000000..3c1fc7302 --- /dev/null +++ b/baselines/bigquery-storage-esm/esm/src/json-helper.cjs.baseline @@ -0,0 +1,20 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/* eslint-disable node/no-missing-require */ +function getJSON(path) { + return require(path); +} + +exports.getJSON = getJSON; diff --git a/baselines/bigquery-storage-esm/esm/src/v1beta1/big_query_storage_client.ts.baseline b/baselines/bigquery-storage-esm/esm/src/v1beta1/big_query_storage_client.ts.baseline index 720d948ee..4fe92c6b6 100644 --- a/baselines/bigquery-storage-esm/esm/src/v1beta1/big_query_storage_client.ts.baseline +++ b/baselines/bigquery-storage-esm/esm/src/v1beta1/big_query_storage_client.ts.baseline @@ -26,6 +26,7 @@ import * as big_query_storage_client_config from './big_query_storage_client_con import fs from 'fs'; import path from 'path'; import {fileURLToPath} from 'url'; +import {getJSON} from '../json-helper.cjs'; // @ts-ignore const dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -34,9 +35,17 @@ const dirname = path.dirname(fileURLToPath(import.meta.url)); * `src/v1beta1/big_query_storage_client_config.json`. * This file defines retry strategy and timeouts for all API methods in this library. */ -const gapicConfig = JSON.parse(fs.readFileSync(path.join(dirname, 'big_query_storage_client_config.json'),'utf8')); -const jsonProtos = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', 'protos/protos.json'), 'utf8')); -const version = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', '..', 'package.json'), 'utf8')).version; +const gapicConfig = getJSON( + path.join(dirname, 'big_query_storage_client_config.json') +); + +const jsonProtos = getJSON( + path.join(dirname, '..', '..', '..', 'protos/protos.json') +); + +const version = getJSON( + path.join(dirname, '..', '..', '..', '..', 'package.json') +).version; /** * BigQuery storage API. diff --git a/baselines/bigquery-storage-esm/package.json b/baselines/bigquery-storage-esm/package.json index f9bf4b79f..8629e82b0 100644 --- a/baselines/bigquery-storage-esm/package.json +++ b/baselines/bigquery-storage-esm/package.json @@ -66,7 +66,7 @@ "test:cjs": "c8 mocha build/cjs/test", "test:esm": "c8 mocha build/esm/test", "test": "npm run test:cjs && npm run test:esm", - "compile:esm": "tsc -p ./tsconfig.esm.json", + "compile:esm": "tsc -p ./tsconfig.esm.json && cp -r esm/src/json-helper.cjs build/esm/src/json-helper.cjs", "babel": "babel esm --out-dir build/cjs --ignore \"esm/**/*.d.ts\" --extensions \".ts\" --out-file-extension .cjs --copy-files", "compile:cjs": "tsc -p ./tsconfig.json && npm run babel", "compile": "npm run compile:esm && npm run compile:cjs && cp -r protos build/protos", diff --git a/baselines/bigquery-storage-esm/tsconfig.esm.json.baseline b/baselines/bigquery-storage-esm/tsconfig.esm.json.baseline index c2cf8c94c..1ea52fa0e 100644 --- a/baselines/bigquery-storage-esm/tsconfig.esm.json.baseline +++ b/baselines/bigquery-storage-esm/tsconfig.esm.json.baseline @@ -20,5 +20,8 @@ "esm/test/*.ts", "esm/test/**/*.ts", "esm/system-test/*.ts" + ], + "exclude": [ + "esm/src/json-helper.cjs" ] } diff --git a/baselines/compute-esm/esm/src/json-helper.cjs.baseline b/baselines/compute-esm/esm/src/json-helper.cjs.baseline new file mode 100644 index 000000000..3c1fc7302 --- /dev/null +++ b/baselines/compute-esm/esm/src/json-helper.cjs.baseline @@ -0,0 +1,20 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/* eslint-disable node/no-missing-require */ +function getJSON(path) { + return require(path); +} + +exports.getJSON = getJSON; diff --git a/baselines/compute-esm/esm/src/v1/addresses_client.ts.baseline b/baselines/compute-esm/esm/src/v1/addresses_client.ts.baseline index 8684eb752..2c2fed31f 100644 --- a/baselines/compute-esm/esm/src/v1/addresses_client.ts.baseline +++ b/baselines/compute-esm/esm/src/v1/addresses_client.ts.baseline @@ -26,6 +26,7 @@ import * as addresses_client_config from './addresses_client_config.json'; import fs from 'fs'; import path from 'path'; import {fileURLToPath} from 'url'; +import {getJSON} from '../json-helper.cjs'; // @ts-ignore const dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -34,9 +35,17 @@ const dirname = path.dirname(fileURLToPath(import.meta.url)); * `src/v1/addresses_client_config.json`. * This file defines retry strategy and timeouts for all API methods in this library. */ -const gapicConfig = JSON.parse(fs.readFileSync(path.join(dirname, 'addresses_client_config.json'),'utf8')); -const jsonProtos = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', 'protos/protos.json'), 'utf8')); -const version = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', '..', 'package.json'), 'utf8')).version; +const gapicConfig = getJSON( + path.join(dirname, 'addresses_client_config.json') +); + +const jsonProtos = getJSON( + path.join(dirname, '..', '..', '..', 'protos/protos.json') +); + +const version = getJSON( + path.join(dirname, '..', '..', '..', '..', 'package.json') +).version; /** * diff --git a/baselines/compute-esm/esm/src/v1/region_operations_client.ts.baseline b/baselines/compute-esm/esm/src/v1/region_operations_client.ts.baseline index 56f561f01..3493ca25c 100644 --- a/baselines/compute-esm/esm/src/v1/region_operations_client.ts.baseline +++ b/baselines/compute-esm/esm/src/v1/region_operations_client.ts.baseline @@ -26,6 +26,7 @@ import * as region_operations_client_config from './region_operations_client_con import fs from 'fs'; import path from 'path'; import {fileURLToPath} from 'url'; +import {getJSON} from '../json-helper.cjs'; // @ts-ignore const dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -34,9 +35,17 @@ const dirname = path.dirname(fileURLToPath(import.meta.url)); * `src/v1/region_operations_client_config.json`. * This file defines retry strategy and timeouts for all API methods in this library. */ -const gapicConfig = JSON.parse(fs.readFileSync(path.join(dirname, 'region_operations_client_config.json'),'utf8')); -const jsonProtos = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', 'protos/protos.json'), 'utf8')); -const version = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', '..', 'package.json'), 'utf8')).version; +const gapicConfig = getJSON( + path.join(dirname, 'region_operations_client_config.json') +); + +const jsonProtos = getJSON( + path.join(dirname, '..', '..', '..', 'protos/protos.json') +); + +const version = getJSON( + path.join(dirname, '..', '..', '..', '..', 'package.json') +).version; /** * The RegionOperations API. diff --git a/baselines/compute-esm/package.json b/baselines/compute-esm/package.json index 79690e78d..98bab38fb 100644 --- a/baselines/compute-esm/package.json +++ b/baselines/compute-esm/package.json @@ -67,7 +67,7 @@ "test:cjs": "c8 mocha build/cjs/test", "test:esm": "c8 mocha build/esm/test", "test": "npm run test:cjs && npm run test:esm", - "compile:esm": "tsc -p ./tsconfig.esm.json", + "compile:esm": "tsc -p ./tsconfig.esm.json && cp -r esm/src/json-helper.cjs build/esm/src/json-helper.cjs", "babel": "babel esm --out-dir build/cjs --ignore \"esm/**/*.d.ts\" --extensions \".ts\" --out-file-extension .cjs --copy-files", "compile:cjs": "tsc -p ./tsconfig.json && npm run babel", "compile": "npm run compile:esm && npm run compile:cjs && cp -r protos build/protos", diff --git a/baselines/compute-esm/tsconfig.esm.json.baseline b/baselines/compute-esm/tsconfig.esm.json.baseline index c2cf8c94c..1ea52fa0e 100644 --- a/baselines/compute-esm/tsconfig.esm.json.baseline +++ b/baselines/compute-esm/tsconfig.esm.json.baseline @@ -20,5 +20,8 @@ "esm/test/*.ts", "esm/test/**/*.ts", "esm/system-test/*.ts" + ], + "exclude": [ + "esm/src/json-helper.cjs" ] } diff --git a/baselines/deprecatedtest-esm/esm/src/json-helper.cjs.baseline b/baselines/deprecatedtest-esm/esm/src/json-helper.cjs.baseline new file mode 100644 index 000000000..3c1fc7302 --- /dev/null +++ b/baselines/deprecatedtest-esm/esm/src/json-helper.cjs.baseline @@ -0,0 +1,20 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/* eslint-disable node/no-missing-require */ +function getJSON(path) { + return require(path); +} + +exports.getJSON = getJSON; diff --git a/baselines/deprecatedtest-esm/esm/src/v1/deprecated_service_client.ts.baseline b/baselines/deprecatedtest-esm/esm/src/v1/deprecated_service_client.ts.baseline index b3ab770aa..473d104e1 100644 --- a/baselines/deprecatedtest-esm/esm/src/v1/deprecated_service_client.ts.baseline +++ b/baselines/deprecatedtest-esm/esm/src/v1/deprecated_service_client.ts.baseline @@ -26,6 +26,7 @@ import * as deprecated_service_client_config from './deprecated_service_client_c import fs from 'fs'; import path from 'path'; import {fileURLToPath} from 'url'; +import {getJSON} from '../json-helper.cjs'; // @ts-ignore const dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -34,9 +35,17 @@ const dirname = path.dirname(fileURLToPath(import.meta.url)); * `src/v1/deprecated_service_client_config.json`. * This file defines retry strategy and timeouts for all API methods in this library. */ -const gapicConfig = JSON.parse(fs.readFileSync(path.join(dirname, 'deprecated_service_client_config.json'),'utf8')); -const jsonProtos = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', 'protos/protos.json'), 'utf8')); -const version = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', '..', 'package.json'), 'utf8')).version; +const gapicConfig = getJSON( + path.join(dirname, 'deprecated_service_client_config.json') +); + +const jsonProtos = getJSON( + path.join(dirname, '..', '..', '..', 'protos/protos.json') +); + +const version = getJSON( + path.join(dirname, '..', '..', '..', '..', 'package.json') +).version; /** * This is a service description. diff --git a/baselines/deprecatedtest-esm/package.json b/baselines/deprecatedtest-esm/package.json index 1b81b5b79..cd63f9992 100644 --- a/baselines/deprecatedtest-esm/package.json +++ b/baselines/deprecatedtest-esm/package.json @@ -66,7 +66,7 @@ "test:cjs": "c8 mocha build/cjs/test", "test:esm": "c8 mocha build/esm/test", "test": "npm run test:cjs && npm run test:esm", - "compile:esm": "tsc -p ./tsconfig.esm.json", + "compile:esm": "tsc -p ./tsconfig.esm.json && cp -r esm/src/json-helper.cjs build/esm/src/json-helper.cjs", "babel": "babel esm --out-dir build/cjs --ignore \"esm/**/*.d.ts\" --extensions \".ts\" --out-file-extension .cjs --copy-files", "compile:cjs": "tsc -p ./tsconfig.json && npm run babel", "compile": "npm run compile:esm && npm run compile:cjs && cp -r protos build/protos", diff --git a/baselines/deprecatedtest-esm/tsconfig.esm.json.baseline b/baselines/deprecatedtest-esm/tsconfig.esm.json.baseline index c2cf8c94c..1ea52fa0e 100644 --- a/baselines/deprecatedtest-esm/tsconfig.esm.json.baseline +++ b/baselines/deprecatedtest-esm/tsconfig.esm.json.baseline @@ -20,5 +20,8 @@ "esm/test/*.ts", "esm/test/**/*.ts", "esm/system-test/*.ts" + ], + "exclude": [ + "esm/src/json-helper.cjs" ] } diff --git a/baselines/disable-packing-test-esm/esm/src/json-helper.cjs.baseline b/baselines/disable-packing-test-esm/esm/src/json-helper.cjs.baseline new file mode 100644 index 000000000..3c1fc7302 --- /dev/null +++ b/baselines/disable-packing-test-esm/esm/src/json-helper.cjs.baseline @@ -0,0 +1,20 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/* eslint-disable node/no-missing-require */ +function getJSON(path) { + return require(path); +} + +exports.getJSON = getJSON; diff --git a/baselines/disable-packing-test-esm/esm/src/v1beta1/compliance_client.ts.baseline b/baselines/disable-packing-test-esm/esm/src/v1beta1/compliance_client.ts.baseline index 5dd195465..88958fc57 100644 --- a/baselines/disable-packing-test-esm/esm/src/v1beta1/compliance_client.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/src/v1beta1/compliance_client.ts.baseline @@ -26,6 +26,7 @@ import * as compliance_client_config from './compliance_client_config.json'; import fs from 'fs'; import path from 'path'; import {fileURLToPath} from 'url'; +import {getJSON} from '../json-helper.cjs'; // @ts-ignore const dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -34,9 +35,17 @@ const dirname = path.dirname(fileURLToPath(import.meta.url)); * `src/v1beta1/compliance_client_config.json`. * This file defines retry strategy and timeouts for all API methods in this library. */ -const gapicConfig = JSON.parse(fs.readFileSync(path.join(dirname, 'compliance_client_config.json'),'utf8')); -const jsonProtos = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', 'protos/protos.json'), 'utf8')); -const version = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', '..', 'package.json'), 'utf8')).version; +const gapicConfig = getJSON( + path.join(dirname, 'compliance_client_config.json') +); + +const jsonProtos = getJSON( + path.join(dirname, '..', '..', '..', 'protos/protos.json') +); + +const version = getJSON( + path.join(dirname, '..', '..', '..', '..', 'package.json') +).version; /** * This service is used to test that GAPICs implement various REST-related features correctly. This mostly means transcoding proto3 requests to REST format diff --git a/baselines/disable-packing-test-esm/esm/src/v1beta1/echo_client.ts.baseline b/baselines/disable-packing-test-esm/esm/src/v1beta1/echo_client.ts.baseline index 4bad0e4fd..c560a2c14 100644 --- a/baselines/disable-packing-test-esm/esm/src/v1beta1/echo_client.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/src/v1beta1/echo_client.ts.baseline @@ -26,6 +26,7 @@ import * as echo_client_config from './echo_client_config.json'; import fs from 'fs'; import path from 'path'; import {fileURLToPath} from 'url'; +import {getJSON} from '../json-helper.cjs'; // @ts-ignore const dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -34,9 +35,17 @@ const dirname = path.dirname(fileURLToPath(import.meta.url)); * `src/v1beta1/echo_client_config.json`. * This file defines retry strategy and timeouts for all API methods in this library. */ -const gapicConfig = JSON.parse(fs.readFileSync(path.join(dirname, 'echo_client_config.json'),'utf8')); -const jsonProtos = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', 'protos/protos.json'), 'utf8')); -const version = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', '..', 'package.json'), 'utf8')).version; +const gapicConfig = getJSON( + path.join(dirname, 'echo_client_config.json') +); + +const jsonProtos = getJSON( + path.join(dirname, '..', '..', '..', 'protos/protos.json') +); + +const version = getJSON( + path.join(dirname, '..', '..', '..', '..', 'package.json') +).version; /** * This service is used showcase the four main types of rpcs - unary, server diff --git a/baselines/disable-packing-test-esm/esm/src/v1beta1/identity_client.ts.baseline b/baselines/disable-packing-test-esm/esm/src/v1beta1/identity_client.ts.baseline index f467cd786..a7ea0d049 100644 --- a/baselines/disable-packing-test-esm/esm/src/v1beta1/identity_client.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/src/v1beta1/identity_client.ts.baseline @@ -26,6 +26,7 @@ import * as identity_client_config from './identity_client_config.json'; import fs from 'fs'; import path from 'path'; import {fileURLToPath} from 'url'; +import {getJSON} from '../json-helper.cjs'; // @ts-ignore const dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -34,9 +35,17 @@ const dirname = path.dirname(fileURLToPath(import.meta.url)); * `src/v1beta1/identity_client_config.json`. * This file defines retry strategy and timeouts for all API methods in this library. */ -const gapicConfig = JSON.parse(fs.readFileSync(path.join(dirname, 'identity_client_config.json'),'utf8')); -const jsonProtos = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', 'protos/protos.json'), 'utf8')); -const version = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', '..', 'package.json'), 'utf8')).version; +const gapicConfig = getJSON( + path.join(dirname, 'identity_client_config.json') +); + +const jsonProtos = getJSON( + path.join(dirname, '..', '..', '..', 'protos/protos.json') +); + +const version = getJSON( + path.join(dirname, '..', '..', '..', '..', 'package.json') +).version; /** * A simple identity service. diff --git a/baselines/disable-packing-test-esm/esm/src/v1beta1/messaging_client.ts.baseline b/baselines/disable-packing-test-esm/esm/src/v1beta1/messaging_client.ts.baseline index f9bc37e02..688e1a188 100644 --- a/baselines/disable-packing-test-esm/esm/src/v1beta1/messaging_client.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/src/v1beta1/messaging_client.ts.baseline @@ -26,6 +26,7 @@ import * as messaging_client_config from './messaging_client_config.json'; import fs from 'fs'; import path from 'path'; import {fileURLToPath} from 'url'; +import {getJSON} from '../json-helper.cjs'; // @ts-ignore const dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -34,9 +35,17 @@ const dirname = path.dirname(fileURLToPath(import.meta.url)); * `src/v1beta1/messaging_client_config.json`. * This file defines retry strategy and timeouts for all API methods in this library. */ -const gapicConfig = JSON.parse(fs.readFileSync(path.join(dirname, 'messaging_client_config.json'),'utf8')); -const jsonProtos = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', 'protos/protos.json'), 'utf8')); -const version = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', '..', 'package.json'), 'utf8')).version; +const gapicConfig = getJSON( + path.join(dirname, 'messaging_client_config.json') +); + +const jsonProtos = getJSON( + path.join(dirname, '..', '..', '..', 'protos/protos.json') +); + +const version = getJSON( + path.join(dirname, '..', '..', '..', '..', 'package.json') +).version; /** * A simple messaging service that implements chat rooms and profile posts. diff --git a/baselines/disable-packing-test-esm/esm/src/v1beta1/sequence_service_client.ts.baseline b/baselines/disable-packing-test-esm/esm/src/v1beta1/sequence_service_client.ts.baseline index 2456ede8e..9a3e70c41 100644 --- a/baselines/disable-packing-test-esm/esm/src/v1beta1/sequence_service_client.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/src/v1beta1/sequence_service_client.ts.baseline @@ -26,6 +26,7 @@ import * as sequence_service_client_config from './sequence_service_client_confi import fs from 'fs'; import path from 'path'; import {fileURLToPath} from 'url'; +import {getJSON} from '../json-helper.cjs'; // @ts-ignore const dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -34,9 +35,17 @@ const dirname = path.dirname(fileURLToPath(import.meta.url)); * `src/v1beta1/sequence_service_client_config.json`. * This file defines retry strategy and timeouts for all API methods in this library. */ -const gapicConfig = JSON.parse(fs.readFileSync(path.join(dirname, 'sequence_service_client_config.json'),'utf8')); -const jsonProtos = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', 'protos/protos.json'), 'utf8')); -const version = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', '..', 'package.json'), 'utf8')).version; +const gapicConfig = getJSON( + path.join(dirname, 'sequence_service_client_config.json') +); + +const jsonProtos = getJSON( + path.join(dirname, '..', '..', '..', 'protos/protos.json') +); + +const version = getJSON( + path.join(dirname, '..', '..', '..', '..', 'package.json') +).version; /** * @class diff --git a/baselines/disable-packing-test-esm/esm/src/v1beta1/testing_client.ts.baseline b/baselines/disable-packing-test-esm/esm/src/v1beta1/testing_client.ts.baseline index d18027439..abacf7e01 100644 --- a/baselines/disable-packing-test-esm/esm/src/v1beta1/testing_client.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/src/v1beta1/testing_client.ts.baseline @@ -26,6 +26,7 @@ import * as testing_client_config from './testing_client_config.json'; import fs from 'fs'; import path from 'path'; import {fileURLToPath} from 'url'; +import {getJSON} from '../json-helper.cjs'; // @ts-ignore const dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -34,9 +35,17 @@ const dirname = path.dirname(fileURLToPath(import.meta.url)); * `src/v1beta1/testing_client_config.json`. * This file defines retry strategy and timeouts for all API methods in this library. */ -const gapicConfig = JSON.parse(fs.readFileSync(path.join(dirname, 'testing_client_config.json'),'utf8')); -const jsonProtos = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', 'protos/protos.json'), 'utf8')); -const version = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', '..', 'package.json'), 'utf8')).version; +const gapicConfig = getJSON( + path.join(dirname, 'testing_client_config.json') +); + +const jsonProtos = getJSON( + path.join(dirname, '..', '..', '..', 'protos/protos.json') +); + +const version = getJSON( + path.join(dirname, '..', '..', '..', '..', 'package.json') +).version; /** * A service to facilitate running discrete sets of tests diff --git a/baselines/disable-packing-test-esm/package.json b/baselines/disable-packing-test-esm/package.json index 691987cc7..117e6c082 100644 --- a/baselines/disable-packing-test-esm/package.json +++ b/baselines/disable-packing-test-esm/package.json @@ -71,7 +71,7 @@ "test:cjs": "c8 mocha build/cjs/test", "test:esm": "c8 mocha build/esm/test", "test": "npm run test:cjs && npm run test:esm", - "compile:esm": "tsc -p ./tsconfig.esm.json", + "compile:esm": "tsc -p ./tsconfig.esm.json && cp -r esm/src/json-helper.cjs build/esm/src/json-helper.cjs", "babel": "babel esm --out-dir build/cjs --ignore \"esm/**/*.d.ts\" --extensions \".ts\" --out-file-extension .cjs --copy-files", "compile:cjs": "tsc -p ./tsconfig.json && npm run babel", "compile": "npm run compile:esm && npm run compile:cjs && cp -r protos build/protos", diff --git a/baselines/disable-packing-test-esm/tsconfig.esm.json.baseline b/baselines/disable-packing-test-esm/tsconfig.esm.json.baseline index c2cf8c94c..1ea52fa0e 100644 --- a/baselines/disable-packing-test-esm/tsconfig.esm.json.baseline +++ b/baselines/disable-packing-test-esm/tsconfig.esm.json.baseline @@ -20,5 +20,8 @@ "esm/test/*.ts", "esm/test/**/*.ts", "esm/system-test/*.ts" + ], + "exclude": [ + "esm/src/json-helper.cjs" ] } diff --git a/baselines/dlp-esm/esm/src/json-helper.cjs.baseline b/baselines/dlp-esm/esm/src/json-helper.cjs.baseline new file mode 100644 index 000000000..3c1fc7302 --- /dev/null +++ b/baselines/dlp-esm/esm/src/json-helper.cjs.baseline @@ -0,0 +1,20 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/* eslint-disable node/no-missing-require */ +function getJSON(path) { + return require(path); +} + +exports.getJSON = getJSON; diff --git a/baselines/dlp-esm/esm/src/v2/dlp_service_client.ts.baseline b/baselines/dlp-esm/esm/src/v2/dlp_service_client.ts.baseline index 1fe28113e..e7f32ef70 100644 --- a/baselines/dlp-esm/esm/src/v2/dlp_service_client.ts.baseline +++ b/baselines/dlp-esm/esm/src/v2/dlp_service_client.ts.baseline @@ -26,6 +26,7 @@ import * as dlp_service_client_config from './dlp_service_client_config.json'; import fs from 'fs'; import path from 'path'; import {fileURLToPath} from 'url'; +import {getJSON} from '../json-helper.cjs'; // @ts-ignore const dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -34,9 +35,17 @@ const dirname = path.dirname(fileURLToPath(import.meta.url)); * `src/v2/dlp_service_client_config.json`. * This file defines retry strategy and timeouts for all API methods in this library. */ -const gapicConfig = JSON.parse(fs.readFileSync(path.join(dirname, 'dlp_service_client_config.json'),'utf8')); -const jsonProtos = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', 'protos/protos.json'), 'utf8')); -const version = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', '..', 'package.json'), 'utf8')).version; +const gapicConfig = getJSON( + path.join(dirname, 'dlp_service_client_config.json') +); + +const jsonProtos = getJSON( + path.join(dirname, '..', '..', '..', 'protos/protos.json') +); + +const version = getJSON( + path.join(dirname, '..', '..', '..', '..', 'package.json') +).version; /** * The Cloud Data Loss Prevention (DLP) API is a service that allows clients diff --git a/baselines/dlp-esm/package.json b/baselines/dlp-esm/package.json index b7df18030..c3c793680 100644 --- a/baselines/dlp-esm/package.json +++ b/baselines/dlp-esm/package.json @@ -66,7 +66,7 @@ "test:cjs": "c8 mocha build/cjs/test", "test:esm": "c8 mocha build/esm/test", "test": "npm run test:cjs && npm run test:esm", - "compile:esm": "tsc -p ./tsconfig.esm.json", + "compile:esm": "tsc -p ./tsconfig.esm.json && cp -r esm/src/json-helper.cjs build/esm/src/json-helper.cjs", "babel": "babel esm --out-dir build/cjs --ignore \"esm/**/*.d.ts\" --extensions \".ts\" --out-file-extension .cjs --copy-files", "compile:cjs": "tsc -p ./tsconfig.json && npm run babel", "compile": "npm run compile:esm && npm run compile:cjs && cp -r protos build/protos", diff --git a/baselines/dlp-esm/tsconfig.esm.json.baseline b/baselines/dlp-esm/tsconfig.esm.json.baseline index c2cf8c94c..1ea52fa0e 100644 --- a/baselines/dlp-esm/tsconfig.esm.json.baseline +++ b/baselines/dlp-esm/tsconfig.esm.json.baseline @@ -20,5 +20,8 @@ "esm/test/*.ts", "esm/test/**/*.ts", "esm/system-test/*.ts" + ], + "exclude": [ + "esm/src/json-helper.cjs" ] } diff --git a/baselines/kms-esm/esm/src/json-helper.cjs.baseline b/baselines/kms-esm/esm/src/json-helper.cjs.baseline new file mode 100644 index 000000000..3c1fc7302 --- /dev/null +++ b/baselines/kms-esm/esm/src/json-helper.cjs.baseline @@ -0,0 +1,20 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/* eslint-disable node/no-missing-require */ +function getJSON(path) { + return require(path); +} + +exports.getJSON = getJSON; diff --git a/baselines/kms-esm/esm/src/v1/key_management_service_client.ts.baseline b/baselines/kms-esm/esm/src/v1/key_management_service_client.ts.baseline index 67e21e688..aec635f5d 100644 --- a/baselines/kms-esm/esm/src/v1/key_management_service_client.ts.baseline +++ b/baselines/kms-esm/esm/src/v1/key_management_service_client.ts.baseline @@ -26,6 +26,7 @@ import * as key_management_service_client_config from './key_management_service_ import fs from 'fs'; import path from 'path'; import {fileURLToPath} from 'url'; +import {getJSON} from '../json-helper.cjs'; // @ts-ignore const dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -34,9 +35,17 @@ const dirname = path.dirname(fileURLToPath(import.meta.url)); * `src/v1/key_management_service_client_config.json`. * This file defines retry strategy and timeouts for all API methods in this library. */ -const gapicConfig = JSON.parse(fs.readFileSync(path.join(dirname, 'key_management_service_client_config.json'),'utf8')); -const jsonProtos = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', 'protos/protos.json'), 'utf8')); -const version = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', '..', 'package.json'), 'utf8')).version; +const gapicConfig = getJSON( + path.join(dirname, 'key_management_service_client_config.json') +); + +const jsonProtos = getJSON( + path.join(dirname, '..', '..', '..', 'protos/protos.json') +); + +const version = getJSON( + path.join(dirname, '..', '..', '..', '..', 'package.json') +).version; /** * Google Cloud Key Management Service diff --git a/baselines/kms-esm/package.json b/baselines/kms-esm/package.json index c13d3e924..88a2bc461 100644 --- a/baselines/kms-esm/package.json +++ b/baselines/kms-esm/package.json @@ -66,7 +66,7 @@ "test:cjs": "c8 mocha build/cjs/test", "test:esm": "c8 mocha build/esm/test", "test": "npm run test:cjs && npm run test:esm", - "compile:esm": "tsc -p ./tsconfig.esm.json", + "compile:esm": "tsc -p ./tsconfig.esm.json && cp -r esm/src/json-helper.cjs build/esm/src/json-helper.cjs", "babel": "babel esm --out-dir build/cjs --ignore \"esm/**/*.d.ts\" --extensions \".ts\" --out-file-extension .cjs --copy-files", "compile:cjs": "tsc -p ./tsconfig.json && npm run babel", "compile": "npm run compile:esm && npm run compile:cjs && cp -r protos build/protos", diff --git a/baselines/kms-esm/tsconfig.esm.json.baseline b/baselines/kms-esm/tsconfig.esm.json.baseline index c2cf8c94c..1ea52fa0e 100644 --- a/baselines/kms-esm/tsconfig.esm.json.baseline +++ b/baselines/kms-esm/tsconfig.esm.json.baseline @@ -20,5 +20,8 @@ "esm/test/*.ts", "esm/test/**/*.ts", "esm/system-test/*.ts" + ], + "exclude": [ + "esm/src/json-helper.cjs" ] } diff --git a/baselines/logging-esm/esm/src/json-helper.cjs.baseline b/baselines/logging-esm/esm/src/json-helper.cjs.baseline new file mode 100644 index 000000000..3c1fc7302 --- /dev/null +++ b/baselines/logging-esm/esm/src/json-helper.cjs.baseline @@ -0,0 +1,20 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/* eslint-disable node/no-missing-require */ +function getJSON(path) { + return require(path); +} + +exports.getJSON = getJSON; diff --git a/baselines/logging-esm/esm/src/v2/config_service_v2_client.ts.baseline b/baselines/logging-esm/esm/src/v2/config_service_v2_client.ts.baseline index 83ba8e109..bd735524b 100644 --- a/baselines/logging-esm/esm/src/v2/config_service_v2_client.ts.baseline +++ b/baselines/logging-esm/esm/src/v2/config_service_v2_client.ts.baseline @@ -26,6 +26,7 @@ import * as config_service_v2_client_config from './config_service_v2_client_con import fs from 'fs'; import path from 'path'; import {fileURLToPath} from 'url'; +import {getJSON} from '../json-helper.cjs'; // @ts-ignore const dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -34,9 +35,17 @@ const dirname = path.dirname(fileURLToPath(import.meta.url)); * `src/v2/config_service_v2_client_config.json`. * This file defines retry strategy and timeouts for all API methods in this library. */ -const gapicConfig = JSON.parse(fs.readFileSync(path.join(dirname, 'config_service_v2_client_config.json'),'utf8')); -const jsonProtos = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', 'protos/protos.json'), 'utf8')); -const version = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', '..', 'package.json'), 'utf8')).version; +const gapicConfig = getJSON( + path.join(dirname, 'config_service_v2_client_config.json') +); + +const jsonProtos = getJSON( + path.join(dirname, '..', '..', '..', 'protos/protos.json') +); + +const version = getJSON( + path.join(dirname, '..', '..', '..', '..', 'package.json') +).version; /** * Service for configuring sinks used to route log entries. diff --git a/baselines/logging-esm/esm/src/v2/logging_service_v2_client.ts.baseline b/baselines/logging-esm/esm/src/v2/logging_service_v2_client.ts.baseline index c6d836229..b473b390d 100644 --- a/baselines/logging-esm/esm/src/v2/logging_service_v2_client.ts.baseline +++ b/baselines/logging-esm/esm/src/v2/logging_service_v2_client.ts.baseline @@ -26,6 +26,7 @@ import * as logging_service_v2_client_config from './logging_service_v2_client_c import fs from 'fs'; import path from 'path'; import {fileURLToPath} from 'url'; +import {getJSON} from '../json-helper.cjs'; // @ts-ignore const dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -34,9 +35,17 @@ const dirname = path.dirname(fileURLToPath(import.meta.url)); * `src/v2/logging_service_v2_client_config.json`. * This file defines retry strategy and timeouts for all API methods in this library. */ -const gapicConfig = JSON.parse(fs.readFileSync(path.join(dirname, 'logging_service_v2_client_config.json'),'utf8')); -const jsonProtos = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', 'protos/protos.json'), 'utf8')); -const version = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', '..', 'package.json'), 'utf8')).version; +const gapicConfig = getJSON( + path.join(dirname, 'logging_service_v2_client_config.json') +); + +const jsonProtos = getJSON( + path.join(dirname, '..', '..', '..', 'protos/protos.json') +); + +const version = getJSON( + path.join(dirname, '..', '..', '..', '..', 'package.json') +).version; /** * Service for ingesting and querying logs. diff --git a/baselines/logging-esm/esm/src/v2/metrics_service_v2_client.ts.baseline b/baselines/logging-esm/esm/src/v2/metrics_service_v2_client.ts.baseline index c4d4218a0..d74e7d2bf 100644 --- a/baselines/logging-esm/esm/src/v2/metrics_service_v2_client.ts.baseline +++ b/baselines/logging-esm/esm/src/v2/metrics_service_v2_client.ts.baseline @@ -26,6 +26,7 @@ import * as metrics_service_v2_client_config from './metrics_service_v2_client_c import fs from 'fs'; import path from 'path'; import {fileURLToPath} from 'url'; +import {getJSON} from '../json-helper.cjs'; // @ts-ignore const dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -34,9 +35,17 @@ const dirname = path.dirname(fileURLToPath(import.meta.url)); * `src/v2/metrics_service_v2_client_config.json`. * This file defines retry strategy and timeouts for all API methods in this library. */ -const gapicConfig = JSON.parse(fs.readFileSync(path.join(dirname, 'metrics_service_v2_client_config.json'),'utf8')); -const jsonProtos = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', 'protos/protos.json'), 'utf8')); -const version = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', '..', 'package.json'), 'utf8')).version; +const gapicConfig = getJSON( + path.join(dirname, 'metrics_service_v2_client_config.json') +); + +const jsonProtos = getJSON( + path.join(dirname, '..', '..', '..', 'protos/protos.json') +); + +const version = getJSON( + path.join(dirname, '..', '..', '..', '..', 'package.json') +).version; /** * Service for configuring logs-based metrics. diff --git a/baselines/logging-esm/package.json b/baselines/logging-esm/package.json index 66cc5ece9..ac83ad69a 100644 --- a/baselines/logging-esm/package.json +++ b/baselines/logging-esm/package.json @@ -68,7 +68,7 @@ "test:cjs": "c8 mocha build/cjs/test", "test:esm": "c8 mocha build/esm/test", "test": "npm run test:cjs && npm run test:esm", - "compile:esm": "tsc -p ./tsconfig.esm.json", + "compile:esm": "tsc -p ./tsconfig.esm.json && cp -r esm/src/json-helper.cjs build/esm/src/json-helper.cjs", "babel": "babel esm --out-dir build/cjs --ignore \"esm/**/*.d.ts\" --extensions \".ts\" --out-file-extension .cjs --copy-files", "compile:cjs": "tsc -p ./tsconfig.json && npm run babel", "compile": "npm run compile:esm && npm run compile:cjs && cp -r protos build/protos", diff --git a/baselines/logging-esm/tsconfig.esm.json.baseline b/baselines/logging-esm/tsconfig.esm.json.baseline index c2cf8c94c..1ea52fa0e 100644 --- a/baselines/logging-esm/tsconfig.esm.json.baseline +++ b/baselines/logging-esm/tsconfig.esm.json.baseline @@ -20,5 +20,8 @@ "esm/test/*.ts", "esm/test/**/*.ts", "esm/system-test/*.ts" + ], + "exclude": [ + "esm/src/json-helper.cjs" ] } diff --git a/baselines/monitoring-esm/esm/src/json-helper.cjs.baseline b/baselines/monitoring-esm/esm/src/json-helper.cjs.baseline new file mode 100644 index 000000000..3c1fc7302 --- /dev/null +++ b/baselines/monitoring-esm/esm/src/json-helper.cjs.baseline @@ -0,0 +1,20 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/* eslint-disable node/no-missing-require */ +function getJSON(path) { + return require(path); +} + +exports.getJSON = getJSON; diff --git a/baselines/monitoring-esm/esm/src/v3/alert_policy_service_client.ts.baseline b/baselines/monitoring-esm/esm/src/v3/alert_policy_service_client.ts.baseline index 18547cd53..ad50cb469 100644 --- a/baselines/monitoring-esm/esm/src/v3/alert_policy_service_client.ts.baseline +++ b/baselines/monitoring-esm/esm/src/v3/alert_policy_service_client.ts.baseline @@ -26,6 +26,7 @@ import * as alert_policy_service_client_config from './alert_policy_service_clie import fs from 'fs'; import path from 'path'; import {fileURLToPath} from 'url'; +import {getJSON} from '../json-helper.cjs'; // @ts-ignore const dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -34,9 +35,17 @@ const dirname = path.dirname(fileURLToPath(import.meta.url)); * `src/v3/alert_policy_service_client_config.json`. * This file defines retry strategy and timeouts for all API methods in this library. */ -const gapicConfig = JSON.parse(fs.readFileSync(path.join(dirname, 'alert_policy_service_client_config.json'),'utf8')); -const jsonProtos = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', 'protos/protos.json'), 'utf8')); -const version = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', '..', 'package.json'), 'utf8')).version; +const gapicConfig = getJSON( + path.join(dirname, 'alert_policy_service_client_config.json') +); + +const jsonProtos = getJSON( + path.join(dirname, '..', '..', '..', 'protos/protos.json') +); + +const version = getJSON( + path.join(dirname, '..', '..', '..', '..', 'package.json') +).version; /** * The AlertPolicyService API is used to manage (list, create, delete, diff --git a/baselines/monitoring-esm/esm/src/v3/group_service_client.ts.baseline b/baselines/monitoring-esm/esm/src/v3/group_service_client.ts.baseline index 9f440b74c..06c312c45 100644 --- a/baselines/monitoring-esm/esm/src/v3/group_service_client.ts.baseline +++ b/baselines/monitoring-esm/esm/src/v3/group_service_client.ts.baseline @@ -26,6 +26,7 @@ import * as group_service_client_config from './group_service_client_config.json import fs from 'fs'; import path from 'path'; import {fileURLToPath} from 'url'; +import {getJSON} from '../json-helper.cjs'; // @ts-ignore const dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -34,9 +35,17 @@ const dirname = path.dirname(fileURLToPath(import.meta.url)); * `src/v3/group_service_client_config.json`. * This file defines retry strategy and timeouts for all API methods in this library. */ -const gapicConfig = JSON.parse(fs.readFileSync(path.join(dirname, 'group_service_client_config.json'),'utf8')); -const jsonProtos = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', 'protos/protos.json'), 'utf8')); -const version = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', '..', 'package.json'), 'utf8')).version; +const gapicConfig = getJSON( + path.join(dirname, 'group_service_client_config.json') +); + +const jsonProtos = getJSON( + path.join(dirname, '..', '..', '..', 'protos/protos.json') +); + +const version = getJSON( + path.join(dirname, '..', '..', '..', '..', 'package.json') +).version; /** * The Group API lets you inspect and manage your diff --git a/baselines/monitoring-esm/esm/src/v3/metric_service_client.ts.baseline b/baselines/monitoring-esm/esm/src/v3/metric_service_client.ts.baseline index b7fad64ba..b1b03420a 100644 --- a/baselines/monitoring-esm/esm/src/v3/metric_service_client.ts.baseline +++ b/baselines/monitoring-esm/esm/src/v3/metric_service_client.ts.baseline @@ -26,6 +26,7 @@ import * as metric_service_client_config from './metric_service_client_config.js import fs from 'fs'; import path from 'path'; import {fileURLToPath} from 'url'; +import {getJSON} from '../json-helper.cjs'; // @ts-ignore const dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -34,9 +35,17 @@ const dirname = path.dirname(fileURLToPath(import.meta.url)); * `src/v3/metric_service_client_config.json`. * This file defines retry strategy and timeouts for all API methods in this library. */ -const gapicConfig = JSON.parse(fs.readFileSync(path.join(dirname, 'metric_service_client_config.json'),'utf8')); -const jsonProtos = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', 'protos/protos.json'), 'utf8')); -const version = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', '..', 'package.json'), 'utf8')).version; +const gapicConfig = getJSON( + path.join(dirname, 'metric_service_client_config.json') +); + +const jsonProtos = getJSON( + path.join(dirname, '..', '..', '..', 'protos/protos.json') +); + +const version = getJSON( + path.join(dirname, '..', '..', '..', '..', 'package.json') +).version; /** * Manages metric descriptors, monitored resource descriptors, and diff --git a/baselines/monitoring-esm/esm/src/v3/notification_channel_service_client.ts.baseline b/baselines/monitoring-esm/esm/src/v3/notification_channel_service_client.ts.baseline index 3606e7d73..ef4d8af14 100644 --- a/baselines/monitoring-esm/esm/src/v3/notification_channel_service_client.ts.baseline +++ b/baselines/monitoring-esm/esm/src/v3/notification_channel_service_client.ts.baseline @@ -26,6 +26,7 @@ import * as notification_channel_service_client_config from './notification_chan import fs from 'fs'; import path from 'path'; import {fileURLToPath} from 'url'; +import {getJSON} from '../json-helper.cjs'; // @ts-ignore const dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -34,9 +35,17 @@ const dirname = path.dirname(fileURLToPath(import.meta.url)); * `src/v3/notification_channel_service_client_config.json`. * This file defines retry strategy and timeouts for all API methods in this library. */ -const gapicConfig = JSON.parse(fs.readFileSync(path.join(dirname, 'notification_channel_service_client_config.json'),'utf8')); -const jsonProtos = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', 'protos/protos.json'), 'utf8')); -const version = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', '..', 'package.json'), 'utf8')).version; +const gapicConfig = getJSON( + path.join(dirname, 'notification_channel_service_client_config.json') +); + +const jsonProtos = getJSON( + path.join(dirname, '..', '..', '..', 'protos/protos.json') +); + +const version = getJSON( + path.join(dirname, '..', '..', '..', '..', 'package.json') +).version; /** * The Notification Channel API provides access to configuration that diff --git a/baselines/monitoring-esm/esm/src/v3/service_monitoring_service_client.ts.baseline b/baselines/monitoring-esm/esm/src/v3/service_monitoring_service_client.ts.baseline index cb41d5817..2dfdca713 100644 --- a/baselines/monitoring-esm/esm/src/v3/service_monitoring_service_client.ts.baseline +++ b/baselines/monitoring-esm/esm/src/v3/service_monitoring_service_client.ts.baseline @@ -26,6 +26,7 @@ import * as service_monitoring_service_client_config from './service_monitoring_ import fs from 'fs'; import path from 'path'; import {fileURLToPath} from 'url'; +import {getJSON} from '../json-helper.cjs'; // @ts-ignore const dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -34,9 +35,17 @@ const dirname = path.dirname(fileURLToPath(import.meta.url)); * `src/v3/service_monitoring_service_client_config.json`. * This file defines retry strategy and timeouts for all API methods in this library. */ -const gapicConfig = JSON.parse(fs.readFileSync(path.join(dirname, 'service_monitoring_service_client_config.json'),'utf8')); -const jsonProtos = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', 'protos/protos.json'), 'utf8')); -const version = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', '..', 'package.json'), 'utf8')).version; +const gapicConfig = getJSON( + path.join(dirname, 'service_monitoring_service_client_config.json') +); + +const jsonProtos = getJSON( + path.join(dirname, '..', '..', '..', 'protos/protos.json') +); + +const version = getJSON( + path.join(dirname, '..', '..', '..', '..', 'package.json') +).version; /** * The Stackdriver Monitoring Service-Oriented Monitoring API has endpoints for diff --git a/baselines/monitoring-esm/esm/src/v3/uptime_check_service_client.ts.baseline b/baselines/monitoring-esm/esm/src/v3/uptime_check_service_client.ts.baseline index 35130b4f4..f52d14db3 100644 --- a/baselines/monitoring-esm/esm/src/v3/uptime_check_service_client.ts.baseline +++ b/baselines/monitoring-esm/esm/src/v3/uptime_check_service_client.ts.baseline @@ -26,6 +26,7 @@ import * as uptime_check_service_client_config from './uptime_check_service_clie import fs from 'fs'; import path from 'path'; import {fileURLToPath} from 'url'; +import {getJSON} from '../json-helper.cjs'; // @ts-ignore const dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -34,9 +35,17 @@ const dirname = path.dirname(fileURLToPath(import.meta.url)); * `src/v3/uptime_check_service_client_config.json`. * This file defines retry strategy and timeouts for all API methods in this library. */ -const gapicConfig = JSON.parse(fs.readFileSync(path.join(dirname, 'uptime_check_service_client_config.json'),'utf8')); -const jsonProtos = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', 'protos/protos.json'), 'utf8')); -const version = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', '..', 'package.json'), 'utf8')).version; +const gapicConfig = getJSON( + path.join(dirname, 'uptime_check_service_client_config.json') +); + +const jsonProtos = getJSON( + path.join(dirname, '..', '..', '..', 'protos/protos.json') +); + +const version = getJSON( + path.join(dirname, '..', '..', '..', '..', 'package.json') +).version; /** * The UptimeCheckService API is used to manage (list, create, delete, edit) diff --git a/baselines/monitoring-esm/package.json b/baselines/monitoring-esm/package.json index ed861d559..e3471a594 100644 --- a/baselines/monitoring-esm/package.json +++ b/baselines/monitoring-esm/package.json @@ -71,7 +71,7 @@ "test:cjs": "c8 mocha build/cjs/test", "test:esm": "c8 mocha build/esm/test", "test": "npm run test:cjs && npm run test:esm", - "compile:esm": "tsc -p ./tsconfig.esm.json", + "compile:esm": "tsc -p ./tsconfig.esm.json && cp -r esm/src/json-helper.cjs build/esm/src/json-helper.cjs", "babel": "babel esm --out-dir build/cjs --ignore \"esm/**/*.d.ts\" --extensions \".ts\" --out-file-extension .cjs --copy-files", "compile:cjs": "tsc -p ./tsconfig.json && npm run babel", "compile": "npm run compile:esm && npm run compile:cjs && cp -r protos build/protos", diff --git a/baselines/monitoring-esm/tsconfig.esm.json.baseline b/baselines/monitoring-esm/tsconfig.esm.json.baseline index c2cf8c94c..1ea52fa0e 100644 --- a/baselines/monitoring-esm/tsconfig.esm.json.baseline +++ b/baselines/monitoring-esm/tsconfig.esm.json.baseline @@ -20,5 +20,8 @@ "esm/test/*.ts", "esm/test/**/*.ts", "esm/system-test/*.ts" + ], + "exclude": [ + "esm/src/json-helper.cjs" ] } diff --git a/baselines/naming-esm/esm/src/json-helper.cjs.baseline b/baselines/naming-esm/esm/src/json-helper.cjs.baseline new file mode 100644 index 000000000..3c1fc7302 --- /dev/null +++ b/baselines/naming-esm/esm/src/json-helper.cjs.baseline @@ -0,0 +1,20 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/* eslint-disable node/no-missing-require */ +function getJSON(path) { + return require(path); +} + +exports.getJSON = getJSON; diff --git a/baselines/naming-esm/esm/src/v1beta1/naming_client.ts.baseline b/baselines/naming-esm/esm/src/v1beta1/naming_client.ts.baseline index 6e1b511ad..07cc2b4da 100644 --- a/baselines/naming-esm/esm/src/v1beta1/naming_client.ts.baseline +++ b/baselines/naming-esm/esm/src/v1beta1/naming_client.ts.baseline @@ -26,6 +26,7 @@ import * as naming_client_config from './naming_client_config.json'; import fs from 'fs'; import path from 'path'; import {fileURLToPath} from 'url'; +import {getJSON} from '../json-helper.cjs'; // @ts-ignore const dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -34,9 +35,17 @@ const dirname = path.dirname(fileURLToPath(import.meta.url)); * `src/v1beta1/naming_client_config.json`. * This file defines retry strategy and timeouts for all API methods in this library. */ -const gapicConfig = JSON.parse(fs.readFileSync(path.join(dirname, 'naming_client_config.json'),'utf8')); -const jsonProtos = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', 'protos/protos.json'), 'utf8')); -const version = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', '..', 'package.json'), 'utf8')).version; +const gapicConfig = getJSON( + path.join(dirname, 'naming_client_config.json') +); + +const jsonProtos = getJSON( + path.join(dirname, '..', '..', '..', 'protos/protos.json') +); + +const version = getJSON( + path.join(dirname, '..', '..', '..', '..', 'package.json') +).version; /** * Fake service to test various possible naming problems. diff --git a/baselines/naming-esm/package.json b/baselines/naming-esm/package.json index 059753360..9507bc951 100644 --- a/baselines/naming-esm/package.json +++ b/baselines/naming-esm/package.json @@ -66,7 +66,7 @@ "test:cjs": "c8 mocha build/cjs/test", "test:esm": "c8 mocha build/esm/test", "test": "npm run test:cjs && npm run test:esm", - "compile:esm": "tsc -p ./tsconfig.esm.json", + "compile:esm": "tsc -p ./tsconfig.esm.json && cp -r esm/src/json-helper.cjs build/esm/src/json-helper.cjs", "babel": "babel esm --out-dir build/cjs --ignore \"esm/**/*.d.ts\" --extensions \".ts\" --out-file-extension .cjs --copy-files", "compile:cjs": "tsc -p ./tsconfig.json && npm run babel", "compile": "npm run compile:esm && npm run compile:cjs && cp -r protos build/protos", diff --git a/baselines/naming-esm/tsconfig.esm.json.baseline b/baselines/naming-esm/tsconfig.esm.json.baseline index c2cf8c94c..1ea52fa0e 100644 --- a/baselines/naming-esm/tsconfig.esm.json.baseline +++ b/baselines/naming-esm/tsconfig.esm.json.baseline @@ -20,5 +20,8 @@ "esm/test/*.ts", "esm/test/**/*.ts", "esm/system-test/*.ts" + ], + "exclude": [ + "esm/src/json-helper.cjs" ] } diff --git a/baselines/redis-esm/esm/src/json-helper.cjs.baseline b/baselines/redis-esm/esm/src/json-helper.cjs.baseline new file mode 100644 index 000000000..3c1fc7302 --- /dev/null +++ b/baselines/redis-esm/esm/src/json-helper.cjs.baseline @@ -0,0 +1,20 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/* eslint-disable node/no-missing-require */ +function getJSON(path) { + return require(path); +} + +exports.getJSON = getJSON; diff --git a/baselines/redis-esm/esm/src/v1beta1/cloud_redis_client.ts.baseline b/baselines/redis-esm/esm/src/v1beta1/cloud_redis_client.ts.baseline index e22a33623..d680d8a18 100644 --- a/baselines/redis-esm/esm/src/v1beta1/cloud_redis_client.ts.baseline +++ b/baselines/redis-esm/esm/src/v1beta1/cloud_redis_client.ts.baseline @@ -26,6 +26,7 @@ import * as cloud_redis_client_config from './cloud_redis_client_config.json'; import fs from 'fs'; import path from 'path'; import {fileURLToPath} from 'url'; +import {getJSON} from '../json-helper.cjs'; // @ts-ignore const dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -34,9 +35,17 @@ const dirname = path.dirname(fileURLToPath(import.meta.url)); * `src/v1beta1/cloud_redis_client_config.json`. * This file defines retry strategy and timeouts for all API methods in this library. */ -const gapicConfig = JSON.parse(fs.readFileSync(path.join(dirname, 'cloud_redis_client_config.json'),'utf8')); -const jsonProtos = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', 'protos/protos.json'), 'utf8')); -const version = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', '..', 'package.json'), 'utf8')).version; +const gapicConfig = getJSON( + path.join(dirname, 'cloud_redis_client_config.json') +); + +const jsonProtos = getJSON( + path.join(dirname, '..', '..', '..', 'protos/protos.json') +); + +const version = getJSON( + path.join(dirname, '..', '..', '..', '..', 'package.json') +).version; /** * Configures and manages Cloud Memorystore for Redis instances diff --git a/baselines/redis-esm/package.json b/baselines/redis-esm/package.json index 3fb5a14b3..1d9d1a266 100644 --- a/baselines/redis-esm/package.json +++ b/baselines/redis-esm/package.json @@ -66,7 +66,7 @@ "test:cjs": "c8 mocha build/cjs/test", "test:esm": "c8 mocha build/esm/test", "test": "npm run test:cjs && npm run test:esm", - "compile:esm": "tsc -p ./tsconfig.esm.json", + "compile:esm": "tsc -p ./tsconfig.esm.json && cp -r esm/src/json-helper.cjs build/esm/src/json-helper.cjs", "babel": "babel esm --out-dir build/cjs --ignore \"esm/**/*.d.ts\" --extensions \".ts\" --out-file-extension .cjs --copy-files", "compile:cjs": "tsc -p ./tsconfig.json && npm run babel", "compile": "npm run compile:esm && npm run compile:cjs && cp -r protos build/protos", diff --git a/baselines/redis-esm/tsconfig.esm.json.baseline b/baselines/redis-esm/tsconfig.esm.json.baseline index c2cf8c94c..1ea52fa0e 100644 --- a/baselines/redis-esm/tsconfig.esm.json.baseline +++ b/baselines/redis-esm/tsconfig.esm.json.baseline @@ -20,5 +20,8 @@ "esm/test/*.ts", "esm/test/**/*.ts", "esm/system-test/*.ts" + ], + "exclude": [ + "esm/src/json-helper.cjs" ] } diff --git a/baselines/routingtest-esm/esm/src/json-helper.cjs.baseline b/baselines/routingtest-esm/esm/src/json-helper.cjs.baseline new file mode 100644 index 000000000..3c1fc7302 --- /dev/null +++ b/baselines/routingtest-esm/esm/src/json-helper.cjs.baseline @@ -0,0 +1,20 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/* eslint-disable node/no-missing-require */ +function getJSON(path) { + return require(path); +} + +exports.getJSON = getJSON; diff --git a/baselines/routingtest-esm/esm/src/v1/test_service_client.ts.baseline b/baselines/routingtest-esm/esm/src/v1/test_service_client.ts.baseline index e1a4459c2..9b6a70ad7 100644 --- a/baselines/routingtest-esm/esm/src/v1/test_service_client.ts.baseline +++ b/baselines/routingtest-esm/esm/src/v1/test_service_client.ts.baseline @@ -26,6 +26,7 @@ import * as test_service_client_config from './test_service_client_config.json'; import fs from 'fs'; import path from 'path'; import {fileURLToPath} from 'url'; +import {getJSON} from '../json-helper.cjs'; // @ts-ignore const dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -34,9 +35,17 @@ const dirname = path.dirname(fileURLToPath(import.meta.url)); * `src/v1/test_service_client_config.json`. * This file defines retry strategy and timeouts for all API methods in this library. */ -const gapicConfig = JSON.parse(fs.readFileSync(path.join(dirname, 'test_service_client_config.json'),'utf8')); -const jsonProtos = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', 'protos/protos.json'), 'utf8')); -const version = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', '..', 'package.json'), 'utf8')).version; +const gapicConfig = getJSON( + path.join(dirname, 'test_service_client_config.json') +); + +const jsonProtos = getJSON( + path.join(dirname, '..', '..', '..', 'protos/protos.json') +); + +const version = getJSON( + path.join(dirname, '..', '..', '..', '..', 'package.json') +).version; /** * This is a service description. diff --git a/baselines/routingtest-esm/package.json b/baselines/routingtest-esm/package.json index e7095dfd3..73712bfdf 100644 --- a/baselines/routingtest-esm/package.json +++ b/baselines/routingtest-esm/package.json @@ -66,7 +66,7 @@ "test:cjs": "c8 mocha build/cjs/test", "test:esm": "c8 mocha build/esm/test", "test": "npm run test:cjs && npm run test:esm", - "compile:esm": "tsc -p ./tsconfig.esm.json", + "compile:esm": "tsc -p ./tsconfig.esm.json && cp -r esm/src/json-helper.cjs build/esm/src/json-helper.cjs", "babel": "babel esm --out-dir build/cjs --ignore \"esm/**/*.d.ts\" --extensions \".ts\" --out-file-extension .cjs --copy-files", "compile:cjs": "tsc -p ./tsconfig.json && npm run babel", "compile": "npm run compile:esm && npm run compile:cjs && cp -r protos build/protos", diff --git a/baselines/routingtest-esm/tsconfig.esm.json.baseline b/baselines/routingtest-esm/tsconfig.esm.json.baseline index c2cf8c94c..1ea52fa0e 100644 --- a/baselines/routingtest-esm/tsconfig.esm.json.baseline +++ b/baselines/routingtest-esm/tsconfig.esm.json.baseline @@ -20,5 +20,8 @@ "esm/test/*.ts", "esm/test/**/*.ts", "esm/system-test/*.ts" + ], + "exclude": [ + "esm/src/json-helper.cjs" ] } diff --git a/baselines/showcase-esm/esm/src/json-helper.cjs.baseline b/baselines/showcase-esm/esm/src/json-helper.cjs.baseline new file mode 100644 index 000000000..3c1fc7302 --- /dev/null +++ b/baselines/showcase-esm/esm/src/json-helper.cjs.baseline @@ -0,0 +1,20 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/* eslint-disable node/no-missing-require */ +function getJSON(path) { + return require(path); +} + +exports.getJSON = getJSON; diff --git a/baselines/showcase-esm/esm/src/v1beta1/compliance_client.ts.baseline b/baselines/showcase-esm/esm/src/v1beta1/compliance_client.ts.baseline index 3c1154570..45c632304 100644 --- a/baselines/showcase-esm/esm/src/v1beta1/compliance_client.ts.baseline +++ b/baselines/showcase-esm/esm/src/v1beta1/compliance_client.ts.baseline @@ -26,6 +26,7 @@ import * as compliance_client_config from './compliance_client_config.json'; import fs from 'fs'; import path from 'path'; import {fileURLToPath} from 'url'; +import {getJSON} from '../json-helper.cjs'; // @ts-ignore const dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -34,9 +35,17 @@ const dirname = path.dirname(fileURLToPath(import.meta.url)); * `src/v1beta1/compliance_client_config.json`. * This file defines retry strategy and timeouts for all API methods in this library. */ -const gapicConfig = JSON.parse(fs.readFileSync(path.join(dirname, 'compliance_client_config.json'),'utf8')); -const jsonProtos = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', 'protos/protos.json'), 'utf8')); -const version = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', '..', 'package.json'), 'utf8')).version; +const gapicConfig = getJSON( + path.join(dirname, 'compliance_client_config.json') +); + +const jsonProtos = getJSON( + path.join(dirname, '..', '..', '..', 'protos/protos.json') +); + +const version = getJSON( + path.join(dirname, '..', '..', '..', '..', 'package.json') +).version; /** * This service is used to test that GAPICs implement various REST-related features correctly. This mostly means transcoding proto3 requests to REST format diff --git a/baselines/showcase-esm/esm/src/v1beta1/echo_client.ts.baseline b/baselines/showcase-esm/esm/src/v1beta1/echo_client.ts.baseline index 6087f5538..ff0a53467 100644 --- a/baselines/showcase-esm/esm/src/v1beta1/echo_client.ts.baseline +++ b/baselines/showcase-esm/esm/src/v1beta1/echo_client.ts.baseline @@ -26,6 +26,7 @@ import * as echo_client_config from './echo_client_config.json'; import fs from 'fs'; import path from 'path'; import {fileURLToPath} from 'url'; +import {getJSON} from '../json-helper.cjs'; // @ts-ignore const dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -34,9 +35,17 @@ const dirname = path.dirname(fileURLToPath(import.meta.url)); * `src/v1beta1/echo_client_config.json`. * This file defines retry strategy and timeouts for all API methods in this library. */ -const gapicConfig = JSON.parse(fs.readFileSync(path.join(dirname, 'echo_client_config.json'),'utf8')); -const jsonProtos = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', 'protos/protos.json'), 'utf8')); -const version = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', '..', 'package.json'), 'utf8')).version; +const gapicConfig = getJSON( + path.join(dirname, 'echo_client_config.json') +); + +const jsonProtos = getJSON( + path.join(dirname, '..', '..', '..', 'protos/protos.json') +); + +const version = getJSON( + path.join(dirname, '..', '..', '..', '..', 'package.json') +).version; /** * This service is used showcase the four main types of rpcs - unary, server diff --git a/baselines/showcase-esm/esm/src/v1beta1/identity_client.ts.baseline b/baselines/showcase-esm/esm/src/v1beta1/identity_client.ts.baseline index 7b9238b43..26cc8086a 100644 --- a/baselines/showcase-esm/esm/src/v1beta1/identity_client.ts.baseline +++ b/baselines/showcase-esm/esm/src/v1beta1/identity_client.ts.baseline @@ -26,6 +26,7 @@ import * as identity_client_config from './identity_client_config.json'; import fs from 'fs'; import path from 'path'; import {fileURLToPath} from 'url'; +import {getJSON} from '../json-helper.cjs'; // @ts-ignore const dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -34,9 +35,17 @@ const dirname = path.dirname(fileURLToPath(import.meta.url)); * `src/v1beta1/identity_client_config.json`. * This file defines retry strategy and timeouts for all API methods in this library. */ -const gapicConfig = JSON.parse(fs.readFileSync(path.join(dirname, 'identity_client_config.json'),'utf8')); -const jsonProtos = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', 'protos/protos.json'), 'utf8')); -const version = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', '..', 'package.json'), 'utf8')).version; +const gapicConfig = getJSON( + path.join(dirname, 'identity_client_config.json') +); + +const jsonProtos = getJSON( + path.join(dirname, '..', '..', '..', 'protos/protos.json') +); + +const version = getJSON( + path.join(dirname, '..', '..', '..', '..', 'package.json') +).version; /** * A simple identity service. diff --git a/baselines/showcase-esm/esm/src/v1beta1/messaging_client.ts.baseline b/baselines/showcase-esm/esm/src/v1beta1/messaging_client.ts.baseline index d259b7766..385bbb95b 100644 --- a/baselines/showcase-esm/esm/src/v1beta1/messaging_client.ts.baseline +++ b/baselines/showcase-esm/esm/src/v1beta1/messaging_client.ts.baseline @@ -26,6 +26,7 @@ import * as messaging_client_config from './messaging_client_config.json'; import fs from 'fs'; import path from 'path'; import {fileURLToPath} from 'url'; +import {getJSON} from '../json-helper.cjs'; // @ts-ignore const dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -34,9 +35,17 @@ const dirname = path.dirname(fileURLToPath(import.meta.url)); * `src/v1beta1/messaging_client_config.json`. * This file defines retry strategy and timeouts for all API methods in this library. */ -const gapicConfig = JSON.parse(fs.readFileSync(path.join(dirname, 'messaging_client_config.json'),'utf8')); -const jsonProtos = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', 'protos/protos.json'), 'utf8')); -const version = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', '..', 'package.json'), 'utf8')).version; +const gapicConfig = getJSON( + path.join(dirname, 'messaging_client_config.json') +); + +const jsonProtos = getJSON( + path.join(dirname, '..', '..', '..', 'protos/protos.json') +); + +const version = getJSON( + path.join(dirname, '..', '..', '..', '..', 'package.json') +).version; /** * A simple messaging service that implements chat rooms and profile posts. diff --git a/baselines/showcase-esm/esm/src/v1beta1/sequence_service_client.ts.baseline b/baselines/showcase-esm/esm/src/v1beta1/sequence_service_client.ts.baseline index e65203887..cec2123b3 100644 --- a/baselines/showcase-esm/esm/src/v1beta1/sequence_service_client.ts.baseline +++ b/baselines/showcase-esm/esm/src/v1beta1/sequence_service_client.ts.baseline @@ -26,6 +26,7 @@ import * as sequence_service_client_config from './sequence_service_client_confi import fs from 'fs'; import path from 'path'; import {fileURLToPath} from 'url'; +import {getJSON} from '../json-helper.cjs'; // @ts-ignore const dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -34,9 +35,17 @@ const dirname = path.dirname(fileURLToPath(import.meta.url)); * `src/v1beta1/sequence_service_client_config.json`. * This file defines retry strategy and timeouts for all API methods in this library. */ -const gapicConfig = JSON.parse(fs.readFileSync(path.join(dirname, 'sequence_service_client_config.json'),'utf8')); -const jsonProtos = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', 'protos/protos.json'), 'utf8')); -const version = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', '..', 'package.json'), 'utf8')).version; +const gapicConfig = getJSON( + path.join(dirname, 'sequence_service_client_config.json') +); + +const jsonProtos = getJSON( + path.join(dirname, '..', '..', '..', 'protos/protos.json') +); + +const version = getJSON( + path.join(dirname, '..', '..', '..', '..', 'package.json') +).version; /** * @class diff --git a/baselines/showcase-esm/esm/src/v1beta1/testing_client.ts.baseline b/baselines/showcase-esm/esm/src/v1beta1/testing_client.ts.baseline index 950599766..eb8526b61 100644 --- a/baselines/showcase-esm/esm/src/v1beta1/testing_client.ts.baseline +++ b/baselines/showcase-esm/esm/src/v1beta1/testing_client.ts.baseline @@ -26,6 +26,7 @@ import * as testing_client_config from './testing_client_config.json'; import fs from 'fs'; import path from 'path'; import {fileURLToPath} from 'url'; +import {getJSON} from '../json-helper.cjs'; // @ts-ignore const dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -34,9 +35,17 @@ const dirname = path.dirname(fileURLToPath(import.meta.url)); * `src/v1beta1/testing_client_config.json`. * This file defines retry strategy and timeouts for all API methods in this library. */ -const gapicConfig = JSON.parse(fs.readFileSync(path.join(dirname, 'testing_client_config.json'),'utf8')); -const jsonProtos = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', 'protos/protos.json'), 'utf8')); -const version = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', '..', 'package.json'), 'utf8')).version; +const gapicConfig = getJSON( + path.join(dirname, 'testing_client_config.json') +); + +const jsonProtos = getJSON( + path.join(dirname, '..', '..', '..', 'protos/protos.json') +); + +const version = getJSON( + path.join(dirname, '..', '..', '..', '..', 'package.json') +).version; /** * A service to facilitate running discrete sets of tests diff --git a/baselines/showcase-esm/package.json b/baselines/showcase-esm/package.json index 691987cc7..117e6c082 100644 --- a/baselines/showcase-esm/package.json +++ b/baselines/showcase-esm/package.json @@ -71,7 +71,7 @@ "test:cjs": "c8 mocha build/cjs/test", "test:esm": "c8 mocha build/esm/test", "test": "npm run test:cjs && npm run test:esm", - "compile:esm": "tsc -p ./tsconfig.esm.json", + "compile:esm": "tsc -p ./tsconfig.esm.json && cp -r esm/src/json-helper.cjs build/esm/src/json-helper.cjs", "babel": "babel esm --out-dir build/cjs --ignore \"esm/**/*.d.ts\" --extensions \".ts\" --out-file-extension .cjs --copy-files", "compile:cjs": "tsc -p ./tsconfig.json && npm run babel", "compile": "npm run compile:esm && npm run compile:cjs && cp -r protos build/protos", diff --git a/baselines/showcase-esm/tsconfig.esm.json.baseline b/baselines/showcase-esm/tsconfig.esm.json.baseline index c2cf8c94c..1ea52fa0e 100644 --- a/baselines/showcase-esm/tsconfig.esm.json.baseline +++ b/baselines/showcase-esm/tsconfig.esm.json.baseline @@ -20,5 +20,8 @@ "esm/test/*.ts", "esm/test/**/*.ts", "esm/system-test/*.ts" + ], + "exclude": [ + "esm/src/json-helper.cjs" ] } diff --git a/baselines/showcase-legacy-esm/esm/src/json-helper.cjs.baseline b/baselines/showcase-legacy-esm/esm/src/json-helper.cjs.baseline new file mode 100644 index 000000000..3c1fc7302 --- /dev/null +++ b/baselines/showcase-legacy-esm/esm/src/json-helper.cjs.baseline @@ -0,0 +1,20 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/* eslint-disable node/no-missing-require */ +function getJSON(path) { + return require(path); +} + +exports.getJSON = getJSON; diff --git a/baselines/showcase-legacy-esm/esm/src/v1beta1/echo_client.ts.baseline b/baselines/showcase-legacy-esm/esm/src/v1beta1/echo_client.ts.baseline index d35017afc..f50ea21b4 100644 --- a/baselines/showcase-legacy-esm/esm/src/v1beta1/echo_client.ts.baseline +++ b/baselines/showcase-legacy-esm/esm/src/v1beta1/echo_client.ts.baseline @@ -25,6 +25,7 @@ import * as echo_client_config from './echo_client_config.json'; import fs from 'fs'; import path from 'path'; import {fileURLToPath} from 'url'; +import {getJSON} from '../json-helper.cjs'; // @ts-ignore const dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -33,8 +34,13 @@ const dirname = path.dirname(fileURLToPath(import.meta.url)); * `src/v1beta1/echo_client_config.json`. * This file defines retry strategy and timeouts for all API methods in this library. */ -const gapicConfig = JSON.parse(fs.readFileSync(path.join(dirname, 'echo_client_config.json'),'utf8')); -const version = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', '..', 'package.json'), 'utf8')).version; +const gapicConfig = getJSON( + path.join(dirname, 'echo_client_config.json') +); + +const version = getJSON( + path.join(dirname, '..', '..', '..', '..', 'package.json') +).version; /** * This service is used showcase the four main types of rpcs - unary, server diff --git a/baselines/showcase-legacy-esm/package.json b/baselines/showcase-legacy-esm/package.json index 16ccdedc4..0b7a3d7d1 100644 --- a/baselines/showcase-legacy-esm/package.json +++ b/baselines/showcase-legacy-esm/package.json @@ -66,7 +66,7 @@ "test:cjs": "c8 mocha build/cjs/test", "test:esm": "c8 mocha build/esm/test", "test": "npm run test:cjs && npm run test:esm", - "compile:esm": "tsc -p ./tsconfig.esm.json", + "compile:esm": "tsc -p ./tsconfig.esm.json && cp -r esm/src/json-helper.cjs build/esm/src/json-helper.cjs", "babel": "babel esm --out-dir build/cjs --ignore \"esm/**/*.d.ts\" --extensions \".ts\" --out-file-extension .cjs --copy-files", "compile:cjs": "tsc -p ./tsconfig.json && npm run babel", "compile": "npm run compile:esm && npm run compile:cjs && cp -r protos build/protos", diff --git a/baselines/showcase-legacy-esm/tsconfig.esm.json.baseline b/baselines/showcase-legacy-esm/tsconfig.esm.json.baseline index c2cf8c94c..1ea52fa0e 100644 --- a/baselines/showcase-legacy-esm/tsconfig.esm.json.baseline +++ b/baselines/showcase-legacy-esm/tsconfig.esm.json.baseline @@ -20,5 +20,8 @@ "esm/test/*.ts", "esm/test/**/*.ts", "esm/system-test/*.ts" + ], + "exclude": [ + "esm/src/json-helper.cjs" ] } diff --git a/baselines/tasks-esm/esm/src/json-helper.cjs.baseline b/baselines/tasks-esm/esm/src/json-helper.cjs.baseline new file mode 100644 index 000000000..3c1fc7302 --- /dev/null +++ b/baselines/tasks-esm/esm/src/json-helper.cjs.baseline @@ -0,0 +1,20 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/* eslint-disable node/no-missing-require */ +function getJSON(path) { + return require(path); +} + +exports.getJSON = getJSON; diff --git a/baselines/tasks-esm/esm/src/v2/cloud_tasks_client.ts.baseline b/baselines/tasks-esm/esm/src/v2/cloud_tasks_client.ts.baseline index 54ca6d57b..8b27e5bb9 100644 --- a/baselines/tasks-esm/esm/src/v2/cloud_tasks_client.ts.baseline +++ b/baselines/tasks-esm/esm/src/v2/cloud_tasks_client.ts.baseline @@ -26,6 +26,7 @@ import * as cloud_tasks_client_config from './cloud_tasks_client_config.json'; import fs from 'fs'; import path from 'path'; import {fileURLToPath} from 'url'; +import {getJSON} from '../json-helper.cjs'; // @ts-ignore const dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -34,9 +35,17 @@ const dirname = path.dirname(fileURLToPath(import.meta.url)); * `src/v2/cloud_tasks_client_config.json`. * This file defines retry strategy and timeouts for all API methods in this library. */ -const gapicConfig = JSON.parse(fs.readFileSync(path.join(dirname, 'cloud_tasks_client_config.json'),'utf8')); -const jsonProtos = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', 'protos/protos.json'), 'utf8')); -const version = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', '..', 'package.json'), 'utf8')).version; +const gapicConfig = getJSON( + path.join(dirname, 'cloud_tasks_client_config.json') +); + +const jsonProtos = getJSON( + path.join(dirname, '..', '..', '..', 'protos/protos.json') +); + +const version = getJSON( + path.join(dirname, '..', '..', '..', '..', 'package.json') +).version; /** * Cloud Tasks allows developers to manage the execution of background diff --git a/baselines/tasks-esm/package.json b/baselines/tasks-esm/package.json index 8cb585bdc..1bd168340 100644 --- a/baselines/tasks-esm/package.json +++ b/baselines/tasks-esm/package.json @@ -66,7 +66,7 @@ "test:cjs": "c8 mocha build/cjs/test", "test:esm": "c8 mocha build/esm/test", "test": "npm run test:cjs && npm run test:esm", - "compile:esm": "tsc -p ./tsconfig.esm.json", + "compile:esm": "tsc -p ./tsconfig.esm.json && cp -r esm/src/json-helper.cjs build/esm/src/json-helper.cjs", "babel": "babel esm --out-dir build/cjs --ignore \"esm/**/*.d.ts\" --extensions \".ts\" --out-file-extension .cjs --copy-files", "compile:cjs": "tsc -p ./tsconfig.json && npm run babel", "compile": "npm run compile:esm && npm run compile:cjs && cp -r protos build/protos", diff --git a/baselines/tasks-esm/tsconfig.esm.json.baseline b/baselines/tasks-esm/tsconfig.esm.json.baseline index c2cf8c94c..1ea52fa0e 100644 --- a/baselines/tasks-esm/tsconfig.esm.json.baseline +++ b/baselines/tasks-esm/tsconfig.esm.json.baseline @@ -20,5 +20,8 @@ "esm/test/*.ts", "esm/test/**/*.ts", "esm/system-test/*.ts" + ], + "exclude": [ + "esm/src/json-helper.cjs" ] } diff --git a/baselines/texttospeech-esm/esm/src/json-helper.cjs.baseline b/baselines/texttospeech-esm/esm/src/json-helper.cjs.baseline new file mode 100644 index 000000000..3c1fc7302 --- /dev/null +++ b/baselines/texttospeech-esm/esm/src/json-helper.cjs.baseline @@ -0,0 +1,20 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/* eslint-disable node/no-missing-require */ +function getJSON(path) { + return require(path); +} + +exports.getJSON = getJSON; diff --git a/baselines/texttospeech-esm/esm/src/v1/text_to_speech_client.ts.baseline b/baselines/texttospeech-esm/esm/src/v1/text_to_speech_client.ts.baseline index 5be6d0d25..aa4538d1a 100644 --- a/baselines/texttospeech-esm/esm/src/v1/text_to_speech_client.ts.baseline +++ b/baselines/texttospeech-esm/esm/src/v1/text_to_speech_client.ts.baseline @@ -26,6 +26,7 @@ import * as text_to_speech_client_config from './text_to_speech_client_config.js import fs from 'fs'; import path from 'path'; import {fileURLToPath} from 'url'; +import {getJSON} from '../json-helper.cjs'; // @ts-ignore const dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -34,9 +35,17 @@ const dirname = path.dirname(fileURLToPath(import.meta.url)); * `src/v1/text_to_speech_client_config.json`. * This file defines retry strategy and timeouts for all API methods in this library. */ -const gapicConfig = JSON.parse(fs.readFileSync(path.join(dirname, 'text_to_speech_client_config.json'),'utf8')); -const jsonProtos = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', 'protos/protos.json'), 'utf8')); -const version = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', '..', 'package.json'), 'utf8')).version; +const gapicConfig = getJSON( + path.join(dirname, 'text_to_speech_client_config.json') +); + +const jsonProtos = getJSON( + path.join(dirname, '..', '..', '..', 'protos/protos.json') +); + +const version = getJSON( + path.join(dirname, '..', '..', '..', '..', 'package.json') +).version; /** * Service that implements Google Cloud Text-to-Speech API. diff --git a/baselines/texttospeech-esm/package.json b/baselines/texttospeech-esm/package.json index bc38535b9..8596dac21 100644 --- a/baselines/texttospeech-esm/package.json +++ b/baselines/texttospeech-esm/package.json @@ -66,7 +66,7 @@ "test:cjs": "c8 mocha build/cjs/test", "test:esm": "c8 mocha build/esm/test", "test": "npm run test:cjs && npm run test:esm", - "compile:esm": "tsc -p ./tsconfig.esm.json", + "compile:esm": "tsc -p ./tsconfig.esm.json && cp -r esm/src/json-helper.cjs build/esm/src/json-helper.cjs", "babel": "babel esm --out-dir build/cjs --ignore \"esm/**/*.d.ts\" --extensions \".ts\" --out-file-extension .cjs --copy-files", "compile:cjs": "tsc -p ./tsconfig.json && npm run babel", "compile": "npm run compile:esm && npm run compile:cjs && cp -r protos build/protos", diff --git a/baselines/texttospeech-esm/tsconfig.esm.json.baseline b/baselines/texttospeech-esm/tsconfig.esm.json.baseline index c2cf8c94c..1ea52fa0e 100644 --- a/baselines/texttospeech-esm/tsconfig.esm.json.baseline +++ b/baselines/texttospeech-esm/tsconfig.esm.json.baseline @@ -20,5 +20,8 @@ "esm/test/*.ts", "esm/test/**/*.ts", "esm/system-test/*.ts" + ], + "exclude": [ + "esm/src/json-helper.cjs" ] } diff --git a/baselines/translate-esm/esm/src/json-helper.cjs.baseline b/baselines/translate-esm/esm/src/json-helper.cjs.baseline new file mode 100644 index 000000000..3c1fc7302 --- /dev/null +++ b/baselines/translate-esm/esm/src/json-helper.cjs.baseline @@ -0,0 +1,20 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/* eslint-disable node/no-missing-require */ +function getJSON(path) { + return require(path); +} + +exports.getJSON = getJSON; diff --git a/baselines/translate-esm/esm/src/v3beta1/translation_service_client.ts.baseline b/baselines/translate-esm/esm/src/v3beta1/translation_service_client.ts.baseline index 7b166315d..8d41b399a 100644 --- a/baselines/translate-esm/esm/src/v3beta1/translation_service_client.ts.baseline +++ b/baselines/translate-esm/esm/src/v3beta1/translation_service_client.ts.baseline @@ -26,6 +26,7 @@ import * as translation_service_client_config from './translation_service_client import fs from 'fs'; import path from 'path'; import {fileURLToPath} from 'url'; +import {getJSON} from '../json-helper.cjs'; // @ts-ignore const dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -34,9 +35,17 @@ const dirname = path.dirname(fileURLToPath(import.meta.url)); * `src/v3beta1/translation_service_client_config.json`. * This file defines retry strategy and timeouts for all API methods in this library. */ -const gapicConfig = JSON.parse(fs.readFileSync(path.join(dirname, 'translation_service_client_config.json'),'utf8')); -const jsonProtos = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', 'protos/protos.json'), 'utf8')); -const version = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', '..', 'package.json'), 'utf8')).version; +const gapicConfig = getJSON( + path.join(dirname, 'translation_service_client_config.json') +); + +const jsonProtos = getJSON( + path.join(dirname, '..', '..', '..', 'protos/protos.json') +); + +const version = getJSON( + path.join(dirname, '..', '..', '..', '..', 'package.json') +).version; /** * Provides natural language translation operations. diff --git a/baselines/translate-esm/package.json b/baselines/translate-esm/package.json index 7dda97502..d865509a2 100644 --- a/baselines/translate-esm/package.json +++ b/baselines/translate-esm/package.json @@ -66,7 +66,7 @@ "test:cjs": "c8 mocha build/cjs/test", "test:esm": "c8 mocha build/esm/test", "test": "npm run test:cjs && npm run test:esm", - "compile:esm": "tsc -p ./tsconfig.esm.json", + "compile:esm": "tsc -p ./tsconfig.esm.json && cp -r esm/src/json-helper.cjs build/esm/src/json-helper.cjs", "babel": "babel esm --out-dir build/cjs --ignore \"esm/**/*.d.ts\" --extensions \".ts\" --out-file-extension .cjs --copy-files", "compile:cjs": "tsc -p ./tsconfig.json && npm run babel", "compile": "npm run compile:esm && npm run compile:cjs && cp -r protos build/protos", diff --git a/baselines/translate-esm/tsconfig.esm.json.baseline b/baselines/translate-esm/tsconfig.esm.json.baseline index c2cf8c94c..1ea52fa0e 100644 --- a/baselines/translate-esm/tsconfig.esm.json.baseline +++ b/baselines/translate-esm/tsconfig.esm.json.baseline @@ -20,5 +20,8 @@ "esm/test/*.ts", "esm/test/**/*.ts", "esm/system-test/*.ts" + ], + "exclude": [ + "esm/src/json-helper.cjs" ] } diff --git a/baselines/videointelligence-esm/esm/src/json-helper.cjs.baseline b/baselines/videointelligence-esm/esm/src/json-helper.cjs.baseline new file mode 100644 index 000000000..3c1fc7302 --- /dev/null +++ b/baselines/videointelligence-esm/esm/src/json-helper.cjs.baseline @@ -0,0 +1,20 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/* eslint-disable node/no-missing-require */ +function getJSON(path) { + return require(path); +} + +exports.getJSON = getJSON; diff --git a/baselines/videointelligence-esm/esm/src/v1/video_intelligence_service_client.ts.baseline b/baselines/videointelligence-esm/esm/src/v1/video_intelligence_service_client.ts.baseline index 87bc40178..d96e41f1e 100644 --- a/baselines/videointelligence-esm/esm/src/v1/video_intelligence_service_client.ts.baseline +++ b/baselines/videointelligence-esm/esm/src/v1/video_intelligence_service_client.ts.baseline @@ -26,6 +26,7 @@ import * as video_intelligence_service_client_config from './video_intelligence_ import fs from 'fs'; import path from 'path'; import {fileURLToPath} from 'url'; +import {getJSON} from '../json-helper.cjs'; // @ts-ignore const dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -34,9 +35,17 @@ const dirname = path.dirname(fileURLToPath(import.meta.url)); * `src/v1/video_intelligence_service_client_config.json`. * This file defines retry strategy and timeouts for all API methods in this library. */ -const gapicConfig = JSON.parse(fs.readFileSync(path.join(dirname, 'video_intelligence_service_client_config.json'),'utf8')); -const jsonProtos = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', 'protos/protos.json'), 'utf8')); -const version = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', '..', 'package.json'), 'utf8')).version; +const gapicConfig = getJSON( + path.join(dirname, 'video_intelligence_service_client_config.json') +); + +const jsonProtos = getJSON( + path.join(dirname, '..', '..', '..', 'protos/protos.json') +); + +const version = getJSON( + path.join(dirname, '..', '..', '..', '..', 'package.json') +).version; /** * Service that implements Google Cloud Video Intelligence API. diff --git a/baselines/videointelligence-esm/package.json b/baselines/videointelligence-esm/package.json index 5eff5d1fc..058e84778 100644 --- a/baselines/videointelligence-esm/package.json +++ b/baselines/videointelligence-esm/package.json @@ -66,7 +66,7 @@ "test:cjs": "c8 mocha build/cjs/test", "test:esm": "c8 mocha build/esm/test", "test": "npm run test:cjs && npm run test:esm", - "compile:esm": "tsc -p ./tsconfig.esm.json", + "compile:esm": "tsc -p ./tsconfig.esm.json && cp -r esm/src/json-helper.cjs build/esm/src/json-helper.cjs", "babel": "babel esm --out-dir build/cjs --ignore \"esm/**/*.d.ts\" --extensions \".ts\" --out-file-extension .cjs --copy-files", "compile:cjs": "tsc -p ./tsconfig.json && npm run babel", "compile": "npm run compile:esm && npm run compile:cjs && cp -r protos build/protos", diff --git a/baselines/videointelligence-esm/tsconfig.esm.json.baseline b/baselines/videointelligence-esm/tsconfig.esm.json.baseline index c2cf8c94c..1ea52fa0e 100644 --- a/baselines/videointelligence-esm/tsconfig.esm.json.baseline +++ b/baselines/videointelligence-esm/tsconfig.esm.json.baseline @@ -20,5 +20,8 @@ "esm/test/*.ts", "esm/test/**/*.ts", "esm/system-test/*.ts" + ], + "exclude": [ + "esm/src/json-helper.cjs" ] } diff --git a/templates/esm/typescript_gapic/esm/src/$version/$service_client.ts.njk b/templates/esm/typescript_gapic/esm/src/$version/$service_client.ts.njk index b39582673..c5e8ba001 100644 --- a/templates/esm/typescript_gapic/esm/src/$version/$service_client.ts.njk +++ b/templates/esm/typescript_gapic/esm/src/$version/$service_client.ts.njk @@ -47,6 +47,7 @@ import * as {{ service.name.toSnakeCase() }}_client_config from './{{ service.na import fs from 'fs'; import path from 'path'; import {fileURLToPath} from 'url'; +import {getJSON} from '../json-helper.cjs'; // @ts-ignore const dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -55,11 +56,17 @@ const dirname = path.dirname(fileURLToPath(import.meta.url)); * `src/{{ api.naming.version }}/{{ service.name.toSnakeCase() }}_client_config.json`. * This file defines retry strategy and timeouts for all API methods in this library. */ -const gapicConfig = JSON.parse(fs.readFileSync(path.join(dirname, '{{ service.name.toSnakeCase() }}_client_config.json'),'utf8')); -{%- if not api.legacyProtoLoad %} -const jsonProtos = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', 'protos/protos.json'), 'utf8')); -{%- endif %} -const version = JSON.parse(fs.readFileSync(path.join(dirname, '..', '..', '..', '..', 'package.json'), 'utf8')).version; +const gapicConfig = getJSON( + path.join(dirname, '{{ service.name.toSnakeCase() }}_client_config.json') +); +{% if not api.legacyProtoLoad %} +const jsonProtos = getJSON( + path.join(dirname, '..', '..', '..', 'protos/protos.json') +); +{% endif %} +const version = getJSON( + path.join(dirname, '..', '..', '..', '..', 'package.json') +).version; /** {{- util.printCommentsForService(service) }} diff --git a/templates/esm/typescript_gapic/esm/src/json-helper.cjs.njk b/templates/esm/typescript_gapic/esm/src/json-helper.cjs.njk new file mode 100644 index 000000000..3c1fc7302 --- /dev/null +++ b/templates/esm/typescript_gapic/esm/src/json-helper.cjs.njk @@ -0,0 +1,20 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/* eslint-disable node/no-missing-require */ +function getJSON(path) { + return require(path); +} + +exports.getJSON = getJSON; diff --git a/templates/esm/typescript_gapic/package.json b/templates/esm/typescript_gapic/package.json index be0ec593b..8a94e670c 100644 --- a/templates/esm/typescript_gapic/package.json +++ b/templates/esm/typescript_gapic/package.json @@ -67,7 +67,7 @@ "test:cjs": "c8 mocha build/cjs/test", "test:esm": "c8 mocha build/esm/test", "test": "npm run test:cjs && npm run test:esm", - "compile:esm": "tsc -p ./tsconfig.esm.json", + "compile:esm": "tsc -p ./tsconfig.esm.json && cp -r esm/src/json-helper.cjs build/esm/src/json-helper.cjs", "babel": "babel esm --out-dir build/cjs --ignore \"esm/**/*.d.ts\" --extensions \".ts\" --out-file-extension .cjs --copy-files", "compile:cjs": "tsc -p ./tsconfig.json && npm run babel", "compile": "npm run compile:esm && npm run compile:cjs && cp -r protos build/protos", diff --git a/templates/esm/typescript_gapic/tsconfig.esm.json.njk b/templates/esm/typescript_gapic/tsconfig.esm.json.njk index cf2cac0d7..45731676f 100644 --- a/templates/esm/typescript_gapic/tsconfig.esm.json.njk +++ b/templates/esm/typescript_gapic/tsconfig.esm.json.njk @@ -37,5 +37,8 @@ limitations under the License. "esm/test/*.ts", "esm/test/**/*.ts", "esm/system-test/*.ts" + ], + "exclude": [ + "esm/src/json-helper.cjs" ] } \ No newline at end of file From df3e409e1577a077f0fc9eb97cbce58bd1e6035e Mon Sep 17 00:00:00 2001 From: sofisl <55454395+sofisl@users.noreply.github.com> Date: Fri, 23 Feb 2024 11:42:29 -0800 Subject: [PATCH 27/35] fix: add client library version to headers (#1538) * fix: add client library name and version to headers --- .../asset-esm/esm/src/v1/asset_service_client.ts.baseline | 6 ++---- .../esm/src/v1beta1/big_query_storage_client.ts.baseline | 6 ++---- .../compute-esm/esm/src/v1/addresses_client.ts.baseline | 6 ++---- .../esm/src/v1/region_operations_client.ts.baseline | 6 ++---- .../esm/src/v1/deprecated_service_client.ts.baseline | 6 ++---- .../esm/src/v1beta1/compliance_client.ts.baseline | 6 ++---- .../esm/src/v1beta1/echo_client.ts.baseline | 6 ++---- .../esm/src/v1beta1/identity_client.ts.baseline | 6 ++---- .../esm/src/v1beta1/messaging_client.ts.baseline | 6 ++---- .../esm/src/v1beta1/sequence_service_client.ts.baseline | 6 ++---- .../esm/src/v1beta1/testing_client.ts.baseline | 6 ++---- baselines/dlp-esm/esm/src/v2/dlp_service_client.ts.baseline | 6 ++---- .../esm/src/v1/key_management_service_client.ts.baseline | 6 ++---- .../esm/src/v2/config_service_v2_client.ts.baseline | 6 ++---- .../esm/src/v2/logging_service_v2_client.ts.baseline | 6 ++---- .../esm/src/v2/metrics_service_v2_client.ts.baseline | 6 ++---- .../esm/src/v3/alert_policy_service_client.ts.baseline | 6 ++---- .../esm/src/v3/group_service_client.ts.baseline | 6 ++---- .../esm/src/v3/metric_service_client.ts.baseline | 6 ++---- .../src/v3/notification_channel_service_client.ts.baseline | 6 ++---- .../src/v3/service_monitoring_service_client.ts.baseline | 6 ++---- .../esm/src/v3/uptime_check_service_client.ts.baseline | 6 ++---- .../naming-esm/esm/src/v1beta1/naming_client.ts.baseline | 6 ++---- .../esm/src/v1beta1/cloud_redis_client.ts.baseline | 6 ++---- .../esm/src/v1/test_service_client.ts.baseline | 6 ++---- .../esm/src/v1beta1/compliance_client.ts.baseline | 6 ++---- .../showcase-esm/esm/src/v1beta1/echo_client.ts.baseline | 6 ++---- .../esm/src/v1beta1/identity_client.ts.baseline | 6 ++---- .../esm/src/v1beta1/messaging_client.ts.baseline | 6 ++---- .../esm/src/v1beta1/sequence_service_client.ts.baseline | 6 ++---- .../showcase-esm/esm/src/v1beta1/testing_client.ts.baseline | 6 ++---- .../esm/src/v1beta1/echo_client.ts.baseline | 6 ++---- .../tasks-esm/esm/src/v2/cloud_tasks_client.ts.baseline | 6 ++---- .../esm/src/v1/text_to_speech_client.ts.baseline | 6 ++---- .../esm/src/v3beta1/translation_service_client.ts.baseline | 6 ++---- .../src/v1/video_intelligence_service_client.ts.baseline | 6 ++---- .../esm/src/$version/$service_client.ts.njk | 6 ++---- 37 files changed, 74 insertions(+), 148 deletions(-) diff --git a/baselines/asset-esm/esm/src/v1/asset_service_client.ts.baseline b/baselines/asset-esm/esm/src/v1/asset_service_client.ts.baseline index ad72f4afb..e09860b88 100644 --- a/baselines/asset-esm/esm/src/v1/asset_service_client.ts.baseline +++ b/baselines/asset-esm/esm/src/v1/asset_service_client.ts.baseline @@ -183,10 +183,8 @@ export class AssetServiceClient { } // Add ESM headers const isEsm = true; - if (opts.libVersion && isEsm) { - clientHeader.push(`${opts.libVersion}-esm`); - } else if (opts.libVersion && !isEsm) { - clientHeader.push(`${opts.libVersion}-cjs`); + if ((opts.libVersion || version) && isEsm) { + clientHeader.push(`${opts.libVersion ?? version}-esm`); } // Load the applicable protos. diff --git a/baselines/bigquery-storage-esm/esm/src/v1beta1/big_query_storage_client.ts.baseline b/baselines/bigquery-storage-esm/esm/src/v1beta1/big_query_storage_client.ts.baseline index 4fe92c6b6..bf97fed58 100644 --- a/baselines/bigquery-storage-esm/esm/src/v1beta1/big_query_storage_client.ts.baseline +++ b/baselines/bigquery-storage-esm/esm/src/v1beta1/big_query_storage_client.ts.baseline @@ -184,10 +184,8 @@ export class BigQueryStorageClient { } // Add ESM headers const isEsm = true; - if (opts.libVersion && isEsm) { - clientHeader.push(`${opts.libVersion}-esm`); - } else if (opts.libVersion && !isEsm) { - clientHeader.push(`${opts.libVersion}-cjs`); + if ((opts.libVersion || version) && isEsm) { + clientHeader.push(`${opts.libVersion ?? version}-esm`); } // Load the applicable protos. diff --git a/baselines/compute-esm/esm/src/v1/addresses_client.ts.baseline b/baselines/compute-esm/esm/src/v1/addresses_client.ts.baseline index 2c2fed31f..3de4f6410 100644 --- a/baselines/compute-esm/esm/src/v1/addresses_client.ts.baseline +++ b/baselines/compute-esm/esm/src/v1/addresses_client.ts.baseline @@ -187,10 +187,8 @@ export class AddressesClient { } // Add ESM headers const isEsm = true; - if (opts.libVersion && isEsm) { - clientHeader.push(`${opts.libVersion}-esm`); - } else if (opts.libVersion && !isEsm) { - clientHeader.push(`${opts.libVersion}-cjs`); + if ((opts.libVersion || version) && isEsm) { + clientHeader.push(`${opts.libVersion ?? version}-esm`); } // Load the applicable protos. diff --git a/baselines/compute-esm/esm/src/v1/region_operations_client.ts.baseline b/baselines/compute-esm/esm/src/v1/region_operations_client.ts.baseline index 3493ca25c..7168b4a56 100644 --- a/baselines/compute-esm/esm/src/v1/region_operations_client.ts.baseline +++ b/baselines/compute-esm/esm/src/v1/region_operations_client.ts.baseline @@ -184,10 +184,8 @@ export class RegionOperationsClient { } // Add ESM headers const isEsm = true; - if (opts.libVersion && isEsm) { - clientHeader.push(`${opts.libVersion}-esm`); - } else if (opts.libVersion && !isEsm) { - clientHeader.push(`${opts.libVersion}-cjs`); + if ((opts.libVersion || version) && isEsm) { + clientHeader.push(`${opts.libVersion ?? version}-esm`); } // Load the applicable protos. diff --git a/baselines/deprecatedtest-esm/esm/src/v1/deprecated_service_client.ts.baseline b/baselines/deprecatedtest-esm/esm/src/v1/deprecated_service_client.ts.baseline index 473d104e1..27b967451 100644 --- a/baselines/deprecatedtest-esm/esm/src/v1/deprecated_service_client.ts.baseline +++ b/baselines/deprecatedtest-esm/esm/src/v1/deprecated_service_client.ts.baseline @@ -183,10 +183,8 @@ export class DeprecatedServiceClient { } // Add ESM headers const isEsm = true; - if (opts.libVersion && isEsm) { - clientHeader.push(`${opts.libVersion}-esm`); - } else if (opts.libVersion && !isEsm) { - clientHeader.push(`${opts.libVersion}-cjs`); + if ((opts.libVersion || version) && isEsm) { + clientHeader.push(`${opts.libVersion ?? version}-esm`); } // Load the applicable protos. diff --git a/baselines/disable-packing-test-esm/esm/src/v1beta1/compliance_client.ts.baseline b/baselines/disable-packing-test-esm/esm/src/v1beta1/compliance_client.ts.baseline index 88958fc57..c2e501b9c 100644 --- a/baselines/disable-packing-test-esm/esm/src/v1beta1/compliance_client.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/src/v1beta1/compliance_client.ts.baseline @@ -184,10 +184,8 @@ export class ComplianceClient { } // Add ESM headers const isEsm = true; - if (opts.libVersion && isEsm) { - clientHeader.push(`${opts.libVersion}-esm`); - } else if (opts.libVersion && !isEsm) { - clientHeader.push(`${opts.libVersion}-cjs`); + if ((opts.libVersion || version) && isEsm) { + clientHeader.push(`${opts.libVersion ?? version}-esm`); } // Load the applicable protos. diff --git a/baselines/disable-packing-test-esm/esm/src/v1beta1/echo_client.ts.baseline b/baselines/disable-packing-test-esm/esm/src/v1beta1/echo_client.ts.baseline index c560a2c14..177c72068 100644 --- a/baselines/disable-packing-test-esm/esm/src/v1beta1/echo_client.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/src/v1beta1/echo_client.ts.baseline @@ -189,10 +189,8 @@ export class EchoClient { } // Add ESM headers const isEsm = true; - if (opts.libVersion && isEsm) { - clientHeader.push(`${opts.libVersion}-esm`); - } else if (opts.libVersion && !isEsm) { - clientHeader.push(`${opts.libVersion}-cjs`); + if ((opts.libVersion || version) && isEsm) { + clientHeader.push(`${opts.libVersion ?? version}-esm`); } // Load the applicable protos. diff --git a/baselines/disable-packing-test-esm/esm/src/v1beta1/identity_client.ts.baseline b/baselines/disable-packing-test-esm/esm/src/v1beta1/identity_client.ts.baseline index a7ea0d049..964de327f 100644 --- a/baselines/disable-packing-test-esm/esm/src/v1beta1/identity_client.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/src/v1beta1/identity_client.ts.baseline @@ -182,10 +182,8 @@ export class IdentityClient { } // Add ESM headers const isEsm = true; - if (opts.libVersion && isEsm) { - clientHeader.push(`${opts.libVersion}-esm`); - } else if (opts.libVersion && !isEsm) { - clientHeader.push(`${opts.libVersion}-cjs`); + if ((opts.libVersion || version) && isEsm) { + clientHeader.push(`${opts.libVersion ?? version}-esm`); } // Load the applicable protos. diff --git a/baselines/disable-packing-test-esm/esm/src/v1beta1/messaging_client.ts.baseline b/baselines/disable-packing-test-esm/esm/src/v1beta1/messaging_client.ts.baseline index 688e1a188..dfd67e66c 100644 --- a/baselines/disable-packing-test-esm/esm/src/v1beta1/messaging_client.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/src/v1beta1/messaging_client.ts.baseline @@ -186,10 +186,8 @@ export class MessagingClient { } // Add ESM headers const isEsm = true; - if (opts.libVersion && isEsm) { - clientHeader.push(`${opts.libVersion}-esm`); - } else if (opts.libVersion && !isEsm) { - clientHeader.push(`${opts.libVersion}-cjs`); + if ((opts.libVersion || version) && isEsm) { + clientHeader.push(`${opts.libVersion ?? version}-esm`); } // Load the applicable protos. diff --git a/baselines/disable-packing-test-esm/esm/src/v1beta1/sequence_service_client.ts.baseline b/baselines/disable-packing-test-esm/esm/src/v1beta1/sequence_service_client.ts.baseline index 9a3e70c41..af8af5bf1 100644 --- a/baselines/disable-packing-test-esm/esm/src/v1beta1/sequence_service_client.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/src/v1beta1/sequence_service_client.ts.baseline @@ -181,10 +181,8 @@ export class SequenceServiceClient { } // Add ESM headers const isEsm = true; - if (opts.libVersion && isEsm) { - clientHeader.push(`${opts.libVersion}-esm`); - } else if (opts.libVersion && !isEsm) { - clientHeader.push(`${opts.libVersion}-cjs`); + if ((opts.libVersion || version) && isEsm) { + clientHeader.push(`${opts.libVersion ?? version}-esm`); } // Load the applicable protos. diff --git a/baselines/disable-packing-test-esm/esm/src/v1beta1/testing_client.ts.baseline b/baselines/disable-packing-test-esm/esm/src/v1beta1/testing_client.ts.baseline index abacf7e01..98ecfb15c 100644 --- a/baselines/disable-packing-test-esm/esm/src/v1beta1/testing_client.ts.baseline +++ b/baselines/disable-packing-test-esm/esm/src/v1beta1/testing_client.ts.baseline @@ -183,10 +183,8 @@ export class TestingClient { } // Add ESM headers const isEsm = true; - if (opts.libVersion && isEsm) { - clientHeader.push(`${opts.libVersion}-esm`); - } else if (opts.libVersion && !isEsm) { - clientHeader.push(`${opts.libVersion}-cjs`); + if ((opts.libVersion || version) && isEsm) { + clientHeader.push(`${opts.libVersion ?? version}-esm`); } // Load the applicable protos. diff --git a/baselines/dlp-esm/esm/src/v2/dlp_service_client.ts.baseline b/baselines/dlp-esm/esm/src/v2/dlp_service_client.ts.baseline index e7f32ef70..c468ab33a 100644 --- a/baselines/dlp-esm/esm/src/v2/dlp_service_client.ts.baseline +++ b/baselines/dlp-esm/esm/src/v2/dlp_service_client.ts.baseline @@ -190,10 +190,8 @@ export class DlpServiceClient { } // Add ESM headers const isEsm = true; - if (opts.libVersion && isEsm) { - clientHeader.push(`${opts.libVersion}-esm`); - } else if (opts.libVersion && !isEsm) { - clientHeader.push(`${opts.libVersion}-cjs`); + if ((opts.libVersion || version) && isEsm) { + clientHeader.push(`${opts.libVersion ?? version}-esm`); } // Load the applicable protos. diff --git a/baselines/kms-esm/esm/src/v1/key_management_service_client.ts.baseline b/baselines/kms-esm/esm/src/v1/key_management_service_client.ts.baseline index aec635f5d..dfad83f53 100644 --- a/baselines/kms-esm/esm/src/v1/key_management_service_client.ts.baseline +++ b/baselines/kms-esm/esm/src/v1/key_management_service_client.ts.baseline @@ -194,10 +194,8 @@ export class KeyManagementServiceClient { } // Add ESM headers const isEsm = true; - if (opts.libVersion && isEsm) { - clientHeader.push(`${opts.libVersion}-esm`); - } else if (opts.libVersion && !isEsm) { - clientHeader.push(`${opts.libVersion}-cjs`); + if ((opts.libVersion || version) && isEsm) { + clientHeader.push(`${opts.libVersion ?? version}-esm`); } // Load the applicable protos. diff --git a/baselines/logging-esm/esm/src/v2/config_service_v2_client.ts.baseline b/baselines/logging-esm/esm/src/v2/config_service_v2_client.ts.baseline index bd735524b..907efc6be 100644 --- a/baselines/logging-esm/esm/src/v2/config_service_v2_client.ts.baseline +++ b/baselines/logging-esm/esm/src/v2/config_service_v2_client.ts.baseline @@ -183,10 +183,8 @@ export class ConfigServiceV2Client { } // Add ESM headers const isEsm = true; - if (opts.libVersion && isEsm) { - clientHeader.push(`${opts.libVersion}-esm`); - } else if (opts.libVersion && !isEsm) { - clientHeader.push(`${opts.libVersion}-cjs`); + if ((opts.libVersion || version) && isEsm) { + clientHeader.push(`${opts.libVersion ?? version}-esm`); } // Load the applicable protos. diff --git a/baselines/logging-esm/esm/src/v2/logging_service_v2_client.ts.baseline b/baselines/logging-esm/esm/src/v2/logging_service_v2_client.ts.baseline index b473b390d..d03a03259 100644 --- a/baselines/logging-esm/esm/src/v2/logging_service_v2_client.ts.baseline +++ b/baselines/logging-esm/esm/src/v2/logging_service_v2_client.ts.baseline @@ -182,10 +182,8 @@ export class LoggingServiceV2Client { } // Add ESM headers const isEsm = true; - if (opts.libVersion && isEsm) { - clientHeader.push(`${opts.libVersion}-esm`); - } else if (opts.libVersion && !isEsm) { - clientHeader.push(`${opts.libVersion}-cjs`); + if ((opts.libVersion || version) && isEsm) { + clientHeader.push(`${opts.libVersion ?? version}-esm`); } // Load the applicable protos. diff --git a/baselines/logging-esm/esm/src/v2/metrics_service_v2_client.ts.baseline b/baselines/logging-esm/esm/src/v2/metrics_service_v2_client.ts.baseline index d74e7d2bf..9ac61176d 100644 --- a/baselines/logging-esm/esm/src/v2/metrics_service_v2_client.ts.baseline +++ b/baselines/logging-esm/esm/src/v2/metrics_service_v2_client.ts.baseline @@ -182,10 +182,8 @@ export class MetricsServiceV2Client { } // Add ESM headers const isEsm = true; - if (opts.libVersion && isEsm) { - clientHeader.push(`${opts.libVersion}-esm`); - } else if (opts.libVersion && !isEsm) { - clientHeader.push(`${opts.libVersion}-cjs`); + if ((opts.libVersion || version) && isEsm) { + clientHeader.push(`${opts.libVersion ?? version}-esm`); } // Load the applicable protos. diff --git a/baselines/monitoring-esm/esm/src/v3/alert_policy_service_client.ts.baseline b/baselines/monitoring-esm/esm/src/v3/alert_policy_service_client.ts.baseline index ad50cb469..b804941c6 100644 --- a/baselines/monitoring-esm/esm/src/v3/alert_policy_service_client.ts.baseline +++ b/baselines/monitoring-esm/esm/src/v3/alert_policy_service_client.ts.baseline @@ -190,10 +190,8 @@ export class AlertPolicyServiceClient { } // Add ESM headers const isEsm = true; - if (opts.libVersion && isEsm) { - clientHeader.push(`${opts.libVersion}-esm`); - } else if (opts.libVersion && !isEsm) { - clientHeader.push(`${opts.libVersion}-cjs`); + if ((opts.libVersion || version) && isEsm) { + clientHeader.push(`${opts.libVersion ?? version}-esm`); } // Load the applicable protos. diff --git a/baselines/monitoring-esm/esm/src/v3/group_service_client.ts.baseline b/baselines/monitoring-esm/esm/src/v3/group_service_client.ts.baseline index 06c312c45..32a14efd6 100644 --- a/baselines/monitoring-esm/esm/src/v3/group_service_client.ts.baseline +++ b/baselines/monitoring-esm/esm/src/v3/group_service_client.ts.baseline @@ -193,10 +193,8 @@ export class GroupServiceClient { } // Add ESM headers const isEsm = true; - if (opts.libVersion && isEsm) { - clientHeader.push(`${opts.libVersion}-esm`); - } else if (opts.libVersion && !isEsm) { - clientHeader.push(`${opts.libVersion}-cjs`); + if ((opts.libVersion || version) && isEsm) { + clientHeader.push(`${opts.libVersion ?? version}-esm`); } // Load the applicable protos. diff --git a/baselines/monitoring-esm/esm/src/v3/metric_service_client.ts.baseline b/baselines/monitoring-esm/esm/src/v3/metric_service_client.ts.baseline index b1b03420a..e7d7043c5 100644 --- a/baselines/monitoring-esm/esm/src/v3/metric_service_client.ts.baseline +++ b/baselines/monitoring-esm/esm/src/v3/metric_service_client.ts.baseline @@ -183,10 +183,8 @@ export class MetricServiceClient { } // Add ESM headers const isEsm = true; - if (opts.libVersion && isEsm) { - clientHeader.push(`${opts.libVersion}-esm`); - } else if (opts.libVersion && !isEsm) { - clientHeader.push(`${opts.libVersion}-cjs`); + if ((opts.libVersion || version) && isEsm) { + clientHeader.push(`${opts.libVersion ?? version}-esm`); } // Load the applicable protos. diff --git a/baselines/monitoring-esm/esm/src/v3/notification_channel_service_client.ts.baseline b/baselines/monitoring-esm/esm/src/v3/notification_channel_service_client.ts.baseline index ef4d8af14..dfba989e8 100644 --- a/baselines/monitoring-esm/esm/src/v3/notification_channel_service_client.ts.baseline +++ b/baselines/monitoring-esm/esm/src/v3/notification_channel_service_client.ts.baseline @@ -183,10 +183,8 @@ export class NotificationChannelServiceClient { } // Add ESM headers const isEsm = true; - if (opts.libVersion && isEsm) { - clientHeader.push(`${opts.libVersion}-esm`); - } else if (opts.libVersion && !isEsm) { - clientHeader.push(`${opts.libVersion}-cjs`); + if ((opts.libVersion || version) && isEsm) { + clientHeader.push(`${opts.libVersion ?? version}-esm`); } // Load the applicable protos. diff --git a/baselines/monitoring-esm/esm/src/v3/service_monitoring_service_client.ts.baseline b/baselines/monitoring-esm/esm/src/v3/service_monitoring_service_client.ts.baseline index 2dfdca713..a3cce6063 100644 --- a/baselines/monitoring-esm/esm/src/v3/service_monitoring_service_client.ts.baseline +++ b/baselines/monitoring-esm/esm/src/v3/service_monitoring_service_client.ts.baseline @@ -185,10 +185,8 @@ export class ServiceMonitoringServiceClient { } // Add ESM headers const isEsm = true; - if (opts.libVersion && isEsm) { - clientHeader.push(`${opts.libVersion}-esm`); - } else if (opts.libVersion && !isEsm) { - clientHeader.push(`${opts.libVersion}-cjs`); + if ((opts.libVersion || version) && isEsm) { + clientHeader.push(`${opts.libVersion ?? version}-esm`); } // Load the applicable protos. diff --git a/baselines/monitoring-esm/esm/src/v3/uptime_check_service_client.ts.baseline b/baselines/monitoring-esm/esm/src/v3/uptime_check_service_client.ts.baseline index f52d14db3..8ea3a420a 100644 --- a/baselines/monitoring-esm/esm/src/v3/uptime_check_service_client.ts.baseline +++ b/baselines/monitoring-esm/esm/src/v3/uptime_check_service_client.ts.baseline @@ -189,10 +189,8 @@ export class UptimeCheckServiceClient { } // Add ESM headers const isEsm = true; - if (opts.libVersion && isEsm) { - clientHeader.push(`${opts.libVersion}-esm`); - } else if (opts.libVersion && !isEsm) { - clientHeader.push(`${opts.libVersion}-cjs`); + if ((opts.libVersion || version) && isEsm) { + clientHeader.push(`${opts.libVersion ?? version}-esm`); } // Load the applicable protos. diff --git a/baselines/naming-esm/esm/src/v1beta1/naming_client.ts.baseline b/baselines/naming-esm/esm/src/v1beta1/naming_client.ts.baseline index 07cc2b4da..7936ca197 100644 --- a/baselines/naming-esm/esm/src/v1beta1/naming_client.ts.baseline +++ b/baselines/naming-esm/esm/src/v1beta1/naming_client.ts.baseline @@ -183,10 +183,8 @@ export class NamingClient { } // Add ESM headers const isEsm = true; - if (opts.libVersion && isEsm) { - clientHeader.push(`${opts.libVersion}-esm`); - } else if (opts.libVersion && !isEsm) { - clientHeader.push(`${opts.libVersion}-cjs`); + if ((opts.libVersion || version) && isEsm) { + clientHeader.push(`${opts.libVersion ?? version}-esm`); } // Load the applicable protos. diff --git a/baselines/redis-esm/esm/src/v1beta1/cloud_redis_client.ts.baseline b/baselines/redis-esm/esm/src/v1beta1/cloud_redis_client.ts.baseline index d680d8a18..3b3c17a5a 100644 --- a/baselines/redis-esm/esm/src/v1beta1/cloud_redis_client.ts.baseline +++ b/baselines/redis-esm/esm/src/v1beta1/cloud_redis_client.ts.baseline @@ -197,10 +197,8 @@ export class CloudRedisClient { } // Add ESM headers const isEsm = true; - if (opts.libVersion && isEsm) { - clientHeader.push(`${opts.libVersion}-esm`); - } else if (opts.libVersion && !isEsm) { - clientHeader.push(`${opts.libVersion}-cjs`); + if ((opts.libVersion || version) && isEsm) { + clientHeader.push(`${opts.libVersion ?? version}-esm`); } // Load the applicable protos. diff --git a/baselines/routingtest-esm/esm/src/v1/test_service_client.ts.baseline b/baselines/routingtest-esm/esm/src/v1/test_service_client.ts.baseline index 9b6a70ad7..316882243 100644 --- a/baselines/routingtest-esm/esm/src/v1/test_service_client.ts.baseline +++ b/baselines/routingtest-esm/esm/src/v1/test_service_client.ts.baseline @@ -182,10 +182,8 @@ export class TestServiceClient { } // Add ESM headers const isEsm = true; - if (opts.libVersion && isEsm) { - clientHeader.push(`${opts.libVersion}-esm`); - } else if (opts.libVersion && !isEsm) { - clientHeader.push(`${opts.libVersion}-cjs`); + if ((opts.libVersion || version) && isEsm) { + clientHeader.push(`${opts.libVersion ?? version}-esm`); } // Load the applicable protos. diff --git a/baselines/showcase-esm/esm/src/v1beta1/compliance_client.ts.baseline b/baselines/showcase-esm/esm/src/v1beta1/compliance_client.ts.baseline index 45c632304..7e8da8c80 100644 --- a/baselines/showcase-esm/esm/src/v1beta1/compliance_client.ts.baseline +++ b/baselines/showcase-esm/esm/src/v1beta1/compliance_client.ts.baseline @@ -187,10 +187,8 @@ export class ComplianceClient { } // Add ESM headers const isEsm = true; - if (opts.libVersion && isEsm) { - clientHeader.push(`${opts.libVersion}-esm`); - } else if (opts.libVersion && !isEsm) { - clientHeader.push(`${opts.libVersion}-cjs`); + if ((opts.libVersion || version) && isEsm) { + clientHeader.push(`${opts.libVersion ?? version}-esm`); } // Load the applicable protos. diff --git a/baselines/showcase-esm/esm/src/v1beta1/echo_client.ts.baseline b/baselines/showcase-esm/esm/src/v1beta1/echo_client.ts.baseline index ff0a53467..bb4a21b97 100644 --- a/baselines/showcase-esm/esm/src/v1beta1/echo_client.ts.baseline +++ b/baselines/showcase-esm/esm/src/v1beta1/echo_client.ts.baseline @@ -192,10 +192,8 @@ export class EchoClient { } // Add ESM headers const isEsm = true; - if (opts.libVersion && isEsm) { - clientHeader.push(`${opts.libVersion}-esm`); - } else if (opts.libVersion && !isEsm) { - clientHeader.push(`${opts.libVersion}-cjs`); + if ((opts.libVersion || version) && isEsm) { + clientHeader.push(`${opts.libVersion ?? version}-esm`); } // Load the applicable protos. diff --git a/baselines/showcase-esm/esm/src/v1beta1/identity_client.ts.baseline b/baselines/showcase-esm/esm/src/v1beta1/identity_client.ts.baseline index 26cc8086a..b6413f733 100644 --- a/baselines/showcase-esm/esm/src/v1beta1/identity_client.ts.baseline +++ b/baselines/showcase-esm/esm/src/v1beta1/identity_client.ts.baseline @@ -185,10 +185,8 @@ export class IdentityClient { } // Add ESM headers const isEsm = true; - if (opts.libVersion && isEsm) { - clientHeader.push(`${opts.libVersion}-esm`); - } else if (opts.libVersion && !isEsm) { - clientHeader.push(`${opts.libVersion}-cjs`); + if ((opts.libVersion || version) && isEsm) { + clientHeader.push(`${opts.libVersion ?? version}-esm`); } // Load the applicable protos. diff --git a/baselines/showcase-esm/esm/src/v1beta1/messaging_client.ts.baseline b/baselines/showcase-esm/esm/src/v1beta1/messaging_client.ts.baseline index 385bbb95b..87842931d 100644 --- a/baselines/showcase-esm/esm/src/v1beta1/messaging_client.ts.baseline +++ b/baselines/showcase-esm/esm/src/v1beta1/messaging_client.ts.baseline @@ -189,10 +189,8 @@ export class MessagingClient { } // Add ESM headers const isEsm = true; - if (opts.libVersion && isEsm) { - clientHeader.push(`${opts.libVersion}-esm`); - } else if (opts.libVersion && !isEsm) { - clientHeader.push(`${opts.libVersion}-cjs`); + if ((opts.libVersion || version) && isEsm) { + clientHeader.push(`${opts.libVersion ?? version}-esm`); } // Load the applicable protos. diff --git a/baselines/showcase-esm/esm/src/v1beta1/sequence_service_client.ts.baseline b/baselines/showcase-esm/esm/src/v1beta1/sequence_service_client.ts.baseline index cec2123b3..3beaadeb8 100644 --- a/baselines/showcase-esm/esm/src/v1beta1/sequence_service_client.ts.baseline +++ b/baselines/showcase-esm/esm/src/v1beta1/sequence_service_client.ts.baseline @@ -184,10 +184,8 @@ export class SequenceServiceClient { } // Add ESM headers const isEsm = true; - if (opts.libVersion && isEsm) { - clientHeader.push(`${opts.libVersion}-esm`); - } else if (opts.libVersion && !isEsm) { - clientHeader.push(`${opts.libVersion}-cjs`); + if ((opts.libVersion || version) && isEsm) { + clientHeader.push(`${opts.libVersion ?? version}-esm`); } // Load the applicable protos. diff --git a/baselines/showcase-esm/esm/src/v1beta1/testing_client.ts.baseline b/baselines/showcase-esm/esm/src/v1beta1/testing_client.ts.baseline index eb8526b61..ec22ef239 100644 --- a/baselines/showcase-esm/esm/src/v1beta1/testing_client.ts.baseline +++ b/baselines/showcase-esm/esm/src/v1beta1/testing_client.ts.baseline @@ -186,10 +186,8 @@ export class TestingClient { } // Add ESM headers const isEsm = true; - if (opts.libVersion && isEsm) { - clientHeader.push(`${opts.libVersion}-esm`); - } else if (opts.libVersion && !isEsm) { - clientHeader.push(`${opts.libVersion}-cjs`); + if ((opts.libVersion || version) && isEsm) { + clientHeader.push(`${opts.libVersion ?? version}-esm`); } // Load the applicable protos. diff --git a/baselines/showcase-legacy-esm/esm/src/v1beta1/echo_client.ts.baseline b/baselines/showcase-legacy-esm/esm/src/v1beta1/echo_client.ts.baseline index f50ea21b4..48df1a863 100644 --- a/baselines/showcase-legacy-esm/esm/src/v1beta1/echo_client.ts.baseline +++ b/baselines/showcase-legacy-esm/esm/src/v1beta1/echo_client.ts.baseline @@ -162,10 +162,8 @@ export class EchoClient { } // Add ESM headers const isEsm = true; - if (opts.libVersion && isEsm) { - clientHeader.push(`${opts.libVersion}-esm`); - } else if (opts.libVersion && !isEsm) { - clientHeader.push(`${opts.libVersion}-cjs`); + if ((opts.libVersion || version) && isEsm) { + clientHeader.push(`${opts.libVersion ?? version}-esm`); } // Load the applicable protos. diff --git a/baselines/tasks-esm/esm/src/v2/cloud_tasks_client.ts.baseline b/baselines/tasks-esm/esm/src/v2/cloud_tasks_client.ts.baseline index 8b27e5bb9..ebd8ca4b9 100644 --- a/baselines/tasks-esm/esm/src/v2/cloud_tasks_client.ts.baseline +++ b/baselines/tasks-esm/esm/src/v2/cloud_tasks_client.ts.baseline @@ -183,10 +183,8 @@ export class CloudTasksClient { } // Add ESM headers const isEsm = true; - if (opts.libVersion && isEsm) { - clientHeader.push(`${opts.libVersion}-esm`); - } else if (opts.libVersion && !isEsm) { - clientHeader.push(`${opts.libVersion}-cjs`); + if ((opts.libVersion || version) && isEsm) { + clientHeader.push(`${opts.libVersion ?? version}-esm`); } // Load the applicable protos. diff --git a/baselines/texttospeech-esm/esm/src/v1/text_to_speech_client.ts.baseline b/baselines/texttospeech-esm/esm/src/v1/text_to_speech_client.ts.baseline index aa4538d1a..5f45693cc 100644 --- a/baselines/texttospeech-esm/esm/src/v1/text_to_speech_client.ts.baseline +++ b/baselines/texttospeech-esm/esm/src/v1/text_to_speech_client.ts.baseline @@ -181,10 +181,8 @@ export class TextToSpeechClient { } // Add ESM headers const isEsm = true; - if (opts.libVersion && isEsm) { - clientHeader.push(`${opts.libVersion}-esm`); - } else if (opts.libVersion && !isEsm) { - clientHeader.push(`${opts.libVersion}-cjs`); + if ((opts.libVersion || version) && isEsm) { + clientHeader.push(`${opts.libVersion ?? version}-esm`); } // Load the applicable protos. diff --git a/baselines/translate-esm/esm/src/v3beta1/translation_service_client.ts.baseline b/baselines/translate-esm/esm/src/v3beta1/translation_service_client.ts.baseline index 8d41b399a..31c7569cd 100644 --- a/baselines/translate-esm/esm/src/v3beta1/translation_service_client.ts.baseline +++ b/baselines/translate-esm/esm/src/v3beta1/translation_service_client.ts.baseline @@ -183,10 +183,8 @@ export class TranslationServiceClient { } // Add ESM headers const isEsm = true; - if (opts.libVersion && isEsm) { - clientHeader.push(`${opts.libVersion}-esm`); - } else if (opts.libVersion && !isEsm) { - clientHeader.push(`${opts.libVersion}-cjs`); + if ((opts.libVersion || version) && isEsm) { + clientHeader.push(`${opts.libVersion ?? version}-esm`); } // Load the applicable protos. diff --git a/baselines/videointelligence-esm/esm/src/v1/video_intelligence_service_client.ts.baseline b/baselines/videointelligence-esm/esm/src/v1/video_intelligence_service_client.ts.baseline index d96e41f1e..dbaa10635 100644 --- a/baselines/videointelligence-esm/esm/src/v1/video_intelligence_service_client.ts.baseline +++ b/baselines/videointelligence-esm/esm/src/v1/video_intelligence_service_client.ts.baseline @@ -182,10 +182,8 @@ export class VideoIntelligenceServiceClient { } // Add ESM headers const isEsm = true; - if (opts.libVersion && isEsm) { - clientHeader.push(`${opts.libVersion}-esm`); - } else if (opts.libVersion && !isEsm) { - clientHeader.push(`${opts.libVersion}-cjs`); + if ((opts.libVersion || version) && isEsm) { + clientHeader.push(`${opts.libVersion ?? version}-esm`); } // Load the applicable protos. diff --git a/templates/esm/typescript_gapic/esm/src/$version/$service_client.ts.njk b/templates/esm/typescript_gapic/esm/src/$version/$service_client.ts.njk index c5e8ba001..188aea4a1 100644 --- a/templates/esm/typescript_gapic/esm/src/$version/$service_client.ts.njk +++ b/templates/esm/typescript_gapic/esm/src/$version/$service_client.ts.njk @@ -259,10 +259,8 @@ export class {{ service.name }}Client { } // Add ESM headers const isEsm = true; - if (opts.libVersion && isEsm) { - clientHeader.push(`${opts.libVersion}-esm`); - } else if (opts.libVersion && !isEsm) { - clientHeader.push(`${opts.libVersion}-cjs`); + if ((opts.libVersion || version) && isEsm) { + clientHeader.push(`${opts.libVersion ?? version}-esm`); } // Load the applicable protos. From a8499df4e5b38f19cf24a18d5bf8965ac3dcc82c Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 23 Feb 2024 12:32:25 -0800 Subject: [PATCH 28/35] chore(main): release 4.4.2 (#1541) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- CHANGELOG.md | 10 ++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 031243679..72d00d9f5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## [4.4.2](https://github.com/googleapis/gapic-generator-typescript/compare/v4.4.1...v4.4.2) (2024-02-23) + + +### Bug Fixes + +* Add client library version to headers ([#1538](https://github.com/googleapis/gapic-generator-typescript/issues/1538)) ([df3e409](https://github.com/googleapis/gapic-generator-typescript/commit/df3e409e1577a077f0fc9eb97cbce58bd1e6035e)) +* Allow bundlers to bundle JSON files correctly ([#1545](https://github.com/googleapis/gapic-generator-typescript/issues/1545)) ([f911ac8](https://github.com/googleapis/gapic-generator-typescript/commit/f911ac838d09a1ed0c4e56ea41039a953ed0741c)) +* **deps:** Update dependency google-gax to ^4.3.1 ([#1540](https://github.com/googleapis/gapic-generator-typescript/issues/1540)) ([846c62e](https://github.com/googleapis/gapic-generator-typescript/commit/846c62edc09979215c9643959af86befd2557996)) +* Export types from protos in esm ([#1543](https://github.com/googleapis/gapic-generator-typescript/issues/1543)) ([28f06d6](https://github.com/googleapis/gapic-generator-typescript/commit/28f06d64f55aec7f77a485a0b97119654e00ce0d)) + ## [4.4.1](https://github.com/googleapis/gapic-generator-typescript/compare/v4.4.0...v4.4.1) (2024-02-06) diff --git a/package-lock.json b/package-lock.json index 6191c606f..1a0cca3d9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@google-cloud/gapic-generator", - "version": "4.4.1", + "version": "4.4.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@google-cloud/gapic-generator", - "version": "4.4.1", + "version": "4.4.2", "license": "Apache-2.0", "dependencies": { "@types/js-yaml": "^4.0.9", diff --git a/package.json b/package.json index 14ec9810e..9db23d78f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@google-cloud/gapic-generator", - "version": "4.4.1", + "version": "4.4.2", "type": "module", "description": "Google API Client Library Generator for TypeScript, written in TypeScript.", "homepage": "https://github.com/googleapis/gapic-generator-typescript#readme", From 13ee9339b17525c819973a63689b13b45d4c7199 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 28 Feb 2024 02:26:19 +0100 Subject: [PATCH 29/35] chore(deps): update dependency @types/node to ^20.11.21 (#1548) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@types/node](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node) ([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)) | [`^20.11.20` -> `^20.11.21`](https://renovatebot.com/diffs/npm/@types%2fnode/20.11.20/20.11.21) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fnode/20.11.21?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fnode/20.11.21?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fnode/20.11.20/20.11.21?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fnode/20.11.20/20.11.21?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/gapic-generator-typescript). --- baselines/asset-esm/package.json | 2 +- baselines/asset/package.json | 2 +- baselines/bigquery-storage-esm/package.json | 2 +- baselines/bigquery-storage/package.json | 2 +- baselines/compute-esm/package.json | 2 +- baselines/compute/package.json | 2 +- baselines/deprecatedtest-esm/package.json | 2 +- baselines/deprecatedtest/package.json | 2 +- .../disable-packing-test-esm/package.json | 2 +- baselines/disable-packing-test/package.json | 2 +- baselines/dlp-esm/package.json | 2 +- baselines/dlp/package.json | 2 +- baselines/kms-esm/package.json | 2 +- baselines/kms/package.json | 2 +- baselines/logging-esm/package.json | 2 +- baselines/logging/package.json | 2 +- baselines/monitoring-esm/package.json | 2 +- baselines/monitoring/package.json | 2 +- baselines/naming-esm/package.json | 2 +- baselines/naming/package.json | 2 +- baselines/redis-esm/package.json | 2 +- baselines/redis/package.json | 2 +- baselines/routingtest-esm/package.json | 2 +- baselines/routingtest/package.json | 2 +- baselines/showcase-esm/package.json | 2 +- baselines/showcase-legacy-esm/package.json | 2 +- baselines/showcase-legacy/package.json | 2 +- baselines/showcase/package.json | 2 +- baselines/tasks-esm/package.json | 2 +- baselines/tasks/package.json | 2 +- baselines/texttospeech-esm/package.json | 2 +- baselines/texttospeech/package.json | 2 +- baselines/translate-esm/package.json | 2 +- baselines/translate/package.json | 2 +- baselines/videointelligence-esm/package.json | 2 +- baselines/videointelligence/package.json | 2 +- package-lock.json | 8 +++---- package.json | 2 +- pnpm-lock.yaml | 24 +++++++++---------- templates/cjs/typescript_gapic/package.json | 2 +- templates/esm/typescript_gapic/package.json | 2 +- yarn.lock | 8 +++---- 42 files changed, 59 insertions(+), 59 deletions(-) diff --git a/baselines/asset-esm/package.json b/baselines/asset-esm/package.json index 80b892031..5685555dc 100644 --- a/baselines/asset-esm/package.json +++ b/baselines/asset-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/asset/package.json b/baselines/asset/package.json index 13cdf92a3..ccce287f6 100644 --- a/baselines/asset/package.json +++ b/baselines/asset/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/bigquery-storage-esm/package.json b/baselines/bigquery-storage-esm/package.json index 8629e82b0..9c0173fd5 100644 --- a/baselines/bigquery-storage-esm/package.json +++ b/baselines/bigquery-storage-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/bigquery-storage/package.json b/baselines/bigquery-storage/package.json index 3adcf4a3a..990ff5853 100644 --- a/baselines/bigquery-storage/package.json +++ b/baselines/bigquery-storage/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/compute-esm/package.json b/baselines/compute-esm/package.json index 98bab38fb..10071b436 100644 --- a/baselines/compute-esm/package.json +++ b/baselines/compute-esm/package.json @@ -82,7 +82,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/compute/package.json b/baselines/compute/package.json index f853bdda9..34921b86a 100644 --- a/baselines/compute/package.json +++ b/baselines/compute/package.json @@ -40,7 +40,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/deprecatedtest-esm/package.json b/baselines/deprecatedtest-esm/package.json index cd63f9992..1c44e1918 100644 --- a/baselines/deprecatedtest-esm/package.json +++ b/baselines/deprecatedtest-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/deprecatedtest/package.json b/baselines/deprecatedtest/package.json index ed06d023c..978e10b04 100644 --- a/baselines/deprecatedtest/package.json +++ b/baselines/deprecatedtest/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/disable-packing-test-esm/package.json b/baselines/disable-packing-test-esm/package.json index 117e6c082..b221e331c 100644 --- a/baselines/disable-packing-test-esm/package.json +++ b/baselines/disable-packing-test-esm/package.json @@ -86,7 +86,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/disable-packing-test/package.json b/baselines/disable-packing-test/package.json index c84c713a3..9f3583d3f 100644 --- a/baselines/disable-packing-test/package.json +++ b/baselines/disable-packing-test/package.json @@ -44,7 +44,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/dlp-esm/package.json b/baselines/dlp-esm/package.json index c3c793680..86b50e779 100644 --- a/baselines/dlp-esm/package.json +++ b/baselines/dlp-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/dlp/package.json b/baselines/dlp/package.json index 24ca17bab..ff182508d 100644 --- a/baselines/dlp/package.json +++ b/baselines/dlp/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/kms-esm/package.json b/baselines/kms-esm/package.json index 88a2bc461..37d10896a 100644 --- a/baselines/kms-esm/package.json +++ b/baselines/kms-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/kms/package.json b/baselines/kms/package.json index d1f2b641d..0bb6e18f9 100644 --- a/baselines/kms/package.json +++ b/baselines/kms/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/logging-esm/package.json b/baselines/logging-esm/package.json index ac83ad69a..203715e78 100644 --- a/baselines/logging-esm/package.json +++ b/baselines/logging-esm/package.json @@ -83,7 +83,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/logging/package.json b/baselines/logging/package.json index bf932a6d5..5bbb8f905 100644 --- a/baselines/logging/package.json +++ b/baselines/logging/package.json @@ -41,7 +41,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/monitoring-esm/package.json b/baselines/monitoring-esm/package.json index e3471a594..b3b1c57bf 100644 --- a/baselines/monitoring-esm/package.json +++ b/baselines/monitoring-esm/package.json @@ -86,7 +86,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/monitoring/package.json b/baselines/monitoring/package.json index dfab2b1e8..e6d2c616b 100644 --- a/baselines/monitoring/package.json +++ b/baselines/monitoring/package.json @@ -44,7 +44,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/naming-esm/package.json b/baselines/naming-esm/package.json index 9507bc951..2eb8ebc2c 100644 --- a/baselines/naming-esm/package.json +++ b/baselines/naming-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/naming/package.json b/baselines/naming/package.json index 51bb03691..855b9ca39 100644 --- a/baselines/naming/package.json +++ b/baselines/naming/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/redis-esm/package.json b/baselines/redis-esm/package.json index 1d9d1a266..a8dcec435 100644 --- a/baselines/redis-esm/package.json +++ b/baselines/redis-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/redis/package.json b/baselines/redis/package.json index fe26e8439..1f009e940 100644 --- a/baselines/redis/package.json +++ b/baselines/redis/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/routingtest-esm/package.json b/baselines/routingtest-esm/package.json index 73712bfdf..656514ba5 100644 --- a/baselines/routingtest-esm/package.json +++ b/baselines/routingtest-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/routingtest/package.json b/baselines/routingtest/package.json index 5409086e7..b5c15653d 100644 --- a/baselines/routingtest/package.json +++ b/baselines/routingtest/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/showcase-esm/package.json b/baselines/showcase-esm/package.json index 117e6c082..b221e331c 100644 --- a/baselines/showcase-esm/package.json +++ b/baselines/showcase-esm/package.json @@ -86,7 +86,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/showcase-legacy-esm/package.json b/baselines/showcase-legacy-esm/package.json index 0b7a3d7d1..945c5bf2a 100644 --- a/baselines/showcase-legacy-esm/package.json +++ b/baselines/showcase-legacy-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/showcase-legacy/package.json b/baselines/showcase-legacy/package.json index da94515b1..60e66d072 100644 --- a/baselines/showcase-legacy/package.json +++ b/baselines/showcase-legacy/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/showcase/package.json b/baselines/showcase/package.json index c84c713a3..9f3583d3f 100644 --- a/baselines/showcase/package.json +++ b/baselines/showcase/package.json @@ -44,7 +44,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/tasks-esm/package.json b/baselines/tasks-esm/package.json index 1bd168340..4ab292947 100644 --- a/baselines/tasks-esm/package.json +++ b/baselines/tasks-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/tasks/package.json b/baselines/tasks/package.json index 12084c4bf..5b71c492d 100644 --- a/baselines/tasks/package.json +++ b/baselines/tasks/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/texttospeech-esm/package.json b/baselines/texttospeech-esm/package.json index 8596dac21..94d4a5422 100644 --- a/baselines/texttospeech-esm/package.json +++ b/baselines/texttospeech-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/texttospeech/package.json b/baselines/texttospeech/package.json index 6900eb88c..ea0eb2541 100644 --- a/baselines/texttospeech/package.json +++ b/baselines/texttospeech/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/translate-esm/package.json b/baselines/translate-esm/package.json index d865509a2..0fa8d570a 100644 --- a/baselines/translate-esm/package.json +++ b/baselines/translate-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/translate/package.json b/baselines/translate/package.json index 9beb61b93..8043ce61a 100644 --- a/baselines/translate/package.json +++ b/baselines/translate/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/videointelligence-esm/package.json b/baselines/videointelligence-esm/package.json index 058e84778..246be296b 100644 --- a/baselines/videointelligence-esm/package.json +++ b/baselines/videointelligence-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/videointelligence/package.json b/baselines/videointelligence/package.json index f25d22e76..469d412ac 100644 --- a/baselines/videointelligence/package.json +++ b/baselines/videointelligence/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/package-lock.json b/package-lock.json index 1a0cca3d9..230adfcbb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,7 +27,7 @@ "@bazel/bazelisk": "^1.19.0", "@types/mocha": "^10.0.6", "@types/module-alias": "^2.0.4", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/nunjucks": "^3.2.6", "@types/object-hash": "^3.0.6", "@types/yargs": "^17.0.32", @@ -954,9 +954,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "20.11.20", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.20.tgz", - "integrity": "sha512-7/rR21OS+fq8IyHTgtLkDK949uzsa6n8BkziAKtPVpugIkO6D+/ooXMvzXxDnZrmtXVfjb1bKQafYpb8s89LOg==", + "version": "20.11.21", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.21.tgz", + "integrity": "sha512-/ySDLGscFPNasfqStUuWWPfL78jompfIoVzLJPVVAHBh6rpG68+pI2Gk+fNLeI8/f1yPYL4s46EleVIc20F1Ow==", "dependencies": { "undici-types": "~5.26.4" } diff --git a/package.json b/package.json index 9db23d78f..a6436a66f 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "@bazel/bazelisk": "^1.19.0", "@types/mocha": "^10.0.6", "@types/module-alias": "^2.0.4", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/nunjucks": "^3.2.6", "@types/object-hash": "^3.0.6", "@types/yargs": "^17.0.32", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c6a780ff2..a186bdb05 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -44,8 +44,8 @@ devDependencies: specifier: ^2.0.4 version: 2.0.4 '@types/node': - specifier: ^20.11.20 - version: 20.11.20 + specifier: ^20.11.21 + version: 20.11.21 '@types/nunjucks': specifier: ^3.2.6 version: 3.2.6 @@ -57,7 +57,7 @@ devDependencies: version: 17.0.32 espower-typescript: specifier: ^10.0.1 - version: 10.0.1(@types/node@20.11.20)(typescript@5.1.6) + version: 10.0.1(@types/node@20.11.21)(typescript@5.1.6) gapic-tools: specifier: ^0.3.0 version: 0.3.0(protobufjs@7.2.6) @@ -330,7 +330,7 @@ packages: engines: {node: ^8.13.0 || >=10.10.0} dependencies: '@grpc/proto-loader': 0.7.10 - '@types/node': 20.11.20 + '@types/node': 20.11.21 dev: true /@grpc/proto-loader@0.7.10: @@ -546,8 +546,8 @@ packages: resolution: {integrity: sha512-5+G/QXO/DvHZw60FjvbDzO4JmlD/nG5m2/vVGt25VN1eeP3w2bCoks1Wa7VuptMPM1TxJdx6RjO70N9Fw0nZPA==} dev: true - /@types/node@20.11.20: - resolution: {integrity: sha512-7/rR21OS+fq8IyHTgtLkDK949uzsa6n8BkziAKtPVpugIkO6D+/ooXMvzXxDnZrmtXVfjb1bKQafYpb8s89LOg==} + /@types/node@20.11.21: + resolution: {integrity: sha512-/ySDLGscFPNasfqStUuWWPfL78jompfIoVzLJPVVAHBh6rpG68+pI2Gk+fNLeI8/f1yPYL4s46EleVIc20F1Ow==} dependencies: undici-types: 5.26.5 @@ -567,7 +567,7 @@ packages: resolution: {integrity: sha512-G3sY+NpsA9jnwm0ixhAFQSJ3Q9JkpLZpJbI3GMv0mIAT0y3mRabYeINzal5WOChIiaTEGQYlHOKgkaM9EisWHw==} dependencies: '@types/caseless': 0.12.5 - '@types/node': 20.11.20 + '@types/node': 20.11.21 '@types/tough-cookie': 4.0.5 form-data: 2.5.1 dev: true @@ -1516,7 +1516,7 @@ packages: xtend: 4.0.2 dev: true - /espower-typescript@10.0.1(@types/node@20.11.20)(typescript@5.1.6): + /espower-typescript@10.0.1(@types/node@20.11.21)(typescript@5.1.6): resolution: {integrity: sha512-Otz3g+JKQCPG3CxyUQnmcmr9LeYXe+bEU2F/WtBeaByIj+kgR+8lyYSa1Rcqh27b/sp9EjrDLDUTW+d7dsfJQw==} engines: {node: '>=10.17'} peerDependencies: @@ -1525,7 +1525,7 @@ packages: espower-source: 2.3.0 minimatch: 5.1.6 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@20.11.20)(typescript@5.1.6) + ts-node: 10.9.2(@types/node@20.11.21)(typescript@5.1.6) typescript: 5.1.6 transitivePeerDependencies: - '@swc/core' @@ -2918,7 +2918,7 @@ packages: '@protobufjs/path': 1.1.2 '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.0 - '@types/node': 20.11.20 + '@types/node': 20.11.21 long: 5.2.3 /punycode@2.3.1: @@ -3354,7 +3354,7 @@ packages: engines: {node: '>=8'} dev: true - /ts-node@10.9.2(@types/node@20.11.20)(typescript@5.1.6): + /ts-node@10.9.2(@types/node@20.11.21)(typescript@5.1.6): resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} hasBin: true peerDependencies: @@ -3373,7 +3373,7 @@ packages: '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 20.11.20 + '@types/node': 20.11.21 acorn: 8.11.3 acorn-walk: 8.3.2 arg: 4.1.3 diff --git a/templates/cjs/typescript_gapic/package.json b/templates/cjs/typescript_gapic/package.json index 7f5563531..75ea0edc4 100644 --- a/templates/cjs/typescript_gapic/package.json +++ b/templates/cjs/typescript_gapic/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/templates/esm/typescript_gapic/package.json b/templates/esm/typescript_gapic/package.json index 8a94e670c..4f27a23de 100644 --- a/templates/esm/typescript_gapic/package.json +++ b/templates/esm/typescript_gapic/package.json @@ -82,7 +82,7 @@ "@babel/preset-env": "^7.23.9", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.20", + "@types/node": "^20.11.21", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/yarn.lock b/yarn.lock index 81c55f92f..56d2f5bf7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -503,10 +503,10 @@ resolved "https://registry.npmjs.org/@types/module-alias/-/module-alias-2.0.4.tgz" integrity sha512-5+G/QXO/DvHZw60FjvbDzO4JmlD/nG5m2/vVGt25VN1eeP3w2bCoks1Wa7VuptMPM1TxJdx6RjO70N9Fw0nZPA== -"@types/node@*", "@types/node@>=12.12.47", "@types/node@>=13.7.0", "@types/node@^20.11.20": - version "20.11.20" - resolved "https://registry.npmjs.org/@types/node/-/node-20.11.20.tgz" - integrity sha512-7/rR21OS+fq8IyHTgtLkDK949uzsa6n8BkziAKtPVpugIkO6D+/ooXMvzXxDnZrmtXVfjb1bKQafYpb8s89LOg== +"@types/node@*", "@types/node@>=12.12.47", "@types/node@>=13.7.0", "@types/node@^20.11.21": + version "20.11.21" + resolved "https://registry.npmjs.org/@types/node/-/node-20.11.21.tgz" + integrity sha512-/ySDLGscFPNasfqStUuWWPfL78jompfIoVzLJPVVAHBh6rpG68+pI2Gk+fNLeI8/f1yPYL4s46EleVIc20F1Ow== dependencies: undici-types "~5.26.4" From af220f335d82c03235587f78c6c378acbbcc9148 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 28 Feb 2024 16:00:26 +0100 Subject: [PATCH 30/35] chore(deps): update babel monorepo to ^7.24.0 (#1549) --- baselines/asset-esm/package.json | 4 ++-- baselines/bigquery-storage-esm/package.json | 4 ++-- baselines/compute-esm/package.json | 4 ++-- baselines/deprecatedtest-esm/package.json | 4 ++-- baselines/disable-packing-test-esm/package.json | 4 ++-- baselines/dlp-esm/package.json | 4 ++-- baselines/kms-esm/package.json | 4 ++-- baselines/logging-esm/package.json | 4 ++-- baselines/monitoring-esm/package.json | 4 ++-- baselines/naming-esm/package.json | 4 ++-- baselines/redis-esm/package.json | 4 ++-- baselines/routingtest-esm/package.json | 4 ++-- baselines/showcase-esm/package.json | 4 ++-- baselines/showcase-legacy-esm/package.json | 4 ++-- baselines/tasks-esm/package.json | 4 ++-- baselines/texttospeech-esm/package.json | 4 ++-- baselines/translate-esm/package.json | 4 ++-- baselines/videointelligence-esm/package.json | 4 ++-- templates/esm/typescript_gapic/package.json | 4 ++-- 19 files changed, 38 insertions(+), 38 deletions(-) diff --git a/baselines/asset-esm/package.json b/baselines/asset-esm/package.json index 5685555dc..077c4e3fe 100644 --- a/baselines/asset-esm/package.json +++ b/baselines/asset-esm/package.json @@ -77,8 +77,8 @@ }, "devDependencies": { "@babel/cli": "^7.23.9", - "@babel/core": "^7.23.9", - "@babel/preset-env": "^7.23.9", + "@babel/core": "^7.24.0", + "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", "@types/node": "^20.11.21", diff --git a/baselines/bigquery-storage-esm/package.json b/baselines/bigquery-storage-esm/package.json index 9c0173fd5..e56092b30 100644 --- a/baselines/bigquery-storage-esm/package.json +++ b/baselines/bigquery-storage-esm/package.json @@ -77,8 +77,8 @@ }, "devDependencies": { "@babel/cli": "^7.23.9", - "@babel/core": "^7.23.9", - "@babel/preset-env": "^7.23.9", + "@babel/core": "^7.24.0", + "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", "@types/node": "^20.11.21", diff --git a/baselines/compute-esm/package.json b/baselines/compute-esm/package.json index 10071b436..7f82db918 100644 --- a/baselines/compute-esm/package.json +++ b/baselines/compute-esm/package.json @@ -78,8 +78,8 @@ }, "devDependencies": { "@babel/cli": "^7.23.9", - "@babel/core": "^7.23.9", - "@babel/preset-env": "^7.23.9", + "@babel/core": "^7.24.0", + "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", "@types/node": "^20.11.21", diff --git a/baselines/deprecatedtest-esm/package.json b/baselines/deprecatedtest-esm/package.json index 1c44e1918..2139be3de 100644 --- a/baselines/deprecatedtest-esm/package.json +++ b/baselines/deprecatedtest-esm/package.json @@ -77,8 +77,8 @@ }, "devDependencies": { "@babel/cli": "^7.23.9", - "@babel/core": "^7.23.9", - "@babel/preset-env": "^7.23.9", + "@babel/core": "^7.24.0", + "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", "@types/node": "^20.11.21", diff --git a/baselines/disable-packing-test-esm/package.json b/baselines/disable-packing-test-esm/package.json index b221e331c..9c1f53c90 100644 --- a/baselines/disable-packing-test-esm/package.json +++ b/baselines/disable-packing-test-esm/package.json @@ -82,8 +82,8 @@ }, "devDependencies": { "@babel/cli": "^7.23.9", - "@babel/core": "^7.23.9", - "@babel/preset-env": "^7.23.9", + "@babel/core": "^7.24.0", + "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", "@types/node": "^20.11.21", diff --git a/baselines/dlp-esm/package.json b/baselines/dlp-esm/package.json index 86b50e779..7af29bac0 100644 --- a/baselines/dlp-esm/package.json +++ b/baselines/dlp-esm/package.json @@ -77,8 +77,8 @@ }, "devDependencies": { "@babel/cli": "^7.23.9", - "@babel/core": "^7.23.9", - "@babel/preset-env": "^7.23.9", + "@babel/core": "^7.24.0", + "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", "@types/node": "^20.11.21", diff --git a/baselines/kms-esm/package.json b/baselines/kms-esm/package.json index 37d10896a..60128c8fd 100644 --- a/baselines/kms-esm/package.json +++ b/baselines/kms-esm/package.json @@ -77,8 +77,8 @@ }, "devDependencies": { "@babel/cli": "^7.23.9", - "@babel/core": "^7.23.9", - "@babel/preset-env": "^7.23.9", + "@babel/core": "^7.24.0", + "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", "@types/node": "^20.11.21", diff --git a/baselines/logging-esm/package.json b/baselines/logging-esm/package.json index 203715e78..7a836a5f8 100644 --- a/baselines/logging-esm/package.json +++ b/baselines/logging-esm/package.json @@ -79,8 +79,8 @@ }, "devDependencies": { "@babel/cli": "^7.23.9", - "@babel/core": "^7.23.9", - "@babel/preset-env": "^7.23.9", + "@babel/core": "^7.24.0", + "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", "@types/node": "^20.11.21", diff --git a/baselines/monitoring-esm/package.json b/baselines/monitoring-esm/package.json index b3b1c57bf..461d1c439 100644 --- a/baselines/monitoring-esm/package.json +++ b/baselines/monitoring-esm/package.json @@ -82,8 +82,8 @@ }, "devDependencies": { "@babel/cli": "^7.23.9", - "@babel/core": "^7.23.9", - "@babel/preset-env": "^7.23.9", + "@babel/core": "^7.24.0", + "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", "@types/node": "^20.11.21", diff --git a/baselines/naming-esm/package.json b/baselines/naming-esm/package.json index 2eb8ebc2c..aa165c116 100644 --- a/baselines/naming-esm/package.json +++ b/baselines/naming-esm/package.json @@ -77,8 +77,8 @@ }, "devDependencies": { "@babel/cli": "^7.23.9", - "@babel/core": "^7.23.9", - "@babel/preset-env": "^7.23.9", + "@babel/core": "^7.24.0", + "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", "@types/node": "^20.11.21", diff --git a/baselines/redis-esm/package.json b/baselines/redis-esm/package.json index a8dcec435..ca1b4b0b3 100644 --- a/baselines/redis-esm/package.json +++ b/baselines/redis-esm/package.json @@ -77,8 +77,8 @@ }, "devDependencies": { "@babel/cli": "^7.23.9", - "@babel/core": "^7.23.9", - "@babel/preset-env": "^7.23.9", + "@babel/core": "^7.24.0", + "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", "@types/node": "^20.11.21", diff --git a/baselines/routingtest-esm/package.json b/baselines/routingtest-esm/package.json index 656514ba5..31a118632 100644 --- a/baselines/routingtest-esm/package.json +++ b/baselines/routingtest-esm/package.json @@ -77,8 +77,8 @@ }, "devDependencies": { "@babel/cli": "^7.23.9", - "@babel/core": "^7.23.9", - "@babel/preset-env": "^7.23.9", + "@babel/core": "^7.24.0", + "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", "@types/node": "^20.11.21", diff --git a/baselines/showcase-esm/package.json b/baselines/showcase-esm/package.json index b221e331c..9c1f53c90 100644 --- a/baselines/showcase-esm/package.json +++ b/baselines/showcase-esm/package.json @@ -82,8 +82,8 @@ }, "devDependencies": { "@babel/cli": "^7.23.9", - "@babel/core": "^7.23.9", - "@babel/preset-env": "^7.23.9", + "@babel/core": "^7.24.0", + "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", "@types/node": "^20.11.21", diff --git a/baselines/showcase-legacy-esm/package.json b/baselines/showcase-legacy-esm/package.json index 945c5bf2a..a23e94304 100644 --- a/baselines/showcase-legacy-esm/package.json +++ b/baselines/showcase-legacy-esm/package.json @@ -77,8 +77,8 @@ }, "devDependencies": { "@babel/cli": "^7.23.9", - "@babel/core": "^7.23.9", - "@babel/preset-env": "^7.23.9", + "@babel/core": "^7.24.0", + "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", "@types/node": "^20.11.21", diff --git a/baselines/tasks-esm/package.json b/baselines/tasks-esm/package.json index 4ab292947..8d4b06f14 100644 --- a/baselines/tasks-esm/package.json +++ b/baselines/tasks-esm/package.json @@ -77,8 +77,8 @@ }, "devDependencies": { "@babel/cli": "^7.23.9", - "@babel/core": "^7.23.9", - "@babel/preset-env": "^7.23.9", + "@babel/core": "^7.24.0", + "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", "@types/node": "^20.11.21", diff --git a/baselines/texttospeech-esm/package.json b/baselines/texttospeech-esm/package.json index 94d4a5422..1b288d20e 100644 --- a/baselines/texttospeech-esm/package.json +++ b/baselines/texttospeech-esm/package.json @@ -77,8 +77,8 @@ }, "devDependencies": { "@babel/cli": "^7.23.9", - "@babel/core": "^7.23.9", - "@babel/preset-env": "^7.23.9", + "@babel/core": "^7.24.0", + "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", "@types/node": "^20.11.21", diff --git a/baselines/translate-esm/package.json b/baselines/translate-esm/package.json index 0fa8d570a..c90610720 100644 --- a/baselines/translate-esm/package.json +++ b/baselines/translate-esm/package.json @@ -77,8 +77,8 @@ }, "devDependencies": { "@babel/cli": "^7.23.9", - "@babel/core": "^7.23.9", - "@babel/preset-env": "^7.23.9", + "@babel/core": "^7.24.0", + "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", "@types/node": "^20.11.21", diff --git a/baselines/videointelligence-esm/package.json b/baselines/videointelligence-esm/package.json index 246be296b..e76c3b829 100644 --- a/baselines/videointelligence-esm/package.json +++ b/baselines/videointelligence-esm/package.json @@ -77,8 +77,8 @@ }, "devDependencies": { "@babel/cli": "^7.23.9", - "@babel/core": "^7.23.9", - "@babel/preset-env": "^7.23.9", + "@babel/core": "^7.24.0", + "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", "@types/node": "^20.11.21", diff --git a/templates/esm/typescript_gapic/package.json b/templates/esm/typescript_gapic/package.json index 4f27a23de..ebdf98e15 100644 --- a/templates/esm/typescript_gapic/package.json +++ b/templates/esm/typescript_gapic/package.json @@ -78,8 +78,8 @@ }, "devDependencies": { "@babel/cli": "^7.23.9", - "@babel/core": "^7.23.9", - "@babel/preset-env": "^7.23.9", + "@babel/core": "^7.24.0", + "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", "@types/node": "^20.11.21", From ff267f2cf448f3c2a6cc1d3bccbcb3bd23c2f8e9 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 28 Feb 2024 20:56:19 +0100 Subject: [PATCH 31/35] chore(deps): update dependency @types/node to ^20.11.22 (#1550) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@types/node](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node) ([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)) | [`^20.11.21` -> `^20.11.22`](https://renovatebot.com/diffs/npm/@types%2fnode/20.11.21/20.11.22) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fnode/20.11.22?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fnode/20.11.22?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fnode/20.11.21/20.11.22?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fnode/20.11.21/20.11.22?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/gapic-generator-typescript). --- baselines/asset-esm/package.json | 2 +- baselines/asset/package.json | 2 +- baselines/bigquery-storage-esm/package.json | 2 +- baselines/bigquery-storage/package.json | 2 +- baselines/compute-esm/package.json | 2 +- baselines/compute/package.json | 2 +- baselines/deprecatedtest-esm/package.json | 2 +- baselines/deprecatedtest/package.json | 2 +- .../disable-packing-test-esm/package.json | 2 +- baselines/disable-packing-test/package.json | 2 +- baselines/dlp-esm/package.json | 2 +- baselines/dlp/package.json | 2 +- baselines/kms-esm/package.json | 2 +- baselines/kms/package.json | 2 +- baselines/logging-esm/package.json | 2 +- baselines/logging/package.json | 2 +- baselines/monitoring-esm/package.json | 2 +- baselines/monitoring/package.json | 2 +- baselines/naming-esm/package.json | 2 +- baselines/naming/package.json | 2 +- baselines/redis-esm/package.json | 2 +- baselines/redis/package.json | 2 +- baselines/routingtest-esm/package.json | 2 +- baselines/routingtest/package.json | 2 +- baselines/showcase-esm/package.json | 2 +- baselines/showcase-legacy-esm/package.json | 2 +- baselines/showcase-legacy/package.json | 2 +- baselines/showcase/package.json | 2 +- baselines/tasks-esm/package.json | 2 +- baselines/tasks/package.json | 2 +- baselines/texttospeech-esm/package.json | 2 +- baselines/texttospeech/package.json | 2 +- baselines/translate-esm/package.json | 2 +- baselines/translate/package.json | 2 +- baselines/videointelligence-esm/package.json | 2 +- baselines/videointelligence/package.json | 2 +- package-lock.json | 8 +++---- package.json | 2 +- pnpm-lock.yaml | 24 +++++++++---------- templates/cjs/typescript_gapic/package.json | 2 +- templates/esm/typescript_gapic/package.json | 2 +- yarn.lock | 8 +++---- 42 files changed, 59 insertions(+), 59 deletions(-) diff --git a/baselines/asset-esm/package.json b/baselines/asset-esm/package.json index 077c4e3fe..759712611 100644 --- a/baselines/asset-esm/package.json +++ b/baselines/asset-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/asset/package.json b/baselines/asset/package.json index ccce287f6..d001d9a49 100644 --- a/baselines/asset/package.json +++ b/baselines/asset/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/bigquery-storage-esm/package.json b/baselines/bigquery-storage-esm/package.json index e56092b30..2e386feff 100644 --- a/baselines/bigquery-storage-esm/package.json +++ b/baselines/bigquery-storage-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/bigquery-storage/package.json b/baselines/bigquery-storage/package.json index 990ff5853..fc8454b4d 100644 --- a/baselines/bigquery-storage/package.json +++ b/baselines/bigquery-storage/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/compute-esm/package.json b/baselines/compute-esm/package.json index 7f82db918..95a295cad 100644 --- a/baselines/compute-esm/package.json +++ b/baselines/compute-esm/package.json @@ -82,7 +82,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/compute/package.json b/baselines/compute/package.json index 34921b86a..817512635 100644 --- a/baselines/compute/package.json +++ b/baselines/compute/package.json @@ -40,7 +40,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/deprecatedtest-esm/package.json b/baselines/deprecatedtest-esm/package.json index 2139be3de..c8be20939 100644 --- a/baselines/deprecatedtest-esm/package.json +++ b/baselines/deprecatedtest-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/deprecatedtest/package.json b/baselines/deprecatedtest/package.json index 978e10b04..50d45c634 100644 --- a/baselines/deprecatedtest/package.json +++ b/baselines/deprecatedtest/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/disable-packing-test-esm/package.json b/baselines/disable-packing-test-esm/package.json index 9c1f53c90..2cc723da1 100644 --- a/baselines/disable-packing-test-esm/package.json +++ b/baselines/disable-packing-test-esm/package.json @@ -86,7 +86,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/disable-packing-test/package.json b/baselines/disable-packing-test/package.json index 9f3583d3f..80967f115 100644 --- a/baselines/disable-packing-test/package.json +++ b/baselines/disable-packing-test/package.json @@ -44,7 +44,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/dlp-esm/package.json b/baselines/dlp-esm/package.json index 7af29bac0..b7b276752 100644 --- a/baselines/dlp-esm/package.json +++ b/baselines/dlp-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/dlp/package.json b/baselines/dlp/package.json index ff182508d..26625d73d 100644 --- a/baselines/dlp/package.json +++ b/baselines/dlp/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/kms-esm/package.json b/baselines/kms-esm/package.json index 60128c8fd..67ec4b9a6 100644 --- a/baselines/kms-esm/package.json +++ b/baselines/kms-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/kms/package.json b/baselines/kms/package.json index 0bb6e18f9..672a8340c 100644 --- a/baselines/kms/package.json +++ b/baselines/kms/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/logging-esm/package.json b/baselines/logging-esm/package.json index 7a836a5f8..dd2f501cc 100644 --- a/baselines/logging-esm/package.json +++ b/baselines/logging-esm/package.json @@ -83,7 +83,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/logging/package.json b/baselines/logging/package.json index 5bbb8f905..6d9f0394d 100644 --- a/baselines/logging/package.json +++ b/baselines/logging/package.json @@ -41,7 +41,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/monitoring-esm/package.json b/baselines/monitoring-esm/package.json index 461d1c439..d3f95b9e3 100644 --- a/baselines/monitoring-esm/package.json +++ b/baselines/monitoring-esm/package.json @@ -86,7 +86,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/monitoring/package.json b/baselines/monitoring/package.json index e6d2c616b..b3609be62 100644 --- a/baselines/monitoring/package.json +++ b/baselines/monitoring/package.json @@ -44,7 +44,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/naming-esm/package.json b/baselines/naming-esm/package.json index aa165c116..66b024f47 100644 --- a/baselines/naming-esm/package.json +++ b/baselines/naming-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/naming/package.json b/baselines/naming/package.json index 855b9ca39..65a65ed45 100644 --- a/baselines/naming/package.json +++ b/baselines/naming/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/redis-esm/package.json b/baselines/redis-esm/package.json index ca1b4b0b3..e31042e3e 100644 --- a/baselines/redis-esm/package.json +++ b/baselines/redis-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/redis/package.json b/baselines/redis/package.json index 1f009e940..f3799f4d9 100644 --- a/baselines/redis/package.json +++ b/baselines/redis/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/routingtest-esm/package.json b/baselines/routingtest-esm/package.json index 31a118632..af9a1b019 100644 --- a/baselines/routingtest-esm/package.json +++ b/baselines/routingtest-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/routingtest/package.json b/baselines/routingtest/package.json index b5c15653d..49a4b1e55 100644 --- a/baselines/routingtest/package.json +++ b/baselines/routingtest/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/showcase-esm/package.json b/baselines/showcase-esm/package.json index 9c1f53c90..2cc723da1 100644 --- a/baselines/showcase-esm/package.json +++ b/baselines/showcase-esm/package.json @@ -86,7 +86,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/showcase-legacy-esm/package.json b/baselines/showcase-legacy-esm/package.json index a23e94304..47bbd003f 100644 --- a/baselines/showcase-legacy-esm/package.json +++ b/baselines/showcase-legacy-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/showcase-legacy/package.json b/baselines/showcase-legacy/package.json index 60e66d072..3eddf3a9a 100644 --- a/baselines/showcase-legacy/package.json +++ b/baselines/showcase-legacy/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/showcase/package.json b/baselines/showcase/package.json index 9f3583d3f..80967f115 100644 --- a/baselines/showcase/package.json +++ b/baselines/showcase/package.json @@ -44,7 +44,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/tasks-esm/package.json b/baselines/tasks-esm/package.json index 8d4b06f14..ab995e3c0 100644 --- a/baselines/tasks-esm/package.json +++ b/baselines/tasks-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/tasks/package.json b/baselines/tasks/package.json index 5b71c492d..7373fdfd0 100644 --- a/baselines/tasks/package.json +++ b/baselines/tasks/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/texttospeech-esm/package.json b/baselines/texttospeech-esm/package.json index 1b288d20e..19bf85998 100644 --- a/baselines/texttospeech-esm/package.json +++ b/baselines/texttospeech-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/texttospeech/package.json b/baselines/texttospeech/package.json index ea0eb2541..664a8e0f7 100644 --- a/baselines/texttospeech/package.json +++ b/baselines/texttospeech/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/translate-esm/package.json b/baselines/translate-esm/package.json index c90610720..34355e2ac 100644 --- a/baselines/translate-esm/package.json +++ b/baselines/translate-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/translate/package.json b/baselines/translate/package.json index 8043ce61a..09308b136 100644 --- a/baselines/translate/package.json +++ b/baselines/translate/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/videointelligence-esm/package.json b/baselines/videointelligence-esm/package.json index e76c3b829..f0502c4eb 100644 --- a/baselines/videointelligence-esm/package.json +++ b/baselines/videointelligence-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/videointelligence/package.json b/baselines/videointelligence/package.json index 469d412ac..864e2124d 100644 --- a/baselines/videointelligence/package.json +++ b/baselines/videointelligence/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/package-lock.json b/package-lock.json index 230adfcbb..75fb9c091 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,7 +27,7 @@ "@bazel/bazelisk": "^1.19.0", "@types/mocha": "^10.0.6", "@types/module-alias": "^2.0.4", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/nunjucks": "^3.2.6", "@types/object-hash": "^3.0.6", "@types/yargs": "^17.0.32", @@ -954,9 +954,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "20.11.21", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.21.tgz", - "integrity": "sha512-/ySDLGscFPNasfqStUuWWPfL78jompfIoVzLJPVVAHBh6rpG68+pI2Gk+fNLeI8/f1yPYL4s46EleVIc20F1Ow==", + "version": "20.11.22", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.22.tgz", + "integrity": "sha512-/G+IxWxma6V3E+pqK1tSl2Fo1kl41pK1yeCyDsgkF9WlVAme4j5ISYM2zR11bgLFJGLN5sVK40T4RJNuiZbEjA==", "dependencies": { "undici-types": "~5.26.4" } diff --git a/package.json b/package.json index a6436a66f..4a3ab03d0 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "@bazel/bazelisk": "^1.19.0", "@types/mocha": "^10.0.6", "@types/module-alias": "^2.0.4", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/nunjucks": "^3.2.6", "@types/object-hash": "^3.0.6", "@types/yargs": "^17.0.32", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a186bdb05..8e013eaf6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -44,8 +44,8 @@ devDependencies: specifier: ^2.0.4 version: 2.0.4 '@types/node': - specifier: ^20.11.21 - version: 20.11.21 + specifier: ^20.11.22 + version: 20.11.22 '@types/nunjucks': specifier: ^3.2.6 version: 3.2.6 @@ -57,7 +57,7 @@ devDependencies: version: 17.0.32 espower-typescript: specifier: ^10.0.1 - version: 10.0.1(@types/node@20.11.21)(typescript@5.1.6) + version: 10.0.1(@types/node@20.11.22)(typescript@5.1.6) gapic-tools: specifier: ^0.3.0 version: 0.3.0(protobufjs@7.2.6) @@ -330,7 +330,7 @@ packages: engines: {node: ^8.13.0 || >=10.10.0} dependencies: '@grpc/proto-loader': 0.7.10 - '@types/node': 20.11.21 + '@types/node': 20.11.22 dev: true /@grpc/proto-loader@0.7.10: @@ -546,8 +546,8 @@ packages: resolution: {integrity: sha512-5+G/QXO/DvHZw60FjvbDzO4JmlD/nG5m2/vVGt25VN1eeP3w2bCoks1Wa7VuptMPM1TxJdx6RjO70N9Fw0nZPA==} dev: true - /@types/node@20.11.21: - resolution: {integrity: sha512-/ySDLGscFPNasfqStUuWWPfL78jompfIoVzLJPVVAHBh6rpG68+pI2Gk+fNLeI8/f1yPYL4s46EleVIc20F1Ow==} + /@types/node@20.11.22: + resolution: {integrity: sha512-/G+IxWxma6V3E+pqK1tSl2Fo1kl41pK1yeCyDsgkF9WlVAme4j5ISYM2zR11bgLFJGLN5sVK40T4RJNuiZbEjA==} dependencies: undici-types: 5.26.5 @@ -567,7 +567,7 @@ packages: resolution: {integrity: sha512-G3sY+NpsA9jnwm0ixhAFQSJ3Q9JkpLZpJbI3GMv0mIAT0y3mRabYeINzal5WOChIiaTEGQYlHOKgkaM9EisWHw==} dependencies: '@types/caseless': 0.12.5 - '@types/node': 20.11.21 + '@types/node': 20.11.22 '@types/tough-cookie': 4.0.5 form-data: 2.5.1 dev: true @@ -1516,7 +1516,7 @@ packages: xtend: 4.0.2 dev: true - /espower-typescript@10.0.1(@types/node@20.11.21)(typescript@5.1.6): + /espower-typescript@10.0.1(@types/node@20.11.22)(typescript@5.1.6): resolution: {integrity: sha512-Otz3g+JKQCPG3CxyUQnmcmr9LeYXe+bEU2F/WtBeaByIj+kgR+8lyYSa1Rcqh27b/sp9EjrDLDUTW+d7dsfJQw==} engines: {node: '>=10.17'} peerDependencies: @@ -1525,7 +1525,7 @@ packages: espower-source: 2.3.0 minimatch: 5.1.6 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@20.11.21)(typescript@5.1.6) + ts-node: 10.9.2(@types/node@20.11.22)(typescript@5.1.6) typescript: 5.1.6 transitivePeerDependencies: - '@swc/core' @@ -2918,7 +2918,7 @@ packages: '@protobufjs/path': 1.1.2 '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.0 - '@types/node': 20.11.21 + '@types/node': 20.11.22 long: 5.2.3 /punycode@2.3.1: @@ -3354,7 +3354,7 @@ packages: engines: {node: '>=8'} dev: true - /ts-node@10.9.2(@types/node@20.11.21)(typescript@5.1.6): + /ts-node@10.9.2(@types/node@20.11.22)(typescript@5.1.6): resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} hasBin: true peerDependencies: @@ -3373,7 +3373,7 @@ packages: '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 20.11.21 + '@types/node': 20.11.22 acorn: 8.11.3 acorn-walk: 8.3.2 arg: 4.1.3 diff --git a/templates/cjs/typescript_gapic/package.json b/templates/cjs/typescript_gapic/package.json index 75ea0edc4..eb62a074f 100644 --- a/templates/cjs/typescript_gapic/package.json +++ b/templates/cjs/typescript_gapic/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/templates/esm/typescript_gapic/package.json b/templates/esm/typescript_gapic/package.json index ebdf98e15..91a90f271 100644 --- a/templates/esm/typescript_gapic/package.json +++ b/templates/esm/typescript_gapic/package.json @@ -82,7 +82,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.21", + "@types/node": "^20.11.22", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/yarn.lock b/yarn.lock index 56d2f5bf7..998d2d49d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -503,10 +503,10 @@ resolved "https://registry.npmjs.org/@types/module-alias/-/module-alias-2.0.4.tgz" integrity sha512-5+G/QXO/DvHZw60FjvbDzO4JmlD/nG5m2/vVGt25VN1eeP3w2bCoks1Wa7VuptMPM1TxJdx6RjO70N9Fw0nZPA== -"@types/node@*", "@types/node@>=12.12.47", "@types/node@>=13.7.0", "@types/node@^20.11.21": - version "20.11.21" - resolved "https://registry.npmjs.org/@types/node/-/node-20.11.21.tgz" - integrity sha512-/ySDLGscFPNasfqStUuWWPfL78jompfIoVzLJPVVAHBh6rpG68+pI2Gk+fNLeI8/f1yPYL4s46EleVIc20F1Ow== +"@types/node@*", "@types/node@>=12.12.47", "@types/node@>=13.7.0", "@types/node@^20.11.22": + version "20.11.22" + resolved "https://registry.npmjs.org/@types/node/-/node-20.11.22.tgz" + integrity sha512-/G+IxWxma6V3E+pqK1tSl2Fo1kl41pK1yeCyDsgkF9WlVAme4j5ISYM2zR11bgLFJGLN5sVK40T4RJNuiZbEjA== dependencies: undici-types "~5.26.4" From 876c8e669672ae1a8affcc28a97c3c17c70205b3 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 29 Feb 2024 16:50:25 +0100 Subject: [PATCH 32/35] chore(deps): update dependency @types/node to ^20.11.23 (#1551) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@types/node](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node) ([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)) | [`^20.11.22` -> `^20.11.23`](https://renovatebot.com/diffs/npm/@types%2fnode/20.11.22/20.11.23) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fnode/20.11.23?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fnode/20.11.23?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fnode/20.11.22/20.11.23?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fnode/20.11.22/20.11.23?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/gapic-generator-typescript). --- baselines/asset-esm/package.json | 2 +- baselines/asset/package.json | 2 +- baselines/bigquery-storage-esm/package.json | 2 +- baselines/bigquery-storage/package.json | 2 +- baselines/compute-esm/package.json | 2 +- baselines/compute/package.json | 2 +- baselines/deprecatedtest-esm/package.json | 2 +- baselines/deprecatedtest/package.json | 2 +- .../disable-packing-test-esm/package.json | 2 +- baselines/disable-packing-test/package.json | 2 +- baselines/dlp-esm/package.json | 2 +- baselines/dlp/package.json | 2 +- baselines/kms-esm/package.json | 2 +- baselines/kms/package.json | 2 +- baselines/logging-esm/package.json | 2 +- baselines/logging/package.json | 2 +- baselines/monitoring-esm/package.json | 2 +- baselines/monitoring/package.json | 2 +- baselines/naming-esm/package.json | 2 +- baselines/naming/package.json | 2 +- baselines/redis-esm/package.json | 2 +- baselines/redis/package.json | 2 +- baselines/routingtest-esm/package.json | 2 +- baselines/routingtest/package.json | 2 +- baselines/showcase-esm/package.json | 2 +- baselines/showcase-legacy-esm/package.json | 2 +- baselines/showcase-legacy/package.json | 2 +- baselines/showcase/package.json | 2 +- baselines/tasks-esm/package.json | 2 +- baselines/tasks/package.json | 2 +- baselines/texttospeech-esm/package.json | 2 +- baselines/texttospeech/package.json | 2 +- baselines/translate-esm/package.json | 2 +- baselines/translate/package.json | 2 +- baselines/videointelligence-esm/package.json | 2 +- baselines/videointelligence/package.json | 2 +- package-lock.json | 8 +++---- package.json | 2 +- pnpm-lock.yaml | 24 +++++++++---------- templates/cjs/typescript_gapic/package.json | 2 +- templates/esm/typescript_gapic/package.json | 2 +- yarn.lock | 8 +++---- 42 files changed, 59 insertions(+), 59 deletions(-) diff --git a/baselines/asset-esm/package.json b/baselines/asset-esm/package.json index 759712611..5fc3f2dc3 100644 --- a/baselines/asset-esm/package.json +++ b/baselines/asset-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/asset/package.json b/baselines/asset/package.json index d001d9a49..fce87db4b 100644 --- a/baselines/asset/package.json +++ b/baselines/asset/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/bigquery-storage-esm/package.json b/baselines/bigquery-storage-esm/package.json index 2e386feff..a11d36249 100644 --- a/baselines/bigquery-storage-esm/package.json +++ b/baselines/bigquery-storage-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/bigquery-storage/package.json b/baselines/bigquery-storage/package.json index fc8454b4d..37b289552 100644 --- a/baselines/bigquery-storage/package.json +++ b/baselines/bigquery-storage/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/compute-esm/package.json b/baselines/compute-esm/package.json index 95a295cad..83dd621e1 100644 --- a/baselines/compute-esm/package.json +++ b/baselines/compute-esm/package.json @@ -82,7 +82,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/compute/package.json b/baselines/compute/package.json index 817512635..176ecf583 100644 --- a/baselines/compute/package.json +++ b/baselines/compute/package.json @@ -40,7 +40,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/deprecatedtest-esm/package.json b/baselines/deprecatedtest-esm/package.json index c8be20939..a145bd869 100644 --- a/baselines/deprecatedtest-esm/package.json +++ b/baselines/deprecatedtest-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/deprecatedtest/package.json b/baselines/deprecatedtest/package.json index 50d45c634..5800b84e0 100644 --- a/baselines/deprecatedtest/package.json +++ b/baselines/deprecatedtest/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/disable-packing-test-esm/package.json b/baselines/disable-packing-test-esm/package.json index 2cc723da1..df4544318 100644 --- a/baselines/disable-packing-test-esm/package.json +++ b/baselines/disable-packing-test-esm/package.json @@ -86,7 +86,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/disable-packing-test/package.json b/baselines/disable-packing-test/package.json index 80967f115..12c2f62fd 100644 --- a/baselines/disable-packing-test/package.json +++ b/baselines/disable-packing-test/package.json @@ -44,7 +44,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/dlp-esm/package.json b/baselines/dlp-esm/package.json index b7b276752..4ebd4ab97 100644 --- a/baselines/dlp-esm/package.json +++ b/baselines/dlp-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/dlp/package.json b/baselines/dlp/package.json index 26625d73d..c628bf5fc 100644 --- a/baselines/dlp/package.json +++ b/baselines/dlp/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/kms-esm/package.json b/baselines/kms-esm/package.json index 67ec4b9a6..3da2b9b65 100644 --- a/baselines/kms-esm/package.json +++ b/baselines/kms-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/kms/package.json b/baselines/kms/package.json index 672a8340c..261863494 100644 --- a/baselines/kms/package.json +++ b/baselines/kms/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/logging-esm/package.json b/baselines/logging-esm/package.json index dd2f501cc..9e04eb18b 100644 --- a/baselines/logging-esm/package.json +++ b/baselines/logging-esm/package.json @@ -83,7 +83,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/logging/package.json b/baselines/logging/package.json index 6d9f0394d..e2da4c71f 100644 --- a/baselines/logging/package.json +++ b/baselines/logging/package.json @@ -41,7 +41,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/monitoring-esm/package.json b/baselines/monitoring-esm/package.json index d3f95b9e3..54f84358f 100644 --- a/baselines/monitoring-esm/package.json +++ b/baselines/monitoring-esm/package.json @@ -86,7 +86,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/monitoring/package.json b/baselines/monitoring/package.json index b3609be62..ead5b2350 100644 --- a/baselines/monitoring/package.json +++ b/baselines/monitoring/package.json @@ -44,7 +44,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/naming-esm/package.json b/baselines/naming-esm/package.json index 66b024f47..21b895ec7 100644 --- a/baselines/naming-esm/package.json +++ b/baselines/naming-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/naming/package.json b/baselines/naming/package.json index 65a65ed45..d145901dd 100644 --- a/baselines/naming/package.json +++ b/baselines/naming/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/redis-esm/package.json b/baselines/redis-esm/package.json index e31042e3e..e2b1e6a52 100644 --- a/baselines/redis-esm/package.json +++ b/baselines/redis-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/redis/package.json b/baselines/redis/package.json index f3799f4d9..e8d34f72e 100644 --- a/baselines/redis/package.json +++ b/baselines/redis/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/routingtest-esm/package.json b/baselines/routingtest-esm/package.json index af9a1b019..0afaecf47 100644 --- a/baselines/routingtest-esm/package.json +++ b/baselines/routingtest-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/routingtest/package.json b/baselines/routingtest/package.json index 49a4b1e55..b45894a3e 100644 --- a/baselines/routingtest/package.json +++ b/baselines/routingtest/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/showcase-esm/package.json b/baselines/showcase-esm/package.json index 2cc723da1..df4544318 100644 --- a/baselines/showcase-esm/package.json +++ b/baselines/showcase-esm/package.json @@ -86,7 +86,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/showcase-legacy-esm/package.json b/baselines/showcase-legacy-esm/package.json index 47bbd003f..a7fcb013a 100644 --- a/baselines/showcase-legacy-esm/package.json +++ b/baselines/showcase-legacy-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/showcase-legacy/package.json b/baselines/showcase-legacy/package.json index 3eddf3a9a..1ac81eac1 100644 --- a/baselines/showcase-legacy/package.json +++ b/baselines/showcase-legacy/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/showcase/package.json b/baselines/showcase/package.json index 80967f115..12c2f62fd 100644 --- a/baselines/showcase/package.json +++ b/baselines/showcase/package.json @@ -44,7 +44,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/tasks-esm/package.json b/baselines/tasks-esm/package.json index ab995e3c0..63ed8ae3b 100644 --- a/baselines/tasks-esm/package.json +++ b/baselines/tasks-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/tasks/package.json b/baselines/tasks/package.json index 7373fdfd0..ba39167e9 100644 --- a/baselines/tasks/package.json +++ b/baselines/tasks/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/texttospeech-esm/package.json b/baselines/texttospeech-esm/package.json index 19bf85998..e60923879 100644 --- a/baselines/texttospeech-esm/package.json +++ b/baselines/texttospeech-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/texttospeech/package.json b/baselines/texttospeech/package.json index 664a8e0f7..a8232915a 100644 --- a/baselines/texttospeech/package.json +++ b/baselines/texttospeech/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/translate-esm/package.json b/baselines/translate-esm/package.json index 34355e2ac..f3f61f366 100644 --- a/baselines/translate-esm/package.json +++ b/baselines/translate-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/translate/package.json b/baselines/translate/package.json index 09308b136..4439b939e 100644 --- a/baselines/translate/package.json +++ b/baselines/translate/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/videointelligence-esm/package.json b/baselines/videointelligence-esm/package.json index f0502c4eb..99ab668ab 100644 --- a/baselines/videointelligence-esm/package.json +++ b/baselines/videointelligence-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/videointelligence/package.json b/baselines/videointelligence/package.json index 864e2124d..e0e0b30c1 100644 --- a/baselines/videointelligence/package.json +++ b/baselines/videointelligence/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/package-lock.json b/package-lock.json index 75fb9c091..eef7469fc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,7 +27,7 @@ "@bazel/bazelisk": "^1.19.0", "@types/mocha": "^10.0.6", "@types/module-alias": "^2.0.4", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/nunjucks": "^3.2.6", "@types/object-hash": "^3.0.6", "@types/yargs": "^17.0.32", @@ -954,9 +954,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "20.11.22", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.22.tgz", - "integrity": "sha512-/G+IxWxma6V3E+pqK1tSl2Fo1kl41pK1yeCyDsgkF9WlVAme4j5ISYM2zR11bgLFJGLN5sVK40T4RJNuiZbEjA==", + "version": "20.11.23", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.23.tgz", + "integrity": "sha512-ZUarKKfQuRILSNYt32FuPL20HS7XwNT7/uRwSV8tiHWfyyVwDLYZNF6DZKc2bove++pgfsXn9sUwII/OsQ82cQ==", "dependencies": { "undici-types": "~5.26.4" } diff --git a/package.json b/package.json index 4a3ab03d0..a9e872c76 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "@bazel/bazelisk": "^1.19.0", "@types/mocha": "^10.0.6", "@types/module-alias": "^2.0.4", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/nunjucks": "^3.2.6", "@types/object-hash": "^3.0.6", "@types/yargs": "^17.0.32", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8e013eaf6..1af61a8f8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -44,8 +44,8 @@ devDependencies: specifier: ^2.0.4 version: 2.0.4 '@types/node': - specifier: ^20.11.22 - version: 20.11.22 + specifier: ^20.11.23 + version: 20.11.23 '@types/nunjucks': specifier: ^3.2.6 version: 3.2.6 @@ -57,7 +57,7 @@ devDependencies: version: 17.0.32 espower-typescript: specifier: ^10.0.1 - version: 10.0.1(@types/node@20.11.22)(typescript@5.1.6) + version: 10.0.1(@types/node@20.11.23)(typescript@5.1.6) gapic-tools: specifier: ^0.3.0 version: 0.3.0(protobufjs@7.2.6) @@ -330,7 +330,7 @@ packages: engines: {node: ^8.13.0 || >=10.10.0} dependencies: '@grpc/proto-loader': 0.7.10 - '@types/node': 20.11.22 + '@types/node': 20.11.23 dev: true /@grpc/proto-loader@0.7.10: @@ -546,8 +546,8 @@ packages: resolution: {integrity: sha512-5+G/QXO/DvHZw60FjvbDzO4JmlD/nG5m2/vVGt25VN1eeP3w2bCoks1Wa7VuptMPM1TxJdx6RjO70N9Fw0nZPA==} dev: true - /@types/node@20.11.22: - resolution: {integrity: sha512-/G+IxWxma6V3E+pqK1tSl2Fo1kl41pK1yeCyDsgkF9WlVAme4j5ISYM2zR11bgLFJGLN5sVK40T4RJNuiZbEjA==} + /@types/node@20.11.23: + resolution: {integrity: sha512-ZUarKKfQuRILSNYt32FuPL20HS7XwNT7/uRwSV8tiHWfyyVwDLYZNF6DZKc2bove++pgfsXn9sUwII/OsQ82cQ==} dependencies: undici-types: 5.26.5 @@ -567,7 +567,7 @@ packages: resolution: {integrity: sha512-G3sY+NpsA9jnwm0ixhAFQSJ3Q9JkpLZpJbI3GMv0mIAT0y3mRabYeINzal5WOChIiaTEGQYlHOKgkaM9EisWHw==} dependencies: '@types/caseless': 0.12.5 - '@types/node': 20.11.22 + '@types/node': 20.11.23 '@types/tough-cookie': 4.0.5 form-data: 2.5.1 dev: true @@ -1516,7 +1516,7 @@ packages: xtend: 4.0.2 dev: true - /espower-typescript@10.0.1(@types/node@20.11.22)(typescript@5.1.6): + /espower-typescript@10.0.1(@types/node@20.11.23)(typescript@5.1.6): resolution: {integrity: sha512-Otz3g+JKQCPG3CxyUQnmcmr9LeYXe+bEU2F/WtBeaByIj+kgR+8lyYSa1Rcqh27b/sp9EjrDLDUTW+d7dsfJQw==} engines: {node: '>=10.17'} peerDependencies: @@ -1525,7 +1525,7 @@ packages: espower-source: 2.3.0 minimatch: 5.1.6 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@20.11.22)(typescript@5.1.6) + ts-node: 10.9.2(@types/node@20.11.23)(typescript@5.1.6) typescript: 5.1.6 transitivePeerDependencies: - '@swc/core' @@ -2918,7 +2918,7 @@ packages: '@protobufjs/path': 1.1.2 '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.0 - '@types/node': 20.11.22 + '@types/node': 20.11.23 long: 5.2.3 /punycode@2.3.1: @@ -3354,7 +3354,7 @@ packages: engines: {node: '>=8'} dev: true - /ts-node@10.9.2(@types/node@20.11.22)(typescript@5.1.6): + /ts-node@10.9.2(@types/node@20.11.23)(typescript@5.1.6): resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} hasBin: true peerDependencies: @@ -3373,7 +3373,7 @@ packages: '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 20.11.22 + '@types/node': 20.11.23 acorn: 8.11.3 acorn-walk: 8.3.2 arg: 4.1.3 diff --git a/templates/cjs/typescript_gapic/package.json b/templates/cjs/typescript_gapic/package.json index eb62a074f..127cdb522 100644 --- a/templates/cjs/typescript_gapic/package.json +++ b/templates/cjs/typescript_gapic/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/templates/esm/typescript_gapic/package.json b/templates/esm/typescript_gapic/package.json index 91a90f271..84dfc167e 100644 --- a/templates/esm/typescript_gapic/package.json +++ b/templates/esm/typescript_gapic/package.json @@ -82,7 +82,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.22", + "@types/node": "^20.11.23", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/yarn.lock b/yarn.lock index 998d2d49d..c37c28b6d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -503,10 +503,10 @@ resolved "https://registry.npmjs.org/@types/module-alias/-/module-alias-2.0.4.tgz" integrity sha512-5+G/QXO/DvHZw60FjvbDzO4JmlD/nG5m2/vVGt25VN1eeP3w2bCoks1Wa7VuptMPM1TxJdx6RjO70N9Fw0nZPA== -"@types/node@*", "@types/node@>=12.12.47", "@types/node@>=13.7.0", "@types/node@^20.11.22": - version "20.11.22" - resolved "https://registry.npmjs.org/@types/node/-/node-20.11.22.tgz" - integrity sha512-/G+IxWxma6V3E+pqK1tSl2Fo1kl41pK1yeCyDsgkF9WlVAme4j5ISYM2zR11bgLFJGLN5sVK40T4RJNuiZbEjA== +"@types/node@*", "@types/node@>=12.12.47", "@types/node@>=13.7.0", "@types/node@^20.11.23": + version "20.11.23" + resolved "https://registry.npmjs.org/@types/node/-/node-20.11.23.tgz" + integrity sha512-ZUarKKfQuRILSNYt32FuPL20HS7XwNT7/uRwSV8tiHWfyyVwDLYZNF6DZKc2bove++pgfsXn9sUwII/OsQ82cQ== dependencies: undici-types "~5.26.4" From 984397869bec5a9740521be5d51732519c08ebb3 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 29 Feb 2024 17:02:27 +0100 Subject: [PATCH 33/35] chore(deps): update dependency @types/node to ^20.11.24 (#1552) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@types/node](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node) ([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)) | [`^20.11.23` -> `^20.11.24`](https://renovatebot.com/diffs/npm/@types%2fnode/20.11.23/20.11.24) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fnode/20.11.24?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fnode/20.11.24?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fnode/20.11.23/20.11.24?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fnode/20.11.23/20.11.24?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/gapic-generator-typescript). --- baselines/asset-esm/package.json | 2 +- baselines/asset/package.json | 2 +- baselines/bigquery-storage-esm/package.json | 2 +- baselines/bigquery-storage/package.json | 2 +- baselines/compute-esm/package.json | 2 +- baselines/compute/package.json | 2 +- baselines/deprecatedtest-esm/package.json | 2 +- baselines/deprecatedtest/package.json | 2 +- .../disable-packing-test-esm/package.json | 2 +- baselines/disable-packing-test/package.json | 2 +- baselines/dlp-esm/package.json | 2 +- baselines/dlp/package.json | 2 +- baselines/kms-esm/package.json | 2 +- baselines/kms/package.json | 2 +- baselines/logging-esm/package.json | 2 +- baselines/logging/package.json | 2 +- baselines/monitoring-esm/package.json | 2 +- baselines/monitoring/package.json | 2 +- baselines/naming-esm/package.json | 2 +- baselines/naming/package.json | 2 +- baselines/redis-esm/package.json | 2 +- baselines/redis/package.json | 2 +- baselines/routingtest-esm/package.json | 2 +- baselines/routingtest/package.json | 2 +- baselines/showcase-esm/package.json | 2 +- baselines/showcase-legacy-esm/package.json | 2 +- baselines/showcase-legacy/package.json | 2 +- baselines/showcase/package.json | 2 +- baselines/tasks-esm/package.json | 2 +- baselines/tasks/package.json | 2 +- baselines/texttospeech-esm/package.json | 2 +- baselines/texttospeech/package.json | 2 +- baselines/translate-esm/package.json | 2 +- baselines/translate/package.json | 2 +- baselines/videointelligence-esm/package.json | 2 +- baselines/videointelligence/package.json | 2 +- package-lock.json | 8 +++---- package.json | 2 +- pnpm-lock.yaml | 24 +++++++++---------- templates/cjs/typescript_gapic/package.json | 2 +- templates/esm/typescript_gapic/package.json | 2 +- yarn.lock | 8 +++---- 42 files changed, 59 insertions(+), 59 deletions(-) diff --git a/baselines/asset-esm/package.json b/baselines/asset-esm/package.json index 5fc3f2dc3..18baad980 100644 --- a/baselines/asset-esm/package.json +++ b/baselines/asset-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/asset/package.json b/baselines/asset/package.json index fce87db4b..24530ae5b 100644 --- a/baselines/asset/package.json +++ b/baselines/asset/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/bigquery-storage-esm/package.json b/baselines/bigquery-storage-esm/package.json index a11d36249..ced0c9495 100644 --- a/baselines/bigquery-storage-esm/package.json +++ b/baselines/bigquery-storage-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/bigquery-storage/package.json b/baselines/bigquery-storage/package.json index 37b289552..0d5658ad2 100644 --- a/baselines/bigquery-storage/package.json +++ b/baselines/bigquery-storage/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/compute-esm/package.json b/baselines/compute-esm/package.json index 83dd621e1..4fecea1e6 100644 --- a/baselines/compute-esm/package.json +++ b/baselines/compute-esm/package.json @@ -82,7 +82,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/compute/package.json b/baselines/compute/package.json index 176ecf583..48aa42717 100644 --- a/baselines/compute/package.json +++ b/baselines/compute/package.json @@ -40,7 +40,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/deprecatedtest-esm/package.json b/baselines/deprecatedtest-esm/package.json index a145bd869..95ffa2c91 100644 --- a/baselines/deprecatedtest-esm/package.json +++ b/baselines/deprecatedtest-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/deprecatedtest/package.json b/baselines/deprecatedtest/package.json index 5800b84e0..a0b9378e1 100644 --- a/baselines/deprecatedtest/package.json +++ b/baselines/deprecatedtest/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/disable-packing-test-esm/package.json b/baselines/disable-packing-test-esm/package.json index df4544318..03641ff2d 100644 --- a/baselines/disable-packing-test-esm/package.json +++ b/baselines/disable-packing-test-esm/package.json @@ -86,7 +86,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/disable-packing-test/package.json b/baselines/disable-packing-test/package.json index 12c2f62fd..5193c6d54 100644 --- a/baselines/disable-packing-test/package.json +++ b/baselines/disable-packing-test/package.json @@ -44,7 +44,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/dlp-esm/package.json b/baselines/dlp-esm/package.json index 4ebd4ab97..9508a0848 100644 --- a/baselines/dlp-esm/package.json +++ b/baselines/dlp-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/dlp/package.json b/baselines/dlp/package.json index c628bf5fc..fc881ef68 100644 --- a/baselines/dlp/package.json +++ b/baselines/dlp/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/kms-esm/package.json b/baselines/kms-esm/package.json index 3da2b9b65..dcad21641 100644 --- a/baselines/kms-esm/package.json +++ b/baselines/kms-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/kms/package.json b/baselines/kms/package.json index 261863494..8028ab3c4 100644 --- a/baselines/kms/package.json +++ b/baselines/kms/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/logging-esm/package.json b/baselines/logging-esm/package.json index 9e04eb18b..5517b0d29 100644 --- a/baselines/logging-esm/package.json +++ b/baselines/logging-esm/package.json @@ -83,7 +83,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/logging/package.json b/baselines/logging/package.json index e2da4c71f..fa4110201 100644 --- a/baselines/logging/package.json +++ b/baselines/logging/package.json @@ -41,7 +41,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/monitoring-esm/package.json b/baselines/monitoring-esm/package.json index 54f84358f..82119071e 100644 --- a/baselines/monitoring-esm/package.json +++ b/baselines/monitoring-esm/package.json @@ -86,7 +86,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/monitoring/package.json b/baselines/monitoring/package.json index ead5b2350..ad5bc58b4 100644 --- a/baselines/monitoring/package.json +++ b/baselines/monitoring/package.json @@ -44,7 +44,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/naming-esm/package.json b/baselines/naming-esm/package.json index 21b895ec7..5c6e34503 100644 --- a/baselines/naming-esm/package.json +++ b/baselines/naming-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/naming/package.json b/baselines/naming/package.json index d145901dd..5e392f23f 100644 --- a/baselines/naming/package.json +++ b/baselines/naming/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/redis-esm/package.json b/baselines/redis-esm/package.json index e2b1e6a52..fb0071a36 100644 --- a/baselines/redis-esm/package.json +++ b/baselines/redis-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/redis/package.json b/baselines/redis/package.json index e8d34f72e..762c66bb7 100644 --- a/baselines/redis/package.json +++ b/baselines/redis/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/routingtest-esm/package.json b/baselines/routingtest-esm/package.json index 0afaecf47..f853c05ae 100644 --- a/baselines/routingtest-esm/package.json +++ b/baselines/routingtest-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/routingtest/package.json b/baselines/routingtest/package.json index b45894a3e..0be86be20 100644 --- a/baselines/routingtest/package.json +++ b/baselines/routingtest/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/showcase-esm/package.json b/baselines/showcase-esm/package.json index df4544318..03641ff2d 100644 --- a/baselines/showcase-esm/package.json +++ b/baselines/showcase-esm/package.json @@ -86,7 +86,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/showcase-legacy-esm/package.json b/baselines/showcase-legacy-esm/package.json index a7fcb013a..17c7fba08 100644 --- a/baselines/showcase-legacy-esm/package.json +++ b/baselines/showcase-legacy-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/showcase-legacy/package.json b/baselines/showcase-legacy/package.json index 1ac81eac1..64adc0ecf 100644 --- a/baselines/showcase-legacy/package.json +++ b/baselines/showcase-legacy/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/showcase/package.json b/baselines/showcase/package.json index 12c2f62fd..5193c6d54 100644 --- a/baselines/showcase/package.json +++ b/baselines/showcase/package.json @@ -44,7 +44,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/tasks-esm/package.json b/baselines/tasks-esm/package.json index 63ed8ae3b..a132751a1 100644 --- a/baselines/tasks-esm/package.json +++ b/baselines/tasks-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/tasks/package.json b/baselines/tasks/package.json index ba39167e9..49deaa373 100644 --- a/baselines/tasks/package.json +++ b/baselines/tasks/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/texttospeech-esm/package.json b/baselines/texttospeech-esm/package.json index e60923879..3bd146c4b 100644 --- a/baselines/texttospeech-esm/package.json +++ b/baselines/texttospeech-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/texttospeech/package.json b/baselines/texttospeech/package.json index a8232915a..56141ab2d 100644 --- a/baselines/texttospeech/package.json +++ b/baselines/texttospeech/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/translate-esm/package.json b/baselines/translate-esm/package.json index f3f61f366..c7421678d 100644 --- a/baselines/translate-esm/package.json +++ b/baselines/translate-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/translate/package.json b/baselines/translate/package.json index 4439b939e..d1bf1e8c0 100644 --- a/baselines/translate/package.json +++ b/baselines/translate/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/baselines/videointelligence-esm/package.json b/baselines/videointelligence-esm/package.json index 99ab668ab..851e19491 100644 --- a/baselines/videointelligence-esm/package.json +++ b/baselines/videointelligence-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/videointelligence/package.json b/baselines/videointelligence/package.json index e0e0b30c1..7da4648d3 100644 --- a/baselines/videointelligence/package.json +++ b/baselines/videointelligence/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/package-lock.json b/package-lock.json index eef7469fc..ec4f68b4d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,7 +27,7 @@ "@bazel/bazelisk": "^1.19.0", "@types/mocha": "^10.0.6", "@types/module-alias": "^2.0.4", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/nunjucks": "^3.2.6", "@types/object-hash": "^3.0.6", "@types/yargs": "^17.0.32", @@ -954,9 +954,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "20.11.23", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.23.tgz", - "integrity": "sha512-ZUarKKfQuRILSNYt32FuPL20HS7XwNT7/uRwSV8tiHWfyyVwDLYZNF6DZKc2bove++pgfsXn9sUwII/OsQ82cQ==", + "version": "20.11.24", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.24.tgz", + "integrity": "sha512-Kza43ewS3xoLgCEpQrsT+xRo/EJej1y0kVYGiLFE1NEODXGzTfwiC6tXTLMQskn1X4/Rjlh0MQUvx9W+L9long==", "dependencies": { "undici-types": "~5.26.4" } diff --git a/package.json b/package.json index a9e872c76..e6fea9d19 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "@bazel/bazelisk": "^1.19.0", "@types/mocha": "^10.0.6", "@types/module-alias": "^2.0.4", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/nunjucks": "^3.2.6", "@types/object-hash": "^3.0.6", "@types/yargs": "^17.0.32", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1af61a8f8..8bbbe40b4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -44,8 +44,8 @@ devDependencies: specifier: ^2.0.4 version: 2.0.4 '@types/node': - specifier: ^20.11.23 - version: 20.11.23 + specifier: ^20.11.24 + version: 20.11.24 '@types/nunjucks': specifier: ^3.2.6 version: 3.2.6 @@ -57,7 +57,7 @@ devDependencies: version: 17.0.32 espower-typescript: specifier: ^10.0.1 - version: 10.0.1(@types/node@20.11.23)(typescript@5.1.6) + version: 10.0.1(@types/node@20.11.24)(typescript@5.1.6) gapic-tools: specifier: ^0.3.0 version: 0.3.0(protobufjs@7.2.6) @@ -330,7 +330,7 @@ packages: engines: {node: ^8.13.0 || >=10.10.0} dependencies: '@grpc/proto-loader': 0.7.10 - '@types/node': 20.11.23 + '@types/node': 20.11.24 dev: true /@grpc/proto-loader@0.7.10: @@ -546,8 +546,8 @@ packages: resolution: {integrity: sha512-5+G/QXO/DvHZw60FjvbDzO4JmlD/nG5m2/vVGt25VN1eeP3w2bCoks1Wa7VuptMPM1TxJdx6RjO70N9Fw0nZPA==} dev: true - /@types/node@20.11.23: - resolution: {integrity: sha512-ZUarKKfQuRILSNYt32FuPL20HS7XwNT7/uRwSV8tiHWfyyVwDLYZNF6DZKc2bove++pgfsXn9sUwII/OsQ82cQ==} + /@types/node@20.11.24: + resolution: {integrity: sha512-Kza43ewS3xoLgCEpQrsT+xRo/EJej1y0kVYGiLFE1NEODXGzTfwiC6tXTLMQskn1X4/Rjlh0MQUvx9W+L9long==} dependencies: undici-types: 5.26.5 @@ -567,7 +567,7 @@ packages: resolution: {integrity: sha512-G3sY+NpsA9jnwm0ixhAFQSJ3Q9JkpLZpJbI3GMv0mIAT0y3mRabYeINzal5WOChIiaTEGQYlHOKgkaM9EisWHw==} dependencies: '@types/caseless': 0.12.5 - '@types/node': 20.11.23 + '@types/node': 20.11.24 '@types/tough-cookie': 4.0.5 form-data: 2.5.1 dev: true @@ -1516,7 +1516,7 @@ packages: xtend: 4.0.2 dev: true - /espower-typescript@10.0.1(@types/node@20.11.23)(typescript@5.1.6): + /espower-typescript@10.0.1(@types/node@20.11.24)(typescript@5.1.6): resolution: {integrity: sha512-Otz3g+JKQCPG3CxyUQnmcmr9LeYXe+bEU2F/WtBeaByIj+kgR+8lyYSa1Rcqh27b/sp9EjrDLDUTW+d7dsfJQw==} engines: {node: '>=10.17'} peerDependencies: @@ -1525,7 +1525,7 @@ packages: espower-source: 2.3.0 minimatch: 5.1.6 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@20.11.23)(typescript@5.1.6) + ts-node: 10.9.2(@types/node@20.11.24)(typescript@5.1.6) typescript: 5.1.6 transitivePeerDependencies: - '@swc/core' @@ -2918,7 +2918,7 @@ packages: '@protobufjs/path': 1.1.2 '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.0 - '@types/node': 20.11.23 + '@types/node': 20.11.24 long: 5.2.3 /punycode@2.3.1: @@ -3354,7 +3354,7 @@ packages: engines: {node: '>=8'} dev: true - /ts-node@10.9.2(@types/node@20.11.23)(typescript@5.1.6): + /ts-node@10.9.2(@types/node@20.11.24)(typescript@5.1.6): resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} hasBin: true peerDependencies: @@ -3373,7 +3373,7 @@ packages: '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 20.11.23 + '@types/node': 20.11.24 acorn: 8.11.3 acorn-walk: 8.3.2 arg: 4.1.3 diff --git a/templates/cjs/typescript_gapic/package.json b/templates/cjs/typescript_gapic/package.json index 127cdb522..af23a1063 100644 --- a/templates/cjs/typescript_gapic/package.json +++ b/templates/cjs/typescript_gapic/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.3.0", diff --git a/templates/esm/typescript_gapic/package.json b/templates/esm/typescript_gapic/package.json index 84dfc167e..c050686cb 100644 --- a/templates/esm/typescript_gapic/package.json +++ b/templates/esm/typescript_gapic/package.json @@ -82,7 +82,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.23", + "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/yarn.lock b/yarn.lock index c37c28b6d..2cdfa1ffb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -503,10 +503,10 @@ resolved "https://registry.npmjs.org/@types/module-alias/-/module-alias-2.0.4.tgz" integrity sha512-5+G/QXO/DvHZw60FjvbDzO4JmlD/nG5m2/vVGt25VN1eeP3w2bCoks1Wa7VuptMPM1TxJdx6RjO70N9Fw0nZPA== -"@types/node@*", "@types/node@>=12.12.47", "@types/node@>=13.7.0", "@types/node@^20.11.23": - version "20.11.23" - resolved "https://registry.npmjs.org/@types/node/-/node-20.11.23.tgz" - integrity sha512-ZUarKKfQuRILSNYt32FuPL20HS7XwNT7/uRwSV8tiHWfyyVwDLYZNF6DZKc2bove++pgfsXn9sUwII/OsQ82cQ== +"@types/node@*", "@types/node@>=12.12.47", "@types/node@>=13.7.0", "@types/node@^20.11.24": + version "20.11.24" + resolved "https://registry.npmjs.org/@types/node/-/node-20.11.24.tgz" + integrity sha512-Kza43ewS3xoLgCEpQrsT+xRo/EJej1y0kVYGiLFE1NEODXGzTfwiC6tXTLMQskn1X4/Rjlh0MQUvx9W+L9long== dependencies: undici-types "~5.26.4" From b746b90e68eb0d10325093334c083119fc1e050c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 1 Mar 2024 20:06:15 +0100 Subject: [PATCH 34/35] chore(deps): update dependency gapic-tools to ^0.4.0 (#1553) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [gapic-tools](https://togithub.com/googleapis/gax-nodejs) ([source](https://togithub.com/googleapis/gax-nodejs/tree/HEAD/gapic-tools)) | [`^0.3.0` -> `^0.4.0`](https://renovatebot.com/diffs/npm/gapic-tools/0.3.0/0.4.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/gapic-tools/0.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/gapic-tools/0.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/gapic-tools/0.3.0/0.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/gapic-tools/0.3.0/0.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/gax-nodejs (gapic-tools) ### [`v0.4.0`](https://togithub.com/googleapis/gax-nodejs/releases/tag/gapic-tools-v0.4.0): gapic-tools: v0.4.0 [Compare Source](https://togithub.com/googleapis/gax-nodejs/compare/gapic-tools-v0.3.0...gapic-tools-v0.4.0) ##### Features - allow passing --keep-case and --force-number to compileProtos ([#​1561](https://togithub.com/googleapis/gax-nodejs/issues/1561)) ([004d112](https://togithub.com/googleapis/gax-nodejs/commit/004d112445f528a6cb143676e8b397b37137adf3))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/gapic-generator-typescript). --- baselines/asset-esm/package.json | 2 +- baselines/asset/package.json | 2 +- baselines/bigquery-storage-esm/package.json | 2 +- baselines/bigquery-storage/package.json | 2 +- baselines/compute-esm/package.json | 2 +- baselines/compute/package.json | 2 +- baselines/deprecatedtest-esm/package.json | 2 +- baselines/deprecatedtest/package.json | 2 +- baselines/disable-packing-test-esm/package.json | 2 +- baselines/disable-packing-test/package.json | 2 +- baselines/dlp-esm/package.json | 2 +- baselines/dlp/package.json | 2 +- baselines/kms-esm/package.json | 2 +- baselines/kms/package.json | 2 +- baselines/logging-esm/package.json | 2 +- baselines/logging/package.json | 2 +- baselines/monitoring-esm/package.json | 2 +- baselines/monitoring/package.json | 2 +- baselines/naming-esm/package.json | 2 +- baselines/naming/package.json | 2 +- baselines/redis-esm/package.json | 2 +- baselines/redis/package.json | 2 +- baselines/routingtest-esm/package.json | 2 +- baselines/routingtest/package.json | 2 +- baselines/showcase-esm/package.json | 2 +- baselines/showcase-legacy-esm/package.json | 2 +- baselines/showcase-legacy/package.json | 2 +- baselines/showcase/package.json | 2 +- baselines/tasks-esm/package.json | 2 +- baselines/tasks/package.json | 2 +- baselines/texttospeech-esm/package.json | 2 +- baselines/texttospeech/package.json | 2 +- baselines/translate-esm/package.json | 2 +- baselines/translate/package.json | 2 +- baselines/videointelligence-esm/package.json | 2 +- baselines/videointelligence/package.json | 2 +- package-lock.json | 8 ++++---- package.json | 2 +- pnpm-lock.yaml | 8 ++++---- templates/cjs/typescript_gapic/package.json | 2 +- templates/esm/typescript_gapic/package.json | 2 +- yarn.lock | 8 ++++---- 42 files changed, 51 insertions(+), 51 deletions(-) diff --git a/baselines/asset-esm/package.json b/baselines/asset-esm/package.json index 18baad980..f9cfe48f4 100644 --- a/baselines/asset-esm/package.json +++ b/baselines/asset-esm/package.json @@ -85,7 +85,7 @@ "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "gts": "^5.2.0", "jsdoc": "^4.0.2", "jsdoc-region-tag": "^3.0.0", diff --git a/baselines/asset/package.json b/baselines/asset/package.json index 24530ae5b..413364b5c 100644 --- a/baselines/asset/package.json +++ b/baselines/asset/package.json @@ -42,7 +42,7 @@ "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "c8": "^8.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "gts": "5.2.0", "jsdoc": "^4.0.2", "jsdoc-fresh": "^3.0.0", diff --git a/baselines/bigquery-storage-esm/package.json b/baselines/bigquery-storage-esm/package.json index ced0c9495..90564ae5e 100644 --- a/baselines/bigquery-storage-esm/package.json +++ b/baselines/bigquery-storage-esm/package.json @@ -85,7 +85,7 @@ "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "gts": "^5.2.0", "jsdoc": "^4.0.2", "jsdoc-region-tag": "^3.0.0", diff --git a/baselines/bigquery-storage/package.json b/baselines/bigquery-storage/package.json index 0d5658ad2..fa54a676f 100644 --- a/baselines/bigquery-storage/package.json +++ b/baselines/bigquery-storage/package.json @@ -42,7 +42,7 @@ "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "c8": "^8.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "gts": "5.2.0", "jsdoc": "^4.0.2", "jsdoc-fresh": "^3.0.0", diff --git a/baselines/compute-esm/package.json b/baselines/compute-esm/package.json index 4fecea1e6..1400ec24d 100644 --- a/baselines/compute-esm/package.json +++ b/baselines/compute-esm/package.json @@ -86,7 +86,7 @@ "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "gts": "^5.2.0", "jsdoc": "^4.0.2", "jsdoc-region-tag": "^3.0.0", diff --git a/baselines/compute/package.json b/baselines/compute/package.json index 48aa42717..25280703c 100644 --- a/baselines/compute/package.json +++ b/baselines/compute/package.json @@ -43,7 +43,7 @@ "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "c8": "^8.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "gts": "5.2.0", "jsdoc": "^4.0.2", "jsdoc-fresh": "^3.0.0", diff --git a/baselines/deprecatedtest-esm/package.json b/baselines/deprecatedtest-esm/package.json index 95ffa2c91..a9aa6afba 100644 --- a/baselines/deprecatedtest-esm/package.json +++ b/baselines/deprecatedtest-esm/package.json @@ -85,7 +85,7 @@ "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "gts": "^5.2.0", "jsdoc": "^4.0.2", "jsdoc-region-tag": "^3.0.0", diff --git a/baselines/deprecatedtest/package.json b/baselines/deprecatedtest/package.json index a0b9378e1..68c56d67c 100644 --- a/baselines/deprecatedtest/package.json +++ b/baselines/deprecatedtest/package.json @@ -42,7 +42,7 @@ "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "c8": "^8.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "gts": "5.2.0", "jsdoc": "^4.0.2", "jsdoc-fresh": "^3.0.0", diff --git a/baselines/disable-packing-test-esm/package.json b/baselines/disable-packing-test-esm/package.json index 03641ff2d..4348039bb 100644 --- a/baselines/disable-packing-test-esm/package.json +++ b/baselines/disable-packing-test-esm/package.json @@ -90,7 +90,7 @@ "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "gts": "^5.2.0", "jsdoc": "^4.0.2", "jsdoc-region-tag": "^3.0.0", diff --git a/baselines/disable-packing-test/package.json b/baselines/disable-packing-test/package.json index 5193c6d54..2605d49f2 100644 --- a/baselines/disable-packing-test/package.json +++ b/baselines/disable-packing-test/package.json @@ -47,7 +47,7 @@ "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "c8": "^8.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "gts": "5.2.0", "jsdoc": "^4.0.2", "jsdoc-fresh": "^3.0.0", diff --git a/baselines/dlp-esm/package.json b/baselines/dlp-esm/package.json index 9508a0848..74d427caf 100644 --- a/baselines/dlp-esm/package.json +++ b/baselines/dlp-esm/package.json @@ -85,7 +85,7 @@ "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "gts": "^5.2.0", "jsdoc": "^4.0.2", "jsdoc-region-tag": "^3.0.0", diff --git a/baselines/dlp/package.json b/baselines/dlp/package.json index fc881ef68..6133a6741 100644 --- a/baselines/dlp/package.json +++ b/baselines/dlp/package.json @@ -42,7 +42,7 @@ "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "c8": "^8.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "gts": "5.2.0", "jsdoc": "^4.0.2", "jsdoc-fresh": "^3.0.0", diff --git a/baselines/kms-esm/package.json b/baselines/kms-esm/package.json index dcad21641..4bf5e1bd4 100644 --- a/baselines/kms-esm/package.json +++ b/baselines/kms-esm/package.json @@ -85,7 +85,7 @@ "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "gts": "^5.2.0", "jsdoc": "^4.0.2", "jsdoc-region-tag": "^3.0.0", diff --git a/baselines/kms/package.json b/baselines/kms/package.json index 8028ab3c4..942f48fa7 100644 --- a/baselines/kms/package.json +++ b/baselines/kms/package.json @@ -42,7 +42,7 @@ "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "c8": "^8.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "gts": "5.2.0", "jsdoc": "^4.0.2", "jsdoc-fresh": "^3.0.0", diff --git a/baselines/logging-esm/package.json b/baselines/logging-esm/package.json index 5517b0d29..8f94d3ea8 100644 --- a/baselines/logging-esm/package.json +++ b/baselines/logging-esm/package.json @@ -87,7 +87,7 @@ "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "gts": "^5.2.0", "jsdoc": "^4.0.2", "jsdoc-region-tag": "^3.0.0", diff --git a/baselines/logging/package.json b/baselines/logging/package.json index fa4110201..d813f974f 100644 --- a/baselines/logging/package.json +++ b/baselines/logging/package.json @@ -44,7 +44,7 @@ "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "c8": "^8.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "gts": "5.2.0", "jsdoc": "^4.0.2", "jsdoc-fresh": "^3.0.0", diff --git a/baselines/monitoring-esm/package.json b/baselines/monitoring-esm/package.json index 82119071e..c2102d125 100644 --- a/baselines/monitoring-esm/package.json +++ b/baselines/monitoring-esm/package.json @@ -90,7 +90,7 @@ "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "gts": "^5.2.0", "jsdoc": "^4.0.2", "jsdoc-region-tag": "^3.0.0", diff --git a/baselines/monitoring/package.json b/baselines/monitoring/package.json index ad5bc58b4..fd40f7b7e 100644 --- a/baselines/monitoring/package.json +++ b/baselines/monitoring/package.json @@ -47,7 +47,7 @@ "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "c8": "^8.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "gts": "5.2.0", "jsdoc": "^4.0.2", "jsdoc-fresh": "^3.0.0", diff --git a/baselines/naming-esm/package.json b/baselines/naming-esm/package.json index 5c6e34503..4ac19d087 100644 --- a/baselines/naming-esm/package.json +++ b/baselines/naming-esm/package.json @@ -85,7 +85,7 @@ "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "gts": "^5.2.0", "jsdoc": "^4.0.2", "jsdoc-region-tag": "^3.0.0", diff --git a/baselines/naming/package.json b/baselines/naming/package.json index 5e392f23f..98ba79f1c 100644 --- a/baselines/naming/package.json +++ b/baselines/naming/package.json @@ -42,7 +42,7 @@ "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "c8": "^8.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "gts": "5.2.0", "jsdoc": "^4.0.2", "jsdoc-fresh": "^3.0.0", diff --git a/baselines/redis-esm/package.json b/baselines/redis-esm/package.json index fb0071a36..2083720eb 100644 --- a/baselines/redis-esm/package.json +++ b/baselines/redis-esm/package.json @@ -85,7 +85,7 @@ "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "gts": "^5.2.0", "jsdoc": "^4.0.2", "jsdoc-region-tag": "^3.0.0", diff --git a/baselines/redis/package.json b/baselines/redis/package.json index 762c66bb7..2bf252fb4 100644 --- a/baselines/redis/package.json +++ b/baselines/redis/package.json @@ -42,7 +42,7 @@ "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "c8": "^8.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "gts": "5.2.0", "jsdoc": "^4.0.2", "jsdoc-fresh": "^3.0.0", diff --git a/baselines/routingtest-esm/package.json b/baselines/routingtest-esm/package.json index f853c05ae..d873f05c2 100644 --- a/baselines/routingtest-esm/package.json +++ b/baselines/routingtest-esm/package.json @@ -85,7 +85,7 @@ "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "gts": "^5.2.0", "jsdoc": "^4.0.2", "jsdoc-region-tag": "^3.0.0", diff --git a/baselines/routingtest/package.json b/baselines/routingtest/package.json index 0be86be20..7bdb627b9 100644 --- a/baselines/routingtest/package.json +++ b/baselines/routingtest/package.json @@ -42,7 +42,7 @@ "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "c8": "^8.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "gts": "5.2.0", "jsdoc": "^4.0.2", "jsdoc-fresh": "^3.0.0", diff --git a/baselines/showcase-esm/package.json b/baselines/showcase-esm/package.json index 03641ff2d..4348039bb 100644 --- a/baselines/showcase-esm/package.json +++ b/baselines/showcase-esm/package.json @@ -90,7 +90,7 @@ "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "gts": "^5.2.0", "jsdoc": "^4.0.2", "jsdoc-region-tag": "^3.0.0", diff --git a/baselines/showcase-legacy-esm/package.json b/baselines/showcase-legacy-esm/package.json index 17c7fba08..24938ae02 100644 --- a/baselines/showcase-legacy-esm/package.json +++ b/baselines/showcase-legacy-esm/package.json @@ -85,7 +85,7 @@ "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "gts": "^5.2.0", "jsdoc": "^4.0.2", "jsdoc-region-tag": "^3.0.0", diff --git a/baselines/showcase-legacy/package.json b/baselines/showcase-legacy/package.json index 64adc0ecf..a141c09b4 100644 --- a/baselines/showcase-legacy/package.json +++ b/baselines/showcase-legacy/package.json @@ -42,7 +42,7 @@ "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "c8": "^8.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "gts": "5.2.0", "jsdoc": "^4.0.2", "jsdoc-fresh": "^3.0.0", diff --git a/baselines/showcase/package.json b/baselines/showcase/package.json index 5193c6d54..2605d49f2 100644 --- a/baselines/showcase/package.json +++ b/baselines/showcase/package.json @@ -47,7 +47,7 @@ "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "c8": "^8.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "gts": "5.2.0", "jsdoc": "^4.0.2", "jsdoc-fresh": "^3.0.0", diff --git a/baselines/tasks-esm/package.json b/baselines/tasks-esm/package.json index a132751a1..2ff69d0c2 100644 --- a/baselines/tasks-esm/package.json +++ b/baselines/tasks-esm/package.json @@ -85,7 +85,7 @@ "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "gts": "^5.2.0", "jsdoc": "^4.0.2", "jsdoc-region-tag": "^3.0.0", diff --git a/baselines/tasks/package.json b/baselines/tasks/package.json index 49deaa373..736ae554d 100644 --- a/baselines/tasks/package.json +++ b/baselines/tasks/package.json @@ -42,7 +42,7 @@ "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "c8": "^8.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "gts": "5.2.0", "jsdoc": "^4.0.2", "jsdoc-fresh": "^3.0.0", diff --git a/baselines/texttospeech-esm/package.json b/baselines/texttospeech-esm/package.json index 3bd146c4b..179a8170e 100644 --- a/baselines/texttospeech-esm/package.json +++ b/baselines/texttospeech-esm/package.json @@ -85,7 +85,7 @@ "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "gts": "^5.2.0", "jsdoc": "^4.0.2", "jsdoc-region-tag": "^3.0.0", diff --git a/baselines/texttospeech/package.json b/baselines/texttospeech/package.json index 56141ab2d..e04785f2b 100644 --- a/baselines/texttospeech/package.json +++ b/baselines/texttospeech/package.json @@ -42,7 +42,7 @@ "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "c8": "^8.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "gts": "5.2.0", "jsdoc": "^4.0.2", "jsdoc-fresh": "^3.0.0", diff --git a/baselines/translate-esm/package.json b/baselines/translate-esm/package.json index c7421678d..a0b14c079 100644 --- a/baselines/translate-esm/package.json +++ b/baselines/translate-esm/package.json @@ -85,7 +85,7 @@ "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "gts": "^5.2.0", "jsdoc": "^4.0.2", "jsdoc-region-tag": "^3.0.0", diff --git a/baselines/translate/package.json b/baselines/translate/package.json index d1bf1e8c0..508844506 100644 --- a/baselines/translate/package.json +++ b/baselines/translate/package.json @@ -42,7 +42,7 @@ "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "c8": "^8.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "gts": "5.2.0", "jsdoc": "^4.0.2", "jsdoc-fresh": "^3.0.0", diff --git a/baselines/videointelligence-esm/package.json b/baselines/videointelligence-esm/package.json index 851e19491..5e07f8d1f 100644 --- a/baselines/videointelligence-esm/package.json +++ b/baselines/videointelligence-esm/package.json @@ -85,7 +85,7 @@ "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "gts": "^5.2.0", "jsdoc": "^4.0.2", "jsdoc-region-tag": "^3.0.0", diff --git a/baselines/videointelligence/package.json b/baselines/videointelligence/package.json index 7da4648d3..d73720524 100644 --- a/baselines/videointelligence/package.json +++ b/baselines/videointelligence/package.json @@ -42,7 +42,7 @@ "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "c8": "^8.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "gts": "5.2.0", "jsdoc": "^4.0.2", "jsdoc-fresh": "^3.0.0", diff --git a/package-lock.json b/package-lock.json index ec4f68b4d..e857a8c05 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32,7 +32,7 @@ "@types/object-hash": "^3.0.6", "@types/yargs": "^17.0.32", "espower-typescript": "^10.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "google-gax": "^4.3.1", "gts": "^5.2.0", "mocha": "^10.3.0", @@ -3310,9 +3310,9 @@ } }, "node_modules/gapic-tools": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/gapic-tools/-/gapic-tools-0.3.0.tgz", - "integrity": "sha512-tjEmfxoUAZpPQEe6YznOZmu0EK3RIPW9Tl0T/dgkgYQsmdX+ilEElawlgv7l50yBth5gHLVoKog2KODQu87X0Q==", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/gapic-tools/-/gapic-tools-0.4.0.tgz", + "integrity": "sha512-3Wm1Ne39nR05fAGik+KIqhGy8T7Z8hsiZELslmuGU/+4f6B+9GBJL7wVipg2VrxGRvuokhyw5mwAif0BgOUCcw==", "dev": true, "dependencies": { "@babel/core": "^7.22.5", diff --git a/package.json b/package.json index e6fea9d19..face53b04 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,7 @@ "@types/object-hash": "^3.0.6", "@types/yargs": "^17.0.32", "espower-typescript": "^10.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "google-gax": "^4.3.1", "gts": "^5.2.0", "mocha": "^10.3.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8bbbe40b4..8b79afa71 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -59,8 +59,8 @@ devDependencies: specifier: ^10.0.1 version: 10.0.1(@types/node@20.11.24)(typescript@5.1.6) gapic-tools: - specifier: ^0.3.0 - version: 0.3.0(protobufjs@7.2.6) + specifier: ^0.4.0 + version: 0.4.0(protobufjs@7.2.6) google-gax: specifier: ^4.3.1 version: 4.3.1 @@ -1767,8 +1767,8 @@ packages: resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==} dev: true - /gapic-tools@0.3.0(protobufjs@7.2.6): - resolution: {integrity: sha512-tjEmfxoUAZpPQEe6YznOZmu0EK3RIPW9Tl0T/dgkgYQsmdX+ilEElawlgv7l50yBth5gHLVoKog2KODQu87X0Q==} + /gapic-tools@0.4.0(protobufjs@7.2.6): + resolution: {integrity: sha512-3Wm1Ne39nR05fAGik+KIqhGy8T7Z8hsiZELslmuGU/+4f6B+9GBJL7wVipg2VrxGRvuokhyw5mwAif0BgOUCcw==} engines: {node: '>=14'} hasBin: true dependencies: diff --git a/templates/cjs/typescript_gapic/package.json b/templates/cjs/typescript_gapic/package.json index af23a1063..7be7b5451 100644 --- a/templates/cjs/typescript_gapic/package.json +++ b/templates/cjs/typescript_gapic/package.json @@ -42,7 +42,7 @@ "@types/node": "^20.11.24", "@types/sinon": "^10.0.20", "c8": "^8.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "gts": "5.2.0", "jsdoc": "^4.0.2", "jsdoc-fresh": "^3.0.0", diff --git a/templates/esm/typescript_gapic/package.json b/templates/esm/typescript_gapic/package.json index c050686cb..b0dee52ea 100644 --- a/templates/esm/typescript_gapic/package.json +++ b/templates/esm/typescript_gapic/package.json @@ -86,7 +86,7 @@ "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", - "gapic-tools": "^0.3.0", + "gapic-tools": "^0.4.0", "gts": "^5.2.0", "jsdoc": "^4.0.2", "jsdoc-region-tag": "^3.0.0", diff --git a/yarn.lock b/yarn.lock index 2cdfa1ffb..f76a12dc2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1767,10 +1767,10 @@ functions-have-names@^1.2.3: resolved "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz" integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ== -gapic-tools@^0.3.0: - version "0.3.0" - resolved "https://registry.npmjs.org/gapic-tools/-/gapic-tools-0.3.0.tgz" - integrity sha512-tjEmfxoUAZpPQEe6YznOZmu0EK3RIPW9Tl0T/dgkgYQsmdX+ilEElawlgv7l50yBth5gHLVoKog2KODQu87X0Q== +gapic-tools@^0.4.0: + version "0.4.0" + resolved "https://registry.npmjs.org/gapic-tools/-/gapic-tools-0.4.0.tgz" + integrity sha512-3Wm1Ne39nR05fAGik+KIqhGy8T7Z8hsiZELslmuGU/+4f6B+9GBJL7wVipg2VrxGRvuokhyw5mwAif0BgOUCcw== dependencies: "@babel/core" "^7.22.5" "@babel/traverse" "^7.22.5" From e9f12b76d8cd34f5ad51493b6b49f2f4517dc189 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 6 Mar 2024 18:54:16 +0100 Subject: [PATCH 35/35] chore(deps): update dependency @types/node to ^20.11.25 (#1554) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@types/node](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node) ([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)) | [`^20.11.24` -> `^20.11.25`](https://renovatebot.com/diffs/npm/@types%2fnode/20.11.24/20.11.25) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fnode/20.11.25?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fnode/20.11.25?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fnode/20.11.24/20.11.25?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fnode/20.11.24/20.11.25?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/gapic-generator-typescript). --- baselines/asset-esm/package.json | 2 +- baselines/asset/package.json | 2 +- baselines/bigquery-storage-esm/package.json | 2 +- baselines/bigquery-storage/package.json | 2 +- baselines/compute-esm/package.json | 2 +- baselines/compute/package.json | 2 +- baselines/deprecatedtest-esm/package.json | 2 +- baselines/deprecatedtest/package.json | 2 +- .../disable-packing-test-esm/package.json | 2 +- baselines/disable-packing-test/package.json | 2 +- baselines/dlp-esm/package.json | 2 +- baselines/dlp/package.json | 2 +- baselines/kms-esm/package.json | 2 +- baselines/kms/package.json | 2 +- baselines/logging-esm/package.json | 2 +- baselines/logging/package.json | 2 +- baselines/monitoring-esm/package.json | 2 +- baselines/monitoring/package.json | 2 +- baselines/naming-esm/package.json | 2 +- baselines/naming/package.json | 2 +- baselines/redis-esm/package.json | 2 +- baselines/redis/package.json | 2 +- baselines/routingtest-esm/package.json | 2 +- baselines/routingtest/package.json | 2 +- baselines/showcase-esm/package.json | 2 +- baselines/showcase-legacy-esm/package.json | 2 +- baselines/showcase-legacy/package.json | 2 +- baselines/showcase/package.json | 2 +- baselines/tasks-esm/package.json | 2 +- baselines/tasks/package.json | 2 +- baselines/texttospeech-esm/package.json | 2 +- baselines/texttospeech/package.json | 2 +- baselines/translate-esm/package.json | 2 +- baselines/translate/package.json | 2 +- baselines/videointelligence-esm/package.json | 2 +- baselines/videointelligence/package.json | 2 +- package-lock.json | 8 +++---- package.json | 2 +- pnpm-lock.yaml | 24 +++++++++---------- templates/cjs/typescript_gapic/package.json | 2 +- templates/esm/typescript_gapic/package.json | 2 +- yarn.lock | 8 +++---- 42 files changed, 59 insertions(+), 59 deletions(-) diff --git a/baselines/asset-esm/package.json b/baselines/asset-esm/package.json index f9cfe48f4..7228554cd 100644 --- a/baselines/asset-esm/package.json +++ b/baselines/asset-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/asset/package.json b/baselines/asset/package.json index 413364b5c..30a936884 100644 --- a/baselines/asset/package.json +++ b/baselines/asset/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.4.0", diff --git a/baselines/bigquery-storage-esm/package.json b/baselines/bigquery-storage-esm/package.json index 90564ae5e..ae755447f 100644 --- a/baselines/bigquery-storage-esm/package.json +++ b/baselines/bigquery-storage-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/bigquery-storage/package.json b/baselines/bigquery-storage/package.json index fa54a676f..4f6a6478b 100644 --- a/baselines/bigquery-storage/package.json +++ b/baselines/bigquery-storage/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.4.0", diff --git a/baselines/compute-esm/package.json b/baselines/compute-esm/package.json index 1400ec24d..dcd7317dd 100644 --- a/baselines/compute-esm/package.json +++ b/baselines/compute-esm/package.json @@ -82,7 +82,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/compute/package.json b/baselines/compute/package.json index 25280703c..1bf9290b1 100644 --- a/baselines/compute/package.json +++ b/baselines/compute/package.json @@ -40,7 +40,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.4.0", diff --git a/baselines/deprecatedtest-esm/package.json b/baselines/deprecatedtest-esm/package.json index a9aa6afba..53b949440 100644 --- a/baselines/deprecatedtest-esm/package.json +++ b/baselines/deprecatedtest-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/deprecatedtest/package.json b/baselines/deprecatedtest/package.json index 68c56d67c..81f0d027a 100644 --- a/baselines/deprecatedtest/package.json +++ b/baselines/deprecatedtest/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.4.0", diff --git a/baselines/disable-packing-test-esm/package.json b/baselines/disable-packing-test-esm/package.json index 4348039bb..56a0d083a 100644 --- a/baselines/disable-packing-test-esm/package.json +++ b/baselines/disable-packing-test-esm/package.json @@ -86,7 +86,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/disable-packing-test/package.json b/baselines/disable-packing-test/package.json index 2605d49f2..5c7aa5364 100644 --- a/baselines/disable-packing-test/package.json +++ b/baselines/disable-packing-test/package.json @@ -44,7 +44,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.4.0", diff --git a/baselines/dlp-esm/package.json b/baselines/dlp-esm/package.json index 74d427caf..df7db7a83 100644 --- a/baselines/dlp-esm/package.json +++ b/baselines/dlp-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/dlp/package.json b/baselines/dlp/package.json index 6133a6741..4a940bf93 100644 --- a/baselines/dlp/package.json +++ b/baselines/dlp/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.4.0", diff --git a/baselines/kms-esm/package.json b/baselines/kms-esm/package.json index 4bf5e1bd4..936dca045 100644 --- a/baselines/kms-esm/package.json +++ b/baselines/kms-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/kms/package.json b/baselines/kms/package.json index 942f48fa7..0dac310e0 100644 --- a/baselines/kms/package.json +++ b/baselines/kms/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.4.0", diff --git a/baselines/logging-esm/package.json b/baselines/logging-esm/package.json index 8f94d3ea8..aaa7d0f74 100644 --- a/baselines/logging-esm/package.json +++ b/baselines/logging-esm/package.json @@ -83,7 +83,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/logging/package.json b/baselines/logging/package.json index d813f974f..575be0310 100644 --- a/baselines/logging/package.json +++ b/baselines/logging/package.json @@ -41,7 +41,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.4.0", diff --git a/baselines/monitoring-esm/package.json b/baselines/monitoring-esm/package.json index c2102d125..f213f9d43 100644 --- a/baselines/monitoring-esm/package.json +++ b/baselines/monitoring-esm/package.json @@ -86,7 +86,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/monitoring/package.json b/baselines/monitoring/package.json index fd40f7b7e..251595455 100644 --- a/baselines/monitoring/package.json +++ b/baselines/monitoring/package.json @@ -44,7 +44,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.4.0", diff --git a/baselines/naming-esm/package.json b/baselines/naming-esm/package.json index 4ac19d087..615ef64e6 100644 --- a/baselines/naming-esm/package.json +++ b/baselines/naming-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/naming/package.json b/baselines/naming/package.json index 98ba79f1c..52310e6f7 100644 --- a/baselines/naming/package.json +++ b/baselines/naming/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.4.0", diff --git a/baselines/redis-esm/package.json b/baselines/redis-esm/package.json index 2083720eb..b8446df7e 100644 --- a/baselines/redis-esm/package.json +++ b/baselines/redis-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/redis/package.json b/baselines/redis/package.json index 2bf252fb4..c92363714 100644 --- a/baselines/redis/package.json +++ b/baselines/redis/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.4.0", diff --git a/baselines/routingtest-esm/package.json b/baselines/routingtest-esm/package.json index d873f05c2..698d9997f 100644 --- a/baselines/routingtest-esm/package.json +++ b/baselines/routingtest-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/routingtest/package.json b/baselines/routingtest/package.json index 7bdb627b9..c57f037a4 100644 --- a/baselines/routingtest/package.json +++ b/baselines/routingtest/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.4.0", diff --git a/baselines/showcase-esm/package.json b/baselines/showcase-esm/package.json index 4348039bb..56a0d083a 100644 --- a/baselines/showcase-esm/package.json +++ b/baselines/showcase-esm/package.json @@ -86,7 +86,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/showcase-legacy-esm/package.json b/baselines/showcase-legacy-esm/package.json index 24938ae02..29abdd3cc 100644 --- a/baselines/showcase-legacy-esm/package.json +++ b/baselines/showcase-legacy-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/showcase-legacy/package.json b/baselines/showcase-legacy/package.json index a141c09b4..f97f3aa95 100644 --- a/baselines/showcase-legacy/package.json +++ b/baselines/showcase-legacy/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.4.0", diff --git a/baselines/showcase/package.json b/baselines/showcase/package.json index 2605d49f2..5c7aa5364 100644 --- a/baselines/showcase/package.json +++ b/baselines/showcase/package.json @@ -44,7 +44,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.4.0", diff --git a/baselines/tasks-esm/package.json b/baselines/tasks-esm/package.json index 2ff69d0c2..1644d10f5 100644 --- a/baselines/tasks-esm/package.json +++ b/baselines/tasks-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/tasks/package.json b/baselines/tasks/package.json index 736ae554d..7c3b268fe 100644 --- a/baselines/tasks/package.json +++ b/baselines/tasks/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.4.0", diff --git a/baselines/texttospeech-esm/package.json b/baselines/texttospeech-esm/package.json index 179a8170e..8a351aa54 100644 --- a/baselines/texttospeech-esm/package.json +++ b/baselines/texttospeech-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/texttospeech/package.json b/baselines/texttospeech/package.json index e04785f2b..08d8c8d22 100644 --- a/baselines/texttospeech/package.json +++ b/baselines/texttospeech/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.4.0", diff --git a/baselines/translate-esm/package.json b/baselines/translate-esm/package.json index a0b14c079..9f2a34e78 100644 --- a/baselines/translate-esm/package.json +++ b/baselines/translate-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/translate/package.json b/baselines/translate/package.json index 508844506..82150bdbb 100644 --- a/baselines/translate/package.json +++ b/baselines/translate/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.4.0", diff --git a/baselines/videointelligence-esm/package.json b/baselines/videointelligence-esm/package.json index 5e07f8d1f..c1305aec5 100644 --- a/baselines/videointelligence-esm/package.json +++ b/baselines/videointelligence-esm/package.json @@ -81,7 +81,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/baselines/videointelligence/package.json b/baselines/videointelligence/package.json index d73720524..f2c561d74 100644 --- a/baselines/videointelligence/package.json +++ b/baselines/videointelligence/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.4.0", diff --git a/package-lock.json b/package-lock.json index e857a8c05..05376fa95 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,7 +27,7 @@ "@bazel/bazelisk": "^1.19.0", "@types/mocha": "^10.0.6", "@types/module-alias": "^2.0.4", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/nunjucks": "^3.2.6", "@types/object-hash": "^3.0.6", "@types/yargs": "^17.0.32", @@ -954,9 +954,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "20.11.24", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.24.tgz", - "integrity": "sha512-Kza43ewS3xoLgCEpQrsT+xRo/EJej1y0kVYGiLFE1NEODXGzTfwiC6tXTLMQskn1X4/Rjlh0MQUvx9W+L9long==", + "version": "20.11.25", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.25.tgz", + "integrity": "sha512-TBHyJxk2b7HceLVGFcpAUjsa5zIdsPWlR6XHfyGzd0SFu+/NFgQgMAl96MSDZgQDvJAvV6BKsFOrt6zIL09JDw==", "dependencies": { "undici-types": "~5.26.4" } diff --git a/package.json b/package.json index face53b04..5cbb68d93 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "@bazel/bazelisk": "^1.19.0", "@types/mocha": "^10.0.6", "@types/module-alias": "^2.0.4", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/nunjucks": "^3.2.6", "@types/object-hash": "^3.0.6", "@types/yargs": "^17.0.32", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8b79afa71..2b17d6c30 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -44,8 +44,8 @@ devDependencies: specifier: ^2.0.4 version: 2.0.4 '@types/node': - specifier: ^20.11.24 - version: 20.11.24 + specifier: ^20.11.25 + version: 20.11.25 '@types/nunjucks': specifier: ^3.2.6 version: 3.2.6 @@ -57,7 +57,7 @@ devDependencies: version: 17.0.32 espower-typescript: specifier: ^10.0.1 - version: 10.0.1(@types/node@20.11.24)(typescript@5.1.6) + version: 10.0.1(@types/node@20.11.25)(typescript@5.1.6) gapic-tools: specifier: ^0.4.0 version: 0.4.0(protobufjs@7.2.6) @@ -330,7 +330,7 @@ packages: engines: {node: ^8.13.0 || >=10.10.0} dependencies: '@grpc/proto-loader': 0.7.10 - '@types/node': 20.11.24 + '@types/node': 20.11.25 dev: true /@grpc/proto-loader@0.7.10: @@ -546,8 +546,8 @@ packages: resolution: {integrity: sha512-5+G/QXO/DvHZw60FjvbDzO4JmlD/nG5m2/vVGt25VN1eeP3w2bCoks1Wa7VuptMPM1TxJdx6RjO70N9Fw0nZPA==} dev: true - /@types/node@20.11.24: - resolution: {integrity: sha512-Kza43ewS3xoLgCEpQrsT+xRo/EJej1y0kVYGiLFE1NEODXGzTfwiC6tXTLMQskn1X4/Rjlh0MQUvx9W+L9long==} + /@types/node@20.11.25: + resolution: {integrity: sha512-TBHyJxk2b7HceLVGFcpAUjsa5zIdsPWlR6XHfyGzd0SFu+/NFgQgMAl96MSDZgQDvJAvV6BKsFOrt6zIL09JDw==} dependencies: undici-types: 5.26.5 @@ -567,7 +567,7 @@ packages: resolution: {integrity: sha512-G3sY+NpsA9jnwm0ixhAFQSJ3Q9JkpLZpJbI3GMv0mIAT0y3mRabYeINzal5WOChIiaTEGQYlHOKgkaM9EisWHw==} dependencies: '@types/caseless': 0.12.5 - '@types/node': 20.11.24 + '@types/node': 20.11.25 '@types/tough-cookie': 4.0.5 form-data: 2.5.1 dev: true @@ -1516,7 +1516,7 @@ packages: xtend: 4.0.2 dev: true - /espower-typescript@10.0.1(@types/node@20.11.24)(typescript@5.1.6): + /espower-typescript@10.0.1(@types/node@20.11.25)(typescript@5.1.6): resolution: {integrity: sha512-Otz3g+JKQCPG3CxyUQnmcmr9LeYXe+bEU2F/WtBeaByIj+kgR+8lyYSa1Rcqh27b/sp9EjrDLDUTW+d7dsfJQw==} engines: {node: '>=10.17'} peerDependencies: @@ -1525,7 +1525,7 @@ packages: espower-source: 2.3.0 minimatch: 5.1.6 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@20.11.24)(typescript@5.1.6) + ts-node: 10.9.2(@types/node@20.11.25)(typescript@5.1.6) typescript: 5.1.6 transitivePeerDependencies: - '@swc/core' @@ -2918,7 +2918,7 @@ packages: '@protobufjs/path': 1.1.2 '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.0 - '@types/node': 20.11.24 + '@types/node': 20.11.25 long: 5.2.3 /punycode@2.3.1: @@ -3354,7 +3354,7 @@ packages: engines: {node: '>=8'} dev: true - /ts-node@10.9.2(@types/node@20.11.24)(typescript@5.1.6): + /ts-node@10.9.2(@types/node@20.11.25)(typescript@5.1.6): resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} hasBin: true peerDependencies: @@ -3373,7 +3373,7 @@ packages: '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 20.11.24 + '@types/node': 20.11.25 acorn: 8.11.3 acorn-walk: 8.3.2 arg: 4.1.3 diff --git a/templates/cjs/typescript_gapic/package.json b/templates/cjs/typescript_gapic/package.json index 7be7b5451..b7fdd2ee3 100644 --- a/templates/cjs/typescript_gapic/package.json +++ b/templates/cjs/typescript_gapic/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.6", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/sinon": "^10.0.20", "c8": "^8.0.1", "gapic-tools": "^0.4.0", diff --git a/templates/esm/typescript_gapic/package.json b/templates/esm/typescript_gapic/package.json index b0dee52ea..deb001778 100644 --- a/templates/esm/typescript_gapic/package.json +++ b/templates/esm/typescript_gapic/package.json @@ -82,7 +82,7 @@ "@babel/preset-env": "^7.24.0", "@babel/preset-typescript": "^7.23.3", "@types/mocha": "^10.0.6", - "@types/node": "^20.11.24", + "@types/node": "^20.11.25", "@types/sinon": "^10.0.20", "babel-plugin-replace-import-extension": "^1.1.4", "c8": "^8.0.1", diff --git a/yarn.lock b/yarn.lock index f76a12dc2..e851ca16c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -503,10 +503,10 @@ resolved "https://registry.npmjs.org/@types/module-alias/-/module-alias-2.0.4.tgz" integrity sha512-5+G/QXO/DvHZw60FjvbDzO4JmlD/nG5m2/vVGt25VN1eeP3w2bCoks1Wa7VuptMPM1TxJdx6RjO70N9Fw0nZPA== -"@types/node@*", "@types/node@>=12.12.47", "@types/node@>=13.7.0", "@types/node@^20.11.24": - version "20.11.24" - resolved "https://registry.npmjs.org/@types/node/-/node-20.11.24.tgz" - integrity sha512-Kza43ewS3xoLgCEpQrsT+xRo/EJej1y0kVYGiLFE1NEODXGzTfwiC6tXTLMQskn1X4/Rjlh0MQUvx9W+L9long== +"@types/node@*", "@types/node@>=12.12.47", "@types/node@>=13.7.0", "@types/node@^20.11.25": + version "20.11.25" + resolved "https://registry.npmjs.org/@types/node/-/node-20.11.25.tgz" + integrity sha512-TBHyJxk2b7HceLVGFcpAUjsa5zIdsPWlR6XHfyGzd0SFu+/NFgQgMAl96MSDZgQDvJAvV6BKsFOrt6zIL09JDw== dependencies: undici-types "~5.26.4"