diff --git a/.github/scripts/close-invalid-link.js b/.github/scripts/close-invalid-link.cjs
similarity index 64%
rename from .github/scripts/close-invalid-link.js
rename to .github/scripts/close-invalid-link.cjs
index 4503027f066..e2205cee064 100644
--- a/.github/scripts/close-invalid-link.js
+++ b/.github/scripts/close-invalid-link.cjs
@@ -12,9 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-const fetch = require('node-fetch');
-
-async function closeIssue() {
+async function closeIssue(owner, repo, number) {
await github.rest.issues.update({
owner: owner,
repo: repo,
@@ -25,7 +23,7 @@ async function closeIssue() {
module.exports = async ({ github, context }) => {
const owner = context.repo.owner;
const repo = context.repo.repo;
- const number = context.issue_number;
+ const number = context.issue.number;
const issue = await github.rest.issues.get({
owner: owner,
@@ -33,13 +31,17 @@ module.exports = async ({ github, context }) => {
issue_number: number,
});
- try {
- const link = issue.data.body.match(/(https?:\/\/github.com\/.*)/)[0];
- const isValidLink = (await fetch(link)).status === 200;
- if (!isValidLink) {
- await closeIssue();
+ const isBugTemplate = issue.data.body.includes("Link to the code that reproduces this issue");
+
+ if (isBugTemplate) {
+ try {
+ const link = issue.data.body.match(/(https?:\/\/github.com\/.*)/)[0];
+ const isValidLink = (await fetch(link)).ok;
+ if (!isValidLink) {
+ await closeIssue(owner, repo, number);
+ }
+ } catch (err) {
+ await closeIssue(owner, repo, number);
}
- } catch (err) {
- await closeIssue();
}
-};
\ No newline at end of file
+};
diff --git a/.github/scripts/close-unresponse.js b/.github/scripts/close-unresponse.cjs
similarity index 100%
rename from .github/scripts/close-unresponse.js
rename to .github/scripts/close-unresponse.cjs
diff --git a/.github/scripts/remove-response-label.js b/.github/scripts/remove-response-label.cjs
similarity index 100%
rename from .github/scripts/remove-response-label.js
rename to .github/scripts/remove-response-label.cjs
diff --git a/.github/workflows/issues-no-repro.yaml b/.github/workflows/issues-no-repro.yaml
index 229b80ba3d1..442a46bcc48 100644
--- a/.github/workflows/issues-no-repro.yaml
+++ b/.github/workflows/issues-no-repro.yaml
@@ -1,7 +1,7 @@
name: invalid_link
on:
issues:
- types: [opened, edited]
+ types: [opened, reopened]
jobs:
close:
@@ -14,5 +14,5 @@ jobs:
- uses: actions/github-script@v7
with:
script: |
- const script = require('./.github/scripts/close-invalid-link.js')
- await script({github, context})
\ No newline at end of file
+ const script = require('./.github/scripts/close-invalid-link.cjs')
+ await script({github, context})
diff --git a/.github/workflows/response.yml b/.github/workflows/response.yml
index 7f4e3141d62..6ed37326fea 100644
--- a/.github/workflows/response.yml
+++ b/.github/workflows/response.yml
@@ -17,7 +17,7 @@ jobs:
- uses: actions/github-script@v7
with:
script: |
- const script = require('./.github/scripts/close-unresponsive.js')
+ const script = require('./.github/scripts/close-unresponsive.cjs')
await script({github, context})
remove_label:
@@ -31,5 +31,5 @@ jobs:
- uses: actions/github-script@v7
with:
script: |
- const script = require('./.github/scripts/remove-response-label.js')
- await script({github, context})
\ No newline at end of file
+ const script = require('./.github/scripts/remove-response-label.cjs')
+ await script({github, context})
diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index 52998822ae4..34141182c02 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -107,7 +107,6 @@
"packages/google-cloud-recommender": "6.4.0",
"packages/google-cloud-redis": "4.3.0",
"packages/google-cloud-resourcemanager": "5.3.0",
- "packages/google-cloud-resourcesettings": "4.0.0",
"packages/google-cloud-retail": "3.4.0",
"packages/google-cloud-run": "1.3.0",
"packages/google-cloud-scheduler": "4.3.0",
@@ -118,7 +117,7 @@
"packages/google-cloud-servicedirectory": "5.3.0",
"packages/google-cloud-shell": "3.3.0",
"packages/google-cloud-speech": "6.6.0",
- "packages/google-cloud-sql": "0.13.0",
+ "packages/google-cloud-sql": "0.14.0",
"packages/google-cloud-storageinsights": "1.3.0",
"packages/google-cloud-support": "1.3.0",
"packages/google-cloud-talent": "6.3.0",
@@ -138,7 +137,7 @@
"packages/google-cloud-websecurityscanner": "3.3.0",
"packages/google-cloud-workflows-executions": "3.4.0",
"packages/google-cloud-workstations": "1.4.0",
- "packages/google-container": "5.14.0",
+ "packages/google-container": "5.15.0",
"packages/google-dataflow": "3.3.0",
"packages/google-devtools-artifactregistry": "3.4.0",
"packages/google-devtools-cloudbuild": "4.5.0",
@@ -183,5 +182,7 @@
"packages/google-streetview-publish": "0.1.0",
"packages/google-maps-fleetengine": "0.1.0",
"packages/google-shopping-merchant-promotions": "0.1.0",
- "packages/google-shopping-merchant-datasources": "0.1.0"
+ "packages/google-shopping-merchant-datasources": "0.1.0",
+ "packages/google-cloud-managedkafka": "0.1.0",
+ "packages/google-cloud-developerconnect": "0.1.0"
}
diff --git a/README.md b/README.md
index b3e254351a6..8337073f68c 100644
--- a/README.md
+++ b/README.md
@@ -122,7 +122,6 @@ applications that interact with individual Google Cloud services:
| [Recommender](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-recommender) | [![Stable][stable-stability]][launch-stages] | [](https://npm.im/@google-cloud/recommender) |
| [Redis](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-redis) | [![Stable][stable-stability]][launch-stages] | [](https://npm.im/@google-cloud/redis) |
| [Resource Manager API](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-resourcemanager) | [![Stable][stable-stability]][launch-stages] | [](https://npm.im/@google-cloud/resource-manager) |
-| [Resource Settings API](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-resourcesettings) | [![Stable][stable-stability]][launch-stages] | [](https://npm.im/@google-cloud/resource-settings) |
| [Retail API](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-retail) | [![Stable][stable-stability]][launch-stages] | [](https://npm.im/@google-cloud/retail) |
| [Run](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-run) | [![Stable][stable-stability]][launch-stages] | [](https://npm.im/@google-cloud/run) |
| [Scheduler](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-scheduler) | [![Stable][stable-stability]][launch-stages] | [](https://npm.im/@google-cloud/scheduler) |
@@ -186,6 +185,7 @@ applications that interact with individual Google Cloud services:
| [Local Rides and Deliveries API](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-maps-fleetengine) | [![Preview][preview-stability]][launch-stages] | [](https://npm.im/@googlemaps/fleetengine) |
| [Memorystore for Redis API](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-redis-cluster) | [![Preview][preview-stability]][launch-stages] | [](https://npm.im/@google-cloud/redis-cluster) |
| [Merchant API](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-shopping-merchant-conversions) | [![Preview][preview-stability]][launch-stages] | [](https://npm.im/@google-shopping/conversions) |
+| [Merchant API](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-shopping-merchant-datasources) | [![Preview][preview-stability]][launch-stages] | [](https://npm.im/@google-shopping/datasources) |
| [Merchant API](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-shopping-merchant-lfp) | [![Preview][preview-stability]][launch-stages] | [](https://npm.im/@google-shopping/lfp) |
| [Merchant API](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-shopping-merchant-notifications) | [![Preview][preview-stability]][launch-stages] | [](https://npm.im/@google-shopping/notifications) |
| [Merchant API](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-shopping-merchant-promotions) | [![Preview][preview-stability]][launch-stages] | [](https://npm.im/@google-shopping/promotions) |
diff --git a/changelog.json b/changelog.json
index 5aedacc437f..23f9da93ee5 100644
--- a/changelog.json
+++ b/changelog.json
@@ -1,6 +1,106 @@
{
"repository": "googleapis/google-cloud-node",
"entries": [
+ {
+ "changes": [
+ {
+ "type": "feat",
+ "sha": "724f42c129e09a79dd0be0c87578ed0507fa19b5",
+ "message": "Add initial files for google.cloud.developerconnect.v1",
+ "issues": [
+ "5397"
+ ]
+ },
+ {
+ "type": "feat",
+ "sha": "a9784ed3db6ee96d171762308bbbcd57390b6866",
+ "message": "[Many APIs] update Nodejs generator to send API versions in headers for GAPICs",
+ "issues": [
+ "5354"
+ ]
+ },
+ {
+ "type": "feat",
+ "sha": "01f48fce63ec4ddf801d59ee2b8c0db9f6fb8372",
+ "message": "[Many APIs] update Nodejs generator to send API versions in headers for GAPICs",
+ "issues": [
+ "5351"
+ ]
+ }
+ ],
+ "version": "0.1.0",
+ "language": "JAVASCRIPT",
+ "artifactName": "@google-cloud/developerconnect",
+ "id": "4bf31f6f-a04f-4177-b158-137432c98dcb",
+ "createTime": "2024-06-12T19:36:15.458Z"
+ },
+ {
+ "changes": [
+ {
+ "type": "feat",
+ "sha": "1c4766cff1e12857cca5632541ee18d854cd9f9a",
+ "message": "Add initial files for google.cloud.managedkafka.v1",
+ "issues": [
+ "5395"
+ ]
+ },
+ {
+ "type": "feat",
+ "sha": "a9784ed3db6ee96d171762308bbbcd57390b6866",
+ "message": "[Many APIs] update Nodejs generator to send API versions in headers for GAPICs",
+ "issues": [
+ "5354"
+ ]
+ },
+ {
+ "type": "feat",
+ "sha": "01f48fce63ec4ddf801d59ee2b8c0db9f6fb8372",
+ "message": "[Many APIs] update Nodejs generator to send API versions in headers for GAPICs",
+ "issues": [
+ "5351"
+ ]
+ }
+ ],
+ "version": "0.1.0",
+ "language": "JAVASCRIPT",
+ "artifactName": "@google-cloud/managedkafka",
+ "id": "f550562a-788a-417d-9cb0-3ec60092694d",
+ "createTime": "2024-06-12T19:36:15.444Z"
+ },
+ {
+ "changes": [
+ {
+ "type": "feat",
+ "sha": "e62ec4df1773c683cc60cbb1adafeffc98970a61",
+ "message": "[container] A new message `HugepagesConfig` is added",
+ "issues": [
+ "5447"
+ ]
+ }
+ ],
+ "version": "5.15.0",
+ "language": "JAVASCRIPT",
+ "artifactName": "@google-cloud/container",
+ "id": "7d47866d-f220-4ef4-9b58-d24ef8ee08bb",
+ "createTime": "2024-06-12T19:36:15.363Z"
+ },
+ {
+ "changes": [
+ {
+ "type": "feat",
+ "sha": "5de5142eb62d6e102e8666f2e7c6a96e8f016c00",
+ "message": "[sql] add Cluster maintenance and Self-service maintenance to SqlOperationType",
+ "issues": [
+ "5452"
+ ]
+ }
+ ],
+ "version": "0.14.0",
+ "language": "JAVASCRIPT",
+ "artifactName": "@google-cloud/sql",
+ "id": "b01879ed-a542-4d9d-98ed-b300a8e399b3",
+ "createTime": "2024-06-12T19:36:15.280Z"
+ },
{
"changes": [
{
@@ -34518,5 +34618,5 @@
"createTime": "2023-01-28T04:18:24.718Z"
}
],
- "updateTime": "2024-06-05T20:50:50.793Z"
+ "updateTime": "2024-06-12T19:36:15.458Z"
}
\ No newline at end of file
diff --git a/ci/run_conditional_tests.sh b/ci/run_conditional_tests.sh
index cc83bd9bea8..f54ab7d352a 100755
--- a/ci/run_conditional_tests.sh
+++ b/ci/run_conditional_tests.sh
@@ -78,7 +78,8 @@ subdirs=(
RETVAL=0
# These following APIs need an explicit credential file to run properly (or oAuth2, which we don't support in this repo).
# When we hit these packages, we will run the "samples with credentials" trigger, which contains the credentials as an env variable
-tests_with_credentials="packages/google-analytics-admin/ packages/google-area120-tables/ packages/google-analytics-data/ packages/google-iam-credentials/ packages/google-apps-meet/ packages/google-chat/ packages/google-streetview-publish/"
+
+tests_with_credentials="packages/google-analytics-admin/ packages/google-area120-tables/ packages/google-analytics-data/ packages/google-iam-credentials/ packages/google-apps-meet/ packages/google-chat/ packages/google-streetview-publish/ packages/google-cloud-developerconnect/"
for subdir in ${subdirs[@]}; do
for d in `ls -d ${subdir}/*/`; do
diff --git a/libraries.json b/libraries.json
index 178cfbe6aea..dd5b0d25954 100644
--- a/libraries.json
+++ b/libraries.json
@@ -2043,24 +2043,6 @@
"linkToRepoHomepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-resourcemanager",
"support_documentation": "https://cloud.google.com/resource-manager/docs/getting-support"
},
- {
- "name": "resourcesettings",
- "name_pretty": "Resource Settings API",
- "product_documentation": "https://cloud.google.com/resource-manager/docs/reference/resource-settings/rest",
- "client_documentation": "https://cloud.google.com/nodejs/docs/reference/resource-settings/latest",
- "issue_tracker": "https://github.com/googleapis/google-cloud-node/issues",
- "release_level": "stable",
- "language": "nodejs",
- "repo": "googleapis/google-cloud-node",
- "distribution_name": "@google-cloud/resource-settings",
- "api_id": "resourcesettings.googleapis.com",
- "default_version": "v1",
- "requires_billing": true,
- "api_shortname": "resourcesettings",
- "library_type": "GAPIC_AUTO",
- "linkToRepoHomepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-resourcesettings",
- "support_documentation": "https://cloud.google.com/resource-manager/docs/getting-support"
- },
{
"client_documentation": "https://cloud.google.com/nodejs/docs/reference/retail/latest",
"api_id": "retail.googleapis.com",
@@ -3205,6 +3187,24 @@
"linkToRepoHomepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-shopping-merchant-conversions",
"support_documentation": "https://developers.google.com/merchant/api/docs/getting-support"
},
+ {
+ "name": "merchantapi",
+ "name_pretty": "Merchant API",
+ "product_documentation": "https://developers.google.com/merchant/api",
+ "client_documentation": "https://cloud.google.com/nodejs/docs/reference/merchantapi/latest",
+ "issue_tracker": "https://github.com/googleapis/google-cloud-node/issues",
+ "release_level": "preview",
+ "language": "nodejs",
+ "repo": "googleapis/google-cloud-node",
+ "distribution_name": "@google-shopping/datasources",
+ "api_id": "merchantapi.googleapis.com",
+ "default_version": "v1beta",
+ "requires_billing": true,
+ "library_type": "GAPIC_AUTO",
+ "api_shortname": "merchantapi",
+ "linkToRepoHomepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-shopping-merchant-datasources",
+ "support_documentation": "https://developers.google.com/merchant/api/docs/getting-support"
+ },
{
"name": "merchantapi",
"name_pretty": "Merchant API",
diff --git a/packages/google-cloud-resourcesettings/.OwlBot.yaml b/packages/google-cloud-developerconnect/.OwlBot.yaml
similarity index 66%
rename from packages/google-cloud-resourcesettings/.OwlBot.yaml
rename to packages/google-cloud-developerconnect/.OwlBot.yaml
index 2d9db6906a8..a9ad2dd305a 100644
--- a/packages/google-cloud-resourcesettings/.OwlBot.yaml
+++ b/packages/google-cloud-developerconnect/.OwlBot.yaml
@@ -1,10 +1,10 @@
-# Copyright 2021 Google LLC
+# Copyright 2022 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
+# 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,
@@ -12,9 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-deep-remove-regex:
- - /owl-bot-staging
deep-copy-regex:
- - source: /google/cloud/resourcesettings/(.*)/.*-nodejs
- dest: /owl-bot-staging/google-cloud-resourcesettings/$1
-api-name: resourcesettings
+ - source: /google/cloud/developerconnect/(.*)/.*-nodejs
+ dest: /owl-bot-staging/google-cloud-developerconnect/$1
+
+api-name: developerconnect
\ No newline at end of file
diff --git a/packages/google-cloud-resourcesettings/.eslintignore b/packages/google-cloud-developerconnect/.eslintignore
similarity index 100%
rename from packages/google-cloud-resourcesettings/.eslintignore
rename to packages/google-cloud-developerconnect/.eslintignore
diff --git a/packages/google-cloud-resourcesettings/.eslintrc.json b/packages/google-cloud-developerconnect/.eslintrc.json
similarity index 100%
rename from packages/google-cloud-resourcesettings/.eslintrc.json
rename to packages/google-cloud-developerconnect/.eslintrc.json
diff --git a/packages/google-cloud-resourcesettings/.gitattributes b/packages/google-cloud-developerconnect/.gitattributes
similarity index 100%
rename from packages/google-cloud-resourcesettings/.gitattributes
rename to packages/google-cloud-developerconnect/.gitattributes
diff --git a/packages/google-cloud-resourcesettings/.gitignore b/packages/google-cloud-developerconnect/.gitignore
similarity index 100%
rename from packages/google-cloud-resourcesettings/.gitignore
rename to packages/google-cloud-developerconnect/.gitignore
diff --git a/packages/google-cloud-resourcesettings/.jsdoc.js b/packages/google-cloud-developerconnect/.jsdoc.js
similarity index 96%
rename from packages/google-cloud-resourcesettings/.jsdoc.js
rename to packages/google-cloud-developerconnect/.jsdoc.js
index 38ade349fcd..b137d2c24c8 100644
--- a/packages/google-cloud-resourcesettings/.jsdoc.js
+++ b/packages/google-cloud-developerconnect/.jsdoc.js
@@ -43,7 +43,7 @@ module.exports = {
copyright: 'Copyright 2024 Google LLC',
includeDate: false,
sourceFiles: false,
- systemName: '@google-cloud/resource-settings',
+ systemName: '@google-cloud/developerconnect',
theme: 'lumen',
default: {
outputSourceFiles: false
diff --git a/packages/google-cloud-resourcesettings/.mocharc.js b/packages/google-cloud-developerconnect/.mocharc.js
similarity index 100%
rename from packages/google-cloud-resourcesettings/.mocharc.js
rename to packages/google-cloud-developerconnect/.mocharc.js
diff --git a/packages/google-cloud-resourcesettings/.nycrc b/packages/google-cloud-developerconnect/.nycrc
similarity index 100%
rename from packages/google-cloud-resourcesettings/.nycrc
rename to packages/google-cloud-developerconnect/.nycrc
diff --git a/packages/google-cloud-resourcesettings/.prettierignore b/packages/google-cloud-developerconnect/.prettierignore
similarity index 100%
rename from packages/google-cloud-resourcesettings/.prettierignore
rename to packages/google-cloud-developerconnect/.prettierignore
diff --git a/packages/google-cloud-resourcesettings/.prettierrc.js b/packages/google-cloud-developerconnect/.prettierrc.js
similarity index 100%
rename from packages/google-cloud-resourcesettings/.prettierrc.js
rename to packages/google-cloud-developerconnect/.prettierrc.js
diff --git a/packages/google-cloud-developerconnect/.repo-metadata.json b/packages/google-cloud-developerconnect/.repo-metadata.json
new file mode 100644
index 00000000000..7b776a1d2ee
--- /dev/null
+++ b/packages/google-cloud-developerconnect/.repo-metadata.json
@@ -0,0 +1,17 @@
+{
+ "name": "developerconnect",
+ "name_pretty": "Developer Connect API",
+ "product_documentation": "https://cloud.google.com/developer-connect/docs/overview",
+ "client_documentation": "https://cloud.google.com/nodejs/docs/reference/developerconnect/latest",
+ "issue_tracker": "https://github.com/googleapis/google-cloud-node/issues",
+ "release_level": "preview",
+ "language": "nodejs",
+ "repo": "googleapis/google-cloud-node",
+ "distribution_name": "@google-cloud/developerconnect",
+ "api_id": "developerconnect.googleapis.com",
+ "default_version": "v1",
+ "requires_billing": true,
+ "library_type": "GAPIC_AUTO",
+ "api_shortname": "developerconnect"
+}
+
diff --git a/packages/google-cloud-developerconnect/CHANGELOG.md b/packages/google-cloud-developerconnect/CHANGELOG.md
new file mode 100644
index 00000000000..96619067aae
--- /dev/null
+++ b/packages/google-cloud-developerconnect/CHANGELOG.md
@@ -0,0 +1,10 @@
+# Changelog
+
+## 0.1.0 (2024-06-12)
+
+
+### Features
+
+* [Many APIs] update Nodejs generator to send API versions in headers for GAPICs ([#5351](https://github.com/googleapis/google-cloud-node/issues/5351)) ([01f48fc](https://github.com/googleapis/google-cloud-node/commit/01f48fce63ec4ddf801d59ee2b8c0db9f6fb8372))
+* [Many APIs] update Nodejs generator to send API versions in headers for GAPICs ([#5354](https://github.com/googleapis/google-cloud-node/issues/5354)) ([a9784ed](https://github.com/googleapis/google-cloud-node/commit/a9784ed3db6ee96d171762308bbbcd57390b6866))
+* Add initial files for google.cloud.developerconnect.v1 ([#5397](https://github.com/googleapis/google-cloud-node/issues/5397)) ([724f42c](https://github.com/googleapis/google-cloud-node/commit/724f42c129e09a79dd0be0c87578ed0507fa19b5))
diff --git a/packages/google-cloud-resourcesettings/CODE_OF_CONDUCT.md b/packages/google-cloud-developerconnect/CODE_OF_CONDUCT.md
similarity index 100%
rename from packages/google-cloud-resourcesettings/CODE_OF_CONDUCT.md
rename to packages/google-cloud-developerconnect/CODE_OF_CONDUCT.md
diff --git a/packages/google-cloud-resourcesettings/CONTRIBUTING.md b/packages/google-cloud-developerconnect/CONTRIBUTING.md
similarity index 96%
rename from packages/google-cloud-resourcesettings/CONTRIBUTING.md
rename to packages/google-cloud-developerconnect/CONTRIBUTING.md
index 13759b37e9d..439eeb242ff 100644
--- a/packages/google-cloud-resourcesettings/CONTRIBUTING.md
+++ b/packages/google-cloud-developerconnect/CONTRIBUTING.md
@@ -41,7 +41,7 @@ accept your pull requests.
1. [Select or create a Cloud Platform project][projects].
1. [Enable billing for your project][billing].
-1. [Enable the Resource Settings API API][enable_api].
+1. [Enable the Developer Connect API API][enable_api].
1. [Set up authentication with a service account][auth] so you can access the
API from your local workstation.
@@ -72,5 +72,5 @@ accept your pull requests.
[setup]: https://cloud.google.com/nodejs/docs/setup
[projects]: https://console.cloud.google.com/project
[billing]: https://support.google.com/cloud/answer/6293499#enable-billing
-[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=resourcesettings.googleapis.com
+[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=developerconnect.googleapis.com
[auth]: https://cloud.google.com/docs/authentication/getting-started
\ No newline at end of file
diff --git a/packages/google-cloud-resourcesettings/LICENSE b/packages/google-cloud-developerconnect/LICENSE
similarity index 100%
rename from packages/google-cloud-resourcesettings/LICENSE
rename to packages/google-cloud-developerconnect/LICENSE
diff --git a/packages/google-cloud-developerconnect/README.md b/packages/google-cloud-developerconnect/README.md
new file mode 100644
index 00000000000..3b4f979410c
--- /dev/null
+++ b/packages/google-cloud-developerconnect/README.md
@@ -0,0 +1,202 @@
+[//]: # "This README.md file is auto-generated, all changes to this file will be lost."
+[//]: # "To regenerate it, use `python -m synthtool`."
+
+
+# [Developer Connect API: Node.js Client](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-developerconnect)
+
+[](https://cloud.google.com/terms/launch-stages)
+[](https://www.npmjs.org/package/@google-cloud/developerconnect)
+
+
+
+
+Developer Connect API client for Node.js
+
+
+A comprehensive list of changes in each version may be found in
+[the CHANGELOG](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-developerconnect/CHANGELOG.md).
+
+* [Developer Connect API Node.js Client API Reference][client-docs]
+* [Developer Connect API Documentation][product-docs]
+* [github.com/googleapis/google-cloud-node/packages/google-cloud-developerconnect](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-developerconnect)
+
+Read more about the client libraries for Cloud APIs, including the older
+Google APIs Client Libraries, in [Client Libraries Explained][explained].
+
+[explained]: https://cloud.google.com/apis/docs/client-libraries-explained
+
+**Table of contents:**
+
+
+* [Quickstart](#quickstart)
+ * [Before you begin](#before-you-begin)
+ * [Installing the client library](#installing-the-client-library)
+ * [Using the client library](#using-the-client-library)
+* [Samples](#samples)
+* [Versioning](#versioning)
+* [Contributing](#contributing)
+* [License](#license)
+
+## Quickstart
+
+### Before you begin
+
+1. [Select or create a Cloud Platform project][projects].
+1. [Enable billing for your project][billing].
+1. [Enable the Developer Connect API API][enable_api].
+1. [Set up authentication with a service account][auth] so you can access the
+ API from your local workstation.
+
+### Installing the client library
+
+```bash
+npm install @google-cloud/developerconnect
+```
+
+
+### Using the client library
+
+```javascript
+/**
+ * This snippet has been automatically generated and should be regarded as a code template only.
+ * It will require modifications to work.
+ * It may require correct/in-range values for request initialization.
+ * TODO(developer): Uncomment these variables before running the sample.
+ */
+/**
+ * Required. Parent value for ListConnectionsRequest
+ */
+// const parent = 'abc123'
+/**
+ * Optional. Requested page size. Server may return fewer items than
+ * requested. If unspecified, server will pick an appropriate default.
+ */
+// const pageSize = 1234
+/**
+ * Optional. A token identifying a page of results the server should return.
+ */
+// const pageToken = 'abc123'
+/**
+ * Optional. Filtering results
+ */
+// const filter = 'abc123'
+/**
+ * Optional. Hint for how to order the results
+ */
+// const orderBy = 'abc123'
+
+// Imports the Developerconnect library
+const {DeveloperConnectClient} = require('@google-cloud/developerconnect').v1;
+
+// Instantiates a client
+const developerconnectClient = new DeveloperConnectClient({fallback: true});
+
+async function callListConnections() {
+ // Construct request
+ const request = {
+ parent,
+ };
+
+ // Run request
+ const iterable = developerconnectClient.listConnectionsAsync(request);
+ for await (const response of iterable) {
+ console.log(response);
+ }
+}
+
+callListConnections();
+
+```
+
+
+
+## Samples
+
+Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-developerconnect/samples) directory. Each sample's `README.md` has instructions for running its sample.
+
+| Sample | Source Code | Try it |
+| --------------------------- | --------------------------------- | ------ |
+| Developer_connect.create_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-developerconnect/samples/generated/v1/developer_connect.create_connection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-developerconnect/samples/generated/v1/developer_connect.create_connection.js,packages/google-cloud-developerconnect/samples/README.md) |
+| Developer_connect.create_git_repository_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-developerconnect/samples/generated/v1/developer_connect.create_git_repository_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-developerconnect/samples/generated/v1/developer_connect.create_git_repository_link.js,packages/google-cloud-developerconnect/samples/README.md) |
+| Developer_connect.delete_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-developerconnect/samples/generated/v1/developer_connect.delete_connection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-developerconnect/samples/generated/v1/developer_connect.delete_connection.js,packages/google-cloud-developerconnect/samples/README.md) |
+| Developer_connect.delete_git_repository_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-developerconnect/samples/generated/v1/developer_connect.delete_git_repository_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-developerconnect/samples/generated/v1/developer_connect.delete_git_repository_link.js,packages/google-cloud-developerconnect/samples/README.md) |
+| Developer_connect.fetch_git_hub_installations | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-developerconnect/samples/generated/v1/developer_connect.fetch_git_hub_installations.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-developerconnect/samples/generated/v1/developer_connect.fetch_git_hub_installations.js,packages/google-cloud-developerconnect/samples/README.md) |
+| Developer_connect.fetch_git_refs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-developerconnect/samples/generated/v1/developer_connect.fetch_git_refs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-developerconnect/samples/generated/v1/developer_connect.fetch_git_refs.js,packages/google-cloud-developerconnect/samples/README.md) |
+| Developer_connect.fetch_linkable_git_repositories | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-developerconnect/samples/generated/v1/developer_connect.fetch_linkable_git_repositories.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-developerconnect/samples/generated/v1/developer_connect.fetch_linkable_git_repositories.js,packages/google-cloud-developerconnect/samples/README.md) |
+| Developer_connect.fetch_read_token | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-developerconnect/samples/generated/v1/developer_connect.fetch_read_token.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-developerconnect/samples/generated/v1/developer_connect.fetch_read_token.js,packages/google-cloud-developerconnect/samples/README.md) |
+| Developer_connect.fetch_read_write_token | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-developerconnect/samples/generated/v1/developer_connect.fetch_read_write_token.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-developerconnect/samples/generated/v1/developer_connect.fetch_read_write_token.js,packages/google-cloud-developerconnect/samples/README.md) |
+| Developer_connect.get_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-developerconnect/samples/generated/v1/developer_connect.get_connection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-developerconnect/samples/generated/v1/developer_connect.get_connection.js,packages/google-cloud-developerconnect/samples/README.md) |
+| Developer_connect.get_git_repository_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-developerconnect/samples/generated/v1/developer_connect.get_git_repository_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-developerconnect/samples/generated/v1/developer_connect.get_git_repository_link.js,packages/google-cloud-developerconnect/samples/README.md) |
+| Developer_connect.list_connections | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-developerconnect/samples/generated/v1/developer_connect.list_connections.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-developerconnect/samples/generated/v1/developer_connect.list_connections.js,packages/google-cloud-developerconnect/samples/README.md) |
+| Developer_connect.list_git_repository_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-developerconnect/samples/generated/v1/developer_connect.list_git_repository_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-developerconnect/samples/generated/v1/developer_connect.list_git_repository_links.js,packages/google-cloud-developerconnect/samples/README.md) |
+| Developer_connect.update_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-developerconnect/samples/generated/v1/developer_connect.update_connection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-developerconnect/samples/generated/v1/developer_connect.update_connection.js,packages/google-cloud-developerconnect/samples/README.md) |
+| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-developerconnect/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-developerconnect/samples/quickstart.js,packages/google-cloud-developerconnect/samples/README.md) |
+
+
+
+The [Developer Connect API Node.js Client API Reference][client-docs] documentation
+also contains samples.
+
+## Supported Node.js Versions
+
+Our client libraries follow the [Node.js release schedule](https://github.com/nodejs/release#release-schedule).
+Libraries are compatible with all current _active_ and _maintenance_ versions of
+Node.js.
+If you are using an end-of-life version of Node.js, we recommend that you update
+as soon as possible to an actively supported LTS version.
+
+Google's client libraries support legacy versions of Node.js runtimes on a
+best-efforts basis with the following warnings:
+
+* Legacy versions are not tested in continuous integration.
+* Some security patches and features cannot be backported.
+* Dependencies cannot be kept up-to-date.
+
+Client libraries targeting some end-of-life versions of Node.js are available, and
+can be installed through npm [dist-tags](https://docs.npmjs.com/cli/dist-tag).
+The dist-tags follow the naming convention `legacy-(version)`.
+For example, `npm install @google-cloud/developerconnect@legacy-8` installs client libraries
+for versions compatible with Node.js 8.
+
+## Versioning
+
+This library follows [Semantic Versioning](http://semver.org/).
+
+
+
+
+
+
+
+This library is considered to be in **preview**. This means it is still a
+work-in-progress and under active development. Any release is subject to
+backwards-incompatible changes at any time.
+
+
+More Information: [Google Cloud Platform Launch Stages][launch_stages]
+
+[launch_stages]: https://cloud.google.com/terms/launch-stages
+
+## Contributing
+
+Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/google-cloud-node/blob/main/CONTRIBUTING.md).
+
+Please note that this `README.md`, the `samples/README.md`,
+and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`)
+are generated from a central template. To edit one of these files, make an edit
+to its templates in
+[directory](https://github.com/googleapis/synthtool).
+
+## License
+
+Apache Version 2.0
+
+See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE)
+
+[client-docs]: https://cloud.google.com/nodejs/docs/reference/developerconnect/latest
+[product-docs]: https://cloud.google.com/developer-connect/docs/overview
+[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png
+[projects]: https://console.cloud.google.com/project
+[billing]: https://support.google.com/cloud/answer/6293499#enable-billing
+[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=developerconnect.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/getting-started
diff --git a/packages/google-cloud-resourcesettings/package.json b/packages/google-cloud-developerconnect/package.json
similarity index 76%
rename from packages/google-cloud-resourcesettings/package.json
rename to packages/google-cloud-developerconnect/package.json
index 99f8dc89dc7..0f925ab21eb 100644
--- a/packages/google-cloud-resourcesettings/package.json
+++ b/packages/google-cloud-developerconnect/package.json
@@ -1,20 +1,20 @@
{
- "name": "@google-cloud/resource-settings",
- "version": "4.0.0",
- "description": "resourcesettings client for Node.js",
+ "name": "@google-cloud/developerconnect",
+ "version": "0.1.0",
+ "description": "Developer Connect API client for Node.js",
"repository": {
"type": "git",
- "directory": "packages/google-cloud-resourcesettings",
- "url": "https://github.com/googleapis/google-cloud-node.git"
+ "url": "https://github.com/googleapis/google-cloud-node.git",
+ "directory": "packages/google-cloud-developerconnect"
},
"license": "Apache-2.0",
"author": "Google LLC",
"main": "build/src/index.js",
"files": [
"build/src",
- "build/protos",
- "!build/src/**/*.map"
+ "build/protos"
],
+ "homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-developerconnect",
"keywords": [
"google apis client",
"google api client",
@@ -24,9 +24,9 @@
"google cloud platform",
"google cloud",
"cloud",
- "google resourcesettings",
- "resourcesettings",
- "resourcesettings service"
+ "google developerconnect",
+ "developerconnect",
+ "Developer Connect API"
],
"scripts": {
"clean": "gts clean",
@@ -37,12 +37,12 @@
"docs-test": "linkinator docs",
"fix": "gts fix",
"lint": "gts check",
- "prepare": "npm run compile",
- "prelint": "cd samples; npm link ../; npm i",
"postpack": "minifyProtoJson",
- "samples-test": "cd samples/ && npm link ../ && npm i && npm test",
+ "prepare": "npm run compile",
"system-test": "c8 mocha build/system-test",
- "test": "c8 mocha build/test"
+ "test": "c8 mocha build/test",
+ "samples-test": "cd samples/ && npm link ../ && npm i && npm test",
+ "prelint": "cd samples; npm link ../; npm i"
},
"dependencies": {
"google-gax": "^4.0.3"
@@ -66,6 +66,5 @@
},
"engines": {
"node": ">=14.0.0"
- },
- "homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-resourcesettings"
-}
\ No newline at end of file
+ }
+}
diff --git a/packages/google-cloud-developerconnect/protos/google/cloud/developerconnect/v1/developer_connect.proto b/packages/google-cloud-developerconnect/protos/google/cloud/developerconnect/v1/developer_connect.proto
new file mode 100644
index 00000000000..3bd3a64ef56
--- /dev/null
+++ b/packages/google-cloud-developerconnect/protos/google/cloud/developerconnect/v1/developer_connect.proto
@@ -0,0 +1,888 @@
+// 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.
+
+syntax = "proto3";
+
+package google.cloud.developerconnect.v1;
+
+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/resource.proto";
+import "google/longrunning/operations.proto";
+import "google/protobuf/empty.proto";
+import "google/protobuf/field_mask.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.DeveloperConnect.V1";
+option go_package = "cloud.google.com/go/developerconnect/apiv1/developerconnectpb;developerconnectpb";
+option java_multiple_files = true;
+option java_outer_classname = "DeveloperConnectProto";
+option java_package = "com.google.cloud.developerconnect.v1";
+option objc_class_prefix = "DeveloperConnect";
+option php_namespace = "Google\\Cloud\\DeveloperConnect\\V1";
+option ruby_package = "Google::Cloud::DeveloperConnect::V1";
+option (google.api.resource_definition) = {
+ type: "secretmanager.googleapis.com/SecretVersion"
+ pattern: "projects/{project}/secrets/{secret}/versions/{secret_version}"
+};
+
+// Service describing handlers for resources
+service DeveloperConnect {
+ option (google.api.default_host) = "developerconnect.googleapis.com";
+ option (google.api.oauth_scopes) =
+ "https://www.googleapis.com/auth/cloud-platform";
+
+ // Lists Connections in a given project and location.
+ rpc ListConnections(ListConnectionsRequest)
+ returns (ListConnectionsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/connections"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets details of a single Connection.
+ rpc GetConnection(GetConnectionRequest) returns (Connection) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/connections/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a new Connection in a given project and location.
+ rpc CreateConnection(CreateConnectionRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/connections"
+ body: "connection"
+ };
+ option (google.api.method_signature) = "parent,connection,connection_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "Connection"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Updates the parameters of a single Connection.
+ rpc UpdateConnection(UpdateConnectionRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1/{connection.name=projects/*/locations/*/connections/*}"
+ body: "connection"
+ };
+ option (google.api.method_signature) = "connection,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "Connection"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Deletes a single Connection.
+ rpc DeleteConnection(DeleteConnectionRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/connections/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Creates a GitRepositoryLink. Upon linking a Git Repository, Developer
+ // Connect will configure the Git Repository to send webhook events to
+ // Developer Connect. Connections that use Firebase GitHub Application will
+ // have events forwarded to the Firebase service. All other Connections will
+ // have events forwarded to Cloud Build.
+ rpc CreateGitRepositoryLink(CreateGitRepositoryLinkRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*/connections/*}/gitRepositoryLinks"
+ body: "git_repository_link"
+ };
+ option (google.api.method_signature) =
+ "parent,git_repository_link,git_repository_link_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "GitRepositoryLink"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Deletes a single GitRepositoryLink.
+ rpc DeleteGitRepositoryLink(DeleteGitRepositoryLinkRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/connections/*/gitRepositoryLinks/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Lists GitRepositoryLinks in a given project, location, and connection.
+ rpc ListGitRepositoryLinks(ListGitRepositoryLinksRequest)
+ returns (ListGitRepositoryLinksResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*/connections/*}/gitRepositoryLinks"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets details of a single GitRepositoryLink.
+ rpc GetGitRepositoryLink(GetGitRepositoryLinkRequest)
+ returns (GitRepositoryLink) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/connections/*/gitRepositoryLinks/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Fetches read/write token of a given gitRepositoryLink.
+ rpc FetchReadWriteToken(FetchReadWriteTokenRequest)
+ returns (FetchReadWriteTokenResponse) {
+ option (google.api.http) = {
+ post: "/v1/{git_repository_link=projects/*/locations/*/connections/*/gitRepositoryLinks/*}:fetchReadWriteToken"
+ body: "*"
+ };
+ option (google.api.method_signature) = "git_repository_link";
+ }
+
+ // Fetches read token of a given gitRepositoryLink.
+ rpc FetchReadToken(FetchReadTokenRequest) returns (FetchReadTokenResponse) {
+ option (google.api.http) = {
+ post: "/v1/{git_repository_link=projects/*/locations/*/connections/*/gitRepositoryLinks/*}:fetchReadToken"
+ body: "*"
+ };
+ option (google.api.method_signature) = "git_repository_link";
+ }
+
+ // FetchLinkableGitRepositories returns a list of git repositories from an SCM
+ // that are available to be added to a Connection.
+ rpc FetchLinkableGitRepositories(FetchLinkableGitRepositoriesRequest)
+ returns (FetchLinkableGitRepositoriesResponse) {
+ option (google.api.http) = {
+ get: "/v1/{connection=projects/*/locations/*/connections/*}:fetchLinkableGitRepositories"
+ };
+ option (google.api.method_signature) = "connection";
+ }
+
+ // FetchGitHubInstallations returns the list of GitHub Installations that
+ // are available to be added to a Connection.
+ // For github.com, only installations accessible to the authorizer token
+ // are returned. For GitHub Enterprise, all installations are returned.
+ rpc FetchGitHubInstallations(FetchGitHubInstallationsRequest)
+ returns (FetchGitHubInstallationsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{connection=projects/*/locations/*/connections/*}:fetchGitHubInstallations"
+ };
+ option (google.api.method_signature) = "connection";
+ }
+
+ // Fetch the list of branches or tags for a given repository.
+ rpc FetchGitRefs(FetchGitRefsRequest) returns (FetchGitRefsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{git_repository_link=projects/*/locations/*/connections/*/gitRepositoryLinks/*}:fetchGitRefs"
+ };
+ option (google.api.method_signature) = "git_repository_link,ref_type";
+ }
+}
+
+// Message describing Connection object
+message Connection {
+ option (google.api.resource) = {
+ type: "developerconnect.googleapis.com/Connection"
+ pattern: "projects/{project}/locations/{location}/connections/{connection}"
+ plural: "connections"
+ singular: "connection"
+ style: DECLARATIVE_FRIENDLY
+ };
+
+ // Configuration for the connection depending on the type of provider.
+ oneof connection_config {
+ // Configuration for connections to github.com.
+ GitHubConfig github_config = 5;
+ }
+
+ // Identifier. The resource name of the connection, in the format
+ // `projects/{project}/locations/{location}/connections/{connection_id}`.
+ string name = 1 [(google.api.field_behavior) = IDENTIFIER];
+
+ // Output only. [Output only] Create timestamp
+ google.protobuf.Timestamp create_time = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. [Output only] Update timestamp
+ google.protobuf.Timestamp update_time = 3
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. [Output only] Delete timestamp
+ google.protobuf.Timestamp delete_time = 11
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. Labels as key value pairs
+ map labels = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. Installation state of the Connection.
+ InstallationState installation_state = 6
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. If disabled is set to true, functionality is disabled for this
+ // connection. Repository based API methods and webhooks processing for
+ // repositories in this connection will be disabled.
+ bool disabled = 7 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. Set to true when the connection is being set up or updated in
+ // the background.
+ bool reconciling = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. Allows clients to store small amounts of arbitrary data.
+ map annotations = 9 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. This checksum is computed by the server based on the value of
+ // other fields, and may be sent on update and delete requests to ensure the
+ // client has an up-to-date value before proceeding.
+ string etag = 10 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. A system-assigned unique identifier for a the
+ // GitRepositoryLink.
+ string uid = 12 [
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OUTPUT_ONLY
+ ];
+}
+
+// Describes stage and necessary actions to be taken by the
+// user to complete the installation. Used for GitHub and GitHub Enterprise
+// based connections.
+message InstallationState {
+ // Stage of the installation process.
+ enum Stage {
+ // No stage specified.
+ STAGE_UNSPECIFIED = 0;
+
+ // Only for GitHub Enterprise. An App creation has been requested.
+ // The user needs to confirm the creation in their GitHub enterprise host.
+ PENDING_CREATE_APP = 1;
+
+ // User needs to authorize the GitHub (or Enterprise) App via OAuth.
+ PENDING_USER_OAUTH = 2;
+
+ // User needs to follow the link to install the GitHub (or Enterprise) App.
+ PENDING_INSTALL_APP = 3;
+
+ // Installation process has been completed.
+ COMPLETE = 10;
+ }
+
+ // Output only. Current step of the installation process.
+ Stage stage = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Message of what the user should do next to continue the
+ // installation. Empty string if the installation is already complete.
+ string message = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Link to follow for next action. Empty string if the
+ // installation is already complete.
+ string action_uri = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Configuration for connections to github.com.
+message GitHubConfig {
+ // Represents the various GitHub Applications that can be installed to a
+ // GitHub user or organization and used with Developer Connect.
+ enum GitHubApp {
+ // GitHub App not specified.
+ GIT_HUB_APP_UNSPECIFIED = 0;
+
+ // The Developer Connect GitHub Application.
+ DEVELOPER_CONNECT = 1;
+
+ // The Firebase GitHub Application.
+ FIREBASE = 2;
+ }
+
+ // Required. Immutable. The GitHub Application that was installed to the
+ // GitHub user or organization.
+ GitHubApp github_app = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.field_behavior) = IMMUTABLE
+ ];
+
+ // Optional. OAuth credential of the account that authorized the GitHub App.
+ // It is recommended to use a robot account instead of a human user account.
+ // The OAuth token must be tied to the GitHub App of this config.
+ OAuthCredential authorizer_credential = 2
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. GitHub App installation id.
+ int64 app_installation_id = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. The URI to navigate to in order to manage the installation
+ // associated with this GitHubConfig.
+ string installation_uri = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Represents an OAuth token of the account that authorized the Connection,
+// and associated metadata.
+message OAuthCredential {
+ // Required. A SecretManager resource containing the OAuth token that
+ // authorizes the connection. Format: `projects/*/secrets/*/versions/*`.
+ string oauth_token_secret_version = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "secretmanager.googleapis.com/SecretVersion"
+ }
+ ];
+
+ // Output only. The username associated with this token.
+ string username = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Message for requesting list of Connections
+message ListConnectionsRequest {
+ // Required. Parent value for ListConnectionsRequest
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "developerconnect.googleapis.com/Connection"
+ }
+ ];
+
+ // Optional. Requested page size. Server may return fewer items than
+ // requested. If unspecified, server will pick an appropriate default.
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A token identifying a page of results the server should return.
+ string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Filtering results
+ string filter = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Hint for how to order the results
+ string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Message for response to listing Connections
+message ListConnectionsResponse {
+ // The list of Connection
+ repeated Connection connections = 1;
+
+ // A token identifying a page of results the server should return.
+ string next_page_token = 2;
+
+ // Locations that could not be reached.
+ repeated string unreachable = 3;
+}
+
+// Message for getting a Connection
+message GetConnectionRequest {
+ // Required. Name of the resource
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "developerconnect.googleapis.com/Connection"
+ }
+ ];
+}
+
+// Message for creating a Connection
+message CreateConnectionRequest {
+ // Required. Value for parent.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "developerconnect.googleapis.com/Connection"
+ }
+ ];
+
+ // Required. Id of the requesting object
+ // If auto-generating Id server-side, remove this field and
+ // connection_id from the method_signature of Create RPC
+ string connection_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The resource being created
+ Connection connection = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. An optional request ID to identify requests. Specify a unique
+ // request ID so that if you must retry your request, the server will know to
+ // ignore the request if it has already been completed. The server will
+ // guarantee that for at least 60 minutes since the first request.
+ //
+ // For example, consider a situation where you make an initial request and the
+ // request times out. If you make the request again with the same request
+ // ID, the server can check if original operation with the same request ID
+ // was received, and if so, will ignore the second request. This prevents
+ // clients from accidentally creating duplicate commitments.
+ //
+ // The request ID must be a valid UUID with the exception that zero UUID is
+ // not supported (00000000-0000-0000-0000-000000000000).
+ string request_id = 4 [
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+
+ // Optional. If set, validate the request, but do not actually post it.
+ bool validate_only = 5 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Message for updating a Connection
+message UpdateConnectionRequest {
+ // Required. Field mask is used to specify the fields to be overwritten in the
+ // Connection resource by the update.
+ // The fields specified in the update_mask are relative to the resource, not
+ // the full request. A field will be overwritten if it is in the mask. If the
+ // user does not provide a mask then all fields will be overwritten.
+ google.protobuf.FieldMask update_mask = 1
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The resource being updated
+ Connection connection = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. An optional request ID to identify requests. Specify a unique
+ // request ID so that if you must retry your request, the server will know to
+ // ignore the request if it has already been completed. The server will
+ // guarantee that for at least 60 minutes since the first request.
+ //
+ // For example, consider a situation where you make an initial request and the
+ // request times out. If you make the request again with the same request
+ // ID, the server can check if original operation with the same request ID
+ // was received, and if so, will ignore the second request. This prevents
+ // clients from accidentally creating duplicate commitments.
+ //
+ // The request ID must be a valid UUID with the exception that zero UUID is
+ // not supported (00000000-0000-0000-0000-000000000000).
+ string request_id = 3 [
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+
+ // Optional. If set to true, and the connection is not found a new connection
+ // will be created. In this situation `update_mask` is ignored.
+ // The creation will succeed only if the input connection has all the
+ // necessary information (e.g a github_config with both user_oauth_token and
+ // installation_id properties).
+ bool allow_missing = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If set, validate the request, but do not actually post it.
+ bool validate_only = 5 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Message for deleting a Connection
+message DeleteConnectionRequest {
+ // Required. Name of the resource
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "developerconnect.googleapis.com/Connection"
+ }
+ ];
+
+ // Optional. An optional request ID to identify requests. Specify a unique
+ // request ID so that if you must retry your request, the server will know to
+ // ignore the request if it has already been completed. The server will
+ // guarantee that for at least 60 minutes after the first request.
+ //
+ // For example, consider a situation where you make an initial request and the
+ // request times out. If you make the request again with the same request
+ // ID, the server can check if original operation with the same request ID
+ // was received, and if so, will ignore the second request. This prevents
+ // clients from accidentally creating duplicate commitments.
+ //
+ // The request ID must be a valid UUID with the exception that zero UUID is
+ // not supported (00000000-0000-0000-0000-000000000000).
+ string request_id = 2 [
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+
+ // Optional. If set, validate the request, but do not actually post it.
+ bool validate_only = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The current etag of the Connection.
+ // If an etag is provided and does not match the current etag of the
+ // Connection, deletion will be blocked and an ABORTED error will be returned.
+ string etag = 4 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Represents the metadata of the long-running operation.
+message OperationMetadata {
+ // Output only. The time the operation was created.
+ google.protobuf.Timestamp create_time = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time the operation finished running.
+ google.protobuf.Timestamp end_time = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Server-defined resource path for the target of the operation.
+ string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Name of the verb executed by the operation.
+ string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Human-readable status of the operation, if any.
+ string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Identifies whether the user has requested cancellation
+ // of the operation. Operations that have been cancelled successfully
+ // have [Operation.error][] value with a
+ // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+ // `Code.CANCELLED`.
+ bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. API version used to start the operation.
+ string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Message describing the GitRepositoryLink object
+message GitRepositoryLink {
+ option (google.api.resource) = {
+ type: "developerconnect.googleapis.com/GitRepositoryLink"
+ pattern: "projects/{project}/locations/{location}/connections/{connection}/gitRepositoryLinks/{git_repository_link}"
+ plural: "gitRepositoryLinks"
+ singular: "gitRepositoryLink"
+ style: DECLARATIVE_FRIENDLY
+ };
+
+ // Identifier. Resource name of the repository, in the format
+ // `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+ string name = 1 [(google.api.field_behavior) = IDENTIFIER];
+
+ // Required. Git Clone URI.
+ string clone_uri = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Output only. [Output only] Create timestamp
+ google.protobuf.Timestamp create_time = 3
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. [Output only] Update timestamp
+ google.protobuf.Timestamp update_time = 4
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. [Output only] Delete timestamp
+ google.protobuf.Timestamp delete_time = 5
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. Labels as key value pairs
+ map labels = 6 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. This checksum is computed by the server based on the value of
+ // other fields, and may be sent on update and delete requests to ensure the
+ // client has an up-to-date value before proceeding.
+ string etag = 7 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. Set to true when the connection is being set up or updated in
+ // the background.
+ bool reconciling = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. Allows clients to store small amounts of arbitrary data.
+ map annotations = 9 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. A system-assigned unique identifier for a the
+ // GitRepositoryLink.
+ string uid = 10 [
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OUTPUT_ONLY
+ ];
+}
+
+// Message for creating a GitRepositoryLink
+message CreateGitRepositoryLinkRequest {
+ // Required. Value for parent.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "developerconnect.googleapis.com/GitRepositoryLink"
+ }
+ ];
+
+ // Required. The resource being created
+ GitRepositoryLink git_repository_link = 2
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The ID to use for the repository, which will become the final
+ // component of the repository's resource name. This ID should be unique in
+ // the connection. Allows alphanumeric characters and any of
+ // -._~%!$&'()*+,;=@.
+ string git_repository_link_id = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. An optional request ID to identify requests. Specify a unique
+ // request ID so that if you must retry your request, the server will know to
+ // ignore the request if it has already been completed. The server will
+ // guarantee that for at least 60 minutes since the first request.
+ //
+ // For example, consider a situation where you make an initial request and the
+ // request times out. If you make the request again with the same request
+ // ID, the server can check if original operation with the same request ID
+ // was received, and if so, will ignore the second request. This prevents
+ // clients from accidentally creating duplicate commitments.
+ //
+ // The request ID must be a valid UUID with the exception that zero UUID is
+ // not supported (00000000-0000-0000-0000-000000000000).
+ string request_id = 4 [
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+
+ // Optional. If set, validate the request, but do not actually post it.
+ bool validate_only = 5 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Message for deleting a GitRepositoryLink
+message DeleteGitRepositoryLinkRequest {
+ // Required. Name of the resource
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "developerconnect.googleapis.com/GitRepositoryLink"
+ }
+ ];
+
+ // Optional. An optional request ID to identify requests. Specify a unique
+ // request ID so that if you must retry your request, the server will know to
+ // ignore the request if it has already been completed. The server will
+ // guarantee that for at least 60 minutes after the first request.
+ //
+ // For example, consider a situation where you make an initial request and the
+ // request times out. If you make the request again with the same request
+ // ID, the server can check if original operation with the same request ID
+ // was received, and if so, will ignore the second request. This prevents
+ // clients from accidentally creating duplicate commitments.
+ //
+ // The request ID must be a valid UUID with the exception that zero UUID is
+ // not supported (00000000-0000-0000-0000-000000000000).
+ string request_id = 2 [
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+
+ // Optional. If set, validate the request, but do not actually post it.
+ bool validate_only = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. This checksum is computed by the server based on the value of
+ // other fields, and may be sent on update and delete requests to ensure the
+ // client has an up-to-date value before proceeding.
+ string etag = 4 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Message for requesting a list of GitRepositoryLinks
+message ListGitRepositoryLinksRequest {
+ // Required. Parent value for ListGitRepositoryLinksRequest
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "developerconnect.googleapis.com/GitRepositoryLink"
+ }
+ ];
+
+ // Optional. Requested page size. Server may return fewer items than
+ // requested. If unspecified, server will pick an appropriate default.
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A token identifying a page of results the server should return.
+ string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Filtering results
+ string filter = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Hint for how to order the results
+ string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Message for response to listing GitRepositoryLinks
+message ListGitRepositoryLinksResponse {
+ // The list of GitRepositoryLinks
+ repeated GitRepositoryLink git_repository_links = 1;
+
+ // A token identifying a page of results the server should return.
+ string next_page_token = 2;
+
+ // Locations that could not be reached.
+ repeated string unreachable = 3;
+}
+
+// Message for getting a GitRepositoryLink
+message GetGitRepositoryLinkRequest {
+ // Required. Name of the resource
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "developerconnect.googleapis.com/GitRepositoryLink"
+ }
+ ];
+}
+
+// Message for fetching SCM read/write token.
+message FetchReadWriteTokenRequest {
+ // Required. The resource name of the gitRepositoryLink in the format
+ // `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+ string git_repository_link = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "developerconnect.googleapis.com/GitRepositoryLink"
+ }
+ ];
+}
+
+// Message for fetching SCM read token.
+message FetchReadTokenRequest {
+ // Required. The resource name of the gitRepositoryLink in the format
+ // `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+ string git_repository_link = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "developerconnect.googleapis.com/GitRepositoryLink"
+ }
+ ];
+}
+
+// Message for responding to get read token.
+message FetchReadTokenResponse {
+ // The token content.
+ string token = 1;
+
+ // Expiration timestamp. Can be empty if unknown or non-expiring.
+ google.protobuf.Timestamp expiration_time = 2;
+
+ // The git_username to specify when making a git clone with the
+ // token. For example, for GitHub GitRepositoryLinks, this would be
+ // "x-access-token"
+ string git_username = 3;
+}
+
+// Message for responding to get read/write token.
+message FetchReadWriteTokenResponse {
+ // The token content.
+ string token = 1;
+
+ // Expiration timestamp. Can be empty if unknown or non-expiring.
+ google.protobuf.Timestamp expiration_time = 2;
+
+ // The git_username to specify when making a git clone with the
+ // token. For example, for GitHub GitRepositoryLinks, this would be
+ // "x-access-token"
+ string git_username = 3;
+}
+
+// Request message for FetchLinkableGitRepositoriesRequest.
+message FetchLinkableGitRepositoriesRequest {
+ // Required. The name of the Connection.
+ // Format: `projects/*/locations/*/connections/*`.
+ string connection = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "developerconnect.googleapis.com/Connection"
+ }
+ ];
+
+ // Optional. Number of results to return in the list. Defaults to 20.
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Page start.
+ string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response message for FetchLinkableGitRepositories.
+message FetchLinkableGitRepositoriesResponse {
+ // The git repositories that can be linked to the connection.
+ repeated LinkableGitRepository linkable_git_repositories = 1;
+
+ // A token identifying a page of results the server should return.
+ string next_page_token = 2;
+}
+
+// LinkableGitRepository represents a git repository that can be linked to a
+// connection.
+message LinkableGitRepository {
+ // The clone uri of the repository.
+ string clone_uri = 1;
+}
+
+// Request for fetching github installations.
+message FetchGitHubInstallationsRequest {
+ // Required. The resource name of the connection in the format
+ // `projects/*/locations/*/connections/*`.
+ string connection = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "developerconnect.googleapis.com/Connection"
+ }
+ ];
+}
+
+// Response of fetching github installations.
+message FetchGitHubInstallationsResponse {
+ // Represents an installation of the GitHub App.
+ message Installation {
+ // ID of the installation in GitHub.
+ int64 id = 1;
+
+ // Name of the GitHub user or organization that owns this installation.
+ string name = 2;
+
+ // Either "user" or "organization".
+ string type = 3;
+ }
+
+ // List of installations available to the OAuth user (for github.com)
+ // or all the installations (for GitHub enterprise).
+ repeated Installation installations = 1;
+}
+
+// Request for fetching git refs.
+message FetchGitRefsRequest {
+ // Type of refs.
+ enum RefType {
+ // No type specified.
+ REF_TYPE_UNSPECIFIED = 0;
+
+ // To fetch tags.
+ TAG = 1;
+
+ // To fetch branches.
+ BRANCH = 2;
+ }
+
+ // Required. The resource name of GitRepositoryLink in the format
+ // `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
+ string git_repository_link = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "developerconnect.googleapis.com/GitRepositoryLink"
+ }
+ ];
+
+ // Required. Type of refs to fetch.
+ RefType ref_type = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Number of results to return in the list. Default to 20.
+ int32 page_size = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Page start.
+ string page_token = 5 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response for fetching git refs.
+message FetchGitRefsResponse {
+ // Name of the refs fetched.
+ repeated string ref_names = 1;
+
+ // A token identifying a page of results the server should return.
+ string next_page_token = 2;
+}
diff --git a/packages/google-cloud-developerconnect/protos/protos.d.ts b/packages/google-cloud-developerconnect/protos/protos.d.ts
new file mode 100644
index 00000000000..c1a1f494822
--- /dev/null
+++ b/packages/google-cloud-developerconnect/protos/protos.d.ts
@@ -0,0 +1,11569 @@
+// 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.
+
+import type {protobuf as $protobuf} from "google-gax";
+import Long = require("long");
+/** Namespace google. */
+export namespace google {
+
+ /** Namespace cloud. */
+ namespace cloud {
+
+ /** Namespace developerconnect. */
+ namespace developerconnect {
+
+ /** Namespace v1. */
+ namespace v1 {
+
+ /** Represents a DeveloperConnect */
+ class DeveloperConnect extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new DeveloperConnect service.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ */
+ constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
+
+ /**
+ * Creates new DeveloperConnect service using the specified rpc implementation.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ * @returns RPC service. Useful where requests and/or responses are streamed.
+ */
+ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): DeveloperConnect;
+
+ /**
+ * Calls ListConnections.
+ * @param request ListConnectionsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListConnectionsResponse
+ */
+ public listConnections(request: google.cloud.developerconnect.v1.IListConnectionsRequest, callback: google.cloud.developerconnect.v1.DeveloperConnect.ListConnectionsCallback): void;
+
+ /**
+ * Calls ListConnections.
+ * @param request ListConnectionsRequest message or plain object
+ * @returns Promise
+ */
+ public listConnections(request: google.cloud.developerconnect.v1.IListConnectionsRequest): Promise;
+
+ /**
+ * Calls GetConnection.
+ * @param request GetConnectionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Connection
+ */
+ public getConnection(request: google.cloud.developerconnect.v1.IGetConnectionRequest, callback: google.cloud.developerconnect.v1.DeveloperConnect.GetConnectionCallback): void;
+
+ /**
+ * Calls GetConnection.
+ * @param request GetConnectionRequest message or plain object
+ * @returns Promise
+ */
+ public getConnection(request: google.cloud.developerconnect.v1.IGetConnectionRequest): Promise;
+
+ /**
+ * Calls CreateConnection.
+ * @param request CreateConnectionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createConnection(request: google.cloud.developerconnect.v1.ICreateConnectionRequest, callback: google.cloud.developerconnect.v1.DeveloperConnect.CreateConnectionCallback): void;
+
+ /**
+ * Calls CreateConnection.
+ * @param request CreateConnectionRequest message or plain object
+ * @returns Promise
+ */
+ public createConnection(request: google.cloud.developerconnect.v1.ICreateConnectionRequest): Promise;
+
+ /**
+ * Calls UpdateConnection.
+ * @param request UpdateConnectionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateConnection(request: google.cloud.developerconnect.v1.IUpdateConnectionRequest, callback: google.cloud.developerconnect.v1.DeveloperConnect.UpdateConnectionCallback): void;
+
+ /**
+ * Calls UpdateConnection.
+ * @param request UpdateConnectionRequest message or plain object
+ * @returns Promise
+ */
+ public updateConnection(request: google.cloud.developerconnect.v1.IUpdateConnectionRequest): Promise;
+
+ /**
+ * Calls DeleteConnection.
+ * @param request DeleteConnectionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteConnection(request: google.cloud.developerconnect.v1.IDeleteConnectionRequest, callback: google.cloud.developerconnect.v1.DeveloperConnect.DeleteConnectionCallback): void;
+
+ /**
+ * Calls DeleteConnection.
+ * @param request DeleteConnectionRequest message or plain object
+ * @returns Promise
+ */
+ public deleteConnection(request: google.cloud.developerconnect.v1.IDeleteConnectionRequest): Promise;
+
+ /**
+ * Calls CreateGitRepositoryLink.
+ * @param request CreateGitRepositoryLinkRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createGitRepositoryLink(request: google.cloud.developerconnect.v1.ICreateGitRepositoryLinkRequest, callback: google.cloud.developerconnect.v1.DeveloperConnect.CreateGitRepositoryLinkCallback): void;
+
+ /**
+ * Calls CreateGitRepositoryLink.
+ * @param request CreateGitRepositoryLinkRequest message or plain object
+ * @returns Promise
+ */
+ public createGitRepositoryLink(request: google.cloud.developerconnect.v1.ICreateGitRepositoryLinkRequest): Promise;
+
+ /**
+ * Calls DeleteGitRepositoryLink.
+ * @param request DeleteGitRepositoryLinkRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteGitRepositoryLink(request: google.cloud.developerconnect.v1.IDeleteGitRepositoryLinkRequest, callback: google.cloud.developerconnect.v1.DeveloperConnect.DeleteGitRepositoryLinkCallback): void;
+
+ /**
+ * Calls DeleteGitRepositoryLink.
+ * @param request DeleteGitRepositoryLinkRequest message or plain object
+ * @returns Promise
+ */
+ public deleteGitRepositoryLink(request: google.cloud.developerconnect.v1.IDeleteGitRepositoryLinkRequest): Promise;
+
+ /**
+ * Calls ListGitRepositoryLinks.
+ * @param request ListGitRepositoryLinksRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListGitRepositoryLinksResponse
+ */
+ public listGitRepositoryLinks(request: google.cloud.developerconnect.v1.IListGitRepositoryLinksRequest, callback: google.cloud.developerconnect.v1.DeveloperConnect.ListGitRepositoryLinksCallback): void;
+
+ /**
+ * Calls ListGitRepositoryLinks.
+ * @param request ListGitRepositoryLinksRequest message or plain object
+ * @returns Promise
+ */
+ public listGitRepositoryLinks(request: google.cloud.developerconnect.v1.IListGitRepositoryLinksRequest): Promise;
+
+ /**
+ * Calls GetGitRepositoryLink.
+ * @param request GetGitRepositoryLinkRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and GitRepositoryLink
+ */
+ public getGitRepositoryLink(request: google.cloud.developerconnect.v1.IGetGitRepositoryLinkRequest, callback: google.cloud.developerconnect.v1.DeveloperConnect.GetGitRepositoryLinkCallback): void;
+
+ /**
+ * Calls GetGitRepositoryLink.
+ * @param request GetGitRepositoryLinkRequest message or plain object
+ * @returns Promise
+ */
+ public getGitRepositoryLink(request: google.cloud.developerconnect.v1.IGetGitRepositoryLinkRequest): Promise;
+
+ /**
+ * Calls FetchReadWriteToken.
+ * @param request FetchReadWriteTokenRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and FetchReadWriteTokenResponse
+ */
+ public fetchReadWriteToken(request: google.cloud.developerconnect.v1.IFetchReadWriteTokenRequest, callback: google.cloud.developerconnect.v1.DeveloperConnect.FetchReadWriteTokenCallback): void;
+
+ /**
+ * Calls FetchReadWriteToken.
+ * @param request FetchReadWriteTokenRequest message or plain object
+ * @returns Promise
+ */
+ public fetchReadWriteToken(request: google.cloud.developerconnect.v1.IFetchReadWriteTokenRequest): Promise;
+
+ /**
+ * Calls FetchReadToken.
+ * @param request FetchReadTokenRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and FetchReadTokenResponse
+ */
+ public fetchReadToken(request: google.cloud.developerconnect.v1.IFetchReadTokenRequest, callback: google.cloud.developerconnect.v1.DeveloperConnect.FetchReadTokenCallback): void;
+
+ /**
+ * Calls FetchReadToken.
+ * @param request FetchReadTokenRequest message or plain object
+ * @returns Promise
+ */
+ public fetchReadToken(request: google.cloud.developerconnect.v1.IFetchReadTokenRequest): Promise;
+
+ /**
+ * Calls FetchLinkableGitRepositories.
+ * @param request FetchLinkableGitRepositoriesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and FetchLinkableGitRepositoriesResponse
+ */
+ public fetchLinkableGitRepositories(request: google.cloud.developerconnect.v1.IFetchLinkableGitRepositoriesRequest, callback: google.cloud.developerconnect.v1.DeveloperConnect.FetchLinkableGitRepositoriesCallback): void;
+
+ /**
+ * Calls FetchLinkableGitRepositories.
+ * @param request FetchLinkableGitRepositoriesRequest message or plain object
+ * @returns Promise
+ */
+ public fetchLinkableGitRepositories(request: google.cloud.developerconnect.v1.IFetchLinkableGitRepositoriesRequest): Promise;
+
+ /**
+ * Calls FetchGitHubInstallations.
+ * @param request FetchGitHubInstallationsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and FetchGitHubInstallationsResponse
+ */
+ public fetchGitHubInstallations(request: google.cloud.developerconnect.v1.IFetchGitHubInstallationsRequest, callback: google.cloud.developerconnect.v1.DeveloperConnect.FetchGitHubInstallationsCallback): void;
+
+ /**
+ * Calls FetchGitHubInstallations.
+ * @param request FetchGitHubInstallationsRequest message or plain object
+ * @returns Promise
+ */
+ public fetchGitHubInstallations(request: google.cloud.developerconnect.v1.IFetchGitHubInstallationsRequest): Promise;
+
+ /**
+ * Calls FetchGitRefs.
+ * @param request FetchGitRefsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and FetchGitRefsResponse
+ */
+ public fetchGitRefs(request: google.cloud.developerconnect.v1.IFetchGitRefsRequest, callback: google.cloud.developerconnect.v1.DeveloperConnect.FetchGitRefsCallback): void;
+
+ /**
+ * Calls FetchGitRefs.
+ * @param request FetchGitRefsRequest message or plain object
+ * @returns Promise
+ */
+ public fetchGitRefs(request: google.cloud.developerconnect.v1.IFetchGitRefsRequest): Promise;
+ }
+
+ namespace DeveloperConnect {
+
+ /**
+ * Callback as used by {@link google.cloud.developerconnect.v1.DeveloperConnect|listConnections}.
+ * @param error Error, if any
+ * @param [response] ListConnectionsResponse
+ */
+ type ListConnectionsCallback = (error: (Error|null), response?: google.cloud.developerconnect.v1.ListConnectionsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.developerconnect.v1.DeveloperConnect|getConnection}.
+ * @param error Error, if any
+ * @param [response] Connection
+ */
+ type GetConnectionCallback = (error: (Error|null), response?: google.cloud.developerconnect.v1.Connection) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.developerconnect.v1.DeveloperConnect|createConnection}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateConnectionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.developerconnect.v1.DeveloperConnect|updateConnection}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateConnectionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.developerconnect.v1.DeveloperConnect|deleteConnection}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteConnectionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.developerconnect.v1.DeveloperConnect|createGitRepositoryLink}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateGitRepositoryLinkCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.developerconnect.v1.DeveloperConnect|deleteGitRepositoryLink}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteGitRepositoryLinkCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.developerconnect.v1.DeveloperConnect|listGitRepositoryLinks}.
+ * @param error Error, if any
+ * @param [response] ListGitRepositoryLinksResponse
+ */
+ type ListGitRepositoryLinksCallback = (error: (Error|null), response?: google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.developerconnect.v1.DeveloperConnect|getGitRepositoryLink}.
+ * @param error Error, if any
+ * @param [response] GitRepositoryLink
+ */
+ type GetGitRepositoryLinkCallback = (error: (Error|null), response?: google.cloud.developerconnect.v1.GitRepositoryLink) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.developerconnect.v1.DeveloperConnect|fetchReadWriteToken}.
+ * @param error Error, if any
+ * @param [response] FetchReadWriteTokenResponse
+ */
+ type FetchReadWriteTokenCallback = (error: (Error|null), response?: google.cloud.developerconnect.v1.FetchReadWriteTokenResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.developerconnect.v1.DeveloperConnect|fetchReadToken}.
+ * @param error Error, if any
+ * @param [response] FetchReadTokenResponse
+ */
+ type FetchReadTokenCallback = (error: (Error|null), response?: google.cloud.developerconnect.v1.FetchReadTokenResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.developerconnect.v1.DeveloperConnect|fetchLinkableGitRepositories}.
+ * @param error Error, if any
+ * @param [response] FetchLinkableGitRepositoriesResponse
+ */
+ type FetchLinkableGitRepositoriesCallback = (error: (Error|null), response?: google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.developerconnect.v1.DeveloperConnect|fetchGitHubInstallations}.
+ * @param error Error, if any
+ * @param [response] FetchGitHubInstallationsResponse
+ */
+ type FetchGitHubInstallationsCallback = (error: (Error|null), response?: google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.developerconnect.v1.DeveloperConnect|fetchGitRefs}.
+ * @param error Error, if any
+ * @param [response] FetchGitRefsResponse
+ */
+ type FetchGitRefsCallback = (error: (Error|null), response?: google.cloud.developerconnect.v1.FetchGitRefsResponse) => void;
+ }
+
+ /** Properties of a Connection. */
+ interface IConnection {
+
+ /** Connection githubConfig */
+ githubConfig?: (google.cloud.developerconnect.v1.IGitHubConfig|null);
+
+ /** Connection name */
+ name?: (string|null);
+
+ /** Connection createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Connection updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Connection deleteTime */
+ deleteTime?: (google.protobuf.ITimestamp|null);
+
+ /** Connection labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** Connection installationState */
+ installationState?: (google.cloud.developerconnect.v1.IInstallationState|null);
+
+ /** Connection disabled */
+ disabled?: (boolean|null);
+
+ /** Connection reconciling */
+ reconciling?: (boolean|null);
+
+ /** Connection annotations */
+ annotations?: ({ [k: string]: string }|null);
+
+ /** Connection etag */
+ etag?: (string|null);
+
+ /** Connection uid */
+ uid?: (string|null);
+ }
+
+ /** Represents a Connection. */
+ class Connection implements IConnection {
+
+ /**
+ * Constructs a new Connection.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.developerconnect.v1.IConnection);
+
+ /** Connection githubConfig. */
+ public githubConfig?: (google.cloud.developerconnect.v1.IGitHubConfig|null);
+
+ /** Connection name. */
+ public name: string;
+
+ /** Connection createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Connection updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Connection deleteTime. */
+ public deleteTime?: (google.protobuf.ITimestamp|null);
+
+ /** Connection labels. */
+ public labels: { [k: string]: string };
+
+ /** Connection installationState. */
+ public installationState?: (google.cloud.developerconnect.v1.IInstallationState|null);
+
+ /** Connection disabled. */
+ public disabled: boolean;
+
+ /** Connection reconciling. */
+ public reconciling: boolean;
+
+ /** Connection annotations. */
+ public annotations: { [k: string]: string };
+
+ /** Connection etag. */
+ public etag: string;
+
+ /** Connection uid. */
+ public uid: string;
+
+ /** Connection connectionConfig. */
+ public connectionConfig?: "githubConfig";
+
+ /**
+ * Creates a new Connection instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Connection instance
+ */
+ public static create(properties?: google.cloud.developerconnect.v1.IConnection): google.cloud.developerconnect.v1.Connection;
+
+ /**
+ * Encodes the specified Connection message. Does not implicitly {@link google.cloud.developerconnect.v1.Connection.verify|verify} messages.
+ * @param message Connection message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.developerconnect.v1.IConnection, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Connection message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.Connection.verify|verify} messages.
+ * @param message Connection message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.developerconnect.v1.IConnection, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Connection message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Connection
+ * @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.cloud.developerconnect.v1.Connection;
+
+ /**
+ * Decodes a Connection message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Connection
+ * @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.cloud.developerconnect.v1.Connection;
+
+ /**
+ * Verifies a Connection 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 Connection message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Connection
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.developerconnect.v1.Connection;
+
+ /**
+ * Creates a plain object from a Connection message. Also converts values to other types if specified.
+ * @param message Connection
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.developerconnect.v1.Connection, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Connection to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Connection
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an InstallationState. */
+ interface IInstallationState {
+
+ /** InstallationState stage */
+ stage?: (google.cloud.developerconnect.v1.InstallationState.Stage|keyof typeof google.cloud.developerconnect.v1.InstallationState.Stage|null);
+
+ /** InstallationState message */
+ message?: (string|null);
+
+ /** InstallationState actionUri */
+ actionUri?: (string|null);
+ }
+
+ /** Represents an InstallationState. */
+ class InstallationState implements IInstallationState {
+
+ /**
+ * Constructs a new InstallationState.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.developerconnect.v1.IInstallationState);
+
+ /** InstallationState stage. */
+ public stage: (google.cloud.developerconnect.v1.InstallationState.Stage|keyof typeof google.cloud.developerconnect.v1.InstallationState.Stage);
+
+ /** InstallationState message. */
+ public message: string;
+
+ /** InstallationState actionUri. */
+ public actionUri: string;
+
+ /**
+ * Creates a new InstallationState instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns InstallationState instance
+ */
+ public static create(properties?: google.cloud.developerconnect.v1.IInstallationState): google.cloud.developerconnect.v1.InstallationState;
+
+ /**
+ * Encodes the specified InstallationState message. Does not implicitly {@link google.cloud.developerconnect.v1.InstallationState.verify|verify} messages.
+ * @param message InstallationState message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.developerconnect.v1.IInstallationState, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified InstallationState message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.InstallationState.verify|verify} messages.
+ * @param message InstallationState message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.developerconnect.v1.IInstallationState, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an InstallationState message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns InstallationState
+ * @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.cloud.developerconnect.v1.InstallationState;
+
+ /**
+ * Decodes an InstallationState message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns InstallationState
+ * @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.cloud.developerconnect.v1.InstallationState;
+
+ /**
+ * Verifies an InstallationState 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 InstallationState message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns InstallationState
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.developerconnect.v1.InstallationState;
+
+ /**
+ * Creates a plain object from an InstallationState message. Also converts values to other types if specified.
+ * @param message InstallationState
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.developerconnect.v1.InstallationState, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this InstallationState to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for InstallationState
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace InstallationState {
+
+ /** Stage enum. */
+ enum Stage {
+ STAGE_UNSPECIFIED = 0,
+ PENDING_CREATE_APP = 1,
+ PENDING_USER_OAUTH = 2,
+ PENDING_INSTALL_APP = 3,
+ COMPLETE = 10
+ }
+ }
+
+ /** Properties of a GitHubConfig. */
+ interface IGitHubConfig {
+
+ /** GitHubConfig githubApp */
+ githubApp?: (google.cloud.developerconnect.v1.GitHubConfig.GitHubApp|keyof typeof google.cloud.developerconnect.v1.GitHubConfig.GitHubApp|null);
+
+ /** GitHubConfig authorizerCredential */
+ authorizerCredential?: (google.cloud.developerconnect.v1.IOAuthCredential|null);
+
+ /** GitHubConfig appInstallationId */
+ appInstallationId?: (number|Long|string|null);
+
+ /** GitHubConfig installationUri */
+ installationUri?: (string|null);
+ }
+
+ /** Represents a GitHubConfig. */
+ class GitHubConfig implements IGitHubConfig {
+
+ /**
+ * Constructs a new GitHubConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.developerconnect.v1.IGitHubConfig);
+
+ /** GitHubConfig githubApp. */
+ public githubApp: (google.cloud.developerconnect.v1.GitHubConfig.GitHubApp|keyof typeof google.cloud.developerconnect.v1.GitHubConfig.GitHubApp);
+
+ /** GitHubConfig authorizerCredential. */
+ public authorizerCredential?: (google.cloud.developerconnect.v1.IOAuthCredential|null);
+
+ /** GitHubConfig appInstallationId. */
+ public appInstallationId: (number|Long|string);
+
+ /** GitHubConfig installationUri. */
+ public installationUri: string;
+
+ /**
+ * Creates a new GitHubConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GitHubConfig instance
+ */
+ public static create(properties?: google.cloud.developerconnect.v1.IGitHubConfig): google.cloud.developerconnect.v1.GitHubConfig;
+
+ /**
+ * Encodes the specified GitHubConfig message. Does not implicitly {@link google.cloud.developerconnect.v1.GitHubConfig.verify|verify} messages.
+ * @param message GitHubConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.developerconnect.v1.IGitHubConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GitHubConfig message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.GitHubConfig.verify|verify} messages.
+ * @param message GitHubConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.developerconnect.v1.IGitHubConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GitHubConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GitHubConfig
+ * @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.cloud.developerconnect.v1.GitHubConfig;
+
+ /**
+ * Decodes a GitHubConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GitHubConfig
+ * @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.cloud.developerconnect.v1.GitHubConfig;
+
+ /**
+ * Verifies a GitHubConfig 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 GitHubConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GitHubConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.developerconnect.v1.GitHubConfig;
+
+ /**
+ * Creates a plain object from a GitHubConfig message. Also converts values to other types if specified.
+ * @param message GitHubConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.developerconnect.v1.GitHubConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GitHubConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GitHubConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace GitHubConfig {
+
+ /** GitHubApp enum. */
+ enum GitHubApp {
+ GIT_HUB_APP_UNSPECIFIED = 0,
+ DEVELOPER_CONNECT = 1,
+ FIREBASE = 2
+ }
+ }
+
+ /** Properties of a OAuthCredential. */
+ interface IOAuthCredential {
+
+ /** OAuthCredential oauthTokenSecretVersion */
+ oauthTokenSecretVersion?: (string|null);
+
+ /** OAuthCredential username */
+ username?: (string|null);
+ }
+
+ /** Represents a OAuthCredential. */
+ class OAuthCredential implements IOAuthCredential {
+
+ /**
+ * Constructs a new OAuthCredential.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.developerconnect.v1.IOAuthCredential);
+
+ /** OAuthCredential oauthTokenSecretVersion. */
+ public oauthTokenSecretVersion: string;
+
+ /** OAuthCredential username. */
+ public username: string;
+
+ /**
+ * Creates a new OAuthCredential instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OAuthCredential instance
+ */
+ public static create(properties?: google.cloud.developerconnect.v1.IOAuthCredential): google.cloud.developerconnect.v1.OAuthCredential;
+
+ /**
+ * Encodes the specified OAuthCredential message. Does not implicitly {@link google.cloud.developerconnect.v1.OAuthCredential.verify|verify} messages.
+ * @param message OAuthCredential message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.developerconnect.v1.IOAuthCredential, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OAuthCredential message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.OAuthCredential.verify|verify} messages.
+ * @param message OAuthCredential message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.developerconnect.v1.IOAuthCredential, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a OAuthCredential message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OAuthCredential
+ * @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.cloud.developerconnect.v1.OAuthCredential;
+
+ /**
+ * Decodes a OAuthCredential message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OAuthCredential
+ * @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.cloud.developerconnect.v1.OAuthCredential;
+
+ /**
+ * Verifies a OAuthCredential 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 OAuthCredential message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OAuthCredential
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.developerconnect.v1.OAuthCredential;
+
+ /**
+ * Creates a plain object from a OAuthCredential message. Also converts values to other types if specified.
+ * @param message OAuthCredential
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.developerconnect.v1.OAuthCredential, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OAuthCredential to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OAuthCredential
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListConnectionsRequest. */
+ interface IListConnectionsRequest {
+
+ /** ListConnectionsRequest parent */
+ parent?: (string|null);
+
+ /** ListConnectionsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListConnectionsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListConnectionsRequest filter */
+ filter?: (string|null);
+
+ /** ListConnectionsRequest orderBy */
+ orderBy?: (string|null);
+ }
+
+ /** Represents a ListConnectionsRequest. */
+ class ListConnectionsRequest implements IListConnectionsRequest {
+
+ /**
+ * Constructs a new ListConnectionsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.developerconnect.v1.IListConnectionsRequest);
+
+ /** ListConnectionsRequest parent. */
+ public parent: string;
+
+ /** ListConnectionsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListConnectionsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListConnectionsRequest filter. */
+ public filter: string;
+
+ /** ListConnectionsRequest orderBy. */
+ public orderBy: string;
+
+ /**
+ * Creates a new ListConnectionsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListConnectionsRequest instance
+ */
+ public static create(properties?: google.cloud.developerconnect.v1.IListConnectionsRequest): google.cloud.developerconnect.v1.ListConnectionsRequest;
+
+ /**
+ * Encodes the specified ListConnectionsRequest message. Does not implicitly {@link google.cloud.developerconnect.v1.ListConnectionsRequest.verify|verify} messages.
+ * @param message ListConnectionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.developerconnect.v1.IListConnectionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListConnectionsRequest message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.ListConnectionsRequest.verify|verify} messages.
+ * @param message ListConnectionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.developerconnect.v1.IListConnectionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListConnectionsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListConnectionsRequest
+ * @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.cloud.developerconnect.v1.ListConnectionsRequest;
+
+ /**
+ * Decodes a ListConnectionsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListConnectionsRequest
+ * @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.cloud.developerconnect.v1.ListConnectionsRequest;
+
+ /**
+ * Verifies a ListConnectionsRequest 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 ListConnectionsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListConnectionsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.developerconnect.v1.ListConnectionsRequest;
+
+ /**
+ * Creates a plain object from a ListConnectionsRequest message. Also converts values to other types if specified.
+ * @param message ListConnectionsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.developerconnect.v1.ListConnectionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListConnectionsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListConnectionsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListConnectionsResponse. */
+ interface IListConnectionsResponse {
+
+ /** ListConnectionsResponse connections */
+ connections?: (google.cloud.developerconnect.v1.IConnection[]|null);
+
+ /** ListConnectionsResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListConnectionsResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListConnectionsResponse. */
+ class ListConnectionsResponse implements IListConnectionsResponse {
+
+ /**
+ * Constructs a new ListConnectionsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.developerconnect.v1.IListConnectionsResponse);
+
+ /** ListConnectionsResponse connections. */
+ public connections: google.cloud.developerconnect.v1.IConnection[];
+
+ /** ListConnectionsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListConnectionsResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListConnectionsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListConnectionsResponse instance
+ */
+ public static create(properties?: google.cloud.developerconnect.v1.IListConnectionsResponse): google.cloud.developerconnect.v1.ListConnectionsResponse;
+
+ /**
+ * Encodes the specified ListConnectionsResponse message. Does not implicitly {@link google.cloud.developerconnect.v1.ListConnectionsResponse.verify|verify} messages.
+ * @param message ListConnectionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.developerconnect.v1.IListConnectionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListConnectionsResponse message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.ListConnectionsResponse.verify|verify} messages.
+ * @param message ListConnectionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.developerconnect.v1.IListConnectionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListConnectionsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListConnectionsResponse
+ * @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.cloud.developerconnect.v1.ListConnectionsResponse;
+
+ /**
+ * Decodes a ListConnectionsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListConnectionsResponse
+ * @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.cloud.developerconnect.v1.ListConnectionsResponse;
+
+ /**
+ * Verifies a ListConnectionsResponse 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 ListConnectionsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListConnectionsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.developerconnect.v1.ListConnectionsResponse;
+
+ /**
+ * Creates a plain object from a ListConnectionsResponse message. Also converts values to other types if specified.
+ * @param message ListConnectionsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.developerconnect.v1.ListConnectionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListConnectionsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListConnectionsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetConnectionRequest. */
+ interface IGetConnectionRequest {
+
+ /** GetConnectionRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetConnectionRequest. */
+ class GetConnectionRequest implements IGetConnectionRequest {
+
+ /**
+ * Constructs a new GetConnectionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.developerconnect.v1.IGetConnectionRequest);
+
+ /** GetConnectionRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetConnectionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetConnectionRequest instance
+ */
+ public static create(properties?: google.cloud.developerconnect.v1.IGetConnectionRequest): google.cloud.developerconnect.v1.GetConnectionRequest;
+
+ /**
+ * Encodes the specified GetConnectionRequest message. Does not implicitly {@link google.cloud.developerconnect.v1.GetConnectionRequest.verify|verify} messages.
+ * @param message GetConnectionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.developerconnect.v1.IGetConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetConnectionRequest message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.GetConnectionRequest.verify|verify} messages.
+ * @param message GetConnectionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.developerconnect.v1.IGetConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetConnectionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetConnectionRequest
+ * @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.cloud.developerconnect.v1.GetConnectionRequest;
+
+ /**
+ * Decodes a GetConnectionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetConnectionRequest
+ * @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.cloud.developerconnect.v1.GetConnectionRequest;
+
+ /**
+ * Verifies a GetConnectionRequest 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 GetConnectionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetConnectionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.developerconnect.v1.GetConnectionRequest;
+
+ /**
+ * Creates a plain object from a GetConnectionRequest message. Also converts values to other types if specified.
+ * @param message GetConnectionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.developerconnect.v1.GetConnectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetConnectionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetConnectionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateConnectionRequest. */
+ interface ICreateConnectionRequest {
+
+ /** CreateConnectionRequest parent */
+ parent?: (string|null);
+
+ /** CreateConnectionRequest connectionId */
+ connectionId?: (string|null);
+
+ /** CreateConnectionRequest connection */
+ connection?: (google.cloud.developerconnect.v1.IConnection|null);
+
+ /** CreateConnectionRequest requestId */
+ requestId?: (string|null);
+
+ /** CreateConnectionRequest validateOnly */
+ validateOnly?: (boolean|null);
+ }
+
+ /** Represents a CreateConnectionRequest. */
+ class CreateConnectionRequest implements ICreateConnectionRequest {
+
+ /**
+ * Constructs a new CreateConnectionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.developerconnect.v1.ICreateConnectionRequest);
+
+ /** CreateConnectionRequest parent. */
+ public parent: string;
+
+ /** CreateConnectionRequest connectionId. */
+ public connectionId: string;
+
+ /** CreateConnectionRequest connection. */
+ public connection?: (google.cloud.developerconnect.v1.IConnection|null);
+
+ /** CreateConnectionRequest requestId. */
+ public requestId: string;
+
+ /** CreateConnectionRequest validateOnly. */
+ public validateOnly: boolean;
+
+ /**
+ * Creates a new CreateConnectionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateConnectionRequest instance
+ */
+ public static create(properties?: google.cloud.developerconnect.v1.ICreateConnectionRequest): google.cloud.developerconnect.v1.CreateConnectionRequest;
+
+ /**
+ * Encodes the specified CreateConnectionRequest message. Does not implicitly {@link google.cloud.developerconnect.v1.CreateConnectionRequest.verify|verify} messages.
+ * @param message CreateConnectionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.developerconnect.v1.ICreateConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateConnectionRequest message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.CreateConnectionRequest.verify|verify} messages.
+ * @param message CreateConnectionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.developerconnect.v1.ICreateConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateConnectionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateConnectionRequest
+ * @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.cloud.developerconnect.v1.CreateConnectionRequest;
+
+ /**
+ * Decodes a CreateConnectionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateConnectionRequest
+ * @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.cloud.developerconnect.v1.CreateConnectionRequest;
+
+ /**
+ * Verifies a CreateConnectionRequest 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 CreateConnectionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateConnectionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.developerconnect.v1.CreateConnectionRequest;
+
+ /**
+ * Creates a plain object from a CreateConnectionRequest message. Also converts values to other types if specified.
+ * @param message CreateConnectionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.developerconnect.v1.CreateConnectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateConnectionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateConnectionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateConnectionRequest. */
+ interface IUpdateConnectionRequest {
+
+ /** UpdateConnectionRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateConnectionRequest connection */
+ connection?: (google.cloud.developerconnect.v1.IConnection|null);
+
+ /** UpdateConnectionRequest requestId */
+ requestId?: (string|null);
+
+ /** UpdateConnectionRequest allowMissing */
+ allowMissing?: (boolean|null);
+
+ /** UpdateConnectionRequest validateOnly */
+ validateOnly?: (boolean|null);
+ }
+
+ /** Represents an UpdateConnectionRequest. */
+ class UpdateConnectionRequest implements IUpdateConnectionRequest {
+
+ /**
+ * Constructs a new UpdateConnectionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.developerconnect.v1.IUpdateConnectionRequest);
+
+ /** UpdateConnectionRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateConnectionRequest connection. */
+ public connection?: (google.cloud.developerconnect.v1.IConnection|null);
+
+ /** UpdateConnectionRequest requestId. */
+ public requestId: string;
+
+ /** UpdateConnectionRequest allowMissing. */
+ public allowMissing: boolean;
+
+ /** UpdateConnectionRequest validateOnly. */
+ public validateOnly: boolean;
+
+ /**
+ * Creates a new UpdateConnectionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateConnectionRequest instance
+ */
+ public static create(properties?: google.cloud.developerconnect.v1.IUpdateConnectionRequest): google.cloud.developerconnect.v1.UpdateConnectionRequest;
+
+ /**
+ * Encodes the specified UpdateConnectionRequest message. Does not implicitly {@link google.cloud.developerconnect.v1.UpdateConnectionRequest.verify|verify} messages.
+ * @param message UpdateConnectionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.developerconnect.v1.IUpdateConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateConnectionRequest message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.UpdateConnectionRequest.verify|verify} messages.
+ * @param message UpdateConnectionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.developerconnect.v1.IUpdateConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateConnectionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateConnectionRequest
+ * @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.cloud.developerconnect.v1.UpdateConnectionRequest;
+
+ /**
+ * Decodes an UpdateConnectionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateConnectionRequest
+ * @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.cloud.developerconnect.v1.UpdateConnectionRequest;
+
+ /**
+ * Verifies an UpdateConnectionRequest 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 UpdateConnectionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateConnectionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.developerconnect.v1.UpdateConnectionRequest;
+
+ /**
+ * Creates a plain object from an UpdateConnectionRequest message. Also converts values to other types if specified.
+ * @param message UpdateConnectionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.developerconnect.v1.UpdateConnectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateConnectionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateConnectionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteConnectionRequest. */
+ interface IDeleteConnectionRequest {
+
+ /** DeleteConnectionRequest name */
+ name?: (string|null);
+
+ /** DeleteConnectionRequest requestId */
+ requestId?: (string|null);
+
+ /** DeleteConnectionRequest validateOnly */
+ validateOnly?: (boolean|null);
+
+ /** DeleteConnectionRequest etag */
+ etag?: (string|null);
+ }
+
+ /** Represents a DeleteConnectionRequest. */
+ class DeleteConnectionRequest implements IDeleteConnectionRequest {
+
+ /**
+ * Constructs a new DeleteConnectionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.developerconnect.v1.IDeleteConnectionRequest);
+
+ /** DeleteConnectionRequest name. */
+ public name: string;
+
+ /** DeleteConnectionRequest requestId. */
+ public requestId: string;
+
+ /** DeleteConnectionRequest validateOnly. */
+ public validateOnly: boolean;
+
+ /** DeleteConnectionRequest etag. */
+ public etag: string;
+
+ /**
+ * Creates a new DeleteConnectionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteConnectionRequest instance
+ */
+ public static create(properties?: google.cloud.developerconnect.v1.IDeleteConnectionRequest): google.cloud.developerconnect.v1.DeleteConnectionRequest;
+
+ /**
+ * Encodes the specified DeleteConnectionRequest message. Does not implicitly {@link google.cloud.developerconnect.v1.DeleteConnectionRequest.verify|verify} messages.
+ * @param message DeleteConnectionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.developerconnect.v1.IDeleteConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteConnectionRequest message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.DeleteConnectionRequest.verify|verify} messages.
+ * @param message DeleteConnectionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.developerconnect.v1.IDeleteConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteConnectionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteConnectionRequest
+ * @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.cloud.developerconnect.v1.DeleteConnectionRequest;
+
+ /**
+ * Decodes a DeleteConnectionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteConnectionRequest
+ * @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.cloud.developerconnect.v1.DeleteConnectionRequest;
+
+ /**
+ * Verifies a DeleteConnectionRequest 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 DeleteConnectionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteConnectionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.developerconnect.v1.DeleteConnectionRequest;
+
+ /**
+ * Creates a plain object from a DeleteConnectionRequest message. Also converts values to other types if specified.
+ * @param message DeleteConnectionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.developerconnect.v1.DeleteConnectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteConnectionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteConnectionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an OperationMetadata. */
+ interface IOperationMetadata {
+
+ /** OperationMetadata createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata target */
+ target?: (string|null);
+
+ /** OperationMetadata verb */
+ verb?: (string|null);
+
+ /** OperationMetadata statusMessage */
+ statusMessage?: (string|null);
+
+ /** OperationMetadata requestedCancellation */
+ requestedCancellation?: (boolean|null);
+
+ /** OperationMetadata apiVersion */
+ apiVersion?: (string|null);
+ }
+
+ /** Represents an OperationMetadata. */
+ class OperationMetadata implements IOperationMetadata {
+
+ /**
+ * Constructs a new OperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.developerconnect.v1.IOperationMetadata);
+
+ /** OperationMetadata createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata target. */
+ public target: string;
+
+ /** OperationMetadata verb. */
+ public verb: string;
+
+ /** OperationMetadata statusMessage. */
+ public statusMessage: string;
+
+ /** OperationMetadata requestedCancellation. */
+ public requestedCancellation: boolean;
+
+ /** OperationMetadata apiVersion. */
+ public apiVersion: string;
+
+ /**
+ * Creates a new OperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OperationMetadata instance
+ */
+ public static create(properties?: google.cloud.developerconnect.v1.IOperationMetadata): google.cloud.developerconnect.v1.OperationMetadata;
+
+ /**
+ * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.developerconnect.v1.OperationMetadata.verify|verify} messages.
+ * @param message OperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.developerconnect.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.OperationMetadata.verify|verify} messages.
+ * @param message OperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.developerconnect.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OperationMetadata
+ * @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.cloud.developerconnect.v1.OperationMetadata;
+
+ /**
+ * Decodes an OperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OperationMetadata
+ * @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.cloud.developerconnect.v1.OperationMetadata;
+
+ /**
+ * Verifies an OperationMetadata 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 OperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.developerconnect.v1.OperationMetadata;
+
+ /**
+ * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified.
+ * @param message OperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.developerconnect.v1.OperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GitRepositoryLink. */
+ interface IGitRepositoryLink {
+
+ /** GitRepositoryLink name */
+ name?: (string|null);
+
+ /** GitRepositoryLink cloneUri */
+ cloneUri?: (string|null);
+
+ /** GitRepositoryLink createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** GitRepositoryLink updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** GitRepositoryLink deleteTime */
+ deleteTime?: (google.protobuf.ITimestamp|null);
+
+ /** GitRepositoryLink labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** GitRepositoryLink etag */
+ etag?: (string|null);
+
+ /** GitRepositoryLink reconciling */
+ reconciling?: (boolean|null);
+
+ /** GitRepositoryLink annotations */
+ annotations?: ({ [k: string]: string }|null);
+
+ /** GitRepositoryLink uid */
+ uid?: (string|null);
+ }
+
+ /** Represents a GitRepositoryLink. */
+ class GitRepositoryLink implements IGitRepositoryLink {
+
+ /**
+ * Constructs a new GitRepositoryLink.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.developerconnect.v1.IGitRepositoryLink);
+
+ /** GitRepositoryLink name. */
+ public name: string;
+
+ /** GitRepositoryLink cloneUri. */
+ public cloneUri: string;
+
+ /** GitRepositoryLink createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** GitRepositoryLink updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** GitRepositoryLink deleteTime. */
+ public deleteTime?: (google.protobuf.ITimestamp|null);
+
+ /** GitRepositoryLink labels. */
+ public labels: { [k: string]: string };
+
+ /** GitRepositoryLink etag. */
+ public etag: string;
+
+ /** GitRepositoryLink reconciling. */
+ public reconciling: boolean;
+
+ /** GitRepositoryLink annotations. */
+ public annotations: { [k: string]: string };
+
+ /** GitRepositoryLink uid. */
+ public uid: string;
+
+ /**
+ * Creates a new GitRepositoryLink instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GitRepositoryLink instance
+ */
+ public static create(properties?: google.cloud.developerconnect.v1.IGitRepositoryLink): google.cloud.developerconnect.v1.GitRepositoryLink;
+
+ /**
+ * Encodes the specified GitRepositoryLink message. Does not implicitly {@link google.cloud.developerconnect.v1.GitRepositoryLink.verify|verify} messages.
+ * @param message GitRepositoryLink message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.developerconnect.v1.IGitRepositoryLink, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GitRepositoryLink message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.GitRepositoryLink.verify|verify} messages.
+ * @param message GitRepositoryLink message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.developerconnect.v1.IGitRepositoryLink, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GitRepositoryLink message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GitRepositoryLink
+ * @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.cloud.developerconnect.v1.GitRepositoryLink;
+
+ /**
+ * Decodes a GitRepositoryLink message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GitRepositoryLink
+ * @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.cloud.developerconnect.v1.GitRepositoryLink;
+
+ /**
+ * Verifies a GitRepositoryLink 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 GitRepositoryLink message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GitRepositoryLink
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.developerconnect.v1.GitRepositoryLink;
+
+ /**
+ * Creates a plain object from a GitRepositoryLink message. Also converts values to other types if specified.
+ * @param message GitRepositoryLink
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.developerconnect.v1.GitRepositoryLink, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GitRepositoryLink to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GitRepositoryLink
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateGitRepositoryLinkRequest. */
+ interface ICreateGitRepositoryLinkRequest {
+
+ /** CreateGitRepositoryLinkRequest parent */
+ parent?: (string|null);
+
+ /** CreateGitRepositoryLinkRequest gitRepositoryLink */
+ gitRepositoryLink?: (google.cloud.developerconnect.v1.IGitRepositoryLink|null);
+
+ /** CreateGitRepositoryLinkRequest gitRepositoryLinkId */
+ gitRepositoryLinkId?: (string|null);
+
+ /** CreateGitRepositoryLinkRequest requestId */
+ requestId?: (string|null);
+
+ /** CreateGitRepositoryLinkRequest validateOnly */
+ validateOnly?: (boolean|null);
+ }
+
+ /** Represents a CreateGitRepositoryLinkRequest. */
+ class CreateGitRepositoryLinkRequest implements ICreateGitRepositoryLinkRequest {
+
+ /**
+ * Constructs a new CreateGitRepositoryLinkRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.developerconnect.v1.ICreateGitRepositoryLinkRequest);
+
+ /** CreateGitRepositoryLinkRequest parent. */
+ public parent: string;
+
+ /** CreateGitRepositoryLinkRequest gitRepositoryLink. */
+ public gitRepositoryLink?: (google.cloud.developerconnect.v1.IGitRepositoryLink|null);
+
+ /** CreateGitRepositoryLinkRequest gitRepositoryLinkId. */
+ public gitRepositoryLinkId: string;
+
+ /** CreateGitRepositoryLinkRequest requestId. */
+ public requestId: string;
+
+ /** CreateGitRepositoryLinkRequest validateOnly. */
+ public validateOnly: boolean;
+
+ /**
+ * Creates a new CreateGitRepositoryLinkRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateGitRepositoryLinkRequest instance
+ */
+ public static create(properties?: google.cloud.developerconnect.v1.ICreateGitRepositoryLinkRequest): google.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest;
+
+ /**
+ * Encodes the specified CreateGitRepositoryLinkRequest message. Does not implicitly {@link google.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest.verify|verify} messages.
+ * @param message CreateGitRepositoryLinkRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.developerconnect.v1.ICreateGitRepositoryLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateGitRepositoryLinkRequest message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest.verify|verify} messages.
+ * @param message CreateGitRepositoryLinkRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.developerconnect.v1.ICreateGitRepositoryLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateGitRepositoryLinkRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateGitRepositoryLinkRequest
+ * @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.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest;
+
+ /**
+ * Decodes a CreateGitRepositoryLinkRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateGitRepositoryLinkRequest
+ * @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.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest;
+
+ /**
+ * Verifies a CreateGitRepositoryLinkRequest 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 CreateGitRepositoryLinkRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateGitRepositoryLinkRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest;
+
+ /**
+ * Creates a plain object from a CreateGitRepositoryLinkRequest message. Also converts values to other types if specified.
+ * @param message CreateGitRepositoryLinkRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateGitRepositoryLinkRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateGitRepositoryLinkRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteGitRepositoryLinkRequest. */
+ interface IDeleteGitRepositoryLinkRequest {
+
+ /** DeleteGitRepositoryLinkRequest name */
+ name?: (string|null);
+
+ /** DeleteGitRepositoryLinkRequest requestId */
+ requestId?: (string|null);
+
+ /** DeleteGitRepositoryLinkRequest validateOnly */
+ validateOnly?: (boolean|null);
+
+ /** DeleteGitRepositoryLinkRequest etag */
+ etag?: (string|null);
+ }
+
+ /** Represents a DeleteGitRepositoryLinkRequest. */
+ class DeleteGitRepositoryLinkRequest implements IDeleteGitRepositoryLinkRequest {
+
+ /**
+ * Constructs a new DeleteGitRepositoryLinkRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.developerconnect.v1.IDeleteGitRepositoryLinkRequest);
+
+ /** DeleteGitRepositoryLinkRequest name. */
+ public name: string;
+
+ /** DeleteGitRepositoryLinkRequest requestId. */
+ public requestId: string;
+
+ /** DeleteGitRepositoryLinkRequest validateOnly. */
+ public validateOnly: boolean;
+
+ /** DeleteGitRepositoryLinkRequest etag. */
+ public etag: string;
+
+ /**
+ * Creates a new DeleteGitRepositoryLinkRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteGitRepositoryLinkRequest instance
+ */
+ public static create(properties?: google.cloud.developerconnect.v1.IDeleteGitRepositoryLinkRequest): google.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest;
+
+ /**
+ * Encodes the specified DeleteGitRepositoryLinkRequest message. Does not implicitly {@link google.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest.verify|verify} messages.
+ * @param message DeleteGitRepositoryLinkRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.developerconnect.v1.IDeleteGitRepositoryLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteGitRepositoryLinkRequest message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest.verify|verify} messages.
+ * @param message DeleteGitRepositoryLinkRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.developerconnect.v1.IDeleteGitRepositoryLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteGitRepositoryLinkRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteGitRepositoryLinkRequest
+ * @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.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest;
+
+ /**
+ * Decodes a DeleteGitRepositoryLinkRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteGitRepositoryLinkRequest
+ * @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.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest;
+
+ /**
+ * Verifies a DeleteGitRepositoryLinkRequest 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 DeleteGitRepositoryLinkRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteGitRepositoryLinkRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest;
+
+ /**
+ * Creates a plain object from a DeleteGitRepositoryLinkRequest message. Also converts values to other types if specified.
+ * @param message DeleteGitRepositoryLinkRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteGitRepositoryLinkRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteGitRepositoryLinkRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListGitRepositoryLinksRequest. */
+ interface IListGitRepositoryLinksRequest {
+
+ /** ListGitRepositoryLinksRequest parent */
+ parent?: (string|null);
+
+ /** ListGitRepositoryLinksRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListGitRepositoryLinksRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListGitRepositoryLinksRequest filter */
+ filter?: (string|null);
+
+ /** ListGitRepositoryLinksRequest orderBy */
+ orderBy?: (string|null);
+ }
+
+ /** Represents a ListGitRepositoryLinksRequest. */
+ class ListGitRepositoryLinksRequest implements IListGitRepositoryLinksRequest {
+
+ /**
+ * Constructs a new ListGitRepositoryLinksRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.developerconnect.v1.IListGitRepositoryLinksRequest);
+
+ /** ListGitRepositoryLinksRequest parent. */
+ public parent: string;
+
+ /** ListGitRepositoryLinksRequest pageSize. */
+ public pageSize: number;
+
+ /** ListGitRepositoryLinksRequest pageToken. */
+ public pageToken: string;
+
+ /** ListGitRepositoryLinksRequest filter. */
+ public filter: string;
+
+ /** ListGitRepositoryLinksRequest orderBy. */
+ public orderBy: string;
+
+ /**
+ * Creates a new ListGitRepositoryLinksRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListGitRepositoryLinksRequest instance
+ */
+ public static create(properties?: google.cloud.developerconnect.v1.IListGitRepositoryLinksRequest): google.cloud.developerconnect.v1.ListGitRepositoryLinksRequest;
+
+ /**
+ * Encodes the specified ListGitRepositoryLinksRequest message. Does not implicitly {@link google.cloud.developerconnect.v1.ListGitRepositoryLinksRequest.verify|verify} messages.
+ * @param message ListGitRepositoryLinksRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.developerconnect.v1.IListGitRepositoryLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListGitRepositoryLinksRequest message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.ListGitRepositoryLinksRequest.verify|verify} messages.
+ * @param message ListGitRepositoryLinksRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.developerconnect.v1.IListGitRepositoryLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListGitRepositoryLinksRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListGitRepositoryLinksRequest
+ * @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.cloud.developerconnect.v1.ListGitRepositoryLinksRequest;
+
+ /**
+ * Decodes a ListGitRepositoryLinksRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListGitRepositoryLinksRequest
+ * @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.cloud.developerconnect.v1.ListGitRepositoryLinksRequest;
+
+ /**
+ * Verifies a ListGitRepositoryLinksRequest 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 ListGitRepositoryLinksRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListGitRepositoryLinksRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.developerconnect.v1.ListGitRepositoryLinksRequest;
+
+ /**
+ * Creates a plain object from a ListGitRepositoryLinksRequest message. Also converts values to other types if specified.
+ * @param message ListGitRepositoryLinksRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.developerconnect.v1.ListGitRepositoryLinksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListGitRepositoryLinksRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListGitRepositoryLinksRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListGitRepositoryLinksResponse. */
+ interface IListGitRepositoryLinksResponse {
+
+ /** ListGitRepositoryLinksResponse gitRepositoryLinks */
+ gitRepositoryLinks?: (google.cloud.developerconnect.v1.IGitRepositoryLink[]|null);
+
+ /** ListGitRepositoryLinksResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListGitRepositoryLinksResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListGitRepositoryLinksResponse. */
+ class ListGitRepositoryLinksResponse implements IListGitRepositoryLinksResponse {
+
+ /**
+ * Constructs a new ListGitRepositoryLinksResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.developerconnect.v1.IListGitRepositoryLinksResponse);
+
+ /** ListGitRepositoryLinksResponse gitRepositoryLinks. */
+ public gitRepositoryLinks: google.cloud.developerconnect.v1.IGitRepositoryLink[];
+
+ /** ListGitRepositoryLinksResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListGitRepositoryLinksResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListGitRepositoryLinksResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListGitRepositoryLinksResponse instance
+ */
+ public static create(properties?: google.cloud.developerconnect.v1.IListGitRepositoryLinksResponse): google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse;
+
+ /**
+ * Encodes the specified ListGitRepositoryLinksResponse message. Does not implicitly {@link google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse.verify|verify} messages.
+ * @param message ListGitRepositoryLinksResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.developerconnect.v1.IListGitRepositoryLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListGitRepositoryLinksResponse message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse.verify|verify} messages.
+ * @param message ListGitRepositoryLinksResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.developerconnect.v1.IListGitRepositoryLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListGitRepositoryLinksResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListGitRepositoryLinksResponse
+ * @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.cloud.developerconnect.v1.ListGitRepositoryLinksResponse;
+
+ /**
+ * Decodes a ListGitRepositoryLinksResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListGitRepositoryLinksResponse
+ * @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.cloud.developerconnect.v1.ListGitRepositoryLinksResponse;
+
+ /**
+ * Verifies a ListGitRepositoryLinksResponse 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 ListGitRepositoryLinksResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListGitRepositoryLinksResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse;
+
+ /**
+ * Creates a plain object from a ListGitRepositoryLinksResponse message. Also converts values to other types if specified.
+ * @param message ListGitRepositoryLinksResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListGitRepositoryLinksResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListGitRepositoryLinksResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetGitRepositoryLinkRequest. */
+ interface IGetGitRepositoryLinkRequest {
+
+ /** GetGitRepositoryLinkRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetGitRepositoryLinkRequest. */
+ class GetGitRepositoryLinkRequest implements IGetGitRepositoryLinkRequest {
+
+ /**
+ * Constructs a new GetGitRepositoryLinkRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.developerconnect.v1.IGetGitRepositoryLinkRequest);
+
+ /** GetGitRepositoryLinkRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetGitRepositoryLinkRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetGitRepositoryLinkRequest instance
+ */
+ public static create(properties?: google.cloud.developerconnect.v1.IGetGitRepositoryLinkRequest): google.cloud.developerconnect.v1.GetGitRepositoryLinkRequest;
+
+ /**
+ * Encodes the specified GetGitRepositoryLinkRequest message. Does not implicitly {@link google.cloud.developerconnect.v1.GetGitRepositoryLinkRequest.verify|verify} messages.
+ * @param message GetGitRepositoryLinkRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.developerconnect.v1.IGetGitRepositoryLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetGitRepositoryLinkRequest message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.GetGitRepositoryLinkRequest.verify|verify} messages.
+ * @param message GetGitRepositoryLinkRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.developerconnect.v1.IGetGitRepositoryLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetGitRepositoryLinkRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetGitRepositoryLinkRequest
+ * @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.cloud.developerconnect.v1.GetGitRepositoryLinkRequest;
+
+ /**
+ * Decodes a GetGitRepositoryLinkRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetGitRepositoryLinkRequest
+ * @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.cloud.developerconnect.v1.GetGitRepositoryLinkRequest;
+
+ /**
+ * Verifies a GetGitRepositoryLinkRequest 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 GetGitRepositoryLinkRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetGitRepositoryLinkRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.developerconnect.v1.GetGitRepositoryLinkRequest;
+
+ /**
+ * Creates a plain object from a GetGitRepositoryLinkRequest message. Also converts values to other types if specified.
+ * @param message GetGitRepositoryLinkRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.developerconnect.v1.GetGitRepositoryLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetGitRepositoryLinkRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetGitRepositoryLinkRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FetchReadWriteTokenRequest. */
+ interface IFetchReadWriteTokenRequest {
+
+ /** FetchReadWriteTokenRequest gitRepositoryLink */
+ gitRepositoryLink?: (string|null);
+ }
+
+ /** Represents a FetchReadWriteTokenRequest. */
+ class FetchReadWriteTokenRequest implements IFetchReadWriteTokenRequest {
+
+ /**
+ * Constructs a new FetchReadWriteTokenRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.developerconnect.v1.IFetchReadWriteTokenRequest);
+
+ /** FetchReadWriteTokenRequest gitRepositoryLink. */
+ public gitRepositoryLink: string;
+
+ /**
+ * Creates a new FetchReadWriteTokenRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FetchReadWriteTokenRequest instance
+ */
+ public static create(properties?: google.cloud.developerconnect.v1.IFetchReadWriteTokenRequest): google.cloud.developerconnect.v1.FetchReadWriteTokenRequest;
+
+ /**
+ * Encodes the specified FetchReadWriteTokenRequest message. Does not implicitly {@link google.cloud.developerconnect.v1.FetchReadWriteTokenRequest.verify|verify} messages.
+ * @param message FetchReadWriteTokenRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.developerconnect.v1.IFetchReadWriteTokenRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FetchReadWriteTokenRequest message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.FetchReadWriteTokenRequest.verify|verify} messages.
+ * @param message FetchReadWriteTokenRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.developerconnect.v1.IFetchReadWriteTokenRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FetchReadWriteTokenRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FetchReadWriteTokenRequest
+ * @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.cloud.developerconnect.v1.FetchReadWriteTokenRequest;
+
+ /**
+ * Decodes a FetchReadWriteTokenRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FetchReadWriteTokenRequest
+ * @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.cloud.developerconnect.v1.FetchReadWriteTokenRequest;
+
+ /**
+ * Verifies a FetchReadWriteTokenRequest 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 FetchReadWriteTokenRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FetchReadWriteTokenRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.developerconnect.v1.FetchReadWriteTokenRequest;
+
+ /**
+ * Creates a plain object from a FetchReadWriteTokenRequest message. Also converts values to other types if specified.
+ * @param message FetchReadWriteTokenRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.developerconnect.v1.FetchReadWriteTokenRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FetchReadWriteTokenRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FetchReadWriteTokenRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FetchReadTokenRequest. */
+ interface IFetchReadTokenRequest {
+
+ /** FetchReadTokenRequest gitRepositoryLink */
+ gitRepositoryLink?: (string|null);
+ }
+
+ /** Represents a FetchReadTokenRequest. */
+ class FetchReadTokenRequest implements IFetchReadTokenRequest {
+
+ /**
+ * Constructs a new FetchReadTokenRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.developerconnect.v1.IFetchReadTokenRequest);
+
+ /** FetchReadTokenRequest gitRepositoryLink. */
+ public gitRepositoryLink: string;
+
+ /**
+ * Creates a new FetchReadTokenRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FetchReadTokenRequest instance
+ */
+ public static create(properties?: google.cloud.developerconnect.v1.IFetchReadTokenRequest): google.cloud.developerconnect.v1.FetchReadTokenRequest;
+
+ /**
+ * Encodes the specified FetchReadTokenRequest message. Does not implicitly {@link google.cloud.developerconnect.v1.FetchReadTokenRequest.verify|verify} messages.
+ * @param message FetchReadTokenRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.developerconnect.v1.IFetchReadTokenRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FetchReadTokenRequest message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.FetchReadTokenRequest.verify|verify} messages.
+ * @param message FetchReadTokenRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.developerconnect.v1.IFetchReadTokenRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FetchReadTokenRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FetchReadTokenRequest
+ * @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.cloud.developerconnect.v1.FetchReadTokenRequest;
+
+ /**
+ * Decodes a FetchReadTokenRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FetchReadTokenRequest
+ * @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.cloud.developerconnect.v1.FetchReadTokenRequest;
+
+ /**
+ * Verifies a FetchReadTokenRequest 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 FetchReadTokenRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FetchReadTokenRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.developerconnect.v1.FetchReadTokenRequest;
+
+ /**
+ * Creates a plain object from a FetchReadTokenRequest message. Also converts values to other types if specified.
+ * @param message FetchReadTokenRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.developerconnect.v1.FetchReadTokenRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FetchReadTokenRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FetchReadTokenRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FetchReadTokenResponse. */
+ interface IFetchReadTokenResponse {
+
+ /** FetchReadTokenResponse token */
+ token?: (string|null);
+
+ /** FetchReadTokenResponse expirationTime */
+ expirationTime?: (google.protobuf.ITimestamp|null);
+
+ /** FetchReadTokenResponse gitUsername */
+ gitUsername?: (string|null);
+ }
+
+ /** Represents a FetchReadTokenResponse. */
+ class FetchReadTokenResponse implements IFetchReadTokenResponse {
+
+ /**
+ * Constructs a new FetchReadTokenResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.developerconnect.v1.IFetchReadTokenResponse);
+
+ /** FetchReadTokenResponse token. */
+ public token: string;
+
+ /** FetchReadTokenResponse expirationTime. */
+ public expirationTime?: (google.protobuf.ITimestamp|null);
+
+ /** FetchReadTokenResponse gitUsername. */
+ public gitUsername: string;
+
+ /**
+ * Creates a new FetchReadTokenResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FetchReadTokenResponse instance
+ */
+ public static create(properties?: google.cloud.developerconnect.v1.IFetchReadTokenResponse): google.cloud.developerconnect.v1.FetchReadTokenResponse;
+
+ /**
+ * Encodes the specified FetchReadTokenResponse message. Does not implicitly {@link google.cloud.developerconnect.v1.FetchReadTokenResponse.verify|verify} messages.
+ * @param message FetchReadTokenResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.developerconnect.v1.IFetchReadTokenResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FetchReadTokenResponse message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.FetchReadTokenResponse.verify|verify} messages.
+ * @param message FetchReadTokenResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.developerconnect.v1.IFetchReadTokenResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FetchReadTokenResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FetchReadTokenResponse
+ * @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.cloud.developerconnect.v1.FetchReadTokenResponse;
+
+ /**
+ * Decodes a FetchReadTokenResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FetchReadTokenResponse
+ * @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.cloud.developerconnect.v1.FetchReadTokenResponse;
+
+ /**
+ * Verifies a FetchReadTokenResponse 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 FetchReadTokenResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FetchReadTokenResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.developerconnect.v1.FetchReadTokenResponse;
+
+ /**
+ * Creates a plain object from a FetchReadTokenResponse message. Also converts values to other types if specified.
+ * @param message FetchReadTokenResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.developerconnect.v1.FetchReadTokenResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FetchReadTokenResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FetchReadTokenResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FetchReadWriteTokenResponse. */
+ interface IFetchReadWriteTokenResponse {
+
+ /** FetchReadWriteTokenResponse token */
+ token?: (string|null);
+
+ /** FetchReadWriteTokenResponse expirationTime */
+ expirationTime?: (google.protobuf.ITimestamp|null);
+
+ /** FetchReadWriteTokenResponse gitUsername */
+ gitUsername?: (string|null);
+ }
+
+ /** Represents a FetchReadWriteTokenResponse. */
+ class FetchReadWriteTokenResponse implements IFetchReadWriteTokenResponse {
+
+ /**
+ * Constructs a new FetchReadWriteTokenResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.developerconnect.v1.IFetchReadWriteTokenResponse);
+
+ /** FetchReadWriteTokenResponse token. */
+ public token: string;
+
+ /** FetchReadWriteTokenResponse expirationTime. */
+ public expirationTime?: (google.protobuf.ITimestamp|null);
+
+ /** FetchReadWriteTokenResponse gitUsername. */
+ public gitUsername: string;
+
+ /**
+ * Creates a new FetchReadWriteTokenResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FetchReadWriteTokenResponse instance
+ */
+ public static create(properties?: google.cloud.developerconnect.v1.IFetchReadWriteTokenResponse): google.cloud.developerconnect.v1.FetchReadWriteTokenResponse;
+
+ /**
+ * Encodes the specified FetchReadWriteTokenResponse message. Does not implicitly {@link google.cloud.developerconnect.v1.FetchReadWriteTokenResponse.verify|verify} messages.
+ * @param message FetchReadWriteTokenResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.developerconnect.v1.IFetchReadWriteTokenResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FetchReadWriteTokenResponse message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.FetchReadWriteTokenResponse.verify|verify} messages.
+ * @param message FetchReadWriteTokenResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.developerconnect.v1.IFetchReadWriteTokenResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FetchReadWriteTokenResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FetchReadWriteTokenResponse
+ * @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.cloud.developerconnect.v1.FetchReadWriteTokenResponse;
+
+ /**
+ * Decodes a FetchReadWriteTokenResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FetchReadWriteTokenResponse
+ * @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.cloud.developerconnect.v1.FetchReadWriteTokenResponse;
+
+ /**
+ * Verifies a FetchReadWriteTokenResponse 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 FetchReadWriteTokenResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FetchReadWriteTokenResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.developerconnect.v1.FetchReadWriteTokenResponse;
+
+ /**
+ * Creates a plain object from a FetchReadWriteTokenResponse message. Also converts values to other types if specified.
+ * @param message FetchReadWriteTokenResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.developerconnect.v1.FetchReadWriteTokenResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FetchReadWriteTokenResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FetchReadWriteTokenResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FetchLinkableGitRepositoriesRequest. */
+ interface IFetchLinkableGitRepositoriesRequest {
+
+ /** FetchLinkableGitRepositoriesRequest connection */
+ connection?: (string|null);
+
+ /** FetchLinkableGitRepositoriesRequest pageSize */
+ pageSize?: (number|null);
+
+ /** FetchLinkableGitRepositoriesRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a FetchLinkableGitRepositoriesRequest. */
+ class FetchLinkableGitRepositoriesRequest implements IFetchLinkableGitRepositoriesRequest {
+
+ /**
+ * Constructs a new FetchLinkableGitRepositoriesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.developerconnect.v1.IFetchLinkableGitRepositoriesRequest);
+
+ /** FetchLinkableGitRepositoriesRequest connection. */
+ public connection: string;
+
+ /** FetchLinkableGitRepositoriesRequest pageSize. */
+ public pageSize: number;
+
+ /** FetchLinkableGitRepositoriesRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new FetchLinkableGitRepositoriesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FetchLinkableGitRepositoriesRequest instance
+ */
+ public static create(properties?: google.cloud.developerconnect.v1.IFetchLinkableGitRepositoriesRequest): google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest;
+
+ /**
+ * Encodes the specified FetchLinkableGitRepositoriesRequest message. Does not implicitly {@link google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest.verify|verify} messages.
+ * @param message FetchLinkableGitRepositoriesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.developerconnect.v1.IFetchLinkableGitRepositoriesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FetchLinkableGitRepositoriesRequest message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest.verify|verify} messages.
+ * @param message FetchLinkableGitRepositoriesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.developerconnect.v1.IFetchLinkableGitRepositoriesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FetchLinkableGitRepositoriesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FetchLinkableGitRepositoriesRequest
+ * @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.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest;
+
+ /**
+ * Decodes a FetchLinkableGitRepositoriesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FetchLinkableGitRepositoriesRequest
+ * @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.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest;
+
+ /**
+ * Verifies a FetchLinkableGitRepositoriesRequest 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 FetchLinkableGitRepositoriesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FetchLinkableGitRepositoriesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest;
+
+ /**
+ * Creates a plain object from a FetchLinkableGitRepositoriesRequest message. Also converts values to other types if specified.
+ * @param message FetchLinkableGitRepositoriesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FetchLinkableGitRepositoriesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FetchLinkableGitRepositoriesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FetchLinkableGitRepositoriesResponse. */
+ interface IFetchLinkableGitRepositoriesResponse {
+
+ /** FetchLinkableGitRepositoriesResponse linkableGitRepositories */
+ linkableGitRepositories?: (google.cloud.developerconnect.v1.ILinkableGitRepository[]|null);
+
+ /** FetchLinkableGitRepositoriesResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a FetchLinkableGitRepositoriesResponse. */
+ class FetchLinkableGitRepositoriesResponse implements IFetchLinkableGitRepositoriesResponse {
+
+ /**
+ * Constructs a new FetchLinkableGitRepositoriesResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.developerconnect.v1.IFetchLinkableGitRepositoriesResponse);
+
+ /** FetchLinkableGitRepositoriesResponse linkableGitRepositories. */
+ public linkableGitRepositories: google.cloud.developerconnect.v1.ILinkableGitRepository[];
+
+ /** FetchLinkableGitRepositoriesResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new FetchLinkableGitRepositoriesResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FetchLinkableGitRepositoriesResponse instance
+ */
+ public static create(properties?: google.cloud.developerconnect.v1.IFetchLinkableGitRepositoriesResponse): google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse;
+
+ /**
+ * Encodes the specified FetchLinkableGitRepositoriesResponse message. Does not implicitly {@link google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse.verify|verify} messages.
+ * @param message FetchLinkableGitRepositoriesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.developerconnect.v1.IFetchLinkableGitRepositoriesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FetchLinkableGitRepositoriesResponse message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse.verify|verify} messages.
+ * @param message FetchLinkableGitRepositoriesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.developerconnect.v1.IFetchLinkableGitRepositoriesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FetchLinkableGitRepositoriesResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FetchLinkableGitRepositoriesResponse
+ * @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.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse;
+
+ /**
+ * Decodes a FetchLinkableGitRepositoriesResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FetchLinkableGitRepositoriesResponse
+ * @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.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse;
+
+ /**
+ * Verifies a FetchLinkableGitRepositoriesResponse 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 FetchLinkableGitRepositoriesResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FetchLinkableGitRepositoriesResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse;
+
+ /**
+ * Creates a plain object from a FetchLinkableGitRepositoriesResponse message. Also converts values to other types if specified.
+ * @param message FetchLinkableGitRepositoriesResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FetchLinkableGitRepositoriesResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FetchLinkableGitRepositoriesResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a LinkableGitRepository. */
+ interface ILinkableGitRepository {
+
+ /** LinkableGitRepository cloneUri */
+ cloneUri?: (string|null);
+ }
+
+ /** Represents a LinkableGitRepository. */
+ class LinkableGitRepository implements ILinkableGitRepository {
+
+ /**
+ * Constructs a new LinkableGitRepository.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.developerconnect.v1.ILinkableGitRepository);
+
+ /** LinkableGitRepository cloneUri. */
+ public cloneUri: string;
+
+ /**
+ * Creates a new LinkableGitRepository instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LinkableGitRepository instance
+ */
+ public static create(properties?: google.cloud.developerconnect.v1.ILinkableGitRepository): google.cloud.developerconnect.v1.LinkableGitRepository;
+
+ /**
+ * Encodes the specified LinkableGitRepository message. Does not implicitly {@link google.cloud.developerconnect.v1.LinkableGitRepository.verify|verify} messages.
+ * @param message LinkableGitRepository message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.developerconnect.v1.ILinkableGitRepository, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LinkableGitRepository message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.LinkableGitRepository.verify|verify} messages.
+ * @param message LinkableGitRepository message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.developerconnect.v1.ILinkableGitRepository, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LinkableGitRepository message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LinkableGitRepository
+ * @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.cloud.developerconnect.v1.LinkableGitRepository;
+
+ /**
+ * Decodes a LinkableGitRepository message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LinkableGitRepository
+ * @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.cloud.developerconnect.v1.LinkableGitRepository;
+
+ /**
+ * Verifies a LinkableGitRepository 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 LinkableGitRepository message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LinkableGitRepository
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.developerconnect.v1.LinkableGitRepository;
+
+ /**
+ * Creates a plain object from a LinkableGitRepository message. Also converts values to other types if specified.
+ * @param message LinkableGitRepository
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.developerconnect.v1.LinkableGitRepository, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LinkableGitRepository to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LinkableGitRepository
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FetchGitHubInstallationsRequest. */
+ interface IFetchGitHubInstallationsRequest {
+
+ /** FetchGitHubInstallationsRequest connection */
+ connection?: (string|null);
+ }
+
+ /** Represents a FetchGitHubInstallationsRequest. */
+ class FetchGitHubInstallationsRequest implements IFetchGitHubInstallationsRequest {
+
+ /**
+ * Constructs a new FetchGitHubInstallationsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.developerconnect.v1.IFetchGitHubInstallationsRequest);
+
+ /** FetchGitHubInstallationsRequest connection. */
+ public connection: string;
+
+ /**
+ * Creates a new FetchGitHubInstallationsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FetchGitHubInstallationsRequest instance
+ */
+ public static create(properties?: google.cloud.developerconnect.v1.IFetchGitHubInstallationsRequest): google.cloud.developerconnect.v1.FetchGitHubInstallationsRequest;
+
+ /**
+ * Encodes the specified FetchGitHubInstallationsRequest message. Does not implicitly {@link google.cloud.developerconnect.v1.FetchGitHubInstallationsRequest.verify|verify} messages.
+ * @param message FetchGitHubInstallationsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.developerconnect.v1.IFetchGitHubInstallationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FetchGitHubInstallationsRequest message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.FetchGitHubInstallationsRequest.verify|verify} messages.
+ * @param message FetchGitHubInstallationsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.developerconnect.v1.IFetchGitHubInstallationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FetchGitHubInstallationsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FetchGitHubInstallationsRequest
+ * @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.cloud.developerconnect.v1.FetchGitHubInstallationsRequest;
+
+ /**
+ * Decodes a FetchGitHubInstallationsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FetchGitHubInstallationsRequest
+ * @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.cloud.developerconnect.v1.FetchGitHubInstallationsRequest;
+
+ /**
+ * Verifies a FetchGitHubInstallationsRequest 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 FetchGitHubInstallationsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FetchGitHubInstallationsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.developerconnect.v1.FetchGitHubInstallationsRequest;
+
+ /**
+ * Creates a plain object from a FetchGitHubInstallationsRequest message. Also converts values to other types if specified.
+ * @param message FetchGitHubInstallationsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.developerconnect.v1.FetchGitHubInstallationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FetchGitHubInstallationsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FetchGitHubInstallationsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FetchGitHubInstallationsResponse. */
+ interface IFetchGitHubInstallationsResponse {
+
+ /** FetchGitHubInstallationsResponse installations */
+ installations?: (google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.IInstallation[]|null);
+ }
+
+ /** Represents a FetchGitHubInstallationsResponse. */
+ class FetchGitHubInstallationsResponse implements IFetchGitHubInstallationsResponse {
+
+ /**
+ * Constructs a new FetchGitHubInstallationsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.developerconnect.v1.IFetchGitHubInstallationsResponse);
+
+ /** FetchGitHubInstallationsResponse installations. */
+ public installations: google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.IInstallation[];
+
+ /**
+ * Creates a new FetchGitHubInstallationsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FetchGitHubInstallationsResponse instance
+ */
+ public static create(properties?: google.cloud.developerconnect.v1.IFetchGitHubInstallationsResponse): google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse;
+
+ /**
+ * Encodes the specified FetchGitHubInstallationsResponse message. Does not implicitly {@link google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.verify|verify} messages.
+ * @param message FetchGitHubInstallationsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.developerconnect.v1.IFetchGitHubInstallationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FetchGitHubInstallationsResponse message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.verify|verify} messages.
+ * @param message FetchGitHubInstallationsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.developerconnect.v1.IFetchGitHubInstallationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FetchGitHubInstallationsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FetchGitHubInstallationsResponse
+ * @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.cloud.developerconnect.v1.FetchGitHubInstallationsResponse;
+
+ /**
+ * Decodes a FetchGitHubInstallationsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FetchGitHubInstallationsResponse
+ * @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.cloud.developerconnect.v1.FetchGitHubInstallationsResponse;
+
+ /**
+ * Verifies a FetchGitHubInstallationsResponse 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 FetchGitHubInstallationsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FetchGitHubInstallationsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse;
+
+ /**
+ * Creates a plain object from a FetchGitHubInstallationsResponse message. Also converts values to other types if specified.
+ * @param message FetchGitHubInstallationsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FetchGitHubInstallationsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FetchGitHubInstallationsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FetchGitHubInstallationsResponse {
+
+ /** Properties of an Installation. */
+ interface IInstallation {
+
+ /** Installation id */
+ id?: (number|Long|string|null);
+
+ /** Installation name */
+ name?: (string|null);
+
+ /** Installation type */
+ type?: (string|null);
+ }
+
+ /** Represents an Installation. */
+ class Installation implements IInstallation {
+
+ /**
+ * Constructs a new Installation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.IInstallation);
+
+ /** Installation id. */
+ public id: (number|Long|string);
+
+ /** Installation name. */
+ public name: string;
+
+ /** Installation type. */
+ public type: string;
+
+ /**
+ * Creates a new Installation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Installation instance
+ */
+ public static create(properties?: google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.IInstallation): google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation;
+
+ /**
+ * Encodes the specified Installation message. Does not implicitly {@link google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation.verify|verify} messages.
+ * @param message Installation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.IInstallation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Installation message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation.verify|verify} messages.
+ * @param message Installation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.IInstallation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Installation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Installation
+ * @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.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation;
+
+ /**
+ * Decodes an Installation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Installation
+ * @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.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation;
+
+ /**
+ * Verifies an Installation 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 Installation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Installation
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation;
+
+ /**
+ * Creates a plain object from an Installation message. Also converts values to other types if specified.
+ * @param message Installation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Installation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Installation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a FetchGitRefsRequest. */
+ interface IFetchGitRefsRequest {
+
+ /** FetchGitRefsRequest gitRepositoryLink */
+ gitRepositoryLink?: (string|null);
+
+ /** FetchGitRefsRequest refType */
+ refType?: (google.cloud.developerconnect.v1.FetchGitRefsRequest.RefType|keyof typeof google.cloud.developerconnect.v1.FetchGitRefsRequest.RefType|null);
+
+ /** FetchGitRefsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** FetchGitRefsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a FetchGitRefsRequest. */
+ class FetchGitRefsRequest implements IFetchGitRefsRequest {
+
+ /**
+ * Constructs a new FetchGitRefsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.developerconnect.v1.IFetchGitRefsRequest);
+
+ /** FetchGitRefsRequest gitRepositoryLink. */
+ public gitRepositoryLink: string;
+
+ /** FetchGitRefsRequest refType. */
+ public refType: (google.cloud.developerconnect.v1.FetchGitRefsRequest.RefType|keyof typeof google.cloud.developerconnect.v1.FetchGitRefsRequest.RefType);
+
+ /** FetchGitRefsRequest pageSize. */
+ public pageSize: number;
+
+ /** FetchGitRefsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new FetchGitRefsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FetchGitRefsRequest instance
+ */
+ public static create(properties?: google.cloud.developerconnect.v1.IFetchGitRefsRequest): google.cloud.developerconnect.v1.FetchGitRefsRequest;
+
+ /**
+ * Encodes the specified FetchGitRefsRequest message. Does not implicitly {@link google.cloud.developerconnect.v1.FetchGitRefsRequest.verify|verify} messages.
+ * @param message FetchGitRefsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.developerconnect.v1.IFetchGitRefsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FetchGitRefsRequest message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.FetchGitRefsRequest.verify|verify} messages.
+ * @param message FetchGitRefsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.developerconnect.v1.IFetchGitRefsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FetchGitRefsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FetchGitRefsRequest
+ * @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.cloud.developerconnect.v1.FetchGitRefsRequest;
+
+ /**
+ * Decodes a FetchGitRefsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FetchGitRefsRequest
+ * @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.cloud.developerconnect.v1.FetchGitRefsRequest;
+
+ /**
+ * Verifies a FetchGitRefsRequest 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 FetchGitRefsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FetchGitRefsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.developerconnect.v1.FetchGitRefsRequest;
+
+ /**
+ * Creates a plain object from a FetchGitRefsRequest message. Also converts values to other types if specified.
+ * @param message FetchGitRefsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.developerconnect.v1.FetchGitRefsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FetchGitRefsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FetchGitRefsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FetchGitRefsRequest {
+
+ /** RefType enum. */
+ enum RefType {
+ REF_TYPE_UNSPECIFIED = 0,
+ TAG = 1,
+ BRANCH = 2
+ }
+ }
+
+ /** Properties of a FetchGitRefsResponse. */
+ interface IFetchGitRefsResponse {
+
+ /** FetchGitRefsResponse refNames */
+ refNames?: (string[]|null);
+
+ /** FetchGitRefsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a FetchGitRefsResponse. */
+ class FetchGitRefsResponse implements IFetchGitRefsResponse {
+
+ /**
+ * Constructs a new FetchGitRefsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.developerconnect.v1.IFetchGitRefsResponse);
+
+ /** FetchGitRefsResponse refNames. */
+ public refNames: string[];
+
+ /** FetchGitRefsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new FetchGitRefsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FetchGitRefsResponse instance
+ */
+ public static create(properties?: google.cloud.developerconnect.v1.IFetchGitRefsResponse): google.cloud.developerconnect.v1.FetchGitRefsResponse;
+
+ /**
+ * Encodes the specified FetchGitRefsResponse message. Does not implicitly {@link google.cloud.developerconnect.v1.FetchGitRefsResponse.verify|verify} messages.
+ * @param message FetchGitRefsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.developerconnect.v1.IFetchGitRefsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FetchGitRefsResponse message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.FetchGitRefsResponse.verify|verify} messages.
+ * @param message FetchGitRefsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.developerconnect.v1.IFetchGitRefsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FetchGitRefsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FetchGitRefsResponse
+ * @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.cloud.developerconnect.v1.FetchGitRefsResponse;
+
+ /**
+ * Decodes a FetchGitRefsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FetchGitRefsResponse
+ * @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.cloud.developerconnect.v1.FetchGitRefsResponse;
+
+ /**
+ * Verifies a FetchGitRefsResponse 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 FetchGitRefsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FetchGitRefsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.developerconnect.v1.FetchGitRefsResponse;
+
+ /**
+ * Creates a plain object from a FetchGitRefsResponse message. Also converts values to other types if specified.
+ * @param message FetchGitRefsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.developerconnect.v1.FetchGitRefsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FetchGitRefsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FetchGitRefsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+ }
+ }
+
+ /** Namespace api. */
+ namespace api {
+
+ /** Properties of a Http. */
+ interface IHttp {
+
+ /** Http rules */
+ rules?: (google.api.IHttpRule[]|null);
+
+ /** Http fullyDecodeReservedExpansion */
+ fullyDecodeReservedExpansion?: (boolean|null);
+ }
+
+ /** Represents a Http. */
+ class Http implements IHttp {
+
+ /**
+ * Constructs a new Http.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttp);
+
+ /** Http rules. */
+ public rules: google.api.IHttpRule[];
+
+ /** Http fullyDecodeReservedExpansion. */
+ public fullyDecodeReservedExpansion: boolean;
+
+ /**
+ * Creates a new Http instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Http instance
+ */
+ public static create(properties?: google.api.IHttp): google.api.Http;
+
+ /**
+ * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Http
+ * @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.Http;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Http
+ * @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.Http;
+
+ /**
+ * Verifies a Http 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 Http message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Http
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Http;
+
+ /**
+ * Creates a plain object from a Http message. Also converts values to other types if specified.
+ * @param message Http
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Http to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Http
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a HttpRule. */
+ interface IHttpRule {
+
+ /** HttpRule selector */
+ selector?: (string|null);
+
+ /** HttpRule get */
+ get?: (string|null);
+
+ /** HttpRule put */
+ put?: (string|null);
+
+ /** HttpRule post */
+ post?: (string|null);
+
+ /** HttpRule delete */
+ "delete"?: (string|null);
+
+ /** HttpRule patch */
+ patch?: (string|null);
+
+ /** HttpRule custom */
+ custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body */
+ body?: (string|null);
+
+ /** HttpRule responseBody */
+ responseBody?: (string|null);
+
+ /** HttpRule additionalBindings */
+ additionalBindings?: (google.api.IHttpRule[]|null);
+ }
+
+ /** Represents a HttpRule. */
+ class HttpRule implements IHttpRule {
+
+ /**
+ * Constructs a new HttpRule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttpRule);
+
+ /** HttpRule selector. */
+ public selector: string;
+
+ /** HttpRule get. */
+ public get?: (string|null);
+
+ /** HttpRule put. */
+ public put?: (string|null);
+
+ /** HttpRule post. */
+ public post?: (string|null);
+
+ /** HttpRule delete. */
+ public delete?: (string|null);
+
+ /** HttpRule patch. */
+ public patch?: (string|null);
+
+ /** HttpRule custom. */
+ public custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body. */
+ public body: string;
+
+ /** HttpRule responseBody. */
+ public responseBody: string;
+
+ /** HttpRule additionalBindings. */
+ public additionalBindings: google.api.IHttpRule[];
+
+ /** HttpRule pattern. */
+ public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom");
+
+ /**
+ * Creates a new HttpRule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HttpRule instance
+ */
+ public static create(properties?: google.api.IHttpRule): google.api.HttpRule;
+
+ /**
+ * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HttpRule
+ * @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.HttpRule;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HttpRule
+ * @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.HttpRule;
+
+ /**
+ * Verifies a HttpRule 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 HttpRule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HttpRule
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.HttpRule;
+
+ /**
+ * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
+ * @param message HttpRule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HttpRule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HttpRule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CustomHttpPattern. */
+ interface ICustomHttpPattern {
+
+ /** CustomHttpPattern kind */
+ kind?: (string|null);
+
+ /** CustomHttpPattern path */
+ path?: (string|null);
+ }
+
+ /** Represents a CustomHttpPattern. */
+ class CustomHttpPattern implements ICustomHttpPattern {
+
+ /**
+ * Constructs a new CustomHttpPattern.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICustomHttpPattern);
+
+ /** CustomHttpPattern kind. */
+ public kind: string;
+
+ /** CustomHttpPattern path. */
+ public path: string;
+
+ /**
+ * Creates a new CustomHttpPattern instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CustomHttpPattern instance
+ */
+ public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern;
+
+ /**
+ * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CustomHttpPattern
+ * @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.CustomHttpPattern;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CustomHttpPattern
+ * @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.CustomHttpPattern;
+
+ /**
+ * Verifies a CustomHttpPattern 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 CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CustomHttpPattern
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern;
+
+ /**
+ * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
+ * @param message CustomHttpPattern
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CustomHttpPattern to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CustomHttpPattern
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CommonLanguageSettings. */
+ interface ICommonLanguageSettings {
+
+ /** CommonLanguageSettings referenceDocsUri */
+ referenceDocsUri?: (string|null);
+
+ /** CommonLanguageSettings destinations */
+ destinations?: (google.api.ClientLibraryDestination[]|null);
+ }
+
+ /** Represents a CommonLanguageSettings. */
+ class CommonLanguageSettings implements ICommonLanguageSettings {
+
+ /**
+ * Constructs a new CommonLanguageSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICommonLanguageSettings);
+
+ /** CommonLanguageSettings referenceDocsUri. */
+ public referenceDocsUri: string;
+
+ /** CommonLanguageSettings destinations. */
+ public destinations: google.api.ClientLibraryDestination[];
+
+ /**
+ * Creates a new CommonLanguageSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CommonLanguageSettings instance
+ */
+ public static create(properties?: google.api.ICommonLanguageSettings): google.api.CommonLanguageSettings;
+
+ /**
+ * Encodes the specified CommonLanguageSettings message. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
+ * @param message CommonLanguageSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICommonLanguageSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CommonLanguageSettings message, length delimited. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
+ * @param message CommonLanguageSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICommonLanguageSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CommonLanguageSettings
+ * @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.CommonLanguageSettings;
+
+ /**
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CommonLanguageSettings
+ * @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.CommonLanguageSettings;
+
+ /**
+ * Verifies a CommonLanguageSettings 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 CommonLanguageSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CommonLanguageSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CommonLanguageSettings;
+
+ /**
+ * Creates a plain object from a CommonLanguageSettings message. Also converts values to other types if specified.
+ * @param message CommonLanguageSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CommonLanguageSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CommonLanguageSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CommonLanguageSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ClientLibrarySettings. */
+ interface IClientLibrarySettings {
+
+ /** ClientLibrarySettings version */
+ version?: (string|null);
+
+ /** ClientLibrarySettings launchStage */
+ launchStage?: (google.api.LaunchStage|keyof typeof google.api.LaunchStage|null);
+
+ /** ClientLibrarySettings restNumericEnums */
+ restNumericEnums?: (boolean|null);
+
+ /** ClientLibrarySettings javaSettings */
+ javaSettings?: (google.api.IJavaSettings|null);
+
+ /** ClientLibrarySettings cppSettings */
+ cppSettings?: (google.api.ICppSettings|null);
+
+ /** ClientLibrarySettings phpSettings */
+ phpSettings?: (google.api.IPhpSettings|null);
+
+ /** ClientLibrarySettings pythonSettings */
+ pythonSettings?: (google.api.IPythonSettings|null);
+
+ /** ClientLibrarySettings nodeSettings */
+ nodeSettings?: (google.api.INodeSettings|null);
+
+ /** ClientLibrarySettings dotnetSettings */
+ dotnetSettings?: (google.api.IDotnetSettings|null);
+
+ /** ClientLibrarySettings rubySettings */
+ rubySettings?: (google.api.IRubySettings|null);
+
+ /** ClientLibrarySettings goSettings */
+ goSettings?: (google.api.IGoSettings|null);
+ }
+
+ /** Represents a ClientLibrarySettings. */
+ class ClientLibrarySettings implements IClientLibrarySettings {
+
+ /**
+ * Constructs a new ClientLibrarySettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IClientLibrarySettings);
+
+ /** ClientLibrarySettings version. */
+ public version: string;
+
+ /** ClientLibrarySettings launchStage. */
+ public launchStage: (google.api.LaunchStage|keyof typeof google.api.LaunchStage);
+
+ /** ClientLibrarySettings restNumericEnums. */
+ public restNumericEnums: boolean;
+
+ /** ClientLibrarySettings javaSettings. */
+ public javaSettings?: (google.api.IJavaSettings|null);
+
+ /** ClientLibrarySettings cppSettings. */
+ public cppSettings?: (google.api.ICppSettings|null);
+
+ /** ClientLibrarySettings phpSettings. */
+ public phpSettings?: (google.api.IPhpSettings|null);
+
+ /** ClientLibrarySettings pythonSettings. */
+ public pythonSettings?: (google.api.IPythonSettings|null);
+
+ /** ClientLibrarySettings nodeSettings. */
+ public nodeSettings?: (google.api.INodeSettings|null);
+
+ /** ClientLibrarySettings dotnetSettings. */
+ public dotnetSettings?: (google.api.IDotnetSettings|null);
+
+ /** ClientLibrarySettings rubySettings. */
+ public rubySettings?: (google.api.IRubySettings|null);
+
+ /** ClientLibrarySettings goSettings. */
+ public goSettings?: (google.api.IGoSettings|null);
+
+ /**
+ * Creates a new ClientLibrarySettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ClientLibrarySettings instance
+ */
+ public static create(properties?: google.api.IClientLibrarySettings): google.api.ClientLibrarySettings;
+
+ /**
+ * Encodes the specified ClientLibrarySettings message. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
+ * @param message ClientLibrarySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IClientLibrarySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ClientLibrarySettings message, length delimited. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
+ * @param message ClientLibrarySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IClientLibrarySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ClientLibrarySettings
+ * @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.ClientLibrarySettings;
+
+ /**
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ClientLibrarySettings
+ * @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.ClientLibrarySettings;
+
+ /**
+ * Verifies a ClientLibrarySettings 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 ClientLibrarySettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ClientLibrarySettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ClientLibrarySettings;
+
+ /**
+ * Creates a plain object from a ClientLibrarySettings message. Also converts values to other types if specified.
+ * @param message ClientLibrarySettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ClientLibrarySettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ClientLibrarySettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ClientLibrarySettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Publishing. */
+ interface IPublishing {
+
+ /** Publishing methodSettings */
+ methodSettings?: (google.api.IMethodSettings[]|null);
+
+ /** Publishing newIssueUri */
+ newIssueUri?: (string|null);
+
+ /** Publishing documentationUri */
+ documentationUri?: (string|null);
+
+ /** Publishing apiShortName */
+ apiShortName?: (string|null);
+
+ /** Publishing githubLabel */
+ githubLabel?: (string|null);
+
+ /** Publishing codeownerGithubTeams */
+ codeownerGithubTeams?: (string[]|null);
+
+ /** Publishing docTagPrefix */
+ docTagPrefix?: (string|null);
+
+ /** Publishing organization */
+ organization?: (google.api.ClientLibraryOrganization|keyof typeof google.api.ClientLibraryOrganization|null);
+
+ /** Publishing librarySettings */
+ librarySettings?: (google.api.IClientLibrarySettings[]|null);
+
+ /** Publishing protoReferenceDocumentationUri */
+ protoReferenceDocumentationUri?: (string|null);
+ }
+
+ /** Represents a Publishing. */
+ class Publishing implements IPublishing {
+
+ /**
+ * Constructs a new Publishing.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPublishing);
+
+ /** Publishing methodSettings. */
+ public methodSettings: google.api.IMethodSettings[];
+
+ /** Publishing newIssueUri. */
+ public newIssueUri: string;
+
+ /** Publishing documentationUri. */
+ public documentationUri: string;
+
+ /** Publishing apiShortName. */
+ public apiShortName: string;
+
+ /** Publishing githubLabel. */
+ public githubLabel: string;
+
+ /** Publishing codeownerGithubTeams. */
+ public codeownerGithubTeams: string[];
+
+ /** Publishing docTagPrefix. */
+ public docTagPrefix: string;
+
+ /** Publishing organization. */
+ public organization: (google.api.ClientLibraryOrganization|keyof typeof google.api.ClientLibraryOrganization);
+
+ /** 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
+ * @returns Publishing instance
+ */
+ public static create(properties?: google.api.IPublishing): google.api.Publishing;
+
+ /**
+ * Encodes the specified Publishing message. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
+ * @param message Publishing message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IPublishing, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Publishing message, length delimited. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
+ * @param message Publishing message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IPublishing, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Publishing message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Publishing
+ * @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.Publishing;
+
+ /**
+ * Decodes a Publishing message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Publishing
+ * @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.Publishing;
+
+ /**
+ * Verifies a Publishing 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 Publishing message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Publishing
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Publishing;
+
+ /**
+ * Creates a plain object from a Publishing message. Also converts values to other types if specified.
+ * @param message Publishing
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Publishing, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Publishing to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Publishing
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a JavaSettings. */
+ interface IJavaSettings {
+
+ /** JavaSettings libraryPackage */
+ libraryPackage?: (string|null);
+
+ /** JavaSettings serviceClassNames */
+ serviceClassNames?: ({ [k: string]: string }|null);
+
+ /** JavaSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a JavaSettings. */
+ class JavaSettings implements IJavaSettings {
+
+ /**
+ * Constructs a new JavaSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IJavaSettings);
+
+ /** JavaSettings libraryPackage. */
+ public libraryPackage: string;
+
+ /** JavaSettings serviceClassNames. */
+ public serviceClassNames: { [k: string]: string };
+
+ /** JavaSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new JavaSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns JavaSettings instance
+ */
+ public static create(properties?: google.api.IJavaSettings): google.api.JavaSettings;
+
+ /**
+ * Encodes the specified JavaSettings message. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
+ * @param message JavaSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IJavaSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified JavaSettings message, length delimited. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
+ * @param message JavaSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IJavaSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a JavaSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns JavaSettings
+ * @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.JavaSettings;
+
+ /**
+ * Decodes a JavaSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns JavaSettings
+ * @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.JavaSettings;
+
+ /**
+ * Verifies a JavaSettings 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 JavaSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns JavaSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.JavaSettings;
+
+ /**
+ * Creates a plain object from a JavaSettings message. Also converts values to other types if specified.
+ * @param message JavaSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.JavaSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this JavaSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for JavaSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CppSettings. */
+ interface ICppSettings {
+
+ /** CppSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a CppSettings. */
+ class CppSettings implements ICppSettings {
+
+ /**
+ * Constructs a new CppSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICppSettings);
+
+ /** CppSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new CppSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CppSettings instance
+ */
+ public static create(properties?: google.api.ICppSettings): google.api.CppSettings;
+
+ /**
+ * Encodes the specified CppSettings message. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
+ * @param message CppSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICppSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CppSettings message, length delimited. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
+ * @param message CppSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICppSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CppSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CppSettings
+ * @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.CppSettings;
+
+ /**
+ * Decodes a CppSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CppSettings
+ * @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.CppSettings;
+
+ /**
+ * Verifies a CppSettings 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 CppSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CppSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CppSettings;
+
+ /**
+ * Creates a plain object from a CppSettings message. Also converts values to other types if specified.
+ * @param message CppSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CppSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CppSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CppSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PhpSettings. */
+ interface IPhpSettings {
+
+ /** PhpSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a PhpSettings. */
+ class PhpSettings implements IPhpSettings {
+
+ /**
+ * Constructs a new PhpSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPhpSettings);
+
+ /** PhpSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new PhpSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PhpSettings instance
+ */
+ public static create(properties?: google.api.IPhpSettings): google.api.PhpSettings;
+
+ /**
+ * Encodes the specified PhpSettings message. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
+ * @param message PhpSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IPhpSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PhpSettings message, length delimited. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
+ * @param message PhpSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IPhpSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PhpSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PhpSettings
+ * @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.PhpSettings;
+
+ /**
+ * Decodes a PhpSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PhpSettings
+ * @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.PhpSettings;
+
+ /**
+ * Verifies a PhpSettings 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 PhpSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PhpSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.PhpSettings;
+
+ /**
+ * Creates a plain object from a PhpSettings message. Also converts values to other types if specified.
+ * @param message PhpSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.PhpSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PhpSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PhpSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PythonSettings. */
+ interface IPythonSettings {
+
+ /** PythonSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a PythonSettings. */
+ class PythonSettings implements IPythonSettings {
+
+ /**
+ * Constructs a new PythonSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPythonSettings);
+
+ /** PythonSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new PythonSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PythonSettings instance
+ */
+ public static create(properties?: google.api.IPythonSettings): google.api.PythonSettings;
+
+ /**
+ * Encodes the specified PythonSettings message. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
+ * @param message PythonSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IPythonSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PythonSettings message, length delimited. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
+ * @param message PythonSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IPythonSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PythonSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PythonSettings
+ * @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.PythonSettings;
+
+ /**
+ * Decodes a PythonSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PythonSettings
+ * @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.PythonSettings;
+
+ /**
+ * Verifies a PythonSettings 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 PythonSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PythonSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.PythonSettings;
+
+ /**
+ * Creates a plain object from a PythonSettings message. Also converts values to other types if specified.
+ * @param message PythonSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.PythonSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PythonSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PythonSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a NodeSettings. */
+ interface INodeSettings {
+
+ /** NodeSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a NodeSettings. */
+ class NodeSettings implements INodeSettings {
+
+ /**
+ * Constructs a new NodeSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.INodeSettings);
+
+ /** NodeSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new NodeSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NodeSettings instance
+ */
+ public static create(properties?: google.api.INodeSettings): google.api.NodeSettings;
+
+ /**
+ * Encodes the specified NodeSettings message. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
+ * @param message NodeSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.INodeSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NodeSettings message, length delimited. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
+ * @param message NodeSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.INodeSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NodeSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NodeSettings
+ * @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.NodeSettings;
+
+ /**
+ * Decodes a NodeSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NodeSettings
+ * @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.NodeSettings;
+
+ /**
+ * Verifies a NodeSettings 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 NodeSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NodeSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.NodeSettings;
+
+ /**
+ * Creates a plain object from a NodeSettings message. Also converts values to other types if specified.
+ * @param message NodeSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.NodeSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NodeSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NodeSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DotnetSettings. */
+ interface IDotnetSettings {
+
+ /** 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. */
+ class DotnetSettings implements IDotnetSettings {
+
+ /**
+ * Constructs a new DotnetSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IDotnetSettings);
+
+ /** 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
+ * @returns DotnetSettings instance
+ */
+ public static create(properties?: google.api.IDotnetSettings): google.api.DotnetSettings;
+
+ /**
+ * Encodes the specified DotnetSettings message. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
+ * @param message DotnetSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IDotnetSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DotnetSettings message, length delimited. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
+ * @param message DotnetSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IDotnetSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DotnetSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DotnetSettings
+ * @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.DotnetSettings;
+
+ /**
+ * Decodes a DotnetSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DotnetSettings
+ * @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.DotnetSettings;
+
+ /**
+ * Verifies a DotnetSettings 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 DotnetSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DotnetSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.DotnetSettings;
+
+ /**
+ * Creates a plain object from a DotnetSettings message. Also converts values to other types if specified.
+ * @param message DotnetSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.DotnetSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DotnetSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DotnetSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RubySettings. */
+ interface IRubySettings {
+
+ /** RubySettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a RubySettings. */
+ class RubySettings implements IRubySettings {
+
+ /**
+ * Constructs a new RubySettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IRubySettings);
+
+ /** RubySettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new RubySettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RubySettings instance
+ */
+ public static create(properties?: google.api.IRubySettings): google.api.RubySettings;
+
+ /**
+ * Encodes the specified RubySettings message. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
+ * @param message RubySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IRubySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RubySettings message, length delimited. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
+ * @param message RubySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IRubySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RubySettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RubySettings
+ * @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.RubySettings;
+
+ /**
+ * Decodes a RubySettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RubySettings
+ * @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.RubySettings;
+
+ /**
+ * Verifies a RubySettings 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 RubySettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RubySettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.RubySettings;
+
+ /**
+ * Creates a plain object from a RubySettings message. Also converts values to other types if specified.
+ * @param message RubySettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.RubySettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RubySettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RubySettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GoSettings. */
+ interface IGoSettings {
+
+ /** GoSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a GoSettings. */
+ class GoSettings implements IGoSettings {
+
+ /**
+ * Constructs a new GoSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IGoSettings);
+
+ /** GoSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new GoSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GoSettings instance
+ */
+ public static create(properties?: google.api.IGoSettings): google.api.GoSettings;
+
+ /**
+ * Encodes the specified GoSettings message. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
+ * @param message GoSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IGoSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GoSettings message, length delimited. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
+ * @param message GoSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IGoSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GoSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GoSettings
+ * @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.GoSettings;
+
+ /**
+ * Decodes a GoSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GoSettings
+ * @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.GoSettings;
+
+ /**
+ * Verifies a GoSettings 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 GoSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GoSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.GoSettings;
+
+ /**
+ * Creates a plain object from a GoSettings message. Also converts values to other types if specified.
+ * @param message GoSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.GoSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GoSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GoSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodSettings. */
+ interface IMethodSettings {
+
+ /** MethodSettings selector */
+ selector?: (string|null);
+
+ /** MethodSettings longRunning */
+ longRunning?: (google.api.MethodSettings.ILongRunning|null);
+
+ /** MethodSettings autoPopulatedFields */
+ autoPopulatedFields?: (string[]|null);
+ }
+
+ /** Represents a MethodSettings. */
+ class MethodSettings implements IMethodSettings {
+
+ /**
+ * Constructs a new MethodSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IMethodSettings);
+
+ /** MethodSettings selector. */
+ public selector: string;
+
+ /** 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
+ * @returns MethodSettings instance
+ */
+ public static create(properties?: google.api.IMethodSettings): google.api.MethodSettings;
+
+ /**
+ * Encodes the specified MethodSettings message. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
+ * @param message MethodSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IMethodSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodSettings message, length delimited. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
+ * @param message MethodSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IMethodSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodSettings
+ * @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.MethodSettings;
+
+ /**
+ * Decodes a MethodSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodSettings
+ * @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.MethodSettings;
+
+ /**
+ * Verifies a MethodSettings 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 MethodSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.MethodSettings;
+
+ /**
+ * Creates a plain object from a MethodSettings message. Also converts values to other types if specified.
+ * @param message MethodSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.MethodSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MethodSettings {
+
+ /** Properties of a LongRunning. */
+ interface ILongRunning {
+
+ /** LongRunning initialPollDelay */
+ initialPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning pollDelayMultiplier */
+ pollDelayMultiplier?: (number|null);
+
+ /** LongRunning maxPollDelay */
+ maxPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning totalPollTimeout */
+ totalPollTimeout?: (google.protobuf.IDuration|null);
+ }
+
+ /** Represents a LongRunning. */
+ class LongRunning implements ILongRunning {
+
+ /**
+ * Constructs a new LongRunning.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.MethodSettings.ILongRunning);
+
+ /** LongRunning initialPollDelay. */
+ public initialPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning pollDelayMultiplier. */
+ public pollDelayMultiplier: number;
+
+ /** LongRunning maxPollDelay. */
+ public maxPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning totalPollTimeout. */
+ public totalPollTimeout?: (google.protobuf.IDuration|null);
+
+ /**
+ * Creates a new LongRunning instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LongRunning instance
+ */
+ public static create(properties?: google.api.MethodSettings.ILongRunning): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Encodes the specified LongRunning message. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
+ * @param message LongRunning message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.MethodSettings.ILongRunning, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LongRunning message, length delimited. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
+ * @param message LongRunning message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.MethodSettings.ILongRunning, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LongRunning message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LongRunning
+ * @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.MethodSettings.LongRunning;
+
+ /**
+ * Decodes a LongRunning message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LongRunning
+ * @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.MethodSettings.LongRunning;
+
+ /**
+ * Verifies a LongRunning 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 LongRunning message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LongRunning
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Creates a plain object from a LongRunning message. Also converts values to other types if specified.
+ * @param message LongRunning
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.MethodSettings.LongRunning, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LongRunning to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LongRunning
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** ClientLibraryOrganization enum. */
+ enum ClientLibraryOrganization {
+ CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0,
+ CLOUD = 1,
+ ADS = 2,
+ PHOTOS = 3,
+ STREET_VIEW = 4,
+ SHOPPING = 5,
+ GEO = 6,
+ GENERATIVE_AI = 7
+ }
+
+ /** ClientLibraryDestination enum. */
+ enum ClientLibraryDestination {
+ CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0,
+ GITHUB = 10,
+ PACKAGE_MANAGER = 20
+ }
+
+ /** LaunchStage enum. */
+ enum LaunchStage {
+ LAUNCH_STAGE_UNSPECIFIED = 0,
+ UNIMPLEMENTED = 6,
+ PRELAUNCH = 7,
+ EARLY_ACCESS = 1,
+ ALPHA = 2,
+ BETA = 3,
+ GA = 4,
+ DEPRECATED = 5
+ }
+
+ /** FieldBehavior enum. */
+ enum FieldBehavior {
+ FIELD_BEHAVIOR_UNSPECIFIED = 0,
+ OPTIONAL = 1,
+ REQUIRED = 2,
+ OUTPUT_ONLY = 3,
+ INPUT_ONLY = 4,
+ IMMUTABLE = 5,
+ UNORDERED_LIST = 6,
+ NON_EMPTY_DEFAULT = 7,
+ IDENTIFIER = 8
+ }
+
+ /** Properties of a FieldInfo. */
+ interface IFieldInfo {
+
+ /** FieldInfo format */
+ format?: (google.api.FieldInfo.Format|keyof typeof 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|keyof typeof 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. */
+ interface IResourceDescriptor {
+
+ /** ResourceDescriptor type */
+ type?: (string|null);
+
+ /** ResourceDescriptor pattern */
+ pattern?: (string[]|null);
+
+ /** ResourceDescriptor nameField */
+ nameField?: (string|null);
+
+ /** ResourceDescriptor history */
+ history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null);
+
+ /** ResourceDescriptor plural */
+ plural?: (string|null);
+
+ /** ResourceDescriptor singular */
+ singular?: (string|null);
+
+ /** ResourceDescriptor style */
+ style?: (google.api.ResourceDescriptor.Style[]|null);
+ }
+
+ /** Represents a ResourceDescriptor. */
+ class ResourceDescriptor implements IResourceDescriptor {
+
+ /**
+ * Constructs a new ResourceDescriptor.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceDescriptor);
+
+ /** ResourceDescriptor type. */
+ public type: string;
+
+ /** ResourceDescriptor pattern. */
+ public pattern: string[];
+
+ /** ResourceDescriptor nameField. */
+ public nameField: string;
+
+ /** ResourceDescriptor history. */
+ public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History);
+
+ /** ResourceDescriptor plural. */
+ public plural: string;
+
+ /** ResourceDescriptor singular. */
+ public singular: string;
+
+ /** ResourceDescriptor style. */
+ public style: google.api.ResourceDescriptor.Style[];
+
+ /**
+ * Creates a new ResourceDescriptor instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceDescriptor instance
+ */
+ public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor;
+
+ /**
+ * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @param message ResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @param message ResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceDescriptor
+ * @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.ResourceDescriptor;
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceDescriptor
+ * @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.ResourceDescriptor;
+
+ /**
+ * Verifies a ResourceDescriptor 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 ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceDescriptor
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor;
+
+ /**
+ * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.
+ * @param message ResourceDescriptor
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceDescriptor to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceDescriptor
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ResourceDescriptor {
+
+ /** History enum. */
+ enum History {
+ HISTORY_UNSPECIFIED = 0,
+ ORIGINALLY_SINGLE_PATTERN = 1,
+ FUTURE_MULTI_PATTERN = 2
+ }
+
+ /** Style enum. */
+ enum Style {
+ STYLE_UNSPECIFIED = 0,
+ DECLARATIVE_FRIENDLY = 1
+ }
+ }
+
+ /** Properties of a ResourceReference. */
+ interface IResourceReference {
+
+ /** ResourceReference type */
+ type?: (string|null);
+
+ /** ResourceReference childType */
+ childType?: (string|null);
+ }
+
+ /** Represents a ResourceReference. */
+ class ResourceReference implements IResourceReference {
+
+ /**
+ * Constructs a new ResourceReference.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceReference);
+
+ /** ResourceReference type. */
+ public type: string;
+
+ /** ResourceReference childType. */
+ public childType: string;
+
+ /**
+ * Creates a new ResourceReference instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceReference instance
+ */
+ public static create(properties?: google.api.IResourceReference): google.api.ResourceReference;
+
+ /**
+ * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @param message ResourceReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @param message ResourceReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceReference
+ * @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.ResourceReference;
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceReference
+ * @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.ResourceReference;
+
+ /**
+ * Verifies a ResourceReference 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 ResourceReference message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceReference
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceReference;
+
+ /**
+ * Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
+ * @param message ResourceReference
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceReference to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceReference
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace protobuf. */
+ namespace protobuf {
+
+ /** Properties of a FileDescriptorSet. */
+ interface IFileDescriptorSet {
+
+ /** FileDescriptorSet file */
+ file?: (google.protobuf.IFileDescriptorProto[]|null);
+ }
+
+ /** Represents a FileDescriptorSet. */
+ class FileDescriptorSet implements IFileDescriptorSet {
+
+ /**
+ * Constructs a new FileDescriptorSet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorSet);
+
+ /** FileDescriptorSet file. */
+ public file: google.protobuf.IFileDescriptorProto[];
+
+ /**
+ * Creates a new FileDescriptorSet instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileDescriptorSet instance
+ */
+ public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileDescriptorSet
+ * @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.FileDescriptorSet;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileDescriptorSet
+ * @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.FileDescriptorSet;
+
+ /**
+ * Verifies a FileDescriptorSet 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 FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileDescriptorSet
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
+ * @param message FileDescriptorSet
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileDescriptorSet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileDescriptorSet
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ 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 {
+
+ /** FileDescriptorProto name */
+ name?: (string|null);
+
+ /** FileDescriptorProto package */
+ "package"?: (string|null);
+
+ /** FileDescriptorProto dependency */
+ dependency?: (string[]|null);
+
+ /** FileDescriptorProto publicDependency */
+ publicDependency?: (number[]|null);
+
+ /** FileDescriptorProto weakDependency */
+ weakDependency?: (number[]|null);
+
+ /** FileDescriptorProto messageType */
+ messageType?: (google.protobuf.IDescriptorProto[]|null);
+
+ /** FileDescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
+
+ /** FileDescriptorProto service */
+ service?: (google.protobuf.IServiceDescriptorProto[]|null);
+
+ /** FileDescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** FileDescriptorProto options */
+ options?: (google.protobuf.IFileOptions|null);
+
+ /** FileDescriptorProto sourceCodeInfo */
+ sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
+
+ /** FileDescriptorProto syntax */
+ syntax?: (string|null);
+
+ /** FileDescriptorProto edition */
+ edition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+ }
+
+ /** Represents a FileDescriptorProto. */
+ class FileDescriptorProto implements IFileDescriptorProto {
+
+ /**
+ * Constructs a new FileDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorProto);
+
+ /** FileDescriptorProto name. */
+ public name: string;
+
+ /** FileDescriptorProto package. */
+ public package: string;
+
+ /** FileDescriptorProto dependency. */
+ public dependency: string[];
+
+ /** FileDescriptorProto publicDependency. */
+ public publicDependency: number[];
+
+ /** FileDescriptorProto weakDependency. */
+ public weakDependency: number[];
+
+ /** FileDescriptorProto messageType. */
+ public messageType: google.protobuf.IDescriptorProto[];
+
+ /** FileDescriptorProto enumType. */
+ public enumType: google.protobuf.IEnumDescriptorProto[];
+
+ /** FileDescriptorProto service. */
+ public service: google.protobuf.IServiceDescriptorProto[];
+
+ /** FileDescriptorProto extension. */
+ public extension: google.protobuf.IFieldDescriptorProto[];
+
+ /** FileDescriptorProto options. */
+ public options?: (google.protobuf.IFileOptions|null);
+
+ /** FileDescriptorProto sourceCodeInfo. */
+ public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
+
+ /** FileDescriptorProto syntax. */
+ public syntax: string;
+
+ /** FileDescriptorProto edition. */
+ public edition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /**
+ * Creates a new FileDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @param message FileDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @param message FileDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileDescriptorProto
+ * @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.FileDescriptorProto;
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileDescriptorProto
+ * @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.FileDescriptorProto;
+
+ /**
+ * Verifies a FileDescriptorProto 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 FileDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified.
+ * @param message FileDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DescriptorProto. */
+ interface IDescriptorProto {
+
+ /** DescriptorProto name */
+ name?: (string|null);
+
+ /** DescriptorProto field */
+ field?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** DescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** DescriptorProto nestedType */
+ nestedType?: (google.protobuf.IDescriptorProto[]|null);
+
+ /** DescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
+
+ /** DescriptorProto extensionRange */
+ extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null);
+
+ /** DescriptorProto oneofDecl */
+ oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null);
+
+ /** DescriptorProto options */
+ options?: (google.protobuf.IMessageOptions|null);
+
+ /** DescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null);
+
+ /** DescriptorProto reservedName */
+ reservedName?: (string[]|null);
+ }
+
+ /** Represents a DescriptorProto. */
+ class DescriptorProto implements IDescriptorProto {
+
+ /**
+ * Constructs a new DescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDescriptorProto);
+
+ /** DescriptorProto name. */
+ public name: string;
+
+ /** DescriptorProto field. */
+ public field: google.protobuf.IFieldDescriptorProto[];
+
+ /** DescriptorProto extension. */
+ public extension: google.protobuf.IFieldDescriptorProto[];
+
+ /** DescriptorProto nestedType. */
+ public nestedType: google.protobuf.IDescriptorProto[];
+
+ /** DescriptorProto enumType. */
+ public enumType: google.protobuf.IEnumDescriptorProto[];
+
+ /** DescriptorProto extensionRange. */
+ public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[];
+
+ /** DescriptorProto oneofDecl. */
+ public oneofDecl: google.protobuf.IOneofDescriptorProto[];
+
+ /** DescriptorProto options. */
+ public options?: (google.protobuf.IMessageOptions|null);
+
+ /** DescriptorProto reservedRange. */
+ public reservedRange: google.protobuf.DescriptorProto.IReservedRange[];
+
+ /** DescriptorProto reservedName. */
+ public reservedName: string[];
+
+ /**
+ * Creates a new DescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto;
+
+ /**
+ * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @param message DescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @param message DescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DescriptorProto
+ * @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.DescriptorProto;
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DescriptorProto
+ * @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.DescriptorProto;
+
+ /**
+ * Verifies a DescriptorProto 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 DescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto;
+
+ /**
+ * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified.
+ * @param message DescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DescriptorProto {
+
+ /** Properties of an ExtensionRange. */
+ interface IExtensionRange {
+
+ /** ExtensionRange start */
+ start?: (number|null);
+
+ /** ExtensionRange end */
+ end?: (number|null);
+
+ /** ExtensionRange options */
+ options?: (google.protobuf.IExtensionRangeOptions|null);
+ }
+
+ /** Represents an ExtensionRange. */
+ class ExtensionRange implements IExtensionRange {
+
+ /**
+ * Constructs a new ExtensionRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange);
+
+ /** ExtensionRange start. */
+ public start: number;
+
+ /** ExtensionRange end. */
+ public end: number;
+
+ /** ExtensionRange options. */
+ public options?: (google.protobuf.IExtensionRangeOptions|null);
+
+ /**
+ * Creates a new ExtensionRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExtensionRange instance
+ */
+ public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @param message ExtensionRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @param message ExtensionRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtensionRange
+ * @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.DescriptorProto.ExtensionRange;
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExtensionRange
+ * @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.DescriptorProto.ExtensionRange;
+
+ /**
+ * Verifies an ExtensionRange 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 ExtensionRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExtensionRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified.
+ * @param message ExtensionRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExtensionRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExtensionRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ReservedRange. */
+ interface IReservedRange {
+
+ /** ReservedRange start */
+ start?: (number|null);
+
+ /** ReservedRange end */
+ end?: (number|null);
+ }
+
+ /** Represents a ReservedRange. */
+ class ReservedRange implements IReservedRange {
+
+ /**
+ * Constructs a new ReservedRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.DescriptorProto.IReservedRange);
+
+ /** ReservedRange start. */
+ public start: number;
+
+ /** ReservedRange end. */
+ public end: number;
+
+ /**
+ * Creates a new ReservedRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReservedRange instance
+ */
+ public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @param message ReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @param message ReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReservedRange
+ * @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.DescriptorProto.ReservedRange;
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReservedRange
+ * @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.DescriptorProto.ReservedRange;
+
+ /**
+ * Verifies a ReservedRange 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 ReservedRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReservedRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Creates a plain object from a ReservedRange message. Also converts values to other types if specified.
+ * @param message ReservedRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReservedRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReservedRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an ExtensionRangeOptions. */
+ interface IExtensionRangeOptions {
+
+ /** 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|keyof typeof google.protobuf.ExtensionRangeOptions.VerificationState|null);
+ }
+
+ /** Represents an ExtensionRangeOptions. */
+ class ExtensionRangeOptions implements IExtensionRangeOptions {
+
+ /**
+ * Constructs a new ExtensionRangeOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IExtensionRangeOptions);
+
+ /** 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|keyof typeof google.protobuf.ExtensionRangeOptions.VerificationState);
+
+ /**
+ * Creates a new ExtensionRangeOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExtensionRangeOptions instance
+ */
+ public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
+ * @param message ExtensionRangeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
+ * @param message ExtensionRangeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtensionRangeOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtensionRangeOptions
+ * @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;
+
+ /**
+ * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExtensionRangeOptions
+ * @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;
+
+ /**
+ * Verifies an ExtensionRangeOptions 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 ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExtensionRangeOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified.
+ * @param message ExtensionRangeOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExtensionRangeOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExtensionRangeOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ 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 {
+
+ /** FieldDescriptorProto name */
+ name?: (string|null);
+
+ /** FieldDescriptorProto number */
+ number?: (number|null);
+
+ /** FieldDescriptorProto label */
+ label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null);
+
+ /** FieldDescriptorProto type */
+ type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null);
+
+ /** FieldDescriptorProto typeName */
+ typeName?: (string|null);
+
+ /** FieldDescriptorProto extendee */
+ extendee?: (string|null);
+
+ /** FieldDescriptorProto defaultValue */
+ defaultValue?: (string|null);
+
+ /** FieldDescriptorProto oneofIndex */
+ oneofIndex?: (number|null);
+
+ /** FieldDescriptorProto jsonName */
+ jsonName?: (string|null);
+
+ /** FieldDescriptorProto options */
+ options?: (google.protobuf.IFieldOptions|null);
+
+ /** FieldDescriptorProto proto3Optional */
+ proto3Optional?: (boolean|null);
+ }
+
+ /** Represents a FieldDescriptorProto. */
+ class FieldDescriptorProto implements IFieldDescriptorProto {
+
+ /**
+ * Constructs a new FieldDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldDescriptorProto);
+
+ /** FieldDescriptorProto name. */
+ public name: string;
+
+ /** FieldDescriptorProto number. */
+ public number: number;
+
+ /** FieldDescriptorProto label. */
+ public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label);
+
+ /** FieldDescriptorProto type. */
+ public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type);
+
+ /** FieldDescriptorProto typeName. */
+ public typeName: string;
+
+ /** FieldDescriptorProto extendee. */
+ public extendee: string;
+
+ /** FieldDescriptorProto defaultValue. */
+ public defaultValue: string;
+
+ /** FieldDescriptorProto oneofIndex. */
+ public oneofIndex: number;
+
+ /** FieldDescriptorProto jsonName. */
+ public jsonName: string;
+
+ /** FieldDescriptorProto options. */
+ public options?: (google.protobuf.IFieldOptions|null);
+
+ /** FieldDescriptorProto proto3Optional. */
+ public proto3Optional: boolean;
+
+ /**
+ * Creates a new FieldDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
+ * @param message FieldDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
+ * @param message FieldDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldDescriptorProto
+ * @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.FieldDescriptorProto;
+
+ /**
+ * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldDescriptorProto
+ * @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.FieldDescriptorProto;
+
+ /**
+ * Verifies a FieldDescriptorProto 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 FieldDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified.
+ * @param message FieldDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldDescriptorProto {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_DOUBLE = 1,
+ TYPE_FLOAT = 2,
+ TYPE_INT64 = 3,
+ TYPE_UINT64 = 4,
+ TYPE_INT32 = 5,
+ TYPE_FIXED64 = 6,
+ TYPE_FIXED32 = 7,
+ TYPE_BOOL = 8,
+ TYPE_STRING = 9,
+ TYPE_GROUP = 10,
+ TYPE_MESSAGE = 11,
+ TYPE_BYTES = 12,
+ TYPE_UINT32 = 13,
+ TYPE_ENUM = 14,
+ TYPE_SFIXED32 = 15,
+ TYPE_SFIXED64 = 16,
+ TYPE_SINT32 = 17,
+ TYPE_SINT64 = 18
+ }
+
+ /** Label enum. */
+ enum Label {
+ LABEL_OPTIONAL = 1,
+ LABEL_REPEATED = 3,
+ LABEL_REQUIRED = 2
+ }
+ }
+
+ /** Properties of an OneofDescriptorProto. */
+ interface IOneofDescriptorProto {
+
+ /** OneofDescriptorProto name */
+ name?: (string|null);
+
+ /** OneofDescriptorProto options */
+ options?: (google.protobuf.IOneofOptions|null);
+ }
+
+ /** Represents an OneofDescriptorProto. */
+ class OneofDescriptorProto implements IOneofDescriptorProto {
+
+ /**
+ * Constructs a new OneofDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofDescriptorProto);
+
+ /** OneofDescriptorProto name. */
+ public name: string;
+
+ /** OneofDescriptorProto options. */
+ public options?: (google.protobuf.IOneofOptions|null);
+
+ /**
+ * Creates a new OneofDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneofDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
+ * @param message OneofDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
+ * @param message OneofDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneofDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneofDescriptorProto
+ * @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.OneofDescriptorProto;
+
+ /**
+ * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneofDescriptorProto
+ * @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.OneofDescriptorProto;
+
+ /**
+ * Verifies an OneofDescriptorProto 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 OneofDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneofDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified.
+ * @param message OneofDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneofDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneofDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumDescriptorProto. */
+ interface IEnumDescriptorProto {
+
+ /** EnumDescriptorProto name */
+ name?: (string|null);
+
+ /** EnumDescriptorProto value */
+ value?: (google.protobuf.IEnumValueDescriptorProto[]|null);
+
+ /** EnumDescriptorProto options */
+ options?: (google.protobuf.IEnumOptions|null);
+
+ /** EnumDescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null);
+
+ /** EnumDescriptorProto reservedName */
+ reservedName?: (string[]|null);
+ }
+
+ /** Represents an EnumDescriptorProto. */
+ class EnumDescriptorProto implements IEnumDescriptorProto {
+
+ /**
+ * Constructs a new EnumDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumDescriptorProto);
+
+ /** EnumDescriptorProto name. */
+ public name: string;
+
+ /** EnumDescriptorProto value. */
+ public value: google.protobuf.IEnumValueDescriptorProto[];
+
+ /** EnumDescriptorProto options. */
+ public options?: (google.protobuf.IEnumOptions|null);
+
+ /** EnumDescriptorProto reservedRange. */
+ public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[];
+
+ /** EnumDescriptorProto reservedName. */
+ public reservedName: string[];
+
+ /**
+ * Creates a new EnumDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
+ * @param message EnumDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
+ * @param message EnumDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumDescriptorProto
+ * @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.EnumDescriptorProto;
+
+ /**
+ * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumDescriptorProto
+ * @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.EnumDescriptorProto;
+
+ /**
+ * Verifies an EnumDescriptorProto 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 EnumDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified.
+ * @param message EnumDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace EnumDescriptorProto {
+
+ /** Properties of an EnumReservedRange. */
+ interface IEnumReservedRange {
+
+ /** EnumReservedRange start */
+ start?: (number|null);
+
+ /** EnumReservedRange end */
+ end?: (number|null);
+ }
+
+ /** Represents an EnumReservedRange. */
+ class EnumReservedRange implements IEnumReservedRange {
+
+ /**
+ * Constructs a new EnumReservedRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange);
+
+ /** EnumReservedRange start. */
+ public start: number;
+
+ /** EnumReservedRange end. */
+ public end: number;
+
+ /**
+ * Creates a new EnumReservedRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumReservedRange instance
+ */
+ public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
+ * @param message EnumReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
+ * @param message EnumReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumReservedRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumReservedRange
+ * @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.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumReservedRange
+ * @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.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Verifies an EnumReservedRange 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 EnumReservedRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumReservedRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified.
+ * @param message EnumReservedRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumReservedRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumReservedRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an EnumValueDescriptorProto. */
+ interface IEnumValueDescriptorProto {
+
+ /** EnumValueDescriptorProto name */
+ name?: (string|null);
+
+ /** EnumValueDescriptorProto number */
+ number?: (number|null);
+
+ /** EnumValueDescriptorProto options */
+ options?: (google.protobuf.IEnumValueOptions|null);
+ }
+
+ /** Represents an EnumValueDescriptorProto. */
+ class EnumValueDescriptorProto implements IEnumValueDescriptorProto {
+
+ /**
+ * Constructs a new EnumValueDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueDescriptorProto);
+
+ /** EnumValueDescriptorProto name. */
+ public name: string;
+
+ /** EnumValueDescriptorProto number. */
+ public number: number;
+
+ /** EnumValueDescriptorProto options. */
+ public options?: (google.protobuf.IEnumValueOptions|null);
+
+ /**
+ * Creates a new EnumValueDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValueDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
+ * @param message EnumValueDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
+ * @param message EnumValueDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValueDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValueDescriptorProto
+ * @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.EnumValueDescriptorProto;
+
+ /**
+ * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValueDescriptorProto
+ * @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.EnumValueDescriptorProto;
+
+ /**
+ * Verifies an EnumValueDescriptorProto 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 EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValueDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified.
+ * @param message EnumValueDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValueDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValueDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceDescriptorProto. */
+ interface IServiceDescriptorProto {
+
+ /** ServiceDescriptorProto name */
+ name?: (string|null);
+
+ /** ServiceDescriptorProto method */
+ method?: (google.protobuf.IMethodDescriptorProto[]|null);
+
+ /** ServiceDescriptorProto options */
+ options?: (google.protobuf.IServiceOptions|null);
+ }
+
+ /** Represents a ServiceDescriptorProto. */
+ class ServiceDescriptorProto implements IServiceDescriptorProto {
+
+ /**
+ * Constructs a new ServiceDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IServiceDescriptorProto);
+
+ /** ServiceDescriptorProto name. */
+ public name: string;
+
+ /** ServiceDescriptorProto method. */
+ public method: google.protobuf.IMethodDescriptorProto[];
+
+ /** ServiceDescriptorProto options. */
+ public options?: (google.protobuf.IServiceOptions|null);
+
+ /**
+ * Creates a new ServiceDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
+ * @param message ServiceDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
+ * @param message ServiceDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceDescriptorProto
+ * @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.ServiceDescriptorProto;
+
+ /**
+ * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceDescriptorProto
+ * @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.ServiceDescriptorProto;
+
+ /**
+ * Verifies a ServiceDescriptorProto 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 ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified.
+ * @param message ServiceDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodDescriptorProto. */
+ interface IMethodDescriptorProto {
+
+ /** MethodDescriptorProto name */
+ name?: (string|null);
+
+ /** MethodDescriptorProto inputType */
+ inputType?: (string|null);
+
+ /** MethodDescriptorProto outputType */
+ outputType?: (string|null);
+
+ /** MethodDescriptorProto options */
+ options?: (google.protobuf.IMethodOptions|null);
+
+ /** MethodDescriptorProto clientStreaming */
+ clientStreaming?: (boolean|null);
+
+ /** MethodDescriptorProto serverStreaming */
+ serverStreaming?: (boolean|null);
+ }
+
+ /** Represents a MethodDescriptorProto. */
+ class MethodDescriptorProto implements IMethodDescriptorProto {
+
+ /**
+ * Constructs a new MethodDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethodDescriptorProto);
+
+ /** MethodDescriptorProto name. */
+ public name: string;
+
+ /** MethodDescriptorProto inputType. */
+ public inputType: string;
+
+ /** MethodDescriptorProto outputType. */
+ public outputType: string;
+
+ /** MethodDescriptorProto options. */
+ public options?: (google.protobuf.IMethodOptions|null);
+
+ /** MethodDescriptorProto clientStreaming. */
+ public clientStreaming: boolean;
+
+ /** MethodDescriptorProto serverStreaming. */
+ public serverStreaming: boolean;
+
+ /**
+ * Creates a new MethodDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
+ * @param message MethodDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
+ * @param message MethodDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodDescriptorProto
+ * @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.MethodDescriptorProto;
+
+ /**
+ * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodDescriptorProto
+ * @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.MethodDescriptorProto;
+
+ /**
+ * Verifies a MethodDescriptorProto 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 MethodDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified.
+ * @param message MethodDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FileOptions. */
+ interface IFileOptions {
+
+ /** FileOptions javaPackage */
+ javaPackage?: (string|null);
+
+ /** FileOptions javaOuterClassname */
+ javaOuterClassname?: (string|null);
+
+ /** FileOptions javaMultipleFiles */
+ javaMultipleFiles?: (boolean|null);
+
+ /** FileOptions javaGenerateEqualsAndHash */
+ javaGenerateEqualsAndHash?: (boolean|null);
+
+ /** FileOptions javaStringCheckUtf8 */
+ javaStringCheckUtf8?: (boolean|null);
+
+ /** FileOptions optimizeFor */
+ optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null);
+
+ /** FileOptions goPackage */
+ goPackage?: (string|null);
+
+ /** FileOptions ccGenericServices */
+ ccGenericServices?: (boolean|null);
+
+ /** FileOptions javaGenericServices */
+ javaGenericServices?: (boolean|null);
+
+ /** FileOptions pyGenericServices */
+ pyGenericServices?: (boolean|null);
+
+ /** FileOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** FileOptions ccEnableArenas */
+ ccEnableArenas?: (boolean|null);
+
+ /** FileOptions objcClassPrefix */
+ objcClassPrefix?: (string|null);
+
+ /** FileOptions csharpNamespace */
+ csharpNamespace?: (string|null);
+
+ /** FileOptions swiftPrefix */
+ swiftPrefix?: (string|null);
+
+ /** FileOptions phpClassPrefix */
+ phpClassPrefix?: (string|null);
+
+ /** FileOptions phpNamespace */
+ phpNamespace?: (string|null);
+
+ /** FileOptions phpMetadataNamespace */
+ phpMetadataNamespace?: (string|null);
+
+ /** FileOptions rubyPackage */
+ rubyPackage?: (string|null);
+
+ /** FileOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** FileOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** FileOptions .google.api.resourceDefinition */
+ ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null);
+ }
+
+ /** Represents a FileOptions. */
+ class FileOptions implements IFileOptions {
+
+ /**
+ * Constructs a new FileOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileOptions);
+
+ /** FileOptions javaPackage. */
+ public javaPackage: string;
+
+ /** FileOptions javaOuterClassname. */
+ public javaOuterClassname: string;
+
+ /** FileOptions javaMultipleFiles. */
+ public javaMultipleFiles: boolean;
+
+ /** FileOptions javaGenerateEqualsAndHash. */
+ public javaGenerateEqualsAndHash: boolean;
+
+ /** FileOptions javaStringCheckUtf8. */
+ public javaStringCheckUtf8: boolean;
+
+ /** FileOptions optimizeFor. */
+ public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode);
+
+ /** FileOptions goPackage. */
+ public goPackage: string;
+
+ /** FileOptions ccGenericServices. */
+ public ccGenericServices: boolean;
+
+ /** FileOptions javaGenericServices. */
+ public javaGenericServices: boolean;
+
+ /** FileOptions pyGenericServices. */
+ public pyGenericServices: boolean;
+
+ /** FileOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FileOptions ccEnableArenas. */
+ public ccEnableArenas: boolean;
+
+ /** FileOptions objcClassPrefix. */
+ public objcClassPrefix: string;
+
+ /** FileOptions csharpNamespace. */
+ public csharpNamespace: string;
+
+ /** FileOptions swiftPrefix. */
+ public swiftPrefix: string;
+
+ /** FileOptions phpClassPrefix. */
+ public phpClassPrefix: string;
+
+ /** FileOptions phpNamespace. */
+ public phpNamespace: string;
+
+ /** FileOptions phpMetadataNamespace. */
+ public phpMetadataNamespace: string;
+
+ /** FileOptions rubyPackage. */
+ public rubyPackage: string;
+
+ /** FileOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** FileOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FileOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileOptions instance
+ */
+ public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions;
+
+ /**
+ * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileOptions
+ * @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.FileOptions;
+
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileOptions
+ * @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.FileOptions;
+
+ /**
+ * Verifies a FileOptions 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 FileOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions;
+
+ /**
+ * Creates a plain object from a FileOptions message. Also converts values to other types if specified.
+ * @param message FileOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FileOptions {
+
+ /** OptimizeMode enum. */
+ enum OptimizeMode {
+ SPEED = 1,
+ CODE_SIZE = 2,
+ LITE_RUNTIME = 3
+ }
+ }
+
+ /** Properties of a MessageOptions. */
+ interface IMessageOptions {
+
+ /** MessageOptions messageSetWireFormat */
+ messageSetWireFormat?: (boolean|null);
+
+ /** MessageOptions noStandardDescriptorAccessor */
+ noStandardDescriptorAccessor?: (boolean|null);
+
+ /** MessageOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** MessageOptions mapEntry */
+ mapEntry?: (boolean|null);
+
+ /** MessageOptions deprecatedLegacyJsonFieldConflicts */
+ deprecatedLegacyJsonFieldConflicts?: (boolean|null);
+
+ /** MessageOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** MessageOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** MessageOptions .google.api.resource */
+ ".google.api.resource"?: (google.api.IResourceDescriptor|null);
+ }
+
+ /** Represents a MessageOptions. */
+ class MessageOptions implements IMessageOptions {
+
+ /**
+ * Constructs a new MessageOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMessageOptions);
+
+ /** MessageOptions messageSetWireFormat. */
+ public messageSetWireFormat: boolean;
+
+ /** MessageOptions noStandardDescriptorAccessor. */
+ public noStandardDescriptorAccessor: boolean;
+
+ /** MessageOptions deprecated. */
+ public deprecated: boolean;
+
+ /** MessageOptions mapEntry. */
+ public mapEntry: boolean;
+
+ /** MessageOptions deprecatedLegacyJsonFieldConflicts. */
+ public deprecatedLegacyJsonFieldConflicts: boolean;
+
+ /** MessageOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** MessageOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new MessageOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MessageOptions instance
+ */
+ public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions;
+
+ /**
+ * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MessageOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MessageOptions
+ * @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.MessageOptions;
+
+ /**
+ * Decodes a MessageOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MessageOptions
+ * @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.MessageOptions;
+
+ /**
+ * Verifies a MessageOptions 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 MessageOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MessageOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions;
+
+ /**
+ * Creates a plain object from a MessageOptions message. Also converts values to other types if specified.
+ * @param message MessageOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MessageOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MessageOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldOptions. */
+ interface IFieldOptions {
+
+ /** FieldOptions ctype */
+ ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null);
+
+ /** FieldOptions packed */
+ packed?: (boolean|null);
+
+ /** FieldOptions jstype */
+ jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null);
+
+ /** FieldOptions lazy */
+ lazy?: (boolean|null);
+
+ /** FieldOptions unverifiedLazy */
+ unverifiedLazy?: (boolean|null);
+
+ /** FieldOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** FieldOptions weak */
+ weak?: (boolean|null);
+
+ /** FieldOptions debugRedact */
+ debugRedact?: (boolean|null);
+
+ /** FieldOptions retention */
+ retention?: (google.protobuf.FieldOptions.OptionRetention|keyof typeof google.protobuf.FieldOptions.OptionRetention|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);
+
+ /** 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);
+ }
+
+ /** Represents a FieldOptions. */
+ class FieldOptions implements IFieldOptions {
+
+ /**
+ * Constructs a new FieldOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldOptions);
+
+ /** FieldOptions ctype. */
+ public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType);
+
+ /** FieldOptions packed. */
+ public packed: boolean;
+
+ /** FieldOptions jstype. */
+ public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType);
+
+ /** FieldOptions lazy. */
+ public lazy: boolean;
+
+ /** FieldOptions unverifiedLazy. */
+ public unverifiedLazy: boolean;
+
+ /** FieldOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FieldOptions weak. */
+ public weak: boolean;
+
+ /** FieldOptions debugRedact. */
+ public debugRedact: boolean;
+
+ /** FieldOptions retention. */
+ public retention: (google.protobuf.FieldOptions.OptionRetention|keyof typeof google.protobuf.FieldOptions.OptionRetention);
+
+ /** 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[];
+
+ /**
+ * Creates a new FieldOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldOptions instance
+ */
+ public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions;
+
+ /**
+ * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldOptions
+ * @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;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldOptions
+ * @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;
+
+ /**
+ * Verifies a FieldOptions 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 FieldOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions;
+
+ /**
+ * Creates a plain object from a FieldOptions message. Also converts values to other types if specified.
+ * @param message FieldOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldOptions {
+
+ /** CType enum. */
+ enum CType {
+ STRING = 0,
+ CORD = 1,
+ STRING_PIECE = 2
+ }
+
+ /** JSType enum. */
+ enum JSType {
+ JS_NORMAL = 0,
+ JS_STRING = 1,
+ JS_NUMBER = 2
+ }
+
+ /** OptionRetention enum. */
+ enum OptionRetention {
+ RETENTION_UNKNOWN = 0,
+ RETENTION_RUNTIME = 1,
+ RETENTION_SOURCE = 2
+ }
+
+ /** OptionTargetType enum. */
+ enum OptionTargetType {
+ TARGET_TYPE_UNKNOWN = 0,
+ TARGET_TYPE_FILE = 1,
+ TARGET_TYPE_EXTENSION_RANGE = 2,
+ TARGET_TYPE_MESSAGE = 3,
+ TARGET_TYPE_FIELD = 4,
+ TARGET_TYPE_ONEOF = 5,
+ TARGET_TYPE_ENUM = 6,
+ TARGET_TYPE_ENUM_ENTRY = 7,
+ TARGET_TYPE_SERVICE = 8,
+ TARGET_TYPE_METHOD = 9
+ }
+
+ /** Properties of an EditionDefault. */
+ interface IEditionDefault {
+
+ /** EditionDefault edition */
+ edition?: (google.protobuf.Edition|keyof typeof 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|keyof typeof 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);
+ }
+
+ /** Represents an OneofOptions. */
+ class OneofOptions implements IOneofOptions {
+
+ /**
+ * Constructs a new OneofOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofOptions);
+
+ /** OneofOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** OneofOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new OneofOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneofOptions instance
+ */
+ public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions;
+
+ /**
+ * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneofOptions
+ * @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.OneofOptions;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneofOptions
+ * @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.OneofOptions;
+
+ /**
+ * Verifies an OneofOptions 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 OneofOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneofOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions;
+
+ /**
+ * Creates a plain object from an OneofOptions message. Also converts values to other types if specified.
+ * @param message OneofOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneofOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneofOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumOptions. */
+ interface IEnumOptions {
+
+ /** EnumOptions allowAlias */
+ allowAlias?: (boolean|null);
+
+ /** EnumOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumOptions deprecatedLegacyJsonFieldConflicts */
+ deprecatedLegacyJsonFieldConflicts?: (boolean|null);
+
+ /** EnumOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** EnumOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumOptions. */
+ class EnumOptions implements IEnumOptions {
+
+ /**
+ * Constructs a new EnumOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumOptions);
+
+ /** EnumOptions allowAlias. */
+ public allowAlias: boolean;
+
+ /** EnumOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumOptions deprecatedLegacyJsonFieldConflicts. */
+ public deprecatedLegacyJsonFieldConflicts: boolean;
+
+ /** EnumOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** EnumOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new EnumOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions;
+
+ /**
+ * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumOptions
+ * @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.EnumOptions;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumOptions
+ * @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.EnumOptions;
+
+ /**
+ * Verifies an EnumOptions 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 EnumOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions;
+
+ /**
+ * Creates a plain object from an EnumOptions message. Also converts values to other types if specified.
+ * @param message EnumOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumValueOptions. */
+ interface IEnumValueOptions {
+
+ /** EnumValueOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumValueOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** EnumValueOptions debugRedact */
+ debugRedact?: (boolean|null);
+
+ /** EnumValueOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumValueOptions. */
+ class EnumValueOptions implements IEnumValueOptions {
+
+ /**
+ * Constructs a new EnumValueOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueOptions);
+
+ /** 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[];
+
+ /**
+ * Creates a new EnumValueOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValueOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions;
+
+ /**
+ * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValueOptions
+ * @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.EnumValueOptions;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValueOptions
+ * @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.EnumValueOptions;
+
+ /**
+ * Verifies an EnumValueOptions 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 EnumValueOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValueOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions;
+
+ /**
+ * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified.
+ * @param message EnumValueOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValueOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValueOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceOptions. */
+ interface IServiceOptions {
+
+ /** ServiceOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** ServiceOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** ServiceOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** ServiceOptions .google.api.defaultHost */
+ ".google.api.defaultHost"?: (string|null);
+
+ /** ServiceOptions .google.api.oauthScopes */
+ ".google.api.oauthScopes"?: (string|null);
+ }
+
+ /** Represents a ServiceOptions. */
+ class ServiceOptions implements IServiceOptions {
+
+ /**
+ * Constructs a new ServiceOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IServiceOptions);
+
+ /** ServiceOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** ServiceOptions deprecated. */
+ public deprecated: boolean;
+
+ /** ServiceOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new ServiceOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceOptions instance
+ */
+ public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions;
+
+ /**
+ * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceOptions
+ * @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.ServiceOptions;
+
+ /**
+ * Decodes a ServiceOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceOptions
+ * @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.ServiceOptions;
+
+ /**
+ * Verifies a ServiceOptions 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 ServiceOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions;
+
+ /**
+ * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified.
+ * @param message ServiceOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodOptions. */
+ interface IMethodOptions {
+
+ /** MethodOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** MethodOptions idempotencyLevel */
+ idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null);
+
+ /** MethodOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** MethodOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** MethodOptions .google.api.http */
+ ".google.api.http"?: (google.api.IHttpRule|null);
+
+ /** MethodOptions .google.api.methodSignature */
+ ".google.api.methodSignature"?: (string[]|null);
+
+ /** MethodOptions .google.longrunning.operationInfo */
+ ".google.longrunning.operationInfo"?: (google.longrunning.IOperationInfo|null);
+ }
+
+ /** Represents a MethodOptions. */
+ class MethodOptions implements IMethodOptions {
+
+ /**
+ * Constructs a new MethodOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethodOptions);
+
+ /** MethodOptions deprecated. */
+ public deprecated: boolean;
+
+ /** MethodOptions idempotencyLevel. */
+ public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel);
+
+ /** MethodOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** MethodOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new MethodOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodOptions instance
+ */
+ public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions;
+
+ /**
+ * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodOptions
+ * @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.MethodOptions;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodOptions
+ * @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.MethodOptions;
+
+ /**
+ * Verifies a MethodOptions 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 MethodOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions;
+
+ /**
+ * Creates a plain object from a MethodOptions message. Also converts values to other types if specified.
+ * @param message MethodOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MethodOptions {
+
+ /** IdempotencyLevel enum. */
+ enum IdempotencyLevel {
+ IDEMPOTENCY_UNKNOWN = 0,
+ NO_SIDE_EFFECTS = 1,
+ IDEMPOTENT = 2
+ }
+ }
+
+ /** Properties of an UninterpretedOption. */
+ interface IUninterpretedOption {
+
+ /** UninterpretedOption name */
+ name?: (google.protobuf.UninterpretedOption.INamePart[]|null);
+
+ /** UninterpretedOption identifierValue */
+ identifierValue?: (string|null);
+
+ /** UninterpretedOption positiveIntValue */
+ positiveIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption negativeIntValue */
+ negativeIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption doubleValue */
+ doubleValue?: (number|null);
+
+ /** UninterpretedOption stringValue */
+ stringValue?: (Uint8Array|string|null);
+
+ /** UninterpretedOption aggregateValue */
+ aggregateValue?: (string|null);
+ }
+
+ /** Represents an UninterpretedOption. */
+ class UninterpretedOption implements IUninterpretedOption {
+
+ /**
+ * Constructs a new UninterpretedOption.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IUninterpretedOption);
+
+ /** UninterpretedOption name. */
+ public name: google.protobuf.UninterpretedOption.INamePart[];
+
+ /** UninterpretedOption identifierValue. */
+ public identifierValue: string;
+
+ /** UninterpretedOption positiveIntValue. */
+ public positiveIntValue: (number|Long|string);
+
+ /** UninterpretedOption negativeIntValue. */
+ public negativeIntValue: (number|Long|string);
+
+ /** UninterpretedOption doubleValue. */
+ public doubleValue: number;
+
+ /** UninterpretedOption stringValue. */
+ public stringValue: (Uint8Array|string);
+
+ /** UninterpretedOption aggregateValue. */
+ public aggregateValue: string;
+
+ /**
+ * Creates a new UninterpretedOption instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UninterpretedOption instance
+ */
+ public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption;
+
+ /**
+ * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UninterpretedOption
+ * @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.UninterpretedOption;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UninterpretedOption
+ * @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.UninterpretedOption;
+
+ /**
+ * Verifies an UninterpretedOption 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 UninterpretedOption message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UninterpretedOption
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption;
+
+ /**
+ * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified.
+ * @param message UninterpretedOption
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UninterpretedOption to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UninterpretedOption
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace UninterpretedOption {
+
+ /** Properties of a NamePart. */
+ interface INamePart {
+
+ /** NamePart namePart */
+ namePart: string;
+
+ /** NamePart isExtension */
+ isExtension: boolean;
+ }
+
+ /** Represents a NamePart. */
+ class NamePart implements INamePart {
+
+ /**
+ * Constructs a new NamePart.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.UninterpretedOption.INamePart);
+
+ /** NamePart namePart. */
+ public namePart: string;
+
+ /** NamePart isExtension. */
+ public isExtension: boolean;
+
+ /**
+ * Creates a new NamePart instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NamePart instance
+ */
+ public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NamePart
+ * @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.UninterpretedOption.NamePart;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NamePart
+ * @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.UninterpretedOption.NamePart;
+
+ /**
+ * Verifies a NamePart 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 NamePart message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NamePart
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Creates a plain object from a NamePart message. Also converts values to other types if specified.
+ * @param message NamePart
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NamePart to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NamePart
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a FeatureSet. */
+ interface IFeatureSet {
+
+ /** FeatureSet fieldPresence */
+ fieldPresence?: (google.protobuf.FeatureSet.FieldPresence|keyof typeof google.protobuf.FeatureSet.FieldPresence|null);
+
+ /** FeatureSet enumType */
+ enumType?: (google.protobuf.FeatureSet.EnumType|keyof typeof google.protobuf.FeatureSet.EnumType|null);
+
+ /** FeatureSet repeatedFieldEncoding */
+ repeatedFieldEncoding?: (google.protobuf.FeatureSet.RepeatedFieldEncoding|keyof typeof google.protobuf.FeatureSet.RepeatedFieldEncoding|null);
+
+ /** FeatureSet utf8Validation */
+ utf8Validation?: (google.protobuf.FeatureSet.Utf8Validation|keyof typeof google.protobuf.FeatureSet.Utf8Validation|null);
+
+ /** FeatureSet messageEncoding */
+ messageEncoding?: (google.protobuf.FeatureSet.MessageEncoding|keyof typeof google.protobuf.FeatureSet.MessageEncoding|null);
+
+ /** FeatureSet jsonFormat */
+ jsonFormat?: (google.protobuf.FeatureSet.JsonFormat|keyof typeof 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|keyof typeof google.protobuf.FeatureSet.FieldPresence);
+
+ /** FeatureSet enumType. */
+ public enumType: (google.protobuf.FeatureSet.EnumType|keyof typeof google.protobuf.FeatureSet.EnumType);
+
+ /** FeatureSet repeatedFieldEncoding. */
+ public repeatedFieldEncoding: (google.protobuf.FeatureSet.RepeatedFieldEncoding|keyof typeof google.protobuf.FeatureSet.RepeatedFieldEncoding);
+
+ /** FeatureSet utf8Validation. */
+ public utf8Validation: (google.protobuf.FeatureSet.Utf8Validation|keyof typeof google.protobuf.FeatureSet.Utf8Validation);
+
+ /** FeatureSet messageEncoding. */
+ public messageEncoding: (google.protobuf.FeatureSet.MessageEncoding|keyof typeof google.protobuf.FeatureSet.MessageEncoding);
+
+ /** FeatureSet jsonFormat. */
+ public jsonFormat: (google.protobuf.FeatureSet.JsonFormat|keyof typeof 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|keyof typeof google.protobuf.Edition|null);
+
+ /** FeatureSetDefaults maximumEdition */
+ maximumEdition?: (google.protobuf.Edition|keyof typeof 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|keyof typeof google.protobuf.Edition);
+
+ /** FeatureSetDefaults maximumEdition. */
+ public maximumEdition: (google.protobuf.Edition|keyof typeof 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|keyof typeof 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|keyof typeof 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 {
+
+ /** SourceCodeInfo location */
+ location?: (google.protobuf.SourceCodeInfo.ILocation[]|null);
+ }
+
+ /** Represents a SourceCodeInfo. */
+ class SourceCodeInfo implements ISourceCodeInfo {
+
+ /**
+ * Constructs a new SourceCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ISourceCodeInfo);
+
+ /** SourceCodeInfo location. */
+ public location: google.protobuf.SourceCodeInfo.ILocation[];
+
+ /**
+ * Creates a new SourceCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SourceCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SourceCodeInfo
+ * @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.SourceCodeInfo;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SourceCodeInfo
+ * @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.SourceCodeInfo;
+
+ /**
+ * Verifies a SourceCodeInfo 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 SourceCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SourceCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified.
+ * @param message SourceCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SourceCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SourceCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace SourceCodeInfo {
+
+ /** Properties of a Location. */
+ interface ILocation {
+
+ /** Location path */
+ path?: (number[]|null);
+
+ /** Location span */
+ span?: (number[]|null);
+
+ /** Location leadingComments */
+ leadingComments?: (string|null);
+
+ /** Location trailingComments */
+ trailingComments?: (string|null);
+
+ /** Location leadingDetachedComments */
+ leadingDetachedComments?: (string[]|null);
+ }
+
+ /** Represents a Location. */
+ class Location implements ILocation {
+
+ /**
+ * Constructs a new Location.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.SourceCodeInfo.ILocation);
+
+ /** Location path. */
+ public path: number[];
+
+ /** Location span. */
+ public span: number[];
+
+ /** Location leadingComments. */
+ public leadingComments: string;
+
+ /** Location trailingComments. */
+ public trailingComments: string;
+
+ /** Location leadingDetachedComments. */
+ public leadingDetachedComments: string[];
+
+ /**
+ * Creates a new Location instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Location instance
+ */
+ public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Location
+ * @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.SourceCodeInfo.Location;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Location
+ * @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.SourceCodeInfo.Location;
+
+ /**
+ * Verifies a Location 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 Location message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Location
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Creates a plain object from a Location message. Also converts values to other types if specified.
+ * @param message Location
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Location to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Location
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a GeneratedCodeInfo. */
+ interface IGeneratedCodeInfo {
+
+ /** GeneratedCodeInfo annotation */
+ annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null);
+ }
+
+ /** Represents a GeneratedCodeInfo. */
+ class GeneratedCodeInfo implements IGeneratedCodeInfo {
+
+ /**
+ * Constructs a new GeneratedCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IGeneratedCodeInfo);
+
+ /** GeneratedCodeInfo annotation. */
+ public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[];
+
+ /**
+ * Creates a new GeneratedCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GeneratedCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GeneratedCodeInfo
+ * @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.GeneratedCodeInfo;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GeneratedCodeInfo
+ * @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.GeneratedCodeInfo;
+
+ /**
+ * Verifies a GeneratedCodeInfo 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 GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GeneratedCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified.
+ * @param message GeneratedCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GeneratedCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GeneratedCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace GeneratedCodeInfo {
+
+ /** Properties of an Annotation. */
+ interface IAnnotation {
+
+ /** Annotation path */
+ path?: (number[]|null);
+
+ /** Annotation sourceFile */
+ sourceFile?: (string|null);
+
+ /** Annotation begin */
+ begin?: (number|null);
+
+ /** Annotation end */
+ end?: (number|null);
+
+ /** Annotation semantic */
+ semantic?: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null);
+ }
+
+ /** Represents an Annotation. */
+ class Annotation implements IAnnotation {
+
+ /**
+ * Constructs a new Annotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation);
+
+ /** Annotation path. */
+ public path: number[];
+
+ /** Annotation sourceFile. */
+ public sourceFile: string;
+
+ /** Annotation begin. */
+ public begin: number;
+
+ /** Annotation end. */
+ public end: number;
+
+ /** Annotation semantic. */
+ public semantic: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic);
+
+ /**
+ * Creates a new Annotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Annotation instance
+ */
+ public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Annotation
+ * @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.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Annotation
+ * @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.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Verifies an Annotation 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 Annotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Annotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Creates a plain object from an Annotation message. Also converts values to other types if specified.
+ * @param message Annotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Annotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Annotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Annotation {
+
+ /** Semantic enum. */
+ enum Semantic {
+ NONE = 0,
+ SET = 1,
+ ALIAS = 2
+ }
+ }
+ }
+
+ /** Properties of a Duration. */
+ interface IDuration {
+
+ /** Duration seconds */
+ seconds?: (number|Long|string|null);
+
+ /** Duration nanos */
+ nanos?: (number|null);
+ }
+
+ /** Represents a Duration. */
+ class Duration implements IDuration {
+
+ /**
+ * Constructs a new Duration.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDuration);
+
+ /** Duration seconds. */
+ public seconds: (number|Long|string);
+
+ /** Duration nanos. */
+ public nanos: number;
+
+ /**
+ * Creates a new Duration instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Duration instance
+ */
+ public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration;
+
+ /**
+ * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
+ * @param message Duration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
+ * @param message Duration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Duration message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Duration
+ * @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.Duration;
+
+ /**
+ * Decodes a Duration message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Duration
+ * @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.Duration;
+
+ /**
+ * Verifies a Duration 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 Duration message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Duration
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Duration;
+
+ /**
+ * Creates a plain object from a Duration message. Also converts values to other types if specified.
+ * @param message Duration
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Duration to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Duration
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Any. */
+ interface IAny {
+
+ /** Any type_url */
+ type_url?: (string|null);
+
+ /** Any value */
+ value?: (Uint8Array|string|null);
+ }
+
+ /** Represents an Any. */
+ class Any implements IAny {
+
+ /**
+ * Constructs a new Any.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IAny);
+
+ /** Any type_url. */
+ public type_url: string;
+
+ /** Any value. */
+ public value: (Uint8Array|string);
+
+ /**
+ * Creates a new Any instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Any instance
+ */
+ public static create(properties?: google.protobuf.IAny): google.protobuf.Any;
+
+ /**
+ * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
+ * @param message Any message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
+ * @param message Any message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Any message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Any
+ * @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.Any;
+
+ /**
+ * Decodes an Any message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Any
+ * @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.Any;
+
+ /**
+ * Verifies an Any 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 Any message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Any
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Any;
+
+ /**
+ * Creates a plain object from an Any message. Also converts values to other types if specified.
+ * @param message Any
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Any to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Any
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Empty. */
+ interface IEmpty {
+ }
+
+ /** Represents an Empty. */
+ class Empty implements IEmpty {
+
+ /**
+ * Constructs a new Empty.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEmpty);
+
+ /**
+ * Creates a new Empty instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Empty instance
+ */
+ public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty;
+
+ /**
+ * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
+ * @param message Empty message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
+ * @param message Empty message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Empty message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Empty
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Empty;
+
+ /**
+ * Decodes an Empty message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Empty
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Empty;
+
+ /**
+ * Verifies an Empty message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Empty message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Empty
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Empty;
+
+ /**
+ * Creates a plain object from an Empty message. Also converts values to other types if specified.
+ * @param message Empty
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Empty to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Empty
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldMask. */
+ interface IFieldMask {
+
+ /** FieldMask paths */
+ paths?: (string[]|null);
+ }
+
+ /** Represents a FieldMask. */
+ class FieldMask implements IFieldMask {
+
+ /**
+ * Constructs a new FieldMask.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldMask);
+
+ /** FieldMask paths. */
+ public paths: string[];
+
+ /**
+ * Creates a new FieldMask instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldMask instance
+ */
+ public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask;
+
+ /**
+ * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldMask
+ * @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.FieldMask;
+
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldMask
+ * @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.FieldMask;
+
+ /**
+ * Verifies a FieldMask 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 FieldMask message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldMask
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask;
+
+ /**
+ * Creates a plain object from a FieldMask message. Also converts values to other types if specified.
+ * @param message FieldMask
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldMask to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldMask
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Timestamp. */
+ interface ITimestamp {
+
+ /** Timestamp seconds */
+ seconds?: (number|Long|string|null);
+
+ /** Timestamp nanos */
+ nanos?: (number|null);
+ }
+
+ /** Represents a Timestamp. */
+ class Timestamp implements ITimestamp {
+
+ /**
+ * Constructs a new Timestamp.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ITimestamp);
+
+ /** Timestamp seconds. */
+ public seconds: (number|Long|string);
+
+ /** Timestamp nanos. */
+ public nanos: number;
+
+ /**
+ * Creates a new Timestamp instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Timestamp instance
+ */
+ public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
+
+ /**
+ * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Timestamp message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Timestamp
+ * @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.Timestamp;
+
+ /**
+ * Decodes a Timestamp message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Timestamp
+ * @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.Timestamp;
+
+ /**
+ * Verifies a Timestamp 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 Timestamp message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Timestamp
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
+
+ /**
+ * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
+ * @param message Timestamp
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Timestamp to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Timestamp
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace longrunning. */
+ namespace longrunning {
+
+ /** Represents an Operations */
+ class Operations extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new Operations service.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ */
+ constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
+
+ /**
+ * Creates new Operations service using the specified rpc implementation.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ * @returns RPC service. Useful where requests and/or responses are streamed.
+ */
+ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Operations;
+
+ /**
+ * Calls ListOperations.
+ * @param request ListOperationsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListOperationsResponse
+ */
+ public listOperations(request: google.longrunning.IListOperationsRequest, callback: google.longrunning.Operations.ListOperationsCallback): void;
+
+ /**
+ * Calls ListOperations.
+ * @param request ListOperationsRequest message or plain object
+ * @returns Promise
+ */
+ public listOperations(request: google.longrunning.IListOperationsRequest): Promise;
+
+ /**
+ * Calls GetOperation.
+ * @param request GetOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public getOperation(request: google.longrunning.IGetOperationRequest, callback: google.longrunning.Operations.GetOperationCallback): void;
+
+ /**
+ * Calls GetOperation.
+ * @param request GetOperationRequest message or plain object
+ * @returns Promise
+ */
+ public getOperation(request: google.longrunning.IGetOperationRequest): Promise;
+
+ /**
+ * Calls DeleteOperation.
+ * @param request DeleteOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteOperation(request: google.longrunning.IDeleteOperationRequest, callback: google.longrunning.Operations.DeleteOperationCallback): void;
+
+ /**
+ * Calls DeleteOperation.
+ * @param request DeleteOperationRequest message or plain object
+ * @returns Promise
+ */
+ public deleteOperation(request: google.longrunning.IDeleteOperationRequest): Promise;
+
+ /**
+ * Calls CancelOperation.
+ * @param request CancelOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public cancelOperation(request: google.longrunning.ICancelOperationRequest, callback: google.longrunning.Operations.CancelOperationCallback): void;
+
+ /**
+ * Calls CancelOperation.
+ * @param request CancelOperationRequest message or plain object
+ * @returns Promise
+ */
+ public cancelOperation(request: google.longrunning.ICancelOperationRequest): Promise;
+
+ /**
+ * Calls WaitOperation.
+ * @param request WaitOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public waitOperation(request: google.longrunning.IWaitOperationRequest, callback: google.longrunning.Operations.WaitOperationCallback): void;
+
+ /**
+ * Calls WaitOperation.
+ * @param request WaitOperationRequest message or plain object
+ * @returns Promise
+ */
+ public waitOperation(request: google.longrunning.IWaitOperationRequest): Promise;
+ }
+
+ namespace Operations {
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|listOperations}.
+ * @param error Error, if any
+ * @param [response] ListOperationsResponse
+ */
+ type ListOperationsCallback = (error: (Error|null), response?: google.longrunning.ListOperationsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|getOperation}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type GetOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|deleteOperation}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|cancelOperation}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type CancelOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|waitOperation}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type WaitOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+ }
+
+ /** Properties of an Operation. */
+ interface IOperation {
+
+ /** Operation name */
+ name?: (string|null);
+
+ /** Operation metadata */
+ metadata?: (google.protobuf.IAny|null);
+
+ /** Operation done */
+ done?: (boolean|null);
+
+ /** Operation error */
+ error?: (google.rpc.IStatus|null);
+
+ /** Operation response */
+ response?: (google.protobuf.IAny|null);
+ }
+
+ /** Represents an Operation. */
+ class Operation implements IOperation {
+
+ /**
+ * Constructs a new Operation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IOperation);
+
+ /** Operation name. */
+ public name: string;
+
+ /** Operation metadata. */
+ public metadata?: (google.protobuf.IAny|null);
+
+ /** Operation done. */
+ public done: boolean;
+
+ /** Operation error. */
+ public error?: (google.rpc.IStatus|null);
+
+ /** Operation response. */
+ public response?: (google.protobuf.IAny|null);
+
+ /** Operation result. */
+ public result?: ("error"|"response");
+
+ /**
+ * Creates a new Operation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Operation instance
+ */
+ public static create(properties?: google.longrunning.IOperation): google.longrunning.Operation;
+
+ /**
+ * Encodes the specified Operation message. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages.
+ * @param message Operation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Operation message, length delimited. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages.
+ * @param message Operation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Operation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Operation
+ * @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.longrunning.Operation;
+
+ /**
+ * Decodes an Operation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Operation
+ * @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.longrunning.Operation;
+
+ /**
+ * Verifies an Operation 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 Operation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Operation
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.Operation;
+
+ /**
+ * Creates a plain object from an Operation message. Also converts values to other types if specified.
+ * @param message Operation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.Operation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Operation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Operation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetOperationRequest. */
+ interface IGetOperationRequest {
+
+ /** GetOperationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetOperationRequest. */
+ class GetOperationRequest implements IGetOperationRequest {
+
+ /**
+ * Constructs a new GetOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IGetOperationRequest);
+
+ /** GetOperationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.IGetOperationRequest): google.longrunning.GetOperationRequest;
+
+ /**
+ * Encodes the specified GetOperationRequest message. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages.
+ * @param message GetOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages.
+ * @param message GetOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetOperationRequest
+ * @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.longrunning.GetOperationRequest;
+
+ /**
+ * Decodes a GetOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetOperationRequest
+ * @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.longrunning.GetOperationRequest;
+
+ /**
+ * Verifies a GetOperationRequest 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 GetOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.GetOperationRequest;
+
+ /**
+ * Creates a plain object from a GetOperationRequest message. Also converts values to other types if specified.
+ * @param message GetOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.GetOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOperationsRequest. */
+ interface IListOperationsRequest {
+
+ /** ListOperationsRequest name */
+ name?: (string|null);
+
+ /** ListOperationsRequest filter */
+ filter?: (string|null);
+
+ /** ListOperationsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListOperationsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListOperationsRequest. */
+ class ListOperationsRequest implements IListOperationsRequest {
+
+ /**
+ * Constructs a new ListOperationsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IListOperationsRequest);
+
+ /** ListOperationsRequest name. */
+ public name: string;
+
+ /** ListOperationsRequest filter. */
+ public filter: string;
+
+ /** ListOperationsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListOperationsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListOperationsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOperationsRequest instance
+ */
+ public static create(properties?: google.longrunning.IListOperationsRequest): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Encodes the specified ListOperationsRequest message. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages.
+ * @param message ListOperationsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOperationsRequest message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages.
+ * @param message ListOperationsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOperationsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOperationsRequest
+ * @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.longrunning.ListOperationsRequest;
+
+ /**
+ * Decodes a ListOperationsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOperationsRequest
+ * @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.longrunning.ListOperationsRequest;
+
+ /**
+ * Verifies a ListOperationsRequest 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 ListOperationsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOperationsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Creates a plain object from a ListOperationsRequest message. Also converts values to other types if specified.
+ * @param message ListOperationsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.ListOperationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOperationsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOperationsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOperationsResponse. */
+ interface IListOperationsResponse {
+
+ /** ListOperationsResponse operations */
+ operations?: (google.longrunning.IOperation[]|null);
+
+ /** ListOperationsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListOperationsResponse. */
+ class ListOperationsResponse implements IListOperationsResponse {
+
+ /**
+ * Constructs a new ListOperationsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IListOperationsResponse);
+
+ /** ListOperationsResponse operations. */
+ public operations: google.longrunning.IOperation[];
+
+ /** ListOperationsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListOperationsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOperationsResponse instance
+ */
+ public static create(properties?: google.longrunning.IListOperationsResponse): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Encodes the specified ListOperationsResponse message. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages.
+ * @param message ListOperationsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOperationsResponse message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages.
+ * @param message ListOperationsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOperationsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOperationsResponse
+ * @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.longrunning.ListOperationsResponse;
+
+ /**
+ * Decodes a ListOperationsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOperationsResponse
+ * @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.longrunning.ListOperationsResponse;
+
+ /**
+ * Verifies a ListOperationsResponse 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 ListOperationsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOperationsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Creates a plain object from a ListOperationsResponse message. Also converts values to other types if specified.
+ * @param message ListOperationsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.ListOperationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOperationsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOperationsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CancelOperationRequest. */
+ interface ICancelOperationRequest {
+
+ /** CancelOperationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a CancelOperationRequest. */
+ class CancelOperationRequest implements ICancelOperationRequest {
+
+ /**
+ * Constructs a new CancelOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.ICancelOperationRequest);
+
+ /** CancelOperationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new CancelOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CancelOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.ICancelOperationRequest): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Encodes the specified CancelOperationRequest message. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages.
+ * @param message CancelOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CancelOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages.
+ * @param message CancelOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CancelOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CancelOperationRequest
+ * @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.longrunning.CancelOperationRequest;
+
+ /**
+ * Decodes a CancelOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CancelOperationRequest
+ * @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.longrunning.CancelOperationRequest;
+
+ /**
+ * Verifies a CancelOperationRequest 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 CancelOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CancelOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Creates a plain object from a CancelOperationRequest message. Also converts values to other types if specified.
+ * @param message CancelOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.CancelOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CancelOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CancelOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteOperationRequest. */
+ interface IDeleteOperationRequest {
+
+ /** DeleteOperationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteOperationRequest. */
+ class DeleteOperationRequest implements IDeleteOperationRequest {
+
+ /**
+ * Constructs a new DeleteOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IDeleteOperationRequest);
+
+ /** DeleteOperationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.IDeleteOperationRequest): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Encodes the specified DeleteOperationRequest message. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages.
+ * @param message DeleteOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages.
+ * @param message DeleteOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteOperationRequest
+ * @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.longrunning.DeleteOperationRequest;
+
+ /**
+ * Decodes a DeleteOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteOperationRequest
+ * @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.longrunning.DeleteOperationRequest;
+
+ /**
+ * Verifies a DeleteOperationRequest 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 DeleteOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Creates a plain object from a DeleteOperationRequest message. Also converts values to other types if specified.
+ * @param message DeleteOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.DeleteOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a WaitOperationRequest. */
+ interface IWaitOperationRequest {
+
+ /** WaitOperationRequest name */
+ name?: (string|null);
+
+ /** WaitOperationRequest timeout */
+ timeout?: (google.protobuf.IDuration|null);
+ }
+
+ /** Represents a WaitOperationRequest. */
+ class WaitOperationRequest implements IWaitOperationRequest {
+
+ /**
+ * Constructs a new WaitOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IWaitOperationRequest);
+
+ /** WaitOperationRequest name. */
+ public name: string;
+
+ /** WaitOperationRequest timeout. */
+ public timeout?: (google.protobuf.IDuration|null);
+
+ /**
+ * Creates a new WaitOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WaitOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.IWaitOperationRequest): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Encodes the specified WaitOperationRequest message. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages.
+ * @param message WaitOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WaitOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages.
+ * @param message WaitOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WaitOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WaitOperationRequest
+ * @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.longrunning.WaitOperationRequest;
+
+ /**
+ * Decodes a WaitOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WaitOperationRequest
+ * @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.longrunning.WaitOperationRequest;
+
+ /**
+ * Verifies a WaitOperationRequest 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 WaitOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WaitOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Creates a plain object from a WaitOperationRequest message. Also converts values to other types if specified.
+ * @param message WaitOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.WaitOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WaitOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WaitOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an OperationInfo. */
+ interface IOperationInfo {
+
+ /** OperationInfo responseType */
+ responseType?: (string|null);
+
+ /** OperationInfo metadataType */
+ metadataType?: (string|null);
+ }
+
+ /** Represents an OperationInfo. */
+ class OperationInfo implements IOperationInfo {
+
+ /**
+ * Constructs a new OperationInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IOperationInfo);
+
+ /** OperationInfo responseType. */
+ public responseType: string;
+
+ /** OperationInfo metadataType. */
+ public metadataType: string;
+
+ /**
+ * Creates a new OperationInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OperationInfo instance
+ */
+ public static create(properties?: google.longrunning.IOperationInfo): google.longrunning.OperationInfo;
+
+ /**
+ * Encodes the specified OperationInfo message. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
+ * @param message OperationInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OperationInfo message, length delimited. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
+ * @param message OperationInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OperationInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OperationInfo
+ * @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.longrunning.OperationInfo;
+
+ /**
+ * Decodes an OperationInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OperationInfo
+ * @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.longrunning.OperationInfo;
+
+ /**
+ * Verifies an OperationInfo 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 OperationInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OperationInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.OperationInfo;
+
+ /**
+ * Creates a plain object from an OperationInfo message. Also converts values to other types if specified.
+ * @param message OperationInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.OperationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OperationInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OperationInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace rpc. */
+ namespace rpc {
+
+ /** Properties of a Status. */
+ interface IStatus {
+
+ /** Status code */
+ code?: (number|null);
+
+ /** Status message */
+ message?: (string|null);
+
+ /** Status details */
+ details?: (google.protobuf.IAny[]|null);
+ }
+
+ /** Represents a Status. */
+ class Status implements IStatus {
+
+ /**
+ * Constructs a new Status.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.rpc.IStatus);
+
+ /** Status code. */
+ public code: number;
+
+ /** Status message. */
+ public message: string;
+
+ /** Status details. */
+ public details: google.protobuf.IAny[];
+
+ /**
+ * Creates a new Status instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Status instance
+ */
+ public static create(properties?: google.rpc.IStatus): google.rpc.Status;
+
+ /**
+ * Encodes the specified Status message. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
+ * @param message Status message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Status message, length delimited. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
+ * @param message Status message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Status message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Status
+ * @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.rpc.Status;
+
+ /**
+ * Decodes a Status message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Status
+ * @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.rpc.Status;
+
+ /**
+ * Verifies a Status 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 Status message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Status
+ */
+ public static fromObject(object: { [k: string]: any }): google.rpc.Status;
+
+ /**
+ * Creates a plain object from a Status message. Also converts values to other types if specified.
+ * @param message Status
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.rpc.Status, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Status to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Status
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+}
diff --git a/packages/google-cloud-developerconnect/protos/protos.js b/packages/google-cloud-developerconnect/protos/protos.js
new file mode 100644
index 00000000000..e82fa6d3a86
--- /dev/null
+++ b/packages/google-cloud-developerconnect/protos/protos.js
@@ -0,0 +1,30220 @@
+// 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 block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/
+(function(global, factory) { /* global define, require, module */
+
+ /* AMD */ if (typeof define === 'function' && define.amd)
+ define(["protobufjs/minimal"], factory);
+
+ /* CommonJS */ else if (typeof require === 'function' && typeof module === 'object' && module && module.exports)
+ module.exports = factory(require("google-gax/build/src/protobuf").protobufMinimal);
+
+})(this, function($protobuf) {
+ "use strict";
+
+ // Common aliases
+ var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;
+
+ // Exported root namespace
+ var $root = $protobuf.roots._google_cloud_developerconnect_protos || ($protobuf.roots._google_cloud_developerconnect_protos = {});
+
+ $root.google = (function() {
+
+ /**
+ * Namespace google.
+ * @exports google
+ * @namespace
+ */
+ var google = {};
+
+ google.cloud = (function() {
+
+ /**
+ * Namespace cloud.
+ * @memberof google
+ * @namespace
+ */
+ var cloud = {};
+
+ cloud.developerconnect = (function() {
+
+ /**
+ * Namespace developerconnect.
+ * @memberof google.cloud
+ * @namespace
+ */
+ var developerconnect = {};
+
+ developerconnect.v1 = (function() {
+
+ /**
+ * Namespace v1.
+ * @memberof google.cloud.developerconnect
+ * @namespace
+ */
+ var v1 = {};
+
+ v1.DeveloperConnect = (function() {
+
+ /**
+ * Constructs a new DeveloperConnect service.
+ * @memberof google.cloud.developerconnect.v1
+ * @classdesc Represents a DeveloperConnect
+ * @extends $protobuf.rpc.Service
+ * @constructor
+ * @param {$protobuf.RPCImpl} rpcImpl RPC implementation
+ * @param {boolean} [requestDelimited=false] Whether requests are length-delimited
+ * @param {boolean} [responseDelimited=false] Whether responses are length-delimited
+ */
+ function DeveloperConnect(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (DeveloperConnect.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = DeveloperConnect;
+
+ /**
+ * Creates new DeveloperConnect service using the specified rpc implementation.
+ * @function create
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @static
+ * @param {$protobuf.RPCImpl} rpcImpl RPC implementation
+ * @param {boolean} [requestDelimited=false] Whether requests are length-delimited
+ * @param {boolean} [responseDelimited=false] Whether responses are length-delimited
+ * @returns {DeveloperConnect} RPC service. Useful where requests and/or responses are streamed.
+ */
+ DeveloperConnect.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.cloud.developerconnect.v1.DeveloperConnect|listConnections}.
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @typedef ListConnectionsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.developerconnect.v1.ListConnectionsResponse} [response] ListConnectionsResponse
+ */
+
+ /**
+ * Calls ListConnections.
+ * @function listConnections
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @instance
+ * @param {google.cloud.developerconnect.v1.IListConnectionsRequest} request ListConnectionsRequest message or plain object
+ * @param {google.cloud.developerconnect.v1.DeveloperConnect.ListConnectionsCallback} callback Node-style callback called with the error, if any, and ListConnectionsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DeveloperConnect.prototype.listConnections = function listConnections(request, callback) {
+ return this.rpcCall(listConnections, $root.google.cloud.developerconnect.v1.ListConnectionsRequest, $root.google.cloud.developerconnect.v1.ListConnectionsResponse, request, callback);
+ }, "name", { value: "ListConnections" });
+
+ /**
+ * Calls ListConnections.
+ * @function listConnections
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @instance
+ * @param {google.cloud.developerconnect.v1.IListConnectionsRequest} request ListConnectionsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.developerconnect.v1.DeveloperConnect|getConnection}.
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @typedef GetConnectionCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.developerconnect.v1.Connection} [response] Connection
+ */
+
+ /**
+ * Calls GetConnection.
+ * @function getConnection
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @instance
+ * @param {google.cloud.developerconnect.v1.IGetConnectionRequest} request GetConnectionRequest message or plain object
+ * @param {google.cloud.developerconnect.v1.DeveloperConnect.GetConnectionCallback} callback Node-style callback called with the error, if any, and Connection
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DeveloperConnect.prototype.getConnection = function getConnection(request, callback) {
+ return this.rpcCall(getConnection, $root.google.cloud.developerconnect.v1.GetConnectionRequest, $root.google.cloud.developerconnect.v1.Connection, request, callback);
+ }, "name", { value: "GetConnection" });
+
+ /**
+ * Calls GetConnection.
+ * @function getConnection
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @instance
+ * @param {google.cloud.developerconnect.v1.IGetConnectionRequest} request GetConnectionRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.developerconnect.v1.DeveloperConnect|createConnection}.
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @typedef CreateConnectionCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateConnection.
+ * @function createConnection
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @instance
+ * @param {google.cloud.developerconnect.v1.ICreateConnectionRequest} request CreateConnectionRequest message or plain object
+ * @param {google.cloud.developerconnect.v1.DeveloperConnect.CreateConnectionCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DeveloperConnect.prototype.createConnection = function createConnection(request, callback) {
+ return this.rpcCall(createConnection, $root.google.cloud.developerconnect.v1.CreateConnectionRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateConnection" });
+
+ /**
+ * Calls CreateConnection.
+ * @function createConnection
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @instance
+ * @param {google.cloud.developerconnect.v1.ICreateConnectionRequest} request CreateConnectionRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.developerconnect.v1.DeveloperConnect|updateConnection}.
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @typedef UpdateConnectionCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls UpdateConnection.
+ * @function updateConnection
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @instance
+ * @param {google.cloud.developerconnect.v1.IUpdateConnectionRequest} request UpdateConnectionRequest message or plain object
+ * @param {google.cloud.developerconnect.v1.DeveloperConnect.UpdateConnectionCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DeveloperConnect.prototype.updateConnection = function updateConnection(request, callback) {
+ return this.rpcCall(updateConnection, $root.google.cloud.developerconnect.v1.UpdateConnectionRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "UpdateConnection" });
+
+ /**
+ * Calls UpdateConnection.
+ * @function updateConnection
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @instance
+ * @param {google.cloud.developerconnect.v1.IUpdateConnectionRequest} request UpdateConnectionRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.developerconnect.v1.DeveloperConnect|deleteConnection}.
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @typedef DeleteConnectionCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeleteConnection.
+ * @function deleteConnection
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @instance
+ * @param {google.cloud.developerconnect.v1.IDeleteConnectionRequest} request DeleteConnectionRequest message or plain object
+ * @param {google.cloud.developerconnect.v1.DeveloperConnect.DeleteConnectionCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DeveloperConnect.prototype.deleteConnection = function deleteConnection(request, callback) {
+ return this.rpcCall(deleteConnection, $root.google.cloud.developerconnect.v1.DeleteConnectionRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeleteConnection" });
+
+ /**
+ * Calls DeleteConnection.
+ * @function deleteConnection
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @instance
+ * @param {google.cloud.developerconnect.v1.IDeleteConnectionRequest} request DeleteConnectionRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.developerconnect.v1.DeveloperConnect|createGitRepositoryLink}.
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @typedef CreateGitRepositoryLinkCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateGitRepositoryLink.
+ * @function createGitRepositoryLink
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @instance
+ * @param {google.cloud.developerconnect.v1.ICreateGitRepositoryLinkRequest} request CreateGitRepositoryLinkRequest message or plain object
+ * @param {google.cloud.developerconnect.v1.DeveloperConnect.CreateGitRepositoryLinkCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DeveloperConnect.prototype.createGitRepositoryLink = function createGitRepositoryLink(request, callback) {
+ return this.rpcCall(createGitRepositoryLink, $root.google.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateGitRepositoryLink" });
+
+ /**
+ * Calls CreateGitRepositoryLink.
+ * @function createGitRepositoryLink
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @instance
+ * @param {google.cloud.developerconnect.v1.ICreateGitRepositoryLinkRequest} request CreateGitRepositoryLinkRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.developerconnect.v1.DeveloperConnect|deleteGitRepositoryLink}.
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @typedef DeleteGitRepositoryLinkCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeleteGitRepositoryLink.
+ * @function deleteGitRepositoryLink
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @instance
+ * @param {google.cloud.developerconnect.v1.IDeleteGitRepositoryLinkRequest} request DeleteGitRepositoryLinkRequest message or plain object
+ * @param {google.cloud.developerconnect.v1.DeveloperConnect.DeleteGitRepositoryLinkCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DeveloperConnect.prototype.deleteGitRepositoryLink = function deleteGitRepositoryLink(request, callback) {
+ return this.rpcCall(deleteGitRepositoryLink, $root.google.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeleteGitRepositoryLink" });
+
+ /**
+ * Calls DeleteGitRepositoryLink.
+ * @function deleteGitRepositoryLink
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @instance
+ * @param {google.cloud.developerconnect.v1.IDeleteGitRepositoryLinkRequest} request DeleteGitRepositoryLinkRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.developerconnect.v1.DeveloperConnect|listGitRepositoryLinks}.
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @typedef ListGitRepositoryLinksCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse} [response] ListGitRepositoryLinksResponse
+ */
+
+ /**
+ * Calls ListGitRepositoryLinks.
+ * @function listGitRepositoryLinks
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @instance
+ * @param {google.cloud.developerconnect.v1.IListGitRepositoryLinksRequest} request ListGitRepositoryLinksRequest message or plain object
+ * @param {google.cloud.developerconnect.v1.DeveloperConnect.ListGitRepositoryLinksCallback} callback Node-style callback called with the error, if any, and ListGitRepositoryLinksResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DeveloperConnect.prototype.listGitRepositoryLinks = function listGitRepositoryLinks(request, callback) {
+ return this.rpcCall(listGitRepositoryLinks, $root.google.cloud.developerconnect.v1.ListGitRepositoryLinksRequest, $root.google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse, request, callback);
+ }, "name", { value: "ListGitRepositoryLinks" });
+
+ /**
+ * Calls ListGitRepositoryLinks.
+ * @function listGitRepositoryLinks
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @instance
+ * @param {google.cloud.developerconnect.v1.IListGitRepositoryLinksRequest} request ListGitRepositoryLinksRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.developerconnect.v1.DeveloperConnect|getGitRepositoryLink}.
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @typedef GetGitRepositoryLinkCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.developerconnect.v1.GitRepositoryLink} [response] GitRepositoryLink
+ */
+
+ /**
+ * Calls GetGitRepositoryLink.
+ * @function getGitRepositoryLink
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @instance
+ * @param {google.cloud.developerconnect.v1.IGetGitRepositoryLinkRequest} request GetGitRepositoryLinkRequest message or plain object
+ * @param {google.cloud.developerconnect.v1.DeveloperConnect.GetGitRepositoryLinkCallback} callback Node-style callback called with the error, if any, and GitRepositoryLink
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DeveloperConnect.prototype.getGitRepositoryLink = function getGitRepositoryLink(request, callback) {
+ return this.rpcCall(getGitRepositoryLink, $root.google.cloud.developerconnect.v1.GetGitRepositoryLinkRequest, $root.google.cloud.developerconnect.v1.GitRepositoryLink, request, callback);
+ }, "name", { value: "GetGitRepositoryLink" });
+
+ /**
+ * Calls GetGitRepositoryLink.
+ * @function getGitRepositoryLink
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @instance
+ * @param {google.cloud.developerconnect.v1.IGetGitRepositoryLinkRequest} request GetGitRepositoryLinkRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.developerconnect.v1.DeveloperConnect|fetchReadWriteToken}.
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @typedef FetchReadWriteTokenCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.developerconnect.v1.FetchReadWriteTokenResponse} [response] FetchReadWriteTokenResponse
+ */
+
+ /**
+ * Calls FetchReadWriteToken.
+ * @function fetchReadWriteToken
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @instance
+ * @param {google.cloud.developerconnect.v1.IFetchReadWriteTokenRequest} request FetchReadWriteTokenRequest message or plain object
+ * @param {google.cloud.developerconnect.v1.DeveloperConnect.FetchReadWriteTokenCallback} callback Node-style callback called with the error, if any, and FetchReadWriteTokenResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DeveloperConnect.prototype.fetchReadWriteToken = function fetchReadWriteToken(request, callback) {
+ return this.rpcCall(fetchReadWriteToken, $root.google.cloud.developerconnect.v1.FetchReadWriteTokenRequest, $root.google.cloud.developerconnect.v1.FetchReadWriteTokenResponse, request, callback);
+ }, "name", { value: "FetchReadWriteToken" });
+
+ /**
+ * Calls FetchReadWriteToken.
+ * @function fetchReadWriteToken
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @instance
+ * @param {google.cloud.developerconnect.v1.IFetchReadWriteTokenRequest} request FetchReadWriteTokenRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.developerconnect.v1.DeveloperConnect|fetchReadToken}.
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @typedef FetchReadTokenCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.developerconnect.v1.FetchReadTokenResponse} [response] FetchReadTokenResponse
+ */
+
+ /**
+ * Calls FetchReadToken.
+ * @function fetchReadToken
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @instance
+ * @param {google.cloud.developerconnect.v1.IFetchReadTokenRequest} request FetchReadTokenRequest message or plain object
+ * @param {google.cloud.developerconnect.v1.DeveloperConnect.FetchReadTokenCallback} callback Node-style callback called with the error, if any, and FetchReadTokenResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DeveloperConnect.prototype.fetchReadToken = function fetchReadToken(request, callback) {
+ return this.rpcCall(fetchReadToken, $root.google.cloud.developerconnect.v1.FetchReadTokenRequest, $root.google.cloud.developerconnect.v1.FetchReadTokenResponse, request, callback);
+ }, "name", { value: "FetchReadToken" });
+
+ /**
+ * Calls FetchReadToken.
+ * @function fetchReadToken
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @instance
+ * @param {google.cloud.developerconnect.v1.IFetchReadTokenRequest} request FetchReadTokenRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.developerconnect.v1.DeveloperConnect|fetchLinkableGitRepositories}.
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @typedef FetchLinkableGitRepositoriesCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse} [response] FetchLinkableGitRepositoriesResponse
+ */
+
+ /**
+ * Calls FetchLinkableGitRepositories.
+ * @function fetchLinkableGitRepositories
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @instance
+ * @param {google.cloud.developerconnect.v1.IFetchLinkableGitRepositoriesRequest} request FetchLinkableGitRepositoriesRequest message or plain object
+ * @param {google.cloud.developerconnect.v1.DeveloperConnect.FetchLinkableGitRepositoriesCallback} callback Node-style callback called with the error, if any, and FetchLinkableGitRepositoriesResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DeveloperConnect.prototype.fetchLinkableGitRepositories = function fetchLinkableGitRepositories(request, callback) {
+ return this.rpcCall(fetchLinkableGitRepositories, $root.google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest, $root.google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse, request, callback);
+ }, "name", { value: "FetchLinkableGitRepositories" });
+
+ /**
+ * Calls FetchLinkableGitRepositories.
+ * @function fetchLinkableGitRepositories
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @instance
+ * @param {google.cloud.developerconnect.v1.IFetchLinkableGitRepositoriesRequest} request FetchLinkableGitRepositoriesRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.developerconnect.v1.DeveloperConnect|fetchGitHubInstallations}.
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @typedef FetchGitHubInstallationsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse} [response] FetchGitHubInstallationsResponse
+ */
+
+ /**
+ * Calls FetchGitHubInstallations.
+ * @function fetchGitHubInstallations
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @instance
+ * @param {google.cloud.developerconnect.v1.IFetchGitHubInstallationsRequest} request FetchGitHubInstallationsRequest message or plain object
+ * @param {google.cloud.developerconnect.v1.DeveloperConnect.FetchGitHubInstallationsCallback} callback Node-style callback called with the error, if any, and FetchGitHubInstallationsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DeveloperConnect.prototype.fetchGitHubInstallations = function fetchGitHubInstallations(request, callback) {
+ return this.rpcCall(fetchGitHubInstallations, $root.google.cloud.developerconnect.v1.FetchGitHubInstallationsRequest, $root.google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse, request, callback);
+ }, "name", { value: "FetchGitHubInstallations" });
+
+ /**
+ * Calls FetchGitHubInstallations.
+ * @function fetchGitHubInstallations
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @instance
+ * @param {google.cloud.developerconnect.v1.IFetchGitHubInstallationsRequest} request FetchGitHubInstallationsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.developerconnect.v1.DeveloperConnect|fetchGitRefs}.
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @typedef FetchGitRefsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.developerconnect.v1.FetchGitRefsResponse} [response] FetchGitRefsResponse
+ */
+
+ /**
+ * Calls FetchGitRefs.
+ * @function fetchGitRefs
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @instance
+ * @param {google.cloud.developerconnect.v1.IFetchGitRefsRequest} request FetchGitRefsRequest message or plain object
+ * @param {google.cloud.developerconnect.v1.DeveloperConnect.FetchGitRefsCallback} callback Node-style callback called with the error, if any, and FetchGitRefsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(DeveloperConnect.prototype.fetchGitRefs = function fetchGitRefs(request, callback) {
+ return this.rpcCall(fetchGitRefs, $root.google.cloud.developerconnect.v1.FetchGitRefsRequest, $root.google.cloud.developerconnect.v1.FetchGitRefsResponse, request, callback);
+ }, "name", { value: "FetchGitRefs" });
+
+ /**
+ * Calls FetchGitRefs.
+ * @function fetchGitRefs
+ * @memberof google.cloud.developerconnect.v1.DeveloperConnect
+ * @instance
+ * @param {google.cloud.developerconnect.v1.IFetchGitRefsRequest} request FetchGitRefsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ return DeveloperConnect;
+ })();
+
+ v1.Connection = (function() {
+
+ /**
+ * Properties of a Connection.
+ * @memberof google.cloud.developerconnect.v1
+ * @interface IConnection
+ * @property {google.cloud.developerconnect.v1.IGitHubConfig|null} [githubConfig] Connection githubConfig
+ * @property {string|null} [name] Connection name
+ * @property {google.protobuf.ITimestamp|null} [createTime] Connection createTime
+ * @property {google.protobuf.ITimestamp|null} [updateTime] Connection updateTime
+ * @property {google.protobuf.ITimestamp|null} [deleteTime] Connection deleteTime
+ * @property {Object.|null} [labels] Connection labels
+ * @property {google.cloud.developerconnect.v1.IInstallationState|null} [installationState] Connection installationState
+ * @property {boolean|null} [disabled] Connection disabled
+ * @property {boolean|null} [reconciling] Connection reconciling
+ * @property {Object.|null} [annotations] Connection annotations
+ * @property {string|null} [etag] Connection etag
+ * @property {string|null} [uid] Connection uid
+ */
+
+ /**
+ * Constructs a new Connection.
+ * @memberof google.cloud.developerconnect.v1
+ * @classdesc Represents a Connection.
+ * @implements IConnection
+ * @constructor
+ * @param {google.cloud.developerconnect.v1.IConnection=} [properties] Properties to set
+ */
+ function Connection(properties) {
+ this.labels = {};
+ this.annotations = {};
+ 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]];
+ }
+
+ /**
+ * Connection githubConfig.
+ * @member {google.cloud.developerconnect.v1.IGitHubConfig|null|undefined} githubConfig
+ * @memberof google.cloud.developerconnect.v1.Connection
+ * @instance
+ */
+ Connection.prototype.githubConfig = null;
+
+ /**
+ * Connection name.
+ * @member {string} name
+ * @memberof google.cloud.developerconnect.v1.Connection
+ * @instance
+ */
+ Connection.prototype.name = "";
+
+ /**
+ * Connection createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.developerconnect.v1.Connection
+ * @instance
+ */
+ Connection.prototype.createTime = null;
+
+ /**
+ * Connection updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.developerconnect.v1.Connection
+ * @instance
+ */
+ Connection.prototype.updateTime = null;
+
+ /**
+ * Connection deleteTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} deleteTime
+ * @memberof google.cloud.developerconnect.v1.Connection
+ * @instance
+ */
+ Connection.prototype.deleteTime = null;
+
+ /**
+ * Connection labels.
+ * @member {Object.} labels
+ * @memberof google.cloud.developerconnect.v1.Connection
+ * @instance
+ */
+ Connection.prototype.labels = $util.emptyObject;
+
+ /**
+ * Connection installationState.
+ * @member {google.cloud.developerconnect.v1.IInstallationState|null|undefined} installationState
+ * @memberof google.cloud.developerconnect.v1.Connection
+ * @instance
+ */
+ Connection.prototype.installationState = null;
+
+ /**
+ * Connection disabled.
+ * @member {boolean} disabled
+ * @memberof google.cloud.developerconnect.v1.Connection
+ * @instance
+ */
+ Connection.prototype.disabled = false;
+
+ /**
+ * Connection reconciling.
+ * @member {boolean} reconciling
+ * @memberof google.cloud.developerconnect.v1.Connection
+ * @instance
+ */
+ Connection.prototype.reconciling = false;
+
+ /**
+ * Connection annotations.
+ * @member {Object.} annotations
+ * @memberof google.cloud.developerconnect.v1.Connection
+ * @instance
+ */
+ Connection.prototype.annotations = $util.emptyObject;
+
+ /**
+ * Connection etag.
+ * @member {string} etag
+ * @memberof google.cloud.developerconnect.v1.Connection
+ * @instance
+ */
+ Connection.prototype.etag = "";
+
+ /**
+ * Connection uid.
+ * @member {string} uid
+ * @memberof google.cloud.developerconnect.v1.Connection
+ * @instance
+ */
+ Connection.prototype.uid = "";
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * Connection connectionConfig.
+ * @member {"githubConfig"|undefined} connectionConfig
+ * @memberof google.cloud.developerconnect.v1.Connection
+ * @instance
+ */
+ Object.defineProperty(Connection.prototype, "connectionConfig", {
+ get: $util.oneOfGetter($oneOfFields = ["githubConfig"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new Connection instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.developerconnect.v1.Connection
+ * @static
+ * @param {google.cloud.developerconnect.v1.IConnection=} [properties] Properties to set
+ * @returns {google.cloud.developerconnect.v1.Connection} Connection instance
+ */
+ Connection.create = function create(properties) {
+ return new Connection(properties);
+ };
+
+ /**
+ * Encodes the specified Connection message. Does not implicitly {@link google.cloud.developerconnect.v1.Connection.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.developerconnect.v1.Connection
+ * @static
+ * @param {google.cloud.developerconnect.v1.IConnection} message Connection message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Connection.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.labels != null && Object.hasOwnProperty.call(message, "labels"))
+ for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim();
+ if (message.githubConfig != null && Object.hasOwnProperty.call(message, "githubConfig"))
+ $root.google.cloud.developerconnect.v1.GitHubConfig.encode(message.githubConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.installationState != null && Object.hasOwnProperty.call(message, "installationState"))
+ $root.google.cloud.developerconnect.v1.InstallationState.encode(message.installationState, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled"))
+ writer.uint32(/* id 7, wireType 0 =*/56).bool(message.disabled);
+ if (message.reconciling != null && Object.hasOwnProperty.call(message, "reconciling"))
+ writer.uint32(/* id 8, wireType 0 =*/64).bool(message.reconciling);
+ if (message.annotations != null && Object.hasOwnProperty.call(message, "annotations"))
+ for (var keys = Object.keys(message.annotations), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.annotations[keys[i]]).ldelim();
+ if (message.etag != null && Object.hasOwnProperty.call(message, "etag"))
+ writer.uint32(/* id 10, wireType 2 =*/82).string(message.etag);
+ if (message.deleteTime != null && Object.hasOwnProperty.call(message, "deleteTime"))
+ $root.google.protobuf.Timestamp.encode(message.deleteTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
+ if (message.uid != null && Object.hasOwnProperty.call(message, "uid"))
+ writer.uint32(/* id 12, wireType 2 =*/98).string(message.uid);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Connection message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.Connection.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.developerconnect.v1.Connection
+ * @static
+ * @param {google.cloud.developerconnect.v1.IConnection} message Connection message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Connection.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Connection message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.developerconnect.v1.Connection
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.developerconnect.v1.Connection} Connection
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Connection.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.cloud.developerconnect.v1.Connection(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 5: {
+ message.githubConfig = $root.google.cloud.developerconnect.v1.GitHubConfig.decode(reader, reader.uint32());
+ break;
+ }
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 11: {
+ message.deleteTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ if (message.labels === $util.emptyObject)
+ message.labels = {};
+ 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.labels[key] = value;
+ break;
+ }
+ case 6: {
+ message.installationState = $root.google.cloud.developerconnect.v1.InstallationState.decode(reader, reader.uint32());
+ break;
+ }
+ case 7: {
+ message.disabled = reader.bool();
+ break;
+ }
+ case 8: {
+ message.reconciling = reader.bool();
+ break;
+ }
+ case 9: {
+ if (message.annotations === $util.emptyObject)
+ message.annotations = {};
+ 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.annotations[key] = value;
+ break;
+ }
+ case 10: {
+ message.etag = reader.string();
+ break;
+ }
+ case 12: {
+ message.uid = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Connection message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.developerconnect.v1.Connection
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.developerconnect.v1.Connection} Connection
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Connection.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Connection message.
+ * @function verify
+ * @memberof google.cloud.developerconnect.v1.Connection
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Connection.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.githubConfig != null && message.hasOwnProperty("githubConfig")) {
+ properties.connectionConfig = 1;
+ {
+ var error = $root.google.cloud.developerconnect.v1.GitHubConfig.verify(message.githubConfig);
+ if (error)
+ return "githubConfig." + error;
+ }
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.createTime != null && message.hasOwnProperty("createTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.createTime);
+ if (error)
+ return "createTime." + error;
+ }
+ if (message.updateTime != null && message.hasOwnProperty("updateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.updateTime);
+ if (error)
+ return "updateTime." + error;
+ }
+ if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.deleteTime);
+ if (error)
+ return "deleteTime." + error;
+ }
+ if (message.labels != null && message.hasOwnProperty("labels")) {
+ if (!$util.isObject(message.labels))
+ return "labels: object expected";
+ var key = Object.keys(message.labels);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.labels[key[i]]))
+ return "labels: string{k:string} expected";
+ }
+ if (message.installationState != null && message.hasOwnProperty("installationState")) {
+ var error = $root.google.cloud.developerconnect.v1.InstallationState.verify(message.installationState);
+ if (error)
+ return "installationState." + error;
+ }
+ if (message.disabled != null && message.hasOwnProperty("disabled"))
+ if (typeof message.disabled !== "boolean")
+ return "disabled: boolean expected";
+ if (message.reconciling != null && message.hasOwnProperty("reconciling"))
+ if (typeof message.reconciling !== "boolean")
+ return "reconciling: boolean expected";
+ if (message.annotations != null && message.hasOwnProperty("annotations")) {
+ if (!$util.isObject(message.annotations))
+ return "annotations: object expected";
+ var key = Object.keys(message.annotations);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.annotations[key[i]]))
+ return "annotations: string{k:string} expected";
+ }
+ if (message.etag != null && message.hasOwnProperty("etag"))
+ if (!$util.isString(message.etag))
+ return "etag: string expected";
+ if (message.uid != null && message.hasOwnProperty("uid"))
+ if (!$util.isString(message.uid))
+ return "uid: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a Connection message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.developerconnect.v1.Connection
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.developerconnect.v1.Connection} Connection
+ */
+ Connection.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.developerconnect.v1.Connection)
+ return object;
+ var message = new $root.google.cloud.developerconnect.v1.Connection();
+ if (object.githubConfig != null) {
+ if (typeof object.githubConfig !== "object")
+ throw TypeError(".google.cloud.developerconnect.v1.Connection.githubConfig: object expected");
+ message.githubConfig = $root.google.cloud.developerconnect.v1.GitHubConfig.fromObject(object.githubConfig);
+ }
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.developerconnect.v1.Connection.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
+ }
+ if (object.updateTime != null) {
+ if (typeof object.updateTime !== "object")
+ throw TypeError(".google.cloud.developerconnect.v1.Connection.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ if (object.deleteTime != null) {
+ if (typeof object.deleteTime !== "object")
+ throw TypeError(".google.cloud.developerconnect.v1.Connection.deleteTime: object expected");
+ message.deleteTime = $root.google.protobuf.Timestamp.fromObject(object.deleteTime);
+ }
+ if (object.labels) {
+ if (typeof object.labels !== "object")
+ throw TypeError(".google.cloud.developerconnect.v1.Connection.labels: object expected");
+ message.labels = {};
+ for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i)
+ message.labels[keys[i]] = String(object.labels[keys[i]]);
+ }
+ if (object.installationState != null) {
+ if (typeof object.installationState !== "object")
+ throw TypeError(".google.cloud.developerconnect.v1.Connection.installationState: object expected");
+ message.installationState = $root.google.cloud.developerconnect.v1.InstallationState.fromObject(object.installationState);
+ }
+ if (object.disabled != null)
+ message.disabled = Boolean(object.disabled);
+ if (object.reconciling != null)
+ message.reconciling = Boolean(object.reconciling);
+ if (object.annotations) {
+ if (typeof object.annotations !== "object")
+ throw TypeError(".google.cloud.developerconnect.v1.Connection.annotations: object expected");
+ message.annotations = {};
+ for (var keys = Object.keys(object.annotations), i = 0; i < keys.length; ++i)
+ message.annotations[keys[i]] = String(object.annotations[keys[i]]);
+ }
+ if (object.etag != null)
+ message.etag = String(object.etag);
+ if (object.uid != null)
+ message.uid = String(object.uid);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Connection message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.developerconnect.v1.Connection
+ * @static
+ * @param {google.cloud.developerconnect.v1.Connection} message Connection
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Connection.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.objects || options.defaults) {
+ object.labels = {};
+ object.annotations = {};
+ }
+ if (options.defaults) {
+ object.name = "";
+ object.createTime = null;
+ object.updateTime = null;
+ object.installationState = null;
+ object.disabled = false;
+ object.reconciling = false;
+ object.etag = "";
+ object.deleteTime = null;
+ object.uid = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.createTime != null && message.hasOwnProperty("createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
+ if (message.updateTime != null && message.hasOwnProperty("updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
+ var keys2;
+ if (message.labels && (keys2 = Object.keys(message.labels)).length) {
+ object.labels = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.labels[keys2[j]] = message.labels[keys2[j]];
+ }
+ if (message.githubConfig != null && message.hasOwnProperty("githubConfig")) {
+ object.githubConfig = $root.google.cloud.developerconnect.v1.GitHubConfig.toObject(message.githubConfig, options);
+ if (options.oneofs)
+ object.connectionConfig = "githubConfig";
+ }
+ if (message.installationState != null && message.hasOwnProperty("installationState"))
+ object.installationState = $root.google.cloud.developerconnect.v1.InstallationState.toObject(message.installationState, options);
+ if (message.disabled != null && message.hasOwnProperty("disabled"))
+ object.disabled = message.disabled;
+ if (message.reconciling != null && message.hasOwnProperty("reconciling"))
+ object.reconciling = message.reconciling;
+ if (message.annotations && (keys2 = Object.keys(message.annotations)).length) {
+ object.annotations = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.annotations[keys2[j]] = message.annotations[keys2[j]];
+ }
+ if (message.etag != null && message.hasOwnProperty("etag"))
+ object.etag = message.etag;
+ if (message.deleteTime != null && message.hasOwnProperty("deleteTime"))
+ object.deleteTime = $root.google.protobuf.Timestamp.toObject(message.deleteTime, options);
+ if (message.uid != null && message.hasOwnProperty("uid"))
+ object.uid = message.uid;
+ return object;
+ };
+
+ /**
+ * Converts this Connection to JSON.
+ * @function toJSON
+ * @memberof google.cloud.developerconnect.v1.Connection
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Connection.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Connection
+ * @function getTypeUrl
+ * @memberof google.cloud.developerconnect.v1.Connection
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Connection.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.developerconnect.v1.Connection";
+ };
+
+ return Connection;
+ })();
+
+ v1.InstallationState = (function() {
+
+ /**
+ * Properties of an InstallationState.
+ * @memberof google.cloud.developerconnect.v1
+ * @interface IInstallationState
+ * @property {google.cloud.developerconnect.v1.InstallationState.Stage|null} [stage] InstallationState stage
+ * @property {string|null} [message] InstallationState message
+ * @property {string|null} [actionUri] InstallationState actionUri
+ */
+
+ /**
+ * Constructs a new InstallationState.
+ * @memberof google.cloud.developerconnect.v1
+ * @classdesc Represents an InstallationState.
+ * @implements IInstallationState
+ * @constructor
+ * @param {google.cloud.developerconnect.v1.IInstallationState=} [properties] Properties to set
+ */
+ function InstallationState(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]];
+ }
+
+ /**
+ * InstallationState stage.
+ * @member {google.cloud.developerconnect.v1.InstallationState.Stage} stage
+ * @memberof google.cloud.developerconnect.v1.InstallationState
+ * @instance
+ */
+ InstallationState.prototype.stage = 0;
+
+ /**
+ * InstallationState message.
+ * @member {string} message
+ * @memberof google.cloud.developerconnect.v1.InstallationState
+ * @instance
+ */
+ InstallationState.prototype.message = "";
+
+ /**
+ * InstallationState actionUri.
+ * @member {string} actionUri
+ * @memberof google.cloud.developerconnect.v1.InstallationState
+ * @instance
+ */
+ InstallationState.prototype.actionUri = "";
+
+ /**
+ * Creates a new InstallationState instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.developerconnect.v1.InstallationState
+ * @static
+ * @param {google.cloud.developerconnect.v1.IInstallationState=} [properties] Properties to set
+ * @returns {google.cloud.developerconnect.v1.InstallationState} InstallationState instance
+ */
+ InstallationState.create = function create(properties) {
+ return new InstallationState(properties);
+ };
+
+ /**
+ * Encodes the specified InstallationState message. Does not implicitly {@link google.cloud.developerconnect.v1.InstallationState.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.developerconnect.v1.InstallationState
+ * @static
+ * @param {google.cloud.developerconnect.v1.IInstallationState} message InstallationState message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ InstallationState.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.stage != null && Object.hasOwnProperty.call(message, "stage"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.stage);
+ if (message.message != null && Object.hasOwnProperty.call(message, "message"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.message);
+ if (message.actionUri != null && Object.hasOwnProperty.call(message, "actionUri"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.actionUri);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified InstallationState message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.InstallationState.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.developerconnect.v1.InstallationState
+ * @static
+ * @param {google.cloud.developerconnect.v1.IInstallationState} message InstallationState message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ InstallationState.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an InstallationState message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.developerconnect.v1.InstallationState
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.developerconnect.v1.InstallationState} InstallationState
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ InstallationState.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.cloud.developerconnect.v1.InstallationState();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.stage = reader.int32();
+ break;
+ }
+ case 2: {
+ message.message = reader.string();
+ break;
+ }
+ case 3: {
+ message.actionUri = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an InstallationState message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.developerconnect.v1.InstallationState
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.developerconnect.v1.InstallationState} InstallationState
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ InstallationState.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an InstallationState message.
+ * @function verify
+ * @memberof google.cloud.developerconnect.v1.InstallationState
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ InstallationState.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.stage != null && message.hasOwnProperty("stage"))
+ switch (message.stage) {
+ default:
+ return "stage: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 10:
+ break;
+ }
+ if (message.message != null && message.hasOwnProperty("message"))
+ if (!$util.isString(message.message))
+ return "message: string expected";
+ if (message.actionUri != null && message.hasOwnProperty("actionUri"))
+ if (!$util.isString(message.actionUri))
+ return "actionUri: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an InstallationState message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.developerconnect.v1.InstallationState
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.developerconnect.v1.InstallationState} InstallationState
+ */
+ InstallationState.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.developerconnect.v1.InstallationState)
+ return object;
+ var message = new $root.google.cloud.developerconnect.v1.InstallationState();
+ switch (object.stage) {
+ default:
+ if (typeof object.stage === "number") {
+ message.stage = object.stage;
+ break;
+ }
+ break;
+ case "STAGE_UNSPECIFIED":
+ case 0:
+ message.stage = 0;
+ break;
+ case "PENDING_CREATE_APP":
+ case 1:
+ message.stage = 1;
+ break;
+ case "PENDING_USER_OAUTH":
+ case 2:
+ message.stage = 2;
+ break;
+ case "PENDING_INSTALL_APP":
+ case 3:
+ message.stage = 3;
+ break;
+ case "COMPLETE":
+ case 10:
+ message.stage = 10;
+ break;
+ }
+ if (object.message != null)
+ message.message = String(object.message);
+ if (object.actionUri != null)
+ message.actionUri = String(object.actionUri);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an InstallationState message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.developerconnect.v1.InstallationState
+ * @static
+ * @param {google.cloud.developerconnect.v1.InstallationState} message InstallationState
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ InstallationState.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.stage = options.enums === String ? "STAGE_UNSPECIFIED" : 0;
+ object.message = "";
+ object.actionUri = "";
+ }
+ if (message.stage != null && message.hasOwnProperty("stage"))
+ object.stage = options.enums === String ? $root.google.cloud.developerconnect.v1.InstallationState.Stage[message.stage] === undefined ? message.stage : $root.google.cloud.developerconnect.v1.InstallationState.Stage[message.stage] : message.stage;
+ if (message.message != null && message.hasOwnProperty("message"))
+ object.message = message.message;
+ if (message.actionUri != null && message.hasOwnProperty("actionUri"))
+ object.actionUri = message.actionUri;
+ return object;
+ };
+
+ /**
+ * Converts this InstallationState to JSON.
+ * @function toJSON
+ * @memberof google.cloud.developerconnect.v1.InstallationState
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ InstallationState.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for InstallationState
+ * @function getTypeUrl
+ * @memberof google.cloud.developerconnect.v1.InstallationState
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ InstallationState.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.developerconnect.v1.InstallationState";
+ };
+
+ /**
+ * Stage enum.
+ * @name google.cloud.developerconnect.v1.InstallationState.Stage
+ * @enum {number}
+ * @property {number} STAGE_UNSPECIFIED=0 STAGE_UNSPECIFIED value
+ * @property {number} PENDING_CREATE_APP=1 PENDING_CREATE_APP value
+ * @property {number} PENDING_USER_OAUTH=2 PENDING_USER_OAUTH value
+ * @property {number} PENDING_INSTALL_APP=3 PENDING_INSTALL_APP value
+ * @property {number} COMPLETE=10 COMPLETE value
+ */
+ InstallationState.Stage = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STAGE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "PENDING_CREATE_APP"] = 1;
+ values[valuesById[2] = "PENDING_USER_OAUTH"] = 2;
+ values[valuesById[3] = "PENDING_INSTALL_APP"] = 3;
+ values[valuesById[10] = "COMPLETE"] = 10;
+ return values;
+ })();
+
+ return InstallationState;
+ })();
+
+ v1.GitHubConfig = (function() {
+
+ /**
+ * Properties of a GitHubConfig.
+ * @memberof google.cloud.developerconnect.v1
+ * @interface IGitHubConfig
+ * @property {google.cloud.developerconnect.v1.GitHubConfig.GitHubApp|null} [githubApp] GitHubConfig githubApp
+ * @property {google.cloud.developerconnect.v1.IOAuthCredential|null} [authorizerCredential] GitHubConfig authorizerCredential
+ * @property {number|Long|null} [appInstallationId] GitHubConfig appInstallationId
+ * @property {string|null} [installationUri] GitHubConfig installationUri
+ */
+
+ /**
+ * Constructs a new GitHubConfig.
+ * @memberof google.cloud.developerconnect.v1
+ * @classdesc Represents a GitHubConfig.
+ * @implements IGitHubConfig
+ * @constructor
+ * @param {google.cloud.developerconnect.v1.IGitHubConfig=} [properties] Properties to set
+ */
+ function GitHubConfig(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]];
+ }
+
+ /**
+ * GitHubConfig githubApp.
+ * @member {google.cloud.developerconnect.v1.GitHubConfig.GitHubApp} githubApp
+ * @memberof google.cloud.developerconnect.v1.GitHubConfig
+ * @instance
+ */
+ GitHubConfig.prototype.githubApp = 0;
+
+ /**
+ * GitHubConfig authorizerCredential.
+ * @member {google.cloud.developerconnect.v1.IOAuthCredential|null|undefined} authorizerCredential
+ * @memberof google.cloud.developerconnect.v1.GitHubConfig
+ * @instance
+ */
+ GitHubConfig.prototype.authorizerCredential = null;
+
+ /**
+ * GitHubConfig appInstallationId.
+ * @member {number|Long} appInstallationId
+ * @memberof google.cloud.developerconnect.v1.GitHubConfig
+ * @instance
+ */
+ GitHubConfig.prototype.appInstallationId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * GitHubConfig installationUri.
+ * @member {string} installationUri
+ * @memberof google.cloud.developerconnect.v1.GitHubConfig
+ * @instance
+ */
+ GitHubConfig.prototype.installationUri = "";
+
+ /**
+ * Creates a new GitHubConfig instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.developerconnect.v1.GitHubConfig
+ * @static
+ * @param {google.cloud.developerconnect.v1.IGitHubConfig=} [properties] Properties to set
+ * @returns {google.cloud.developerconnect.v1.GitHubConfig} GitHubConfig instance
+ */
+ GitHubConfig.create = function create(properties) {
+ return new GitHubConfig(properties);
+ };
+
+ /**
+ * Encodes the specified GitHubConfig message. Does not implicitly {@link google.cloud.developerconnect.v1.GitHubConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.developerconnect.v1.GitHubConfig
+ * @static
+ * @param {google.cloud.developerconnect.v1.IGitHubConfig} message GitHubConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GitHubConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.githubApp != null && Object.hasOwnProperty.call(message, "githubApp"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.githubApp);
+ if (message.authorizerCredential != null && Object.hasOwnProperty.call(message, "authorizerCredential"))
+ $root.google.cloud.developerconnect.v1.OAuthCredential.encode(message.authorizerCredential, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.appInstallationId != null && Object.hasOwnProperty.call(message, "appInstallationId"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int64(message.appInstallationId);
+ if (message.installationUri != null && Object.hasOwnProperty.call(message, "installationUri"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.installationUri);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GitHubConfig message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.GitHubConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.developerconnect.v1.GitHubConfig
+ * @static
+ * @param {google.cloud.developerconnect.v1.IGitHubConfig} message GitHubConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GitHubConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GitHubConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.developerconnect.v1.GitHubConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.developerconnect.v1.GitHubConfig} GitHubConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GitHubConfig.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.cloud.developerconnect.v1.GitHubConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.githubApp = reader.int32();
+ break;
+ }
+ case 2: {
+ message.authorizerCredential = $root.google.cloud.developerconnect.v1.OAuthCredential.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.appInstallationId = reader.int64();
+ break;
+ }
+ case 4: {
+ message.installationUri = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GitHubConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.developerconnect.v1.GitHubConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.developerconnect.v1.GitHubConfig} GitHubConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GitHubConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GitHubConfig message.
+ * @function verify
+ * @memberof google.cloud.developerconnect.v1.GitHubConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GitHubConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.githubApp != null && message.hasOwnProperty("githubApp"))
+ switch (message.githubApp) {
+ default:
+ return "githubApp: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.authorizerCredential != null && message.hasOwnProperty("authorizerCredential")) {
+ var error = $root.google.cloud.developerconnect.v1.OAuthCredential.verify(message.authorizerCredential);
+ if (error)
+ return "authorizerCredential." + error;
+ }
+ if (message.appInstallationId != null && message.hasOwnProperty("appInstallationId"))
+ if (!$util.isInteger(message.appInstallationId) && !(message.appInstallationId && $util.isInteger(message.appInstallationId.low) && $util.isInteger(message.appInstallationId.high)))
+ return "appInstallationId: integer|Long expected";
+ if (message.installationUri != null && message.hasOwnProperty("installationUri"))
+ if (!$util.isString(message.installationUri))
+ return "installationUri: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GitHubConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.developerconnect.v1.GitHubConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.developerconnect.v1.GitHubConfig} GitHubConfig
+ */
+ GitHubConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.developerconnect.v1.GitHubConfig)
+ return object;
+ var message = new $root.google.cloud.developerconnect.v1.GitHubConfig();
+ switch (object.githubApp) {
+ default:
+ if (typeof object.githubApp === "number") {
+ message.githubApp = object.githubApp;
+ break;
+ }
+ break;
+ case "GIT_HUB_APP_UNSPECIFIED":
+ case 0:
+ message.githubApp = 0;
+ break;
+ case "DEVELOPER_CONNECT":
+ case 1:
+ message.githubApp = 1;
+ break;
+ case "FIREBASE":
+ case 2:
+ message.githubApp = 2;
+ break;
+ }
+ if (object.authorizerCredential != null) {
+ if (typeof object.authorizerCredential !== "object")
+ throw TypeError(".google.cloud.developerconnect.v1.GitHubConfig.authorizerCredential: object expected");
+ message.authorizerCredential = $root.google.cloud.developerconnect.v1.OAuthCredential.fromObject(object.authorizerCredential);
+ }
+ if (object.appInstallationId != null)
+ if ($util.Long)
+ (message.appInstallationId = $util.Long.fromValue(object.appInstallationId)).unsigned = false;
+ else if (typeof object.appInstallationId === "string")
+ message.appInstallationId = parseInt(object.appInstallationId, 10);
+ else if (typeof object.appInstallationId === "number")
+ message.appInstallationId = object.appInstallationId;
+ else if (typeof object.appInstallationId === "object")
+ message.appInstallationId = new $util.LongBits(object.appInstallationId.low >>> 0, object.appInstallationId.high >>> 0).toNumber();
+ if (object.installationUri != null)
+ message.installationUri = String(object.installationUri);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GitHubConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.developerconnect.v1.GitHubConfig
+ * @static
+ * @param {google.cloud.developerconnect.v1.GitHubConfig} message GitHubConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GitHubConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.githubApp = options.enums === String ? "GIT_HUB_APP_UNSPECIFIED" : 0;
+ object.authorizerCredential = null;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.appInstallationId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.appInstallationId = options.longs === String ? "0" : 0;
+ object.installationUri = "";
+ }
+ if (message.githubApp != null && message.hasOwnProperty("githubApp"))
+ object.githubApp = options.enums === String ? $root.google.cloud.developerconnect.v1.GitHubConfig.GitHubApp[message.githubApp] === undefined ? message.githubApp : $root.google.cloud.developerconnect.v1.GitHubConfig.GitHubApp[message.githubApp] : message.githubApp;
+ if (message.authorizerCredential != null && message.hasOwnProperty("authorizerCredential"))
+ object.authorizerCredential = $root.google.cloud.developerconnect.v1.OAuthCredential.toObject(message.authorizerCredential, options);
+ if (message.appInstallationId != null && message.hasOwnProperty("appInstallationId"))
+ if (typeof message.appInstallationId === "number")
+ object.appInstallationId = options.longs === String ? String(message.appInstallationId) : message.appInstallationId;
+ else
+ object.appInstallationId = options.longs === String ? $util.Long.prototype.toString.call(message.appInstallationId) : options.longs === Number ? new $util.LongBits(message.appInstallationId.low >>> 0, message.appInstallationId.high >>> 0).toNumber() : message.appInstallationId;
+ if (message.installationUri != null && message.hasOwnProperty("installationUri"))
+ object.installationUri = message.installationUri;
+ return object;
+ };
+
+ /**
+ * Converts this GitHubConfig to JSON.
+ * @function toJSON
+ * @memberof google.cloud.developerconnect.v1.GitHubConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GitHubConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GitHubConfig
+ * @function getTypeUrl
+ * @memberof google.cloud.developerconnect.v1.GitHubConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GitHubConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.developerconnect.v1.GitHubConfig";
+ };
+
+ /**
+ * GitHubApp enum.
+ * @name google.cloud.developerconnect.v1.GitHubConfig.GitHubApp
+ * @enum {number}
+ * @property {number} GIT_HUB_APP_UNSPECIFIED=0 GIT_HUB_APP_UNSPECIFIED value
+ * @property {number} DEVELOPER_CONNECT=1 DEVELOPER_CONNECT value
+ * @property {number} FIREBASE=2 FIREBASE value
+ */
+ GitHubConfig.GitHubApp = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "GIT_HUB_APP_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "DEVELOPER_CONNECT"] = 1;
+ values[valuesById[2] = "FIREBASE"] = 2;
+ return values;
+ })();
+
+ return GitHubConfig;
+ })();
+
+ v1.OAuthCredential = (function() {
+
+ /**
+ * Properties of a OAuthCredential.
+ * @memberof google.cloud.developerconnect.v1
+ * @interface IOAuthCredential
+ * @property {string|null} [oauthTokenSecretVersion] OAuthCredential oauthTokenSecretVersion
+ * @property {string|null} [username] OAuthCredential username
+ */
+
+ /**
+ * Constructs a new OAuthCredential.
+ * @memberof google.cloud.developerconnect.v1
+ * @classdesc Represents a OAuthCredential.
+ * @implements IOAuthCredential
+ * @constructor
+ * @param {google.cloud.developerconnect.v1.IOAuthCredential=} [properties] Properties to set
+ */
+ function OAuthCredential(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]];
+ }
+
+ /**
+ * OAuthCredential oauthTokenSecretVersion.
+ * @member {string} oauthTokenSecretVersion
+ * @memberof google.cloud.developerconnect.v1.OAuthCredential
+ * @instance
+ */
+ OAuthCredential.prototype.oauthTokenSecretVersion = "";
+
+ /**
+ * OAuthCredential username.
+ * @member {string} username
+ * @memberof google.cloud.developerconnect.v1.OAuthCredential
+ * @instance
+ */
+ OAuthCredential.prototype.username = "";
+
+ /**
+ * Creates a new OAuthCredential instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.developerconnect.v1.OAuthCredential
+ * @static
+ * @param {google.cloud.developerconnect.v1.IOAuthCredential=} [properties] Properties to set
+ * @returns {google.cloud.developerconnect.v1.OAuthCredential} OAuthCredential instance
+ */
+ OAuthCredential.create = function create(properties) {
+ return new OAuthCredential(properties);
+ };
+
+ /**
+ * Encodes the specified OAuthCredential message. Does not implicitly {@link google.cloud.developerconnect.v1.OAuthCredential.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.developerconnect.v1.OAuthCredential
+ * @static
+ * @param {google.cloud.developerconnect.v1.IOAuthCredential} message OAuthCredential message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OAuthCredential.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.oauthTokenSecretVersion != null && Object.hasOwnProperty.call(message, "oauthTokenSecretVersion"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.oauthTokenSecretVersion);
+ if (message.username != null && Object.hasOwnProperty.call(message, "username"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.username);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified OAuthCredential message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.OAuthCredential.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.developerconnect.v1.OAuthCredential
+ * @static
+ * @param {google.cloud.developerconnect.v1.IOAuthCredential} message OAuthCredential message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OAuthCredential.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a OAuthCredential message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.developerconnect.v1.OAuthCredential
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.developerconnect.v1.OAuthCredential} OAuthCredential
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OAuthCredential.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.cloud.developerconnect.v1.OAuthCredential();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.oauthTokenSecretVersion = reader.string();
+ break;
+ }
+ case 2: {
+ message.username = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a OAuthCredential message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.developerconnect.v1.OAuthCredential
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.developerconnect.v1.OAuthCredential} OAuthCredential
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OAuthCredential.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a OAuthCredential message.
+ * @function verify
+ * @memberof google.cloud.developerconnect.v1.OAuthCredential
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ OAuthCredential.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.oauthTokenSecretVersion != null && message.hasOwnProperty("oauthTokenSecretVersion"))
+ if (!$util.isString(message.oauthTokenSecretVersion))
+ return "oauthTokenSecretVersion: string expected";
+ if (message.username != null && message.hasOwnProperty("username"))
+ if (!$util.isString(message.username))
+ return "username: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a OAuthCredential message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.developerconnect.v1.OAuthCredential
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.developerconnect.v1.OAuthCredential} OAuthCredential
+ */
+ OAuthCredential.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.developerconnect.v1.OAuthCredential)
+ return object;
+ var message = new $root.google.cloud.developerconnect.v1.OAuthCredential();
+ if (object.oauthTokenSecretVersion != null)
+ message.oauthTokenSecretVersion = String(object.oauthTokenSecretVersion);
+ if (object.username != null)
+ message.username = String(object.username);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a OAuthCredential message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.developerconnect.v1.OAuthCredential
+ * @static
+ * @param {google.cloud.developerconnect.v1.OAuthCredential} message OAuthCredential
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ OAuthCredential.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.oauthTokenSecretVersion = "";
+ object.username = "";
+ }
+ if (message.oauthTokenSecretVersion != null && message.hasOwnProperty("oauthTokenSecretVersion"))
+ object.oauthTokenSecretVersion = message.oauthTokenSecretVersion;
+ if (message.username != null && message.hasOwnProperty("username"))
+ object.username = message.username;
+ return object;
+ };
+
+ /**
+ * Converts this OAuthCredential to JSON.
+ * @function toJSON
+ * @memberof google.cloud.developerconnect.v1.OAuthCredential
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ OAuthCredential.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for OAuthCredential
+ * @function getTypeUrl
+ * @memberof google.cloud.developerconnect.v1.OAuthCredential
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ OAuthCredential.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.developerconnect.v1.OAuthCredential";
+ };
+
+ return OAuthCredential;
+ })();
+
+ v1.ListConnectionsRequest = (function() {
+
+ /**
+ * Properties of a ListConnectionsRequest.
+ * @memberof google.cloud.developerconnect.v1
+ * @interface IListConnectionsRequest
+ * @property {string|null} [parent] ListConnectionsRequest parent
+ * @property {number|null} [pageSize] ListConnectionsRequest pageSize
+ * @property {string|null} [pageToken] ListConnectionsRequest pageToken
+ * @property {string|null} [filter] ListConnectionsRequest filter
+ * @property {string|null} [orderBy] ListConnectionsRequest orderBy
+ */
+
+ /**
+ * Constructs a new ListConnectionsRequest.
+ * @memberof google.cloud.developerconnect.v1
+ * @classdesc Represents a ListConnectionsRequest.
+ * @implements IListConnectionsRequest
+ * @constructor
+ * @param {google.cloud.developerconnect.v1.IListConnectionsRequest=} [properties] Properties to set
+ */
+ function ListConnectionsRequest(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]];
+ }
+
+ /**
+ * ListConnectionsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.developerconnect.v1.ListConnectionsRequest
+ * @instance
+ */
+ ListConnectionsRequest.prototype.parent = "";
+
+ /**
+ * ListConnectionsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.developerconnect.v1.ListConnectionsRequest
+ * @instance
+ */
+ ListConnectionsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListConnectionsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.developerconnect.v1.ListConnectionsRequest
+ * @instance
+ */
+ ListConnectionsRequest.prototype.pageToken = "";
+
+ /**
+ * ListConnectionsRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.developerconnect.v1.ListConnectionsRequest
+ * @instance
+ */
+ ListConnectionsRequest.prototype.filter = "";
+
+ /**
+ * ListConnectionsRequest orderBy.
+ * @member {string} orderBy
+ * @memberof google.cloud.developerconnect.v1.ListConnectionsRequest
+ * @instance
+ */
+ ListConnectionsRequest.prototype.orderBy = "";
+
+ /**
+ * Creates a new ListConnectionsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.developerconnect.v1.ListConnectionsRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.IListConnectionsRequest=} [properties] Properties to set
+ * @returns {google.cloud.developerconnect.v1.ListConnectionsRequest} ListConnectionsRequest instance
+ */
+ ListConnectionsRequest.create = function create(properties) {
+ return new ListConnectionsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListConnectionsRequest message. Does not implicitly {@link google.cloud.developerconnect.v1.ListConnectionsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.developerconnect.v1.ListConnectionsRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.IListConnectionsRequest} message ListConnectionsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListConnectionsRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken);
+ if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter);
+ if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListConnectionsRequest message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.ListConnectionsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.developerconnect.v1.ListConnectionsRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.IListConnectionsRequest} message ListConnectionsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListConnectionsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListConnectionsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.developerconnect.v1.ListConnectionsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.developerconnect.v1.ListConnectionsRequest} ListConnectionsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListConnectionsRequest.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.cloud.developerconnect.v1.ListConnectionsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 3: {
+ message.pageToken = reader.string();
+ break;
+ }
+ case 4: {
+ message.filter = reader.string();
+ break;
+ }
+ case 5: {
+ message.orderBy = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListConnectionsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.developerconnect.v1.ListConnectionsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.developerconnect.v1.ListConnectionsRequest} ListConnectionsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListConnectionsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListConnectionsRequest message.
+ * @function verify
+ * @memberof google.cloud.developerconnect.v1.ListConnectionsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListConnectionsRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ if (!$util.isString(message.filter))
+ return "filter: string expected";
+ if (message.orderBy != null && message.hasOwnProperty("orderBy"))
+ if (!$util.isString(message.orderBy))
+ return "orderBy: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListConnectionsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.developerconnect.v1.ListConnectionsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.developerconnect.v1.ListConnectionsRequest} ListConnectionsRequest
+ */
+ ListConnectionsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.developerconnect.v1.ListConnectionsRequest)
+ return object;
+ var message = new $root.google.cloud.developerconnect.v1.ListConnectionsRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.pageSize != null)
+ message.pageSize = object.pageSize | 0;
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ if (object.filter != null)
+ message.filter = String(object.filter);
+ if (object.orderBy != null)
+ message.orderBy = String(object.orderBy);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListConnectionsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.developerconnect.v1.ListConnectionsRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.ListConnectionsRequest} message ListConnectionsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListConnectionsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ object.filter = "";
+ object.orderBy = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ object.pageToken = message.pageToken;
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ object.filter = message.filter;
+ if (message.orderBy != null && message.hasOwnProperty("orderBy"))
+ object.orderBy = message.orderBy;
+ return object;
+ };
+
+ /**
+ * Converts this ListConnectionsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.developerconnect.v1.ListConnectionsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListConnectionsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListConnectionsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.developerconnect.v1.ListConnectionsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListConnectionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.developerconnect.v1.ListConnectionsRequest";
+ };
+
+ return ListConnectionsRequest;
+ })();
+
+ v1.ListConnectionsResponse = (function() {
+
+ /**
+ * Properties of a ListConnectionsResponse.
+ * @memberof google.cloud.developerconnect.v1
+ * @interface IListConnectionsResponse
+ * @property {Array.|null} [connections] ListConnectionsResponse connections
+ * @property {string|null} [nextPageToken] ListConnectionsResponse nextPageToken
+ * @property {Array.|null} [unreachable] ListConnectionsResponse unreachable
+ */
+
+ /**
+ * Constructs a new ListConnectionsResponse.
+ * @memberof google.cloud.developerconnect.v1
+ * @classdesc Represents a ListConnectionsResponse.
+ * @implements IListConnectionsResponse
+ * @constructor
+ * @param {google.cloud.developerconnect.v1.IListConnectionsResponse=} [properties] Properties to set
+ */
+ function ListConnectionsResponse(properties) {
+ this.connections = [];
+ this.unreachable = [];
+ 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]];
+ }
+
+ /**
+ * ListConnectionsResponse connections.
+ * @member {Array.} connections
+ * @memberof google.cloud.developerconnect.v1.ListConnectionsResponse
+ * @instance
+ */
+ ListConnectionsResponse.prototype.connections = $util.emptyArray;
+
+ /**
+ * ListConnectionsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.developerconnect.v1.ListConnectionsResponse
+ * @instance
+ */
+ ListConnectionsResponse.prototype.nextPageToken = "";
+
+ /**
+ * ListConnectionsResponse unreachable.
+ * @member {Array.} unreachable
+ * @memberof google.cloud.developerconnect.v1.ListConnectionsResponse
+ * @instance
+ */
+ ListConnectionsResponse.prototype.unreachable = $util.emptyArray;
+
+ /**
+ * Creates a new ListConnectionsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.developerconnect.v1.ListConnectionsResponse
+ * @static
+ * @param {google.cloud.developerconnect.v1.IListConnectionsResponse=} [properties] Properties to set
+ * @returns {google.cloud.developerconnect.v1.ListConnectionsResponse} ListConnectionsResponse instance
+ */
+ ListConnectionsResponse.create = function create(properties) {
+ return new ListConnectionsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListConnectionsResponse message. Does not implicitly {@link google.cloud.developerconnect.v1.ListConnectionsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.developerconnect.v1.ListConnectionsResponse
+ * @static
+ * @param {google.cloud.developerconnect.v1.IListConnectionsResponse} message ListConnectionsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListConnectionsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.connections != null && message.connections.length)
+ for (var i = 0; i < message.connections.length; ++i)
+ $root.google.cloud.developerconnect.v1.Connection.encode(message.connections[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
+ if (message.unreachable != null && message.unreachable.length)
+ for (var i = 0; i < message.unreachable.length; ++i)
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListConnectionsResponse message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.ListConnectionsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.developerconnect.v1.ListConnectionsResponse
+ * @static
+ * @param {google.cloud.developerconnect.v1.IListConnectionsResponse} message ListConnectionsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListConnectionsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListConnectionsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.developerconnect.v1.ListConnectionsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.developerconnect.v1.ListConnectionsResponse} ListConnectionsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListConnectionsResponse.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.cloud.developerconnect.v1.ListConnectionsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.connections && message.connections.length))
+ message.connections = [];
+ message.connections.push($root.google.cloud.developerconnect.v1.Connection.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ case 3: {
+ if (!(message.unreachable && message.unreachable.length))
+ message.unreachable = [];
+ message.unreachable.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListConnectionsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.developerconnect.v1.ListConnectionsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.developerconnect.v1.ListConnectionsResponse} ListConnectionsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListConnectionsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListConnectionsResponse message.
+ * @function verify
+ * @memberof google.cloud.developerconnect.v1.ListConnectionsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListConnectionsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.connections != null && message.hasOwnProperty("connections")) {
+ if (!Array.isArray(message.connections))
+ return "connections: array expected";
+ for (var i = 0; i < message.connections.length; ++i) {
+ var error = $root.google.cloud.developerconnect.v1.Connection.verify(message.connections[i]);
+ if (error)
+ return "connections." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ if (message.unreachable != null && message.hasOwnProperty("unreachable")) {
+ if (!Array.isArray(message.unreachable))
+ return "unreachable: array expected";
+ for (var i = 0; i < message.unreachable.length; ++i)
+ if (!$util.isString(message.unreachable[i]))
+ return "unreachable: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ListConnectionsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.developerconnect.v1.ListConnectionsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.developerconnect.v1.ListConnectionsResponse} ListConnectionsResponse
+ */
+ ListConnectionsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.developerconnect.v1.ListConnectionsResponse)
+ return object;
+ var message = new $root.google.cloud.developerconnect.v1.ListConnectionsResponse();
+ if (object.connections) {
+ if (!Array.isArray(object.connections))
+ throw TypeError(".google.cloud.developerconnect.v1.ListConnectionsResponse.connections: array expected");
+ message.connections = [];
+ for (var i = 0; i < object.connections.length; ++i) {
+ if (typeof object.connections[i] !== "object")
+ throw TypeError(".google.cloud.developerconnect.v1.ListConnectionsResponse.connections: object expected");
+ message.connections[i] = $root.google.cloud.developerconnect.v1.Connection.fromObject(object.connections[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ if (object.unreachable) {
+ if (!Array.isArray(object.unreachable))
+ throw TypeError(".google.cloud.developerconnect.v1.ListConnectionsResponse.unreachable: array expected");
+ message.unreachable = [];
+ for (var i = 0; i < object.unreachable.length; ++i)
+ message.unreachable[i] = String(object.unreachable[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListConnectionsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.developerconnect.v1.ListConnectionsResponse
+ * @static
+ * @param {google.cloud.developerconnect.v1.ListConnectionsResponse} message ListConnectionsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListConnectionsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.connections = [];
+ object.unreachable = [];
+ }
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.connections && message.connections.length) {
+ object.connections = [];
+ for (var j = 0; j < message.connections.length; ++j)
+ object.connections[j] = $root.google.cloud.developerconnect.v1.Connection.toObject(message.connections[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ if (message.unreachable && message.unreachable.length) {
+ object.unreachable = [];
+ for (var j = 0; j < message.unreachable.length; ++j)
+ object.unreachable[j] = message.unreachable[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this ListConnectionsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.developerconnect.v1.ListConnectionsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListConnectionsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListConnectionsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.developerconnect.v1.ListConnectionsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListConnectionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.developerconnect.v1.ListConnectionsResponse";
+ };
+
+ return ListConnectionsResponse;
+ })();
+
+ v1.GetConnectionRequest = (function() {
+
+ /**
+ * Properties of a GetConnectionRequest.
+ * @memberof google.cloud.developerconnect.v1
+ * @interface IGetConnectionRequest
+ * @property {string|null} [name] GetConnectionRequest name
+ */
+
+ /**
+ * Constructs a new GetConnectionRequest.
+ * @memberof google.cloud.developerconnect.v1
+ * @classdesc Represents a GetConnectionRequest.
+ * @implements IGetConnectionRequest
+ * @constructor
+ * @param {google.cloud.developerconnect.v1.IGetConnectionRequest=} [properties] Properties to set
+ */
+ function GetConnectionRequest(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]];
+ }
+
+ /**
+ * GetConnectionRequest name.
+ * @member {string} name
+ * @memberof google.cloud.developerconnect.v1.GetConnectionRequest
+ * @instance
+ */
+ GetConnectionRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetConnectionRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.developerconnect.v1.GetConnectionRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.IGetConnectionRequest=} [properties] Properties to set
+ * @returns {google.cloud.developerconnect.v1.GetConnectionRequest} GetConnectionRequest instance
+ */
+ GetConnectionRequest.create = function create(properties) {
+ return new GetConnectionRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetConnectionRequest message. Does not implicitly {@link google.cloud.developerconnect.v1.GetConnectionRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.developerconnect.v1.GetConnectionRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.IGetConnectionRequest} message GetConnectionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetConnectionRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GetConnectionRequest message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.GetConnectionRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.developerconnect.v1.GetConnectionRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.IGetConnectionRequest} message GetConnectionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetConnectionRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetConnectionRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.developerconnect.v1.GetConnectionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.developerconnect.v1.GetConnectionRequest} GetConnectionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetConnectionRequest.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.cloud.developerconnect.v1.GetConnectionRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GetConnectionRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.developerconnect.v1.GetConnectionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.developerconnect.v1.GetConnectionRequest} GetConnectionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetConnectionRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetConnectionRequest message.
+ * @function verify
+ * @memberof google.cloud.developerconnect.v1.GetConnectionRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetConnectionRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GetConnectionRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.developerconnect.v1.GetConnectionRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.developerconnect.v1.GetConnectionRequest} GetConnectionRequest
+ */
+ GetConnectionRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.developerconnect.v1.GetConnectionRequest)
+ return object;
+ var message = new $root.google.cloud.developerconnect.v1.GetConnectionRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetConnectionRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.developerconnect.v1.GetConnectionRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.GetConnectionRequest} message GetConnectionRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetConnectionRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.name = "";
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ return object;
+ };
+
+ /**
+ * Converts this GetConnectionRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.developerconnect.v1.GetConnectionRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetConnectionRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetConnectionRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.developerconnect.v1.GetConnectionRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetConnectionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.developerconnect.v1.GetConnectionRequest";
+ };
+
+ return GetConnectionRequest;
+ })();
+
+ v1.CreateConnectionRequest = (function() {
+
+ /**
+ * Properties of a CreateConnectionRequest.
+ * @memberof google.cloud.developerconnect.v1
+ * @interface ICreateConnectionRequest
+ * @property {string|null} [parent] CreateConnectionRequest parent
+ * @property {string|null} [connectionId] CreateConnectionRequest connectionId
+ * @property {google.cloud.developerconnect.v1.IConnection|null} [connection] CreateConnectionRequest connection
+ * @property {string|null} [requestId] CreateConnectionRequest requestId
+ * @property {boolean|null} [validateOnly] CreateConnectionRequest validateOnly
+ */
+
+ /**
+ * Constructs a new CreateConnectionRequest.
+ * @memberof google.cloud.developerconnect.v1
+ * @classdesc Represents a CreateConnectionRequest.
+ * @implements ICreateConnectionRequest
+ * @constructor
+ * @param {google.cloud.developerconnect.v1.ICreateConnectionRequest=} [properties] Properties to set
+ */
+ function CreateConnectionRequest(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]];
+ }
+
+ /**
+ * CreateConnectionRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.developerconnect.v1.CreateConnectionRequest
+ * @instance
+ */
+ CreateConnectionRequest.prototype.parent = "";
+
+ /**
+ * CreateConnectionRequest connectionId.
+ * @member {string} connectionId
+ * @memberof google.cloud.developerconnect.v1.CreateConnectionRequest
+ * @instance
+ */
+ CreateConnectionRequest.prototype.connectionId = "";
+
+ /**
+ * CreateConnectionRequest connection.
+ * @member {google.cloud.developerconnect.v1.IConnection|null|undefined} connection
+ * @memberof google.cloud.developerconnect.v1.CreateConnectionRequest
+ * @instance
+ */
+ CreateConnectionRequest.prototype.connection = null;
+
+ /**
+ * CreateConnectionRequest requestId.
+ * @member {string} requestId
+ * @memberof google.cloud.developerconnect.v1.CreateConnectionRequest
+ * @instance
+ */
+ CreateConnectionRequest.prototype.requestId = "";
+
+ /**
+ * CreateConnectionRequest validateOnly.
+ * @member {boolean} validateOnly
+ * @memberof google.cloud.developerconnect.v1.CreateConnectionRequest
+ * @instance
+ */
+ CreateConnectionRequest.prototype.validateOnly = false;
+
+ /**
+ * Creates a new CreateConnectionRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.developerconnect.v1.CreateConnectionRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.ICreateConnectionRequest=} [properties] Properties to set
+ * @returns {google.cloud.developerconnect.v1.CreateConnectionRequest} CreateConnectionRequest instance
+ */
+ CreateConnectionRequest.create = function create(properties) {
+ return new CreateConnectionRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateConnectionRequest message. Does not implicitly {@link google.cloud.developerconnect.v1.CreateConnectionRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.developerconnect.v1.CreateConnectionRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.ICreateConnectionRequest} message CreateConnectionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateConnectionRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
+ if (message.connectionId != null && Object.hasOwnProperty.call(message, "connectionId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.connectionId);
+ if (message.connection != null && Object.hasOwnProperty.call(message, "connection"))
+ $root.google.cloud.developerconnect.v1.Connection.encode(message.connection, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId);
+ if (message.validateOnly != null && Object.hasOwnProperty.call(message, "validateOnly"))
+ writer.uint32(/* id 5, wireType 0 =*/40).bool(message.validateOnly);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateConnectionRequest message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.CreateConnectionRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.developerconnect.v1.CreateConnectionRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.ICreateConnectionRequest} message CreateConnectionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateConnectionRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateConnectionRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.developerconnect.v1.CreateConnectionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.developerconnect.v1.CreateConnectionRequest} CreateConnectionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateConnectionRequest.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.cloud.developerconnect.v1.CreateConnectionRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.connectionId = reader.string();
+ break;
+ }
+ case 3: {
+ message.connection = $root.google.cloud.developerconnect.v1.Connection.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.requestId = reader.string();
+ break;
+ }
+ case 5: {
+ message.validateOnly = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateConnectionRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.developerconnect.v1.CreateConnectionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.developerconnect.v1.CreateConnectionRequest} CreateConnectionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateConnectionRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateConnectionRequest message.
+ * @function verify
+ * @memberof google.cloud.developerconnect.v1.CreateConnectionRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateConnectionRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.connectionId != null && message.hasOwnProperty("connectionId"))
+ if (!$util.isString(message.connectionId))
+ return "connectionId: string expected";
+ if (message.connection != null && message.hasOwnProperty("connection")) {
+ var error = $root.google.cloud.developerconnect.v1.Connection.verify(message.connection);
+ if (error)
+ return "connection." + error;
+ }
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ if (message.validateOnly != null && message.hasOwnProperty("validateOnly"))
+ if (typeof message.validateOnly !== "boolean")
+ return "validateOnly: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a CreateConnectionRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.developerconnect.v1.CreateConnectionRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.developerconnect.v1.CreateConnectionRequest} CreateConnectionRequest
+ */
+ CreateConnectionRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.developerconnect.v1.CreateConnectionRequest)
+ return object;
+ var message = new $root.google.cloud.developerconnect.v1.CreateConnectionRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.connectionId != null)
+ message.connectionId = String(object.connectionId);
+ if (object.connection != null) {
+ if (typeof object.connection !== "object")
+ throw TypeError(".google.cloud.developerconnect.v1.CreateConnectionRequest.connection: object expected");
+ message.connection = $root.google.cloud.developerconnect.v1.Connection.fromObject(object.connection);
+ }
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ if (object.validateOnly != null)
+ message.validateOnly = Boolean(object.validateOnly);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateConnectionRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.developerconnect.v1.CreateConnectionRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.CreateConnectionRequest} message CreateConnectionRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateConnectionRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.connectionId = "";
+ object.connection = null;
+ object.requestId = "";
+ object.validateOnly = false;
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.connectionId != null && message.hasOwnProperty("connectionId"))
+ object.connectionId = message.connectionId;
+ if (message.connection != null && message.hasOwnProperty("connection"))
+ object.connection = $root.google.cloud.developerconnect.v1.Connection.toObject(message.connection, options);
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ if (message.validateOnly != null && message.hasOwnProperty("validateOnly"))
+ object.validateOnly = message.validateOnly;
+ return object;
+ };
+
+ /**
+ * Converts this CreateConnectionRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.developerconnect.v1.CreateConnectionRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateConnectionRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateConnectionRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.developerconnect.v1.CreateConnectionRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateConnectionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.developerconnect.v1.CreateConnectionRequest";
+ };
+
+ return CreateConnectionRequest;
+ })();
+
+ v1.UpdateConnectionRequest = (function() {
+
+ /**
+ * Properties of an UpdateConnectionRequest.
+ * @memberof google.cloud.developerconnect.v1
+ * @interface IUpdateConnectionRequest
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateConnectionRequest updateMask
+ * @property {google.cloud.developerconnect.v1.IConnection|null} [connection] UpdateConnectionRequest connection
+ * @property {string|null} [requestId] UpdateConnectionRequest requestId
+ * @property {boolean|null} [allowMissing] UpdateConnectionRequest allowMissing
+ * @property {boolean|null} [validateOnly] UpdateConnectionRequest validateOnly
+ */
+
+ /**
+ * Constructs a new UpdateConnectionRequest.
+ * @memberof google.cloud.developerconnect.v1
+ * @classdesc Represents an UpdateConnectionRequest.
+ * @implements IUpdateConnectionRequest
+ * @constructor
+ * @param {google.cloud.developerconnect.v1.IUpdateConnectionRequest=} [properties] Properties to set
+ */
+ function UpdateConnectionRequest(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]];
+ }
+
+ /**
+ * UpdateConnectionRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.cloud.developerconnect.v1.UpdateConnectionRequest
+ * @instance
+ */
+ UpdateConnectionRequest.prototype.updateMask = null;
+
+ /**
+ * UpdateConnectionRequest connection.
+ * @member {google.cloud.developerconnect.v1.IConnection|null|undefined} connection
+ * @memberof google.cloud.developerconnect.v1.UpdateConnectionRequest
+ * @instance
+ */
+ UpdateConnectionRequest.prototype.connection = null;
+
+ /**
+ * UpdateConnectionRequest requestId.
+ * @member {string} requestId
+ * @memberof google.cloud.developerconnect.v1.UpdateConnectionRequest
+ * @instance
+ */
+ UpdateConnectionRequest.prototype.requestId = "";
+
+ /**
+ * UpdateConnectionRequest allowMissing.
+ * @member {boolean} allowMissing
+ * @memberof google.cloud.developerconnect.v1.UpdateConnectionRequest
+ * @instance
+ */
+ UpdateConnectionRequest.prototype.allowMissing = false;
+
+ /**
+ * UpdateConnectionRequest validateOnly.
+ * @member {boolean} validateOnly
+ * @memberof google.cloud.developerconnect.v1.UpdateConnectionRequest
+ * @instance
+ */
+ UpdateConnectionRequest.prototype.validateOnly = false;
+
+ /**
+ * Creates a new UpdateConnectionRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.developerconnect.v1.UpdateConnectionRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.IUpdateConnectionRequest=} [properties] Properties to set
+ * @returns {google.cloud.developerconnect.v1.UpdateConnectionRequest} UpdateConnectionRequest instance
+ */
+ UpdateConnectionRequest.create = function create(properties) {
+ return new UpdateConnectionRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateConnectionRequest message. Does not implicitly {@link google.cloud.developerconnect.v1.UpdateConnectionRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.developerconnect.v1.UpdateConnectionRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.IUpdateConnectionRequest} message UpdateConnectionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateConnectionRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
+ $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.connection != null && Object.hasOwnProperty.call(message, "connection"))
+ $root.google.cloud.developerconnect.v1.Connection.encode(message.connection, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId);
+ if (message.allowMissing != null && Object.hasOwnProperty.call(message, "allowMissing"))
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.allowMissing);
+ if (message.validateOnly != null && Object.hasOwnProperty.call(message, "validateOnly"))
+ writer.uint32(/* id 5, wireType 0 =*/40).bool(message.validateOnly);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateConnectionRequest message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.UpdateConnectionRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.developerconnect.v1.UpdateConnectionRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.IUpdateConnectionRequest} message UpdateConnectionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateConnectionRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateConnectionRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.developerconnect.v1.UpdateConnectionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.developerconnect.v1.UpdateConnectionRequest} UpdateConnectionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateConnectionRequest.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.cloud.developerconnect.v1.UpdateConnectionRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.connection = $root.google.cloud.developerconnect.v1.Connection.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.requestId = reader.string();
+ break;
+ }
+ case 4: {
+ message.allowMissing = reader.bool();
+ break;
+ }
+ case 5: {
+ message.validateOnly = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateConnectionRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.developerconnect.v1.UpdateConnectionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.developerconnect.v1.UpdateConnectionRequest} UpdateConnectionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateConnectionRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateConnectionRequest message.
+ * @function verify
+ * @memberof google.cloud.developerconnect.v1.UpdateConnectionRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateConnectionRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.updateMask != null && message.hasOwnProperty("updateMask")) {
+ var error = $root.google.protobuf.FieldMask.verify(message.updateMask);
+ if (error)
+ return "updateMask." + error;
+ }
+ if (message.connection != null && message.hasOwnProperty("connection")) {
+ var error = $root.google.cloud.developerconnect.v1.Connection.verify(message.connection);
+ if (error)
+ return "connection." + error;
+ }
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ if (message.allowMissing != null && message.hasOwnProperty("allowMissing"))
+ if (typeof message.allowMissing !== "boolean")
+ return "allowMissing: boolean expected";
+ if (message.validateOnly != null && message.hasOwnProperty("validateOnly"))
+ if (typeof message.validateOnly !== "boolean")
+ return "validateOnly: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates an UpdateConnectionRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.developerconnect.v1.UpdateConnectionRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.developerconnect.v1.UpdateConnectionRequest} UpdateConnectionRequest
+ */
+ UpdateConnectionRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.developerconnect.v1.UpdateConnectionRequest)
+ return object;
+ var message = new $root.google.cloud.developerconnect.v1.UpdateConnectionRequest();
+ if (object.updateMask != null) {
+ if (typeof object.updateMask !== "object")
+ throw TypeError(".google.cloud.developerconnect.v1.UpdateConnectionRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
+ }
+ if (object.connection != null) {
+ if (typeof object.connection !== "object")
+ throw TypeError(".google.cloud.developerconnect.v1.UpdateConnectionRequest.connection: object expected");
+ message.connection = $root.google.cloud.developerconnect.v1.Connection.fromObject(object.connection);
+ }
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ if (object.allowMissing != null)
+ message.allowMissing = Boolean(object.allowMissing);
+ if (object.validateOnly != null)
+ message.validateOnly = Boolean(object.validateOnly);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateConnectionRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.developerconnect.v1.UpdateConnectionRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.UpdateConnectionRequest} message UpdateConnectionRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateConnectionRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.updateMask = null;
+ object.connection = null;
+ object.requestId = "";
+ object.allowMissing = false;
+ object.validateOnly = false;
+ }
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
+ if (message.connection != null && message.hasOwnProperty("connection"))
+ object.connection = $root.google.cloud.developerconnect.v1.Connection.toObject(message.connection, options);
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ if (message.allowMissing != null && message.hasOwnProperty("allowMissing"))
+ object.allowMissing = message.allowMissing;
+ if (message.validateOnly != null && message.hasOwnProperty("validateOnly"))
+ object.validateOnly = message.validateOnly;
+ return object;
+ };
+
+ /**
+ * Converts this UpdateConnectionRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.developerconnect.v1.UpdateConnectionRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateConnectionRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateConnectionRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.developerconnect.v1.UpdateConnectionRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateConnectionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.developerconnect.v1.UpdateConnectionRequest";
+ };
+
+ return UpdateConnectionRequest;
+ })();
+
+ v1.DeleteConnectionRequest = (function() {
+
+ /**
+ * Properties of a DeleteConnectionRequest.
+ * @memberof google.cloud.developerconnect.v1
+ * @interface IDeleteConnectionRequest
+ * @property {string|null} [name] DeleteConnectionRequest name
+ * @property {string|null} [requestId] DeleteConnectionRequest requestId
+ * @property {boolean|null} [validateOnly] DeleteConnectionRequest validateOnly
+ * @property {string|null} [etag] DeleteConnectionRequest etag
+ */
+
+ /**
+ * Constructs a new DeleteConnectionRequest.
+ * @memberof google.cloud.developerconnect.v1
+ * @classdesc Represents a DeleteConnectionRequest.
+ * @implements IDeleteConnectionRequest
+ * @constructor
+ * @param {google.cloud.developerconnect.v1.IDeleteConnectionRequest=} [properties] Properties to set
+ */
+ function DeleteConnectionRequest(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]];
+ }
+
+ /**
+ * DeleteConnectionRequest name.
+ * @member {string} name
+ * @memberof google.cloud.developerconnect.v1.DeleteConnectionRequest
+ * @instance
+ */
+ DeleteConnectionRequest.prototype.name = "";
+
+ /**
+ * DeleteConnectionRequest requestId.
+ * @member {string} requestId
+ * @memberof google.cloud.developerconnect.v1.DeleteConnectionRequest
+ * @instance
+ */
+ DeleteConnectionRequest.prototype.requestId = "";
+
+ /**
+ * DeleteConnectionRequest validateOnly.
+ * @member {boolean} validateOnly
+ * @memberof google.cloud.developerconnect.v1.DeleteConnectionRequest
+ * @instance
+ */
+ DeleteConnectionRequest.prototype.validateOnly = false;
+
+ /**
+ * DeleteConnectionRequest etag.
+ * @member {string} etag
+ * @memberof google.cloud.developerconnect.v1.DeleteConnectionRequest
+ * @instance
+ */
+ DeleteConnectionRequest.prototype.etag = "";
+
+ /**
+ * Creates a new DeleteConnectionRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.developerconnect.v1.DeleteConnectionRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.IDeleteConnectionRequest=} [properties] Properties to set
+ * @returns {google.cloud.developerconnect.v1.DeleteConnectionRequest} DeleteConnectionRequest instance
+ */
+ DeleteConnectionRequest.create = function create(properties) {
+ return new DeleteConnectionRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteConnectionRequest message. Does not implicitly {@link google.cloud.developerconnect.v1.DeleteConnectionRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.developerconnect.v1.DeleteConnectionRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.IDeleteConnectionRequest} message DeleteConnectionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteConnectionRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId);
+ if (message.validateOnly != null && Object.hasOwnProperty.call(message, "validateOnly"))
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.validateOnly);
+ if (message.etag != null && Object.hasOwnProperty.call(message, "etag"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.etag);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DeleteConnectionRequest message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.DeleteConnectionRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.developerconnect.v1.DeleteConnectionRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.IDeleteConnectionRequest} message DeleteConnectionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteConnectionRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteConnectionRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.developerconnect.v1.DeleteConnectionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.developerconnect.v1.DeleteConnectionRequest} DeleteConnectionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteConnectionRequest.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.cloud.developerconnect.v1.DeleteConnectionRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.requestId = reader.string();
+ break;
+ }
+ case 3: {
+ message.validateOnly = reader.bool();
+ break;
+ }
+ case 4: {
+ message.etag = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DeleteConnectionRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.developerconnect.v1.DeleteConnectionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.developerconnect.v1.DeleteConnectionRequest} DeleteConnectionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteConnectionRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteConnectionRequest message.
+ * @function verify
+ * @memberof google.cloud.developerconnect.v1.DeleteConnectionRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteConnectionRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ if (message.validateOnly != null && message.hasOwnProperty("validateOnly"))
+ if (typeof message.validateOnly !== "boolean")
+ return "validateOnly: boolean expected";
+ if (message.etag != null && message.hasOwnProperty("etag"))
+ if (!$util.isString(message.etag))
+ return "etag: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a DeleteConnectionRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.developerconnect.v1.DeleteConnectionRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.developerconnect.v1.DeleteConnectionRequest} DeleteConnectionRequest
+ */
+ DeleteConnectionRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.developerconnect.v1.DeleteConnectionRequest)
+ return object;
+ var message = new $root.google.cloud.developerconnect.v1.DeleteConnectionRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ if (object.validateOnly != null)
+ message.validateOnly = Boolean(object.validateOnly);
+ if (object.etag != null)
+ message.etag = String(object.etag);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteConnectionRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.developerconnect.v1.DeleteConnectionRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.DeleteConnectionRequest} message DeleteConnectionRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteConnectionRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.requestId = "";
+ object.validateOnly = false;
+ object.etag = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ if (message.validateOnly != null && message.hasOwnProperty("validateOnly"))
+ object.validateOnly = message.validateOnly;
+ if (message.etag != null && message.hasOwnProperty("etag"))
+ object.etag = message.etag;
+ return object;
+ };
+
+ /**
+ * Converts this DeleteConnectionRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.developerconnect.v1.DeleteConnectionRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteConnectionRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteConnectionRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.developerconnect.v1.DeleteConnectionRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteConnectionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.developerconnect.v1.DeleteConnectionRequest";
+ };
+
+ return DeleteConnectionRequest;
+ })();
+
+ v1.OperationMetadata = (function() {
+
+ /**
+ * Properties of an OperationMetadata.
+ * @memberof google.cloud.developerconnect.v1
+ * @interface IOperationMetadata
+ * @property {google.protobuf.ITimestamp|null} [createTime] OperationMetadata createTime
+ * @property {google.protobuf.ITimestamp|null} [endTime] OperationMetadata endTime
+ * @property {string|null} [target] OperationMetadata target
+ * @property {string|null} [verb] OperationMetadata verb
+ * @property {string|null} [statusMessage] OperationMetadata statusMessage
+ * @property {boolean|null} [requestedCancellation] OperationMetadata requestedCancellation
+ * @property {string|null} [apiVersion] OperationMetadata apiVersion
+ */
+
+ /**
+ * Constructs a new OperationMetadata.
+ * @memberof google.cloud.developerconnect.v1
+ * @classdesc Represents an OperationMetadata.
+ * @implements IOperationMetadata
+ * @constructor
+ * @param {google.cloud.developerconnect.v1.IOperationMetadata=} [properties] Properties to set
+ */
+ function OperationMetadata(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]];
+ }
+
+ /**
+ * OperationMetadata createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.developerconnect.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.createTime = null;
+
+ /**
+ * OperationMetadata endTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} endTime
+ * @memberof google.cloud.developerconnect.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.endTime = null;
+
+ /**
+ * OperationMetadata target.
+ * @member {string} target
+ * @memberof google.cloud.developerconnect.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.target = "";
+
+ /**
+ * OperationMetadata verb.
+ * @member {string} verb
+ * @memberof google.cloud.developerconnect.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.verb = "";
+
+ /**
+ * OperationMetadata statusMessage.
+ * @member {string} statusMessage
+ * @memberof google.cloud.developerconnect.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.statusMessage = "";
+
+ /**
+ * OperationMetadata requestedCancellation.
+ * @member {boolean} requestedCancellation
+ * @memberof google.cloud.developerconnect.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.requestedCancellation = false;
+
+ /**
+ * OperationMetadata apiVersion.
+ * @member {string} apiVersion
+ * @memberof google.cloud.developerconnect.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.apiVersion = "";
+
+ /**
+ * Creates a new OperationMetadata instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.developerconnect.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.developerconnect.v1.IOperationMetadata=} [properties] Properties to set
+ * @returns {google.cloud.developerconnect.v1.OperationMetadata} OperationMetadata instance
+ */
+ OperationMetadata.create = function create(properties) {
+ return new OperationMetadata(properties);
+ };
+
+ /**
+ * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.developerconnect.v1.OperationMetadata.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.developerconnect.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.developerconnect.v1.IOperationMetadata} message OperationMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OperationMetadata.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime"))
+ $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.target != null && Object.hasOwnProperty.call(message, "target"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.target);
+ if (message.verb != null && Object.hasOwnProperty.call(message, "verb"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.verb);
+ if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.statusMessage);
+ if (message.requestedCancellation != null && Object.hasOwnProperty.call(message, "requestedCancellation"))
+ writer.uint32(/* id 6, wireType 0 =*/48).bool(message.requestedCancellation);
+ if (message.apiVersion != null && Object.hasOwnProperty.call(message, "apiVersion"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.apiVersion);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.OperationMetadata.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.developerconnect.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.developerconnect.v1.IOperationMetadata} message OperationMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OperationMetadata.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an OperationMetadata message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.developerconnect.v1.OperationMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.developerconnect.v1.OperationMetadata} OperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OperationMetadata.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.cloud.developerconnect.v1.OperationMetadata();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.target = reader.string();
+ break;
+ }
+ case 4: {
+ message.verb = reader.string();
+ break;
+ }
+ case 5: {
+ message.statusMessage = reader.string();
+ break;
+ }
+ case 6: {
+ message.requestedCancellation = reader.bool();
+ break;
+ }
+ case 7: {
+ message.apiVersion = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an OperationMetadata message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.developerconnect.v1.OperationMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.developerconnect.v1.OperationMetadata} OperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OperationMetadata.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an OperationMetadata message.
+ * @function verify
+ * @memberof google.cloud.developerconnect.v1.OperationMetadata
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ OperationMetadata.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.createTime != null && message.hasOwnProperty("createTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.createTime);
+ if (error)
+ return "createTime." + error;
+ }
+ if (message.endTime != null && message.hasOwnProperty("endTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.endTime);
+ if (error)
+ return "endTime." + error;
+ }
+ if (message.target != null && message.hasOwnProperty("target"))
+ if (!$util.isString(message.target))
+ return "target: string expected";
+ if (message.verb != null && message.hasOwnProperty("verb"))
+ if (!$util.isString(message.verb))
+ return "verb: string expected";
+ if (message.statusMessage != null && message.hasOwnProperty("statusMessage"))
+ if (!$util.isString(message.statusMessage))
+ return "statusMessage: string expected";
+ if (message.requestedCancellation != null && message.hasOwnProperty("requestedCancellation"))
+ if (typeof message.requestedCancellation !== "boolean")
+ return "requestedCancellation: boolean expected";
+ if (message.apiVersion != null && message.hasOwnProperty("apiVersion"))
+ if (!$util.isString(message.apiVersion))
+ return "apiVersion: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.developerconnect.v1.OperationMetadata
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.developerconnect.v1.OperationMetadata} OperationMetadata
+ */
+ OperationMetadata.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.developerconnect.v1.OperationMetadata)
+ return object;
+ var message = new $root.google.cloud.developerconnect.v1.OperationMetadata();
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.developerconnect.v1.OperationMetadata.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
+ }
+ if (object.endTime != null) {
+ if (typeof object.endTime !== "object")
+ throw TypeError(".google.cloud.developerconnect.v1.OperationMetadata.endTime: object expected");
+ message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime);
+ }
+ if (object.target != null)
+ message.target = String(object.target);
+ if (object.verb != null)
+ message.verb = String(object.verb);
+ if (object.statusMessage != null)
+ message.statusMessage = String(object.statusMessage);
+ if (object.requestedCancellation != null)
+ message.requestedCancellation = Boolean(object.requestedCancellation);
+ if (object.apiVersion != null)
+ message.apiVersion = String(object.apiVersion);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.developerconnect.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.developerconnect.v1.OperationMetadata} message OperationMetadata
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ OperationMetadata.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.createTime = null;
+ object.endTime = null;
+ object.target = "";
+ object.verb = "";
+ object.statusMessage = "";
+ object.requestedCancellation = false;
+ object.apiVersion = "";
+ }
+ if (message.createTime != null && message.hasOwnProperty("createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
+ if (message.endTime != null && message.hasOwnProperty("endTime"))
+ object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options);
+ if (message.target != null && message.hasOwnProperty("target"))
+ object.target = message.target;
+ if (message.verb != null && message.hasOwnProperty("verb"))
+ object.verb = message.verb;
+ if (message.statusMessage != null && message.hasOwnProperty("statusMessage"))
+ object.statusMessage = message.statusMessage;
+ if (message.requestedCancellation != null && message.hasOwnProperty("requestedCancellation"))
+ object.requestedCancellation = message.requestedCancellation;
+ if (message.apiVersion != null && message.hasOwnProperty("apiVersion"))
+ object.apiVersion = message.apiVersion;
+ return object;
+ };
+
+ /**
+ * Converts this OperationMetadata to JSON.
+ * @function toJSON
+ * @memberof google.cloud.developerconnect.v1.OperationMetadata
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ OperationMetadata.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for OperationMetadata
+ * @function getTypeUrl
+ * @memberof google.cloud.developerconnect.v1.OperationMetadata
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ OperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.developerconnect.v1.OperationMetadata";
+ };
+
+ return OperationMetadata;
+ })();
+
+ v1.GitRepositoryLink = (function() {
+
+ /**
+ * Properties of a GitRepositoryLink.
+ * @memberof google.cloud.developerconnect.v1
+ * @interface IGitRepositoryLink
+ * @property {string|null} [name] GitRepositoryLink name
+ * @property {string|null} [cloneUri] GitRepositoryLink cloneUri
+ * @property {google.protobuf.ITimestamp|null} [createTime] GitRepositoryLink createTime
+ * @property {google.protobuf.ITimestamp|null} [updateTime] GitRepositoryLink updateTime
+ * @property {google.protobuf.ITimestamp|null} [deleteTime] GitRepositoryLink deleteTime
+ * @property {Object.|null} [labels] GitRepositoryLink labels
+ * @property {string|null} [etag] GitRepositoryLink etag
+ * @property {boolean|null} [reconciling] GitRepositoryLink reconciling
+ * @property {Object.|null} [annotations] GitRepositoryLink annotations
+ * @property {string|null} [uid] GitRepositoryLink uid
+ */
+
+ /**
+ * Constructs a new GitRepositoryLink.
+ * @memberof google.cloud.developerconnect.v1
+ * @classdesc Represents a GitRepositoryLink.
+ * @implements IGitRepositoryLink
+ * @constructor
+ * @param {google.cloud.developerconnect.v1.IGitRepositoryLink=} [properties] Properties to set
+ */
+ function GitRepositoryLink(properties) {
+ this.labels = {};
+ this.annotations = {};
+ 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]];
+ }
+
+ /**
+ * GitRepositoryLink name.
+ * @member {string} name
+ * @memberof google.cloud.developerconnect.v1.GitRepositoryLink
+ * @instance
+ */
+ GitRepositoryLink.prototype.name = "";
+
+ /**
+ * GitRepositoryLink cloneUri.
+ * @member {string} cloneUri
+ * @memberof google.cloud.developerconnect.v1.GitRepositoryLink
+ * @instance
+ */
+ GitRepositoryLink.prototype.cloneUri = "";
+
+ /**
+ * GitRepositoryLink createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.developerconnect.v1.GitRepositoryLink
+ * @instance
+ */
+ GitRepositoryLink.prototype.createTime = null;
+
+ /**
+ * GitRepositoryLink updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.developerconnect.v1.GitRepositoryLink
+ * @instance
+ */
+ GitRepositoryLink.prototype.updateTime = null;
+
+ /**
+ * GitRepositoryLink deleteTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} deleteTime
+ * @memberof google.cloud.developerconnect.v1.GitRepositoryLink
+ * @instance
+ */
+ GitRepositoryLink.prototype.deleteTime = null;
+
+ /**
+ * GitRepositoryLink labels.
+ * @member {Object.} labels
+ * @memberof google.cloud.developerconnect.v1.GitRepositoryLink
+ * @instance
+ */
+ GitRepositoryLink.prototype.labels = $util.emptyObject;
+
+ /**
+ * GitRepositoryLink etag.
+ * @member {string} etag
+ * @memberof google.cloud.developerconnect.v1.GitRepositoryLink
+ * @instance
+ */
+ GitRepositoryLink.prototype.etag = "";
+
+ /**
+ * GitRepositoryLink reconciling.
+ * @member {boolean} reconciling
+ * @memberof google.cloud.developerconnect.v1.GitRepositoryLink
+ * @instance
+ */
+ GitRepositoryLink.prototype.reconciling = false;
+
+ /**
+ * GitRepositoryLink annotations.
+ * @member {Object.} annotations
+ * @memberof google.cloud.developerconnect.v1.GitRepositoryLink
+ * @instance
+ */
+ GitRepositoryLink.prototype.annotations = $util.emptyObject;
+
+ /**
+ * GitRepositoryLink uid.
+ * @member {string} uid
+ * @memberof google.cloud.developerconnect.v1.GitRepositoryLink
+ * @instance
+ */
+ GitRepositoryLink.prototype.uid = "";
+
+ /**
+ * Creates a new GitRepositoryLink instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.developerconnect.v1.GitRepositoryLink
+ * @static
+ * @param {google.cloud.developerconnect.v1.IGitRepositoryLink=} [properties] Properties to set
+ * @returns {google.cloud.developerconnect.v1.GitRepositoryLink} GitRepositoryLink instance
+ */
+ GitRepositoryLink.create = function create(properties) {
+ return new GitRepositoryLink(properties);
+ };
+
+ /**
+ * Encodes the specified GitRepositoryLink message. Does not implicitly {@link google.cloud.developerconnect.v1.GitRepositoryLink.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.developerconnect.v1.GitRepositoryLink
+ * @static
+ * @param {google.cloud.developerconnect.v1.IGitRepositoryLink} message GitRepositoryLink message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GitRepositoryLink.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.cloneUri != null && Object.hasOwnProperty.call(message, "cloneUri"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.cloneUri);
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.deleteTime != null && Object.hasOwnProperty.call(message, "deleteTime"))
+ $root.google.protobuf.Timestamp.encode(message.deleteTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.labels != null && Object.hasOwnProperty.call(message, "labels"))
+ for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim();
+ if (message.etag != null && Object.hasOwnProperty.call(message, "etag"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.etag);
+ if (message.reconciling != null && Object.hasOwnProperty.call(message, "reconciling"))
+ writer.uint32(/* id 8, wireType 0 =*/64).bool(message.reconciling);
+ if (message.annotations != null && Object.hasOwnProperty.call(message, "annotations"))
+ for (var keys = Object.keys(message.annotations), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.annotations[keys[i]]).ldelim();
+ if (message.uid != null && Object.hasOwnProperty.call(message, "uid"))
+ writer.uint32(/* id 10, wireType 2 =*/82).string(message.uid);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GitRepositoryLink message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.GitRepositoryLink.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.developerconnect.v1.GitRepositoryLink
+ * @static
+ * @param {google.cloud.developerconnect.v1.IGitRepositoryLink} message GitRepositoryLink message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GitRepositoryLink.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GitRepositoryLink message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.developerconnect.v1.GitRepositoryLink
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.developerconnect.v1.GitRepositoryLink} GitRepositoryLink
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GitRepositoryLink.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.cloud.developerconnect.v1.GitRepositoryLink(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.cloneUri = reader.string();
+ break;
+ }
+ case 3: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 5: {
+ message.deleteTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ if (message.labels === $util.emptyObject)
+ message.labels = {};
+ 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.labels[key] = value;
+ break;
+ }
+ case 7: {
+ message.etag = reader.string();
+ break;
+ }
+ case 8: {
+ message.reconciling = reader.bool();
+ break;
+ }
+ case 9: {
+ if (message.annotations === $util.emptyObject)
+ message.annotations = {};
+ 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.annotations[key] = value;
+ break;
+ }
+ case 10: {
+ message.uid = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GitRepositoryLink message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.developerconnect.v1.GitRepositoryLink
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.developerconnect.v1.GitRepositoryLink} GitRepositoryLink
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GitRepositoryLink.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GitRepositoryLink message.
+ * @function verify
+ * @memberof google.cloud.developerconnect.v1.GitRepositoryLink
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GitRepositoryLink.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.cloneUri != null && message.hasOwnProperty("cloneUri"))
+ if (!$util.isString(message.cloneUri))
+ return "cloneUri: string expected";
+ if (message.createTime != null && message.hasOwnProperty("createTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.createTime);
+ if (error)
+ return "createTime." + error;
+ }
+ if (message.updateTime != null && message.hasOwnProperty("updateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.updateTime);
+ if (error)
+ return "updateTime." + error;
+ }
+ if (message.deleteTime != null && message.hasOwnProperty("deleteTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.deleteTime);
+ if (error)
+ return "deleteTime." + error;
+ }
+ if (message.labels != null && message.hasOwnProperty("labels")) {
+ if (!$util.isObject(message.labels))
+ return "labels: object expected";
+ var key = Object.keys(message.labels);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.labels[key[i]]))
+ return "labels: string{k:string} expected";
+ }
+ if (message.etag != null && message.hasOwnProperty("etag"))
+ if (!$util.isString(message.etag))
+ return "etag: string expected";
+ if (message.reconciling != null && message.hasOwnProperty("reconciling"))
+ if (typeof message.reconciling !== "boolean")
+ return "reconciling: boolean expected";
+ if (message.annotations != null && message.hasOwnProperty("annotations")) {
+ if (!$util.isObject(message.annotations))
+ return "annotations: object expected";
+ var key = Object.keys(message.annotations);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.annotations[key[i]]))
+ return "annotations: string{k:string} expected";
+ }
+ if (message.uid != null && message.hasOwnProperty("uid"))
+ if (!$util.isString(message.uid))
+ return "uid: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GitRepositoryLink message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.developerconnect.v1.GitRepositoryLink
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.developerconnect.v1.GitRepositoryLink} GitRepositoryLink
+ */
+ GitRepositoryLink.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.developerconnect.v1.GitRepositoryLink)
+ return object;
+ var message = new $root.google.cloud.developerconnect.v1.GitRepositoryLink();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.cloneUri != null)
+ message.cloneUri = String(object.cloneUri);
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.developerconnect.v1.GitRepositoryLink.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
+ }
+ if (object.updateTime != null) {
+ if (typeof object.updateTime !== "object")
+ throw TypeError(".google.cloud.developerconnect.v1.GitRepositoryLink.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ if (object.deleteTime != null) {
+ if (typeof object.deleteTime !== "object")
+ throw TypeError(".google.cloud.developerconnect.v1.GitRepositoryLink.deleteTime: object expected");
+ message.deleteTime = $root.google.protobuf.Timestamp.fromObject(object.deleteTime);
+ }
+ if (object.labels) {
+ if (typeof object.labels !== "object")
+ throw TypeError(".google.cloud.developerconnect.v1.GitRepositoryLink.labels: object expected");
+ message.labels = {};
+ for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i)
+ message.labels[keys[i]] = String(object.labels[keys[i]]);
+ }
+ if (object.etag != null)
+ message.etag = String(object.etag);
+ if (object.reconciling != null)
+ message.reconciling = Boolean(object.reconciling);
+ if (object.annotations) {
+ if (typeof object.annotations !== "object")
+ throw TypeError(".google.cloud.developerconnect.v1.GitRepositoryLink.annotations: object expected");
+ message.annotations = {};
+ for (var keys = Object.keys(object.annotations), i = 0; i < keys.length; ++i)
+ message.annotations[keys[i]] = String(object.annotations[keys[i]]);
+ }
+ if (object.uid != null)
+ message.uid = String(object.uid);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GitRepositoryLink message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.developerconnect.v1.GitRepositoryLink
+ * @static
+ * @param {google.cloud.developerconnect.v1.GitRepositoryLink} message GitRepositoryLink
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GitRepositoryLink.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.objects || options.defaults) {
+ object.labels = {};
+ object.annotations = {};
+ }
+ if (options.defaults) {
+ object.name = "";
+ object.cloneUri = "";
+ object.createTime = null;
+ object.updateTime = null;
+ object.deleteTime = null;
+ object.etag = "";
+ object.reconciling = false;
+ object.uid = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.cloneUri != null && message.hasOwnProperty("cloneUri"))
+ object.cloneUri = message.cloneUri;
+ if (message.createTime != null && message.hasOwnProperty("createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
+ if (message.updateTime != null && message.hasOwnProperty("updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
+ if (message.deleteTime != null && message.hasOwnProperty("deleteTime"))
+ object.deleteTime = $root.google.protobuf.Timestamp.toObject(message.deleteTime, options);
+ var keys2;
+ if (message.labels && (keys2 = Object.keys(message.labels)).length) {
+ object.labels = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.labels[keys2[j]] = message.labels[keys2[j]];
+ }
+ if (message.etag != null && message.hasOwnProperty("etag"))
+ object.etag = message.etag;
+ if (message.reconciling != null && message.hasOwnProperty("reconciling"))
+ object.reconciling = message.reconciling;
+ if (message.annotations && (keys2 = Object.keys(message.annotations)).length) {
+ object.annotations = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.annotations[keys2[j]] = message.annotations[keys2[j]];
+ }
+ if (message.uid != null && message.hasOwnProperty("uid"))
+ object.uid = message.uid;
+ return object;
+ };
+
+ /**
+ * Converts this GitRepositoryLink to JSON.
+ * @function toJSON
+ * @memberof google.cloud.developerconnect.v1.GitRepositoryLink
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GitRepositoryLink.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GitRepositoryLink
+ * @function getTypeUrl
+ * @memberof google.cloud.developerconnect.v1.GitRepositoryLink
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GitRepositoryLink.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.developerconnect.v1.GitRepositoryLink";
+ };
+
+ return GitRepositoryLink;
+ })();
+
+ v1.CreateGitRepositoryLinkRequest = (function() {
+
+ /**
+ * Properties of a CreateGitRepositoryLinkRequest.
+ * @memberof google.cloud.developerconnect.v1
+ * @interface ICreateGitRepositoryLinkRequest
+ * @property {string|null} [parent] CreateGitRepositoryLinkRequest parent
+ * @property {google.cloud.developerconnect.v1.IGitRepositoryLink|null} [gitRepositoryLink] CreateGitRepositoryLinkRequest gitRepositoryLink
+ * @property {string|null} [gitRepositoryLinkId] CreateGitRepositoryLinkRequest gitRepositoryLinkId
+ * @property {string|null} [requestId] CreateGitRepositoryLinkRequest requestId
+ * @property {boolean|null} [validateOnly] CreateGitRepositoryLinkRequest validateOnly
+ */
+
+ /**
+ * Constructs a new CreateGitRepositoryLinkRequest.
+ * @memberof google.cloud.developerconnect.v1
+ * @classdesc Represents a CreateGitRepositoryLinkRequest.
+ * @implements ICreateGitRepositoryLinkRequest
+ * @constructor
+ * @param {google.cloud.developerconnect.v1.ICreateGitRepositoryLinkRequest=} [properties] Properties to set
+ */
+ function CreateGitRepositoryLinkRequest(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]];
+ }
+
+ /**
+ * CreateGitRepositoryLinkRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest
+ * @instance
+ */
+ CreateGitRepositoryLinkRequest.prototype.parent = "";
+
+ /**
+ * CreateGitRepositoryLinkRequest gitRepositoryLink.
+ * @member {google.cloud.developerconnect.v1.IGitRepositoryLink|null|undefined} gitRepositoryLink
+ * @memberof google.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest
+ * @instance
+ */
+ CreateGitRepositoryLinkRequest.prototype.gitRepositoryLink = null;
+
+ /**
+ * CreateGitRepositoryLinkRequest gitRepositoryLinkId.
+ * @member {string} gitRepositoryLinkId
+ * @memberof google.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest
+ * @instance
+ */
+ CreateGitRepositoryLinkRequest.prototype.gitRepositoryLinkId = "";
+
+ /**
+ * CreateGitRepositoryLinkRequest requestId.
+ * @member {string} requestId
+ * @memberof google.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest
+ * @instance
+ */
+ CreateGitRepositoryLinkRequest.prototype.requestId = "";
+
+ /**
+ * CreateGitRepositoryLinkRequest validateOnly.
+ * @member {boolean} validateOnly
+ * @memberof google.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest
+ * @instance
+ */
+ CreateGitRepositoryLinkRequest.prototype.validateOnly = false;
+
+ /**
+ * Creates a new CreateGitRepositoryLinkRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.ICreateGitRepositoryLinkRequest=} [properties] Properties to set
+ * @returns {google.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest} CreateGitRepositoryLinkRequest instance
+ */
+ CreateGitRepositoryLinkRequest.create = function create(properties) {
+ return new CreateGitRepositoryLinkRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateGitRepositoryLinkRequest message. Does not implicitly {@link google.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.ICreateGitRepositoryLinkRequest} message CreateGitRepositoryLinkRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateGitRepositoryLinkRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
+ if (message.gitRepositoryLink != null && Object.hasOwnProperty.call(message, "gitRepositoryLink"))
+ $root.google.cloud.developerconnect.v1.GitRepositoryLink.encode(message.gitRepositoryLink, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.gitRepositoryLinkId != null && Object.hasOwnProperty.call(message, "gitRepositoryLinkId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.gitRepositoryLinkId);
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId);
+ if (message.validateOnly != null && Object.hasOwnProperty.call(message, "validateOnly"))
+ writer.uint32(/* id 5, wireType 0 =*/40).bool(message.validateOnly);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateGitRepositoryLinkRequest message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.ICreateGitRepositoryLinkRequest} message CreateGitRepositoryLinkRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateGitRepositoryLinkRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateGitRepositoryLinkRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest} CreateGitRepositoryLinkRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateGitRepositoryLinkRequest.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.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.gitRepositoryLink = $root.google.cloud.developerconnect.v1.GitRepositoryLink.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.gitRepositoryLinkId = reader.string();
+ break;
+ }
+ case 4: {
+ message.requestId = reader.string();
+ break;
+ }
+ case 5: {
+ message.validateOnly = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateGitRepositoryLinkRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest} CreateGitRepositoryLinkRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateGitRepositoryLinkRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateGitRepositoryLinkRequest message.
+ * @function verify
+ * @memberof google.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateGitRepositoryLinkRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.gitRepositoryLink != null && message.hasOwnProperty("gitRepositoryLink")) {
+ var error = $root.google.cloud.developerconnect.v1.GitRepositoryLink.verify(message.gitRepositoryLink);
+ if (error)
+ return "gitRepositoryLink." + error;
+ }
+ if (message.gitRepositoryLinkId != null && message.hasOwnProperty("gitRepositoryLinkId"))
+ if (!$util.isString(message.gitRepositoryLinkId))
+ return "gitRepositoryLinkId: string expected";
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ if (message.validateOnly != null && message.hasOwnProperty("validateOnly"))
+ if (typeof message.validateOnly !== "boolean")
+ return "validateOnly: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a CreateGitRepositoryLinkRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest} CreateGitRepositoryLinkRequest
+ */
+ CreateGitRepositoryLinkRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest)
+ return object;
+ var message = new $root.google.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.gitRepositoryLink != null) {
+ if (typeof object.gitRepositoryLink !== "object")
+ throw TypeError(".google.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest.gitRepositoryLink: object expected");
+ message.gitRepositoryLink = $root.google.cloud.developerconnect.v1.GitRepositoryLink.fromObject(object.gitRepositoryLink);
+ }
+ if (object.gitRepositoryLinkId != null)
+ message.gitRepositoryLinkId = String(object.gitRepositoryLinkId);
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ if (object.validateOnly != null)
+ message.validateOnly = Boolean(object.validateOnly);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateGitRepositoryLinkRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest} message CreateGitRepositoryLinkRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateGitRepositoryLinkRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.gitRepositoryLink = null;
+ object.gitRepositoryLinkId = "";
+ object.requestId = "";
+ object.validateOnly = false;
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.gitRepositoryLink != null && message.hasOwnProperty("gitRepositoryLink"))
+ object.gitRepositoryLink = $root.google.cloud.developerconnect.v1.GitRepositoryLink.toObject(message.gitRepositoryLink, options);
+ if (message.gitRepositoryLinkId != null && message.hasOwnProperty("gitRepositoryLinkId"))
+ object.gitRepositoryLinkId = message.gitRepositoryLinkId;
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ if (message.validateOnly != null && message.hasOwnProperty("validateOnly"))
+ object.validateOnly = message.validateOnly;
+ return object;
+ };
+
+ /**
+ * Converts this CreateGitRepositoryLinkRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateGitRepositoryLinkRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateGitRepositoryLinkRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateGitRepositoryLinkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.developerconnect.v1.CreateGitRepositoryLinkRequest";
+ };
+
+ return CreateGitRepositoryLinkRequest;
+ })();
+
+ v1.DeleteGitRepositoryLinkRequest = (function() {
+
+ /**
+ * Properties of a DeleteGitRepositoryLinkRequest.
+ * @memberof google.cloud.developerconnect.v1
+ * @interface IDeleteGitRepositoryLinkRequest
+ * @property {string|null} [name] DeleteGitRepositoryLinkRequest name
+ * @property {string|null} [requestId] DeleteGitRepositoryLinkRequest requestId
+ * @property {boolean|null} [validateOnly] DeleteGitRepositoryLinkRequest validateOnly
+ * @property {string|null} [etag] DeleteGitRepositoryLinkRequest etag
+ */
+
+ /**
+ * Constructs a new DeleteGitRepositoryLinkRequest.
+ * @memberof google.cloud.developerconnect.v1
+ * @classdesc Represents a DeleteGitRepositoryLinkRequest.
+ * @implements IDeleteGitRepositoryLinkRequest
+ * @constructor
+ * @param {google.cloud.developerconnect.v1.IDeleteGitRepositoryLinkRequest=} [properties] Properties to set
+ */
+ function DeleteGitRepositoryLinkRequest(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]];
+ }
+
+ /**
+ * DeleteGitRepositoryLinkRequest name.
+ * @member {string} name
+ * @memberof google.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest
+ * @instance
+ */
+ DeleteGitRepositoryLinkRequest.prototype.name = "";
+
+ /**
+ * DeleteGitRepositoryLinkRequest requestId.
+ * @member {string} requestId
+ * @memberof google.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest
+ * @instance
+ */
+ DeleteGitRepositoryLinkRequest.prototype.requestId = "";
+
+ /**
+ * DeleteGitRepositoryLinkRequest validateOnly.
+ * @member {boolean} validateOnly
+ * @memberof google.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest
+ * @instance
+ */
+ DeleteGitRepositoryLinkRequest.prototype.validateOnly = false;
+
+ /**
+ * DeleteGitRepositoryLinkRequest etag.
+ * @member {string} etag
+ * @memberof google.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest
+ * @instance
+ */
+ DeleteGitRepositoryLinkRequest.prototype.etag = "";
+
+ /**
+ * Creates a new DeleteGitRepositoryLinkRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.IDeleteGitRepositoryLinkRequest=} [properties] Properties to set
+ * @returns {google.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest} DeleteGitRepositoryLinkRequest instance
+ */
+ DeleteGitRepositoryLinkRequest.create = function create(properties) {
+ return new DeleteGitRepositoryLinkRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteGitRepositoryLinkRequest message. Does not implicitly {@link google.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.IDeleteGitRepositoryLinkRequest} message DeleteGitRepositoryLinkRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteGitRepositoryLinkRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId);
+ if (message.validateOnly != null && Object.hasOwnProperty.call(message, "validateOnly"))
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.validateOnly);
+ if (message.etag != null && Object.hasOwnProperty.call(message, "etag"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.etag);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DeleteGitRepositoryLinkRequest message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.IDeleteGitRepositoryLinkRequest} message DeleteGitRepositoryLinkRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteGitRepositoryLinkRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteGitRepositoryLinkRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest} DeleteGitRepositoryLinkRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteGitRepositoryLinkRequest.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.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.requestId = reader.string();
+ break;
+ }
+ case 3: {
+ message.validateOnly = reader.bool();
+ break;
+ }
+ case 4: {
+ message.etag = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DeleteGitRepositoryLinkRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest} DeleteGitRepositoryLinkRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteGitRepositoryLinkRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteGitRepositoryLinkRequest message.
+ * @function verify
+ * @memberof google.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteGitRepositoryLinkRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ if (message.validateOnly != null && message.hasOwnProperty("validateOnly"))
+ if (typeof message.validateOnly !== "boolean")
+ return "validateOnly: boolean expected";
+ if (message.etag != null && message.hasOwnProperty("etag"))
+ if (!$util.isString(message.etag))
+ return "etag: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a DeleteGitRepositoryLinkRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest} DeleteGitRepositoryLinkRequest
+ */
+ DeleteGitRepositoryLinkRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest)
+ return object;
+ var message = new $root.google.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ if (object.validateOnly != null)
+ message.validateOnly = Boolean(object.validateOnly);
+ if (object.etag != null)
+ message.etag = String(object.etag);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteGitRepositoryLinkRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest} message DeleteGitRepositoryLinkRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteGitRepositoryLinkRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.requestId = "";
+ object.validateOnly = false;
+ object.etag = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ if (message.validateOnly != null && message.hasOwnProperty("validateOnly"))
+ object.validateOnly = message.validateOnly;
+ if (message.etag != null && message.hasOwnProperty("etag"))
+ object.etag = message.etag;
+ return object;
+ };
+
+ /**
+ * Converts this DeleteGitRepositoryLinkRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteGitRepositoryLinkRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteGitRepositoryLinkRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteGitRepositoryLinkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.developerconnect.v1.DeleteGitRepositoryLinkRequest";
+ };
+
+ return DeleteGitRepositoryLinkRequest;
+ })();
+
+ v1.ListGitRepositoryLinksRequest = (function() {
+
+ /**
+ * Properties of a ListGitRepositoryLinksRequest.
+ * @memberof google.cloud.developerconnect.v1
+ * @interface IListGitRepositoryLinksRequest
+ * @property {string|null} [parent] ListGitRepositoryLinksRequest parent
+ * @property {number|null} [pageSize] ListGitRepositoryLinksRequest pageSize
+ * @property {string|null} [pageToken] ListGitRepositoryLinksRequest pageToken
+ * @property {string|null} [filter] ListGitRepositoryLinksRequest filter
+ * @property {string|null} [orderBy] ListGitRepositoryLinksRequest orderBy
+ */
+
+ /**
+ * Constructs a new ListGitRepositoryLinksRequest.
+ * @memberof google.cloud.developerconnect.v1
+ * @classdesc Represents a ListGitRepositoryLinksRequest.
+ * @implements IListGitRepositoryLinksRequest
+ * @constructor
+ * @param {google.cloud.developerconnect.v1.IListGitRepositoryLinksRequest=} [properties] Properties to set
+ */
+ function ListGitRepositoryLinksRequest(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]];
+ }
+
+ /**
+ * ListGitRepositoryLinksRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.developerconnect.v1.ListGitRepositoryLinksRequest
+ * @instance
+ */
+ ListGitRepositoryLinksRequest.prototype.parent = "";
+
+ /**
+ * ListGitRepositoryLinksRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.developerconnect.v1.ListGitRepositoryLinksRequest
+ * @instance
+ */
+ ListGitRepositoryLinksRequest.prototype.pageSize = 0;
+
+ /**
+ * ListGitRepositoryLinksRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.developerconnect.v1.ListGitRepositoryLinksRequest
+ * @instance
+ */
+ ListGitRepositoryLinksRequest.prototype.pageToken = "";
+
+ /**
+ * ListGitRepositoryLinksRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.developerconnect.v1.ListGitRepositoryLinksRequest
+ * @instance
+ */
+ ListGitRepositoryLinksRequest.prototype.filter = "";
+
+ /**
+ * ListGitRepositoryLinksRequest orderBy.
+ * @member {string} orderBy
+ * @memberof google.cloud.developerconnect.v1.ListGitRepositoryLinksRequest
+ * @instance
+ */
+ ListGitRepositoryLinksRequest.prototype.orderBy = "";
+
+ /**
+ * Creates a new ListGitRepositoryLinksRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.developerconnect.v1.ListGitRepositoryLinksRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.IListGitRepositoryLinksRequest=} [properties] Properties to set
+ * @returns {google.cloud.developerconnect.v1.ListGitRepositoryLinksRequest} ListGitRepositoryLinksRequest instance
+ */
+ ListGitRepositoryLinksRequest.create = function create(properties) {
+ return new ListGitRepositoryLinksRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListGitRepositoryLinksRequest message. Does not implicitly {@link google.cloud.developerconnect.v1.ListGitRepositoryLinksRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.developerconnect.v1.ListGitRepositoryLinksRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.IListGitRepositoryLinksRequest} message ListGitRepositoryLinksRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListGitRepositoryLinksRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken);
+ if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter);
+ if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListGitRepositoryLinksRequest message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.ListGitRepositoryLinksRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.developerconnect.v1.ListGitRepositoryLinksRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.IListGitRepositoryLinksRequest} message ListGitRepositoryLinksRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListGitRepositoryLinksRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListGitRepositoryLinksRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.developerconnect.v1.ListGitRepositoryLinksRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.developerconnect.v1.ListGitRepositoryLinksRequest} ListGitRepositoryLinksRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListGitRepositoryLinksRequest.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.cloud.developerconnect.v1.ListGitRepositoryLinksRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 3: {
+ message.pageToken = reader.string();
+ break;
+ }
+ case 4: {
+ message.filter = reader.string();
+ break;
+ }
+ case 5: {
+ message.orderBy = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListGitRepositoryLinksRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.developerconnect.v1.ListGitRepositoryLinksRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.developerconnect.v1.ListGitRepositoryLinksRequest} ListGitRepositoryLinksRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListGitRepositoryLinksRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListGitRepositoryLinksRequest message.
+ * @function verify
+ * @memberof google.cloud.developerconnect.v1.ListGitRepositoryLinksRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListGitRepositoryLinksRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ if (!$util.isString(message.filter))
+ return "filter: string expected";
+ if (message.orderBy != null && message.hasOwnProperty("orderBy"))
+ if (!$util.isString(message.orderBy))
+ return "orderBy: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListGitRepositoryLinksRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.developerconnect.v1.ListGitRepositoryLinksRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.developerconnect.v1.ListGitRepositoryLinksRequest} ListGitRepositoryLinksRequest
+ */
+ ListGitRepositoryLinksRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.developerconnect.v1.ListGitRepositoryLinksRequest)
+ return object;
+ var message = new $root.google.cloud.developerconnect.v1.ListGitRepositoryLinksRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.pageSize != null)
+ message.pageSize = object.pageSize | 0;
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ if (object.filter != null)
+ message.filter = String(object.filter);
+ if (object.orderBy != null)
+ message.orderBy = String(object.orderBy);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListGitRepositoryLinksRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.developerconnect.v1.ListGitRepositoryLinksRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.ListGitRepositoryLinksRequest} message ListGitRepositoryLinksRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListGitRepositoryLinksRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ object.filter = "";
+ object.orderBy = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ object.pageToken = message.pageToken;
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ object.filter = message.filter;
+ if (message.orderBy != null && message.hasOwnProperty("orderBy"))
+ object.orderBy = message.orderBy;
+ return object;
+ };
+
+ /**
+ * Converts this ListGitRepositoryLinksRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.developerconnect.v1.ListGitRepositoryLinksRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListGitRepositoryLinksRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListGitRepositoryLinksRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.developerconnect.v1.ListGitRepositoryLinksRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListGitRepositoryLinksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.developerconnect.v1.ListGitRepositoryLinksRequest";
+ };
+
+ return ListGitRepositoryLinksRequest;
+ })();
+
+ v1.ListGitRepositoryLinksResponse = (function() {
+
+ /**
+ * Properties of a ListGitRepositoryLinksResponse.
+ * @memberof google.cloud.developerconnect.v1
+ * @interface IListGitRepositoryLinksResponse
+ * @property {Array.|null} [gitRepositoryLinks] ListGitRepositoryLinksResponse gitRepositoryLinks
+ * @property {string|null} [nextPageToken] ListGitRepositoryLinksResponse nextPageToken
+ * @property {Array.|null} [unreachable] ListGitRepositoryLinksResponse unreachable
+ */
+
+ /**
+ * Constructs a new ListGitRepositoryLinksResponse.
+ * @memberof google.cloud.developerconnect.v1
+ * @classdesc Represents a ListGitRepositoryLinksResponse.
+ * @implements IListGitRepositoryLinksResponse
+ * @constructor
+ * @param {google.cloud.developerconnect.v1.IListGitRepositoryLinksResponse=} [properties] Properties to set
+ */
+ function ListGitRepositoryLinksResponse(properties) {
+ this.gitRepositoryLinks = [];
+ this.unreachable = [];
+ 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]];
+ }
+
+ /**
+ * ListGitRepositoryLinksResponse gitRepositoryLinks.
+ * @member {Array.} gitRepositoryLinks
+ * @memberof google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse
+ * @instance
+ */
+ ListGitRepositoryLinksResponse.prototype.gitRepositoryLinks = $util.emptyArray;
+
+ /**
+ * ListGitRepositoryLinksResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse
+ * @instance
+ */
+ ListGitRepositoryLinksResponse.prototype.nextPageToken = "";
+
+ /**
+ * ListGitRepositoryLinksResponse unreachable.
+ * @member {Array.} unreachable
+ * @memberof google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse
+ * @instance
+ */
+ ListGitRepositoryLinksResponse.prototype.unreachable = $util.emptyArray;
+
+ /**
+ * Creates a new ListGitRepositoryLinksResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse
+ * @static
+ * @param {google.cloud.developerconnect.v1.IListGitRepositoryLinksResponse=} [properties] Properties to set
+ * @returns {google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse} ListGitRepositoryLinksResponse instance
+ */
+ ListGitRepositoryLinksResponse.create = function create(properties) {
+ return new ListGitRepositoryLinksResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListGitRepositoryLinksResponse message. Does not implicitly {@link google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse
+ * @static
+ * @param {google.cloud.developerconnect.v1.IListGitRepositoryLinksResponse} message ListGitRepositoryLinksResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListGitRepositoryLinksResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.gitRepositoryLinks != null && message.gitRepositoryLinks.length)
+ for (var i = 0; i < message.gitRepositoryLinks.length; ++i)
+ $root.google.cloud.developerconnect.v1.GitRepositoryLink.encode(message.gitRepositoryLinks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
+ if (message.unreachable != null && message.unreachable.length)
+ for (var i = 0; i < message.unreachable.length; ++i)
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListGitRepositoryLinksResponse message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse
+ * @static
+ * @param {google.cloud.developerconnect.v1.IListGitRepositoryLinksResponse} message ListGitRepositoryLinksResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListGitRepositoryLinksResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListGitRepositoryLinksResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse} ListGitRepositoryLinksResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListGitRepositoryLinksResponse.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.cloud.developerconnect.v1.ListGitRepositoryLinksResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.gitRepositoryLinks && message.gitRepositoryLinks.length))
+ message.gitRepositoryLinks = [];
+ message.gitRepositoryLinks.push($root.google.cloud.developerconnect.v1.GitRepositoryLink.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ case 3: {
+ if (!(message.unreachable && message.unreachable.length))
+ message.unreachable = [];
+ message.unreachable.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListGitRepositoryLinksResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse} ListGitRepositoryLinksResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListGitRepositoryLinksResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListGitRepositoryLinksResponse message.
+ * @function verify
+ * @memberof google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListGitRepositoryLinksResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.gitRepositoryLinks != null && message.hasOwnProperty("gitRepositoryLinks")) {
+ if (!Array.isArray(message.gitRepositoryLinks))
+ return "gitRepositoryLinks: array expected";
+ for (var i = 0; i < message.gitRepositoryLinks.length; ++i) {
+ var error = $root.google.cloud.developerconnect.v1.GitRepositoryLink.verify(message.gitRepositoryLinks[i]);
+ if (error)
+ return "gitRepositoryLinks." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ if (message.unreachable != null && message.hasOwnProperty("unreachable")) {
+ if (!Array.isArray(message.unreachable))
+ return "unreachable: array expected";
+ for (var i = 0; i < message.unreachable.length; ++i)
+ if (!$util.isString(message.unreachable[i]))
+ return "unreachable: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ListGitRepositoryLinksResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse} ListGitRepositoryLinksResponse
+ */
+ ListGitRepositoryLinksResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse)
+ return object;
+ var message = new $root.google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse();
+ if (object.gitRepositoryLinks) {
+ if (!Array.isArray(object.gitRepositoryLinks))
+ throw TypeError(".google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse.gitRepositoryLinks: array expected");
+ message.gitRepositoryLinks = [];
+ for (var i = 0; i < object.gitRepositoryLinks.length; ++i) {
+ if (typeof object.gitRepositoryLinks[i] !== "object")
+ throw TypeError(".google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse.gitRepositoryLinks: object expected");
+ message.gitRepositoryLinks[i] = $root.google.cloud.developerconnect.v1.GitRepositoryLink.fromObject(object.gitRepositoryLinks[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ if (object.unreachable) {
+ if (!Array.isArray(object.unreachable))
+ throw TypeError(".google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse.unreachable: array expected");
+ message.unreachable = [];
+ for (var i = 0; i < object.unreachable.length; ++i)
+ message.unreachable[i] = String(object.unreachable[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListGitRepositoryLinksResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse
+ * @static
+ * @param {google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse} message ListGitRepositoryLinksResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListGitRepositoryLinksResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.gitRepositoryLinks = [];
+ object.unreachable = [];
+ }
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.gitRepositoryLinks && message.gitRepositoryLinks.length) {
+ object.gitRepositoryLinks = [];
+ for (var j = 0; j < message.gitRepositoryLinks.length; ++j)
+ object.gitRepositoryLinks[j] = $root.google.cloud.developerconnect.v1.GitRepositoryLink.toObject(message.gitRepositoryLinks[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ if (message.unreachable && message.unreachable.length) {
+ object.unreachable = [];
+ for (var j = 0; j < message.unreachable.length; ++j)
+ object.unreachable[j] = message.unreachable[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this ListGitRepositoryLinksResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListGitRepositoryLinksResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListGitRepositoryLinksResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListGitRepositoryLinksResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse";
+ };
+
+ return ListGitRepositoryLinksResponse;
+ })();
+
+ v1.GetGitRepositoryLinkRequest = (function() {
+
+ /**
+ * Properties of a GetGitRepositoryLinkRequest.
+ * @memberof google.cloud.developerconnect.v1
+ * @interface IGetGitRepositoryLinkRequest
+ * @property {string|null} [name] GetGitRepositoryLinkRequest name
+ */
+
+ /**
+ * Constructs a new GetGitRepositoryLinkRequest.
+ * @memberof google.cloud.developerconnect.v1
+ * @classdesc Represents a GetGitRepositoryLinkRequest.
+ * @implements IGetGitRepositoryLinkRequest
+ * @constructor
+ * @param {google.cloud.developerconnect.v1.IGetGitRepositoryLinkRequest=} [properties] Properties to set
+ */
+ function GetGitRepositoryLinkRequest(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]];
+ }
+
+ /**
+ * GetGitRepositoryLinkRequest name.
+ * @member {string} name
+ * @memberof google.cloud.developerconnect.v1.GetGitRepositoryLinkRequest
+ * @instance
+ */
+ GetGitRepositoryLinkRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetGitRepositoryLinkRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.developerconnect.v1.GetGitRepositoryLinkRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.IGetGitRepositoryLinkRequest=} [properties] Properties to set
+ * @returns {google.cloud.developerconnect.v1.GetGitRepositoryLinkRequest} GetGitRepositoryLinkRequest instance
+ */
+ GetGitRepositoryLinkRequest.create = function create(properties) {
+ return new GetGitRepositoryLinkRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetGitRepositoryLinkRequest message. Does not implicitly {@link google.cloud.developerconnect.v1.GetGitRepositoryLinkRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.developerconnect.v1.GetGitRepositoryLinkRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.IGetGitRepositoryLinkRequest} message GetGitRepositoryLinkRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetGitRepositoryLinkRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GetGitRepositoryLinkRequest message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.GetGitRepositoryLinkRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.developerconnect.v1.GetGitRepositoryLinkRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.IGetGitRepositoryLinkRequest} message GetGitRepositoryLinkRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetGitRepositoryLinkRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetGitRepositoryLinkRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.developerconnect.v1.GetGitRepositoryLinkRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.developerconnect.v1.GetGitRepositoryLinkRequest} GetGitRepositoryLinkRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetGitRepositoryLinkRequest.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.cloud.developerconnect.v1.GetGitRepositoryLinkRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GetGitRepositoryLinkRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.developerconnect.v1.GetGitRepositoryLinkRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.developerconnect.v1.GetGitRepositoryLinkRequest} GetGitRepositoryLinkRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetGitRepositoryLinkRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetGitRepositoryLinkRequest message.
+ * @function verify
+ * @memberof google.cloud.developerconnect.v1.GetGitRepositoryLinkRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetGitRepositoryLinkRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GetGitRepositoryLinkRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.developerconnect.v1.GetGitRepositoryLinkRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.developerconnect.v1.GetGitRepositoryLinkRequest} GetGitRepositoryLinkRequest
+ */
+ GetGitRepositoryLinkRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.developerconnect.v1.GetGitRepositoryLinkRequest)
+ return object;
+ var message = new $root.google.cloud.developerconnect.v1.GetGitRepositoryLinkRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetGitRepositoryLinkRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.developerconnect.v1.GetGitRepositoryLinkRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.GetGitRepositoryLinkRequest} message GetGitRepositoryLinkRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetGitRepositoryLinkRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.name = "";
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ return object;
+ };
+
+ /**
+ * Converts this GetGitRepositoryLinkRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.developerconnect.v1.GetGitRepositoryLinkRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetGitRepositoryLinkRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetGitRepositoryLinkRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.developerconnect.v1.GetGitRepositoryLinkRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetGitRepositoryLinkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.developerconnect.v1.GetGitRepositoryLinkRequest";
+ };
+
+ return GetGitRepositoryLinkRequest;
+ })();
+
+ v1.FetchReadWriteTokenRequest = (function() {
+
+ /**
+ * Properties of a FetchReadWriteTokenRequest.
+ * @memberof google.cloud.developerconnect.v1
+ * @interface IFetchReadWriteTokenRequest
+ * @property {string|null} [gitRepositoryLink] FetchReadWriteTokenRequest gitRepositoryLink
+ */
+
+ /**
+ * Constructs a new FetchReadWriteTokenRequest.
+ * @memberof google.cloud.developerconnect.v1
+ * @classdesc Represents a FetchReadWriteTokenRequest.
+ * @implements IFetchReadWriteTokenRequest
+ * @constructor
+ * @param {google.cloud.developerconnect.v1.IFetchReadWriteTokenRequest=} [properties] Properties to set
+ */
+ function FetchReadWriteTokenRequest(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]];
+ }
+
+ /**
+ * FetchReadWriteTokenRequest gitRepositoryLink.
+ * @member {string} gitRepositoryLink
+ * @memberof google.cloud.developerconnect.v1.FetchReadWriteTokenRequest
+ * @instance
+ */
+ FetchReadWriteTokenRequest.prototype.gitRepositoryLink = "";
+
+ /**
+ * Creates a new FetchReadWriteTokenRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.developerconnect.v1.FetchReadWriteTokenRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.IFetchReadWriteTokenRequest=} [properties] Properties to set
+ * @returns {google.cloud.developerconnect.v1.FetchReadWriteTokenRequest} FetchReadWriteTokenRequest instance
+ */
+ FetchReadWriteTokenRequest.create = function create(properties) {
+ return new FetchReadWriteTokenRequest(properties);
+ };
+
+ /**
+ * Encodes the specified FetchReadWriteTokenRequest message. Does not implicitly {@link google.cloud.developerconnect.v1.FetchReadWriteTokenRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.developerconnect.v1.FetchReadWriteTokenRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.IFetchReadWriteTokenRequest} message FetchReadWriteTokenRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FetchReadWriteTokenRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.gitRepositoryLink != null && Object.hasOwnProperty.call(message, "gitRepositoryLink"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.gitRepositoryLink);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified FetchReadWriteTokenRequest message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.FetchReadWriteTokenRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.developerconnect.v1.FetchReadWriteTokenRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.IFetchReadWriteTokenRequest} message FetchReadWriteTokenRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FetchReadWriteTokenRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a FetchReadWriteTokenRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.developerconnect.v1.FetchReadWriteTokenRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.developerconnect.v1.FetchReadWriteTokenRequest} FetchReadWriteTokenRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FetchReadWriteTokenRequest.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.cloud.developerconnect.v1.FetchReadWriteTokenRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.gitRepositoryLink = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a FetchReadWriteTokenRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.developerconnect.v1.FetchReadWriteTokenRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.developerconnect.v1.FetchReadWriteTokenRequest} FetchReadWriteTokenRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FetchReadWriteTokenRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a FetchReadWriteTokenRequest message.
+ * @function verify
+ * @memberof google.cloud.developerconnect.v1.FetchReadWriteTokenRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ FetchReadWriteTokenRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.gitRepositoryLink != null && message.hasOwnProperty("gitRepositoryLink"))
+ if (!$util.isString(message.gitRepositoryLink))
+ return "gitRepositoryLink: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a FetchReadWriteTokenRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.developerconnect.v1.FetchReadWriteTokenRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.developerconnect.v1.FetchReadWriteTokenRequest} FetchReadWriteTokenRequest
+ */
+ FetchReadWriteTokenRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.developerconnect.v1.FetchReadWriteTokenRequest)
+ return object;
+ var message = new $root.google.cloud.developerconnect.v1.FetchReadWriteTokenRequest();
+ if (object.gitRepositoryLink != null)
+ message.gitRepositoryLink = String(object.gitRepositoryLink);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a FetchReadWriteTokenRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.developerconnect.v1.FetchReadWriteTokenRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.FetchReadWriteTokenRequest} message FetchReadWriteTokenRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ FetchReadWriteTokenRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.gitRepositoryLink = "";
+ if (message.gitRepositoryLink != null && message.hasOwnProperty("gitRepositoryLink"))
+ object.gitRepositoryLink = message.gitRepositoryLink;
+ return object;
+ };
+
+ /**
+ * Converts this FetchReadWriteTokenRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.developerconnect.v1.FetchReadWriteTokenRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ FetchReadWriteTokenRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for FetchReadWriteTokenRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.developerconnect.v1.FetchReadWriteTokenRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ FetchReadWriteTokenRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.developerconnect.v1.FetchReadWriteTokenRequest";
+ };
+
+ return FetchReadWriteTokenRequest;
+ })();
+
+ v1.FetchReadTokenRequest = (function() {
+
+ /**
+ * Properties of a FetchReadTokenRequest.
+ * @memberof google.cloud.developerconnect.v1
+ * @interface IFetchReadTokenRequest
+ * @property {string|null} [gitRepositoryLink] FetchReadTokenRequest gitRepositoryLink
+ */
+
+ /**
+ * Constructs a new FetchReadTokenRequest.
+ * @memberof google.cloud.developerconnect.v1
+ * @classdesc Represents a FetchReadTokenRequest.
+ * @implements IFetchReadTokenRequest
+ * @constructor
+ * @param {google.cloud.developerconnect.v1.IFetchReadTokenRequest=} [properties] Properties to set
+ */
+ function FetchReadTokenRequest(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]];
+ }
+
+ /**
+ * FetchReadTokenRequest gitRepositoryLink.
+ * @member {string} gitRepositoryLink
+ * @memberof google.cloud.developerconnect.v1.FetchReadTokenRequest
+ * @instance
+ */
+ FetchReadTokenRequest.prototype.gitRepositoryLink = "";
+
+ /**
+ * Creates a new FetchReadTokenRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.developerconnect.v1.FetchReadTokenRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.IFetchReadTokenRequest=} [properties] Properties to set
+ * @returns {google.cloud.developerconnect.v1.FetchReadTokenRequest} FetchReadTokenRequest instance
+ */
+ FetchReadTokenRequest.create = function create(properties) {
+ return new FetchReadTokenRequest(properties);
+ };
+
+ /**
+ * Encodes the specified FetchReadTokenRequest message. Does not implicitly {@link google.cloud.developerconnect.v1.FetchReadTokenRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.developerconnect.v1.FetchReadTokenRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.IFetchReadTokenRequest} message FetchReadTokenRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FetchReadTokenRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.gitRepositoryLink != null && Object.hasOwnProperty.call(message, "gitRepositoryLink"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.gitRepositoryLink);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified FetchReadTokenRequest message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.FetchReadTokenRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.developerconnect.v1.FetchReadTokenRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.IFetchReadTokenRequest} message FetchReadTokenRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FetchReadTokenRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a FetchReadTokenRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.developerconnect.v1.FetchReadTokenRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.developerconnect.v1.FetchReadTokenRequest} FetchReadTokenRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FetchReadTokenRequest.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.cloud.developerconnect.v1.FetchReadTokenRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.gitRepositoryLink = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a FetchReadTokenRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.developerconnect.v1.FetchReadTokenRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.developerconnect.v1.FetchReadTokenRequest} FetchReadTokenRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FetchReadTokenRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a FetchReadTokenRequest message.
+ * @function verify
+ * @memberof google.cloud.developerconnect.v1.FetchReadTokenRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ FetchReadTokenRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.gitRepositoryLink != null && message.hasOwnProperty("gitRepositoryLink"))
+ if (!$util.isString(message.gitRepositoryLink))
+ return "gitRepositoryLink: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a FetchReadTokenRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.developerconnect.v1.FetchReadTokenRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.developerconnect.v1.FetchReadTokenRequest} FetchReadTokenRequest
+ */
+ FetchReadTokenRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.developerconnect.v1.FetchReadTokenRequest)
+ return object;
+ var message = new $root.google.cloud.developerconnect.v1.FetchReadTokenRequest();
+ if (object.gitRepositoryLink != null)
+ message.gitRepositoryLink = String(object.gitRepositoryLink);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a FetchReadTokenRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.developerconnect.v1.FetchReadTokenRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.FetchReadTokenRequest} message FetchReadTokenRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ FetchReadTokenRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.gitRepositoryLink = "";
+ if (message.gitRepositoryLink != null && message.hasOwnProperty("gitRepositoryLink"))
+ object.gitRepositoryLink = message.gitRepositoryLink;
+ return object;
+ };
+
+ /**
+ * Converts this FetchReadTokenRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.developerconnect.v1.FetchReadTokenRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ FetchReadTokenRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for FetchReadTokenRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.developerconnect.v1.FetchReadTokenRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ FetchReadTokenRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.developerconnect.v1.FetchReadTokenRequest";
+ };
+
+ return FetchReadTokenRequest;
+ })();
+
+ v1.FetchReadTokenResponse = (function() {
+
+ /**
+ * Properties of a FetchReadTokenResponse.
+ * @memberof google.cloud.developerconnect.v1
+ * @interface IFetchReadTokenResponse
+ * @property {string|null} [token] FetchReadTokenResponse token
+ * @property {google.protobuf.ITimestamp|null} [expirationTime] FetchReadTokenResponse expirationTime
+ * @property {string|null} [gitUsername] FetchReadTokenResponse gitUsername
+ */
+
+ /**
+ * Constructs a new FetchReadTokenResponse.
+ * @memberof google.cloud.developerconnect.v1
+ * @classdesc Represents a FetchReadTokenResponse.
+ * @implements IFetchReadTokenResponse
+ * @constructor
+ * @param {google.cloud.developerconnect.v1.IFetchReadTokenResponse=} [properties] Properties to set
+ */
+ function FetchReadTokenResponse(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]];
+ }
+
+ /**
+ * FetchReadTokenResponse token.
+ * @member {string} token
+ * @memberof google.cloud.developerconnect.v1.FetchReadTokenResponse
+ * @instance
+ */
+ FetchReadTokenResponse.prototype.token = "";
+
+ /**
+ * FetchReadTokenResponse expirationTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} expirationTime
+ * @memberof google.cloud.developerconnect.v1.FetchReadTokenResponse
+ * @instance
+ */
+ FetchReadTokenResponse.prototype.expirationTime = null;
+
+ /**
+ * FetchReadTokenResponse gitUsername.
+ * @member {string} gitUsername
+ * @memberof google.cloud.developerconnect.v1.FetchReadTokenResponse
+ * @instance
+ */
+ FetchReadTokenResponse.prototype.gitUsername = "";
+
+ /**
+ * Creates a new FetchReadTokenResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.developerconnect.v1.FetchReadTokenResponse
+ * @static
+ * @param {google.cloud.developerconnect.v1.IFetchReadTokenResponse=} [properties] Properties to set
+ * @returns {google.cloud.developerconnect.v1.FetchReadTokenResponse} FetchReadTokenResponse instance
+ */
+ FetchReadTokenResponse.create = function create(properties) {
+ return new FetchReadTokenResponse(properties);
+ };
+
+ /**
+ * Encodes the specified FetchReadTokenResponse message. Does not implicitly {@link google.cloud.developerconnect.v1.FetchReadTokenResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.developerconnect.v1.FetchReadTokenResponse
+ * @static
+ * @param {google.cloud.developerconnect.v1.IFetchReadTokenResponse} message FetchReadTokenResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FetchReadTokenResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.token != null && Object.hasOwnProperty.call(message, "token"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.token);
+ if (message.expirationTime != null && Object.hasOwnProperty.call(message, "expirationTime"))
+ $root.google.protobuf.Timestamp.encode(message.expirationTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.gitUsername != null && Object.hasOwnProperty.call(message, "gitUsername"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.gitUsername);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified FetchReadTokenResponse message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.FetchReadTokenResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.developerconnect.v1.FetchReadTokenResponse
+ * @static
+ * @param {google.cloud.developerconnect.v1.IFetchReadTokenResponse} message FetchReadTokenResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FetchReadTokenResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a FetchReadTokenResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.developerconnect.v1.FetchReadTokenResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.developerconnect.v1.FetchReadTokenResponse} FetchReadTokenResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FetchReadTokenResponse.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.cloud.developerconnect.v1.FetchReadTokenResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.token = reader.string();
+ break;
+ }
+ case 2: {
+ message.expirationTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.gitUsername = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a FetchReadTokenResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.developerconnect.v1.FetchReadTokenResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.developerconnect.v1.FetchReadTokenResponse} FetchReadTokenResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FetchReadTokenResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a FetchReadTokenResponse message.
+ * @function verify
+ * @memberof google.cloud.developerconnect.v1.FetchReadTokenResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ FetchReadTokenResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.token != null && message.hasOwnProperty("token"))
+ if (!$util.isString(message.token))
+ return "token: string expected";
+ if (message.expirationTime != null && message.hasOwnProperty("expirationTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.expirationTime);
+ if (error)
+ return "expirationTime." + error;
+ }
+ if (message.gitUsername != null && message.hasOwnProperty("gitUsername"))
+ if (!$util.isString(message.gitUsername))
+ return "gitUsername: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a FetchReadTokenResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.developerconnect.v1.FetchReadTokenResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.developerconnect.v1.FetchReadTokenResponse} FetchReadTokenResponse
+ */
+ FetchReadTokenResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.developerconnect.v1.FetchReadTokenResponse)
+ return object;
+ var message = new $root.google.cloud.developerconnect.v1.FetchReadTokenResponse();
+ if (object.token != null)
+ message.token = String(object.token);
+ if (object.expirationTime != null) {
+ if (typeof object.expirationTime !== "object")
+ throw TypeError(".google.cloud.developerconnect.v1.FetchReadTokenResponse.expirationTime: object expected");
+ message.expirationTime = $root.google.protobuf.Timestamp.fromObject(object.expirationTime);
+ }
+ if (object.gitUsername != null)
+ message.gitUsername = String(object.gitUsername);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a FetchReadTokenResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.developerconnect.v1.FetchReadTokenResponse
+ * @static
+ * @param {google.cloud.developerconnect.v1.FetchReadTokenResponse} message FetchReadTokenResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ FetchReadTokenResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.token = "";
+ object.expirationTime = null;
+ object.gitUsername = "";
+ }
+ if (message.token != null && message.hasOwnProperty("token"))
+ object.token = message.token;
+ if (message.expirationTime != null && message.hasOwnProperty("expirationTime"))
+ object.expirationTime = $root.google.protobuf.Timestamp.toObject(message.expirationTime, options);
+ if (message.gitUsername != null && message.hasOwnProperty("gitUsername"))
+ object.gitUsername = message.gitUsername;
+ return object;
+ };
+
+ /**
+ * Converts this FetchReadTokenResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.developerconnect.v1.FetchReadTokenResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ FetchReadTokenResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for FetchReadTokenResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.developerconnect.v1.FetchReadTokenResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ FetchReadTokenResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.developerconnect.v1.FetchReadTokenResponse";
+ };
+
+ return FetchReadTokenResponse;
+ })();
+
+ v1.FetchReadWriteTokenResponse = (function() {
+
+ /**
+ * Properties of a FetchReadWriteTokenResponse.
+ * @memberof google.cloud.developerconnect.v1
+ * @interface IFetchReadWriteTokenResponse
+ * @property {string|null} [token] FetchReadWriteTokenResponse token
+ * @property {google.protobuf.ITimestamp|null} [expirationTime] FetchReadWriteTokenResponse expirationTime
+ * @property {string|null} [gitUsername] FetchReadWriteTokenResponse gitUsername
+ */
+
+ /**
+ * Constructs a new FetchReadWriteTokenResponse.
+ * @memberof google.cloud.developerconnect.v1
+ * @classdesc Represents a FetchReadWriteTokenResponse.
+ * @implements IFetchReadWriteTokenResponse
+ * @constructor
+ * @param {google.cloud.developerconnect.v1.IFetchReadWriteTokenResponse=} [properties] Properties to set
+ */
+ function FetchReadWriteTokenResponse(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]];
+ }
+
+ /**
+ * FetchReadWriteTokenResponse token.
+ * @member {string} token
+ * @memberof google.cloud.developerconnect.v1.FetchReadWriteTokenResponse
+ * @instance
+ */
+ FetchReadWriteTokenResponse.prototype.token = "";
+
+ /**
+ * FetchReadWriteTokenResponse expirationTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} expirationTime
+ * @memberof google.cloud.developerconnect.v1.FetchReadWriteTokenResponse
+ * @instance
+ */
+ FetchReadWriteTokenResponse.prototype.expirationTime = null;
+
+ /**
+ * FetchReadWriteTokenResponse gitUsername.
+ * @member {string} gitUsername
+ * @memberof google.cloud.developerconnect.v1.FetchReadWriteTokenResponse
+ * @instance
+ */
+ FetchReadWriteTokenResponse.prototype.gitUsername = "";
+
+ /**
+ * Creates a new FetchReadWriteTokenResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.developerconnect.v1.FetchReadWriteTokenResponse
+ * @static
+ * @param {google.cloud.developerconnect.v1.IFetchReadWriteTokenResponse=} [properties] Properties to set
+ * @returns {google.cloud.developerconnect.v1.FetchReadWriteTokenResponse} FetchReadWriteTokenResponse instance
+ */
+ FetchReadWriteTokenResponse.create = function create(properties) {
+ return new FetchReadWriteTokenResponse(properties);
+ };
+
+ /**
+ * Encodes the specified FetchReadWriteTokenResponse message. Does not implicitly {@link google.cloud.developerconnect.v1.FetchReadWriteTokenResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.developerconnect.v1.FetchReadWriteTokenResponse
+ * @static
+ * @param {google.cloud.developerconnect.v1.IFetchReadWriteTokenResponse} message FetchReadWriteTokenResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FetchReadWriteTokenResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.token != null && Object.hasOwnProperty.call(message, "token"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.token);
+ if (message.expirationTime != null && Object.hasOwnProperty.call(message, "expirationTime"))
+ $root.google.protobuf.Timestamp.encode(message.expirationTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.gitUsername != null && Object.hasOwnProperty.call(message, "gitUsername"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.gitUsername);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified FetchReadWriteTokenResponse message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.FetchReadWriteTokenResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.developerconnect.v1.FetchReadWriteTokenResponse
+ * @static
+ * @param {google.cloud.developerconnect.v1.IFetchReadWriteTokenResponse} message FetchReadWriteTokenResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FetchReadWriteTokenResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a FetchReadWriteTokenResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.developerconnect.v1.FetchReadWriteTokenResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.developerconnect.v1.FetchReadWriteTokenResponse} FetchReadWriteTokenResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FetchReadWriteTokenResponse.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.cloud.developerconnect.v1.FetchReadWriteTokenResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.token = reader.string();
+ break;
+ }
+ case 2: {
+ message.expirationTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.gitUsername = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a FetchReadWriteTokenResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.developerconnect.v1.FetchReadWriteTokenResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.developerconnect.v1.FetchReadWriteTokenResponse} FetchReadWriteTokenResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FetchReadWriteTokenResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a FetchReadWriteTokenResponse message.
+ * @function verify
+ * @memberof google.cloud.developerconnect.v1.FetchReadWriteTokenResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ FetchReadWriteTokenResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.token != null && message.hasOwnProperty("token"))
+ if (!$util.isString(message.token))
+ return "token: string expected";
+ if (message.expirationTime != null && message.hasOwnProperty("expirationTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.expirationTime);
+ if (error)
+ return "expirationTime." + error;
+ }
+ if (message.gitUsername != null && message.hasOwnProperty("gitUsername"))
+ if (!$util.isString(message.gitUsername))
+ return "gitUsername: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a FetchReadWriteTokenResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.developerconnect.v1.FetchReadWriteTokenResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.developerconnect.v1.FetchReadWriteTokenResponse} FetchReadWriteTokenResponse
+ */
+ FetchReadWriteTokenResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.developerconnect.v1.FetchReadWriteTokenResponse)
+ return object;
+ var message = new $root.google.cloud.developerconnect.v1.FetchReadWriteTokenResponse();
+ if (object.token != null)
+ message.token = String(object.token);
+ if (object.expirationTime != null) {
+ if (typeof object.expirationTime !== "object")
+ throw TypeError(".google.cloud.developerconnect.v1.FetchReadWriteTokenResponse.expirationTime: object expected");
+ message.expirationTime = $root.google.protobuf.Timestamp.fromObject(object.expirationTime);
+ }
+ if (object.gitUsername != null)
+ message.gitUsername = String(object.gitUsername);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a FetchReadWriteTokenResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.developerconnect.v1.FetchReadWriteTokenResponse
+ * @static
+ * @param {google.cloud.developerconnect.v1.FetchReadWriteTokenResponse} message FetchReadWriteTokenResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ FetchReadWriteTokenResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.token = "";
+ object.expirationTime = null;
+ object.gitUsername = "";
+ }
+ if (message.token != null && message.hasOwnProperty("token"))
+ object.token = message.token;
+ if (message.expirationTime != null && message.hasOwnProperty("expirationTime"))
+ object.expirationTime = $root.google.protobuf.Timestamp.toObject(message.expirationTime, options);
+ if (message.gitUsername != null && message.hasOwnProperty("gitUsername"))
+ object.gitUsername = message.gitUsername;
+ return object;
+ };
+
+ /**
+ * Converts this FetchReadWriteTokenResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.developerconnect.v1.FetchReadWriteTokenResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ FetchReadWriteTokenResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for FetchReadWriteTokenResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.developerconnect.v1.FetchReadWriteTokenResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ FetchReadWriteTokenResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.developerconnect.v1.FetchReadWriteTokenResponse";
+ };
+
+ return FetchReadWriteTokenResponse;
+ })();
+
+ v1.FetchLinkableGitRepositoriesRequest = (function() {
+
+ /**
+ * Properties of a FetchLinkableGitRepositoriesRequest.
+ * @memberof google.cloud.developerconnect.v1
+ * @interface IFetchLinkableGitRepositoriesRequest
+ * @property {string|null} [connection] FetchLinkableGitRepositoriesRequest connection
+ * @property {number|null} [pageSize] FetchLinkableGitRepositoriesRequest pageSize
+ * @property {string|null} [pageToken] FetchLinkableGitRepositoriesRequest pageToken
+ */
+
+ /**
+ * Constructs a new FetchLinkableGitRepositoriesRequest.
+ * @memberof google.cloud.developerconnect.v1
+ * @classdesc Represents a FetchLinkableGitRepositoriesRequest.
+ * @implements IFetchLinkableGitRepositoriesRequest
+ * @constructor
+ * @param {google.cloud.developerconnect.v1.IFetchLinkableGitRepositoriesRequest=} [properties] Properties to set
+ */
+ function FetchLinkableGitRepositoriesRequest(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]];
+ }
+
+ /**
+ * FetchLinkableGitRepositoriesRequest connection.
+ * @member {string} connection
+ * @memberof google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest
+ * @instance
+ */
+ FetchLinkableGitRepositoriesRequest.prototype.connection = "";
+
+ /**
+ * FetchLinkableGitRepositoriesRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest
+ * @instance
+ */
+ FetchLinkableGitRepositoriesRequest.prototype.pageSize = 0;
+
+ /**
+ * FetchLinkableGitRepositoriesRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest
+ * @instance
+ */
+ FetchLinkableGitRepositoriesRequest.prototype.pageToken = "";
+
+ /**
+ * Creates a new FetchLinkableGitRepositoriesRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.IFetchLinkableGitRepositoriesRequest=} [properties] Properties to set
+ * @returns {google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest} FetchLinkableGitRepositoriesRequest instance
+ */
+ FetchLinkableGitRepositoriesRequest.create = function create(properties) {
+ return new FetchLinkableGitRepositoriesRequest(properties);
+ };
+
+ /**
+ * Encodes the specified FetchLinkableGitRepositoriesRequest message. Does not implicitly {@link google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.IFetchLinkableGitRepositoriesRequest} message FetchLinkableGitRepositoriesRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FetchLinkableGitRepositoriesRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.connection != null && Object.hasOwnProperty.call(message, "connection"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.connection);
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified FetchLinkableGitRepositoriesRequest message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.IFetchLinkableGitRepositoriesRequest} message FetchLinkableGitRepositoriesRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FetchLinkableGitRepositoriesRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a FetchLinkableGitRepositoriesRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest} FetchLinkableGitRepositoriesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FetchLinkableGitRepositoriesRequest.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.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.connection = reader.string();
+ break;
+ }
+ case 2: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 3: {
+ message.pageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a FetchLinkableGitRepositoriesRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest} FetchLinkableGitRepositoriesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FetchLinkableGitRepositoriesRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a FetchLinkableGitRepositoriesRequest message.
+ * @function verify
+ * @memberof google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ FetchLinkableGitRepositoriesRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.connection != null && message.hasOwnProperty("connection"))
+ if (!$util.isString(message.connection))
+ return "connection: string expected";
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a FetchLinkableGitRepositoriesRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest} FetchLinkableGitRepositoriesRequest
+ */
+ FetchLinkableGitRepositoriesRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest)
+ return object;
+ var message = new $root.google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest();
+ if (object.connection != null)
+ message.connection = String(object.connection);
+ if (object.pageSize != null)
+ message.pageSize = object.pageSize | 0;
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a FetchLinkableGitRepositoriesRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest} message FetchLinkableGitRepositoriesRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ FetchLinkableGitRepositoriesRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.connection = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ }
+ if (message.connection != null && message.hasOwnProperty("connection"))
+ object.connection = message.connection;
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ object.pageToken = message.pageToken;
+ return object;
+ };
+
+ /**
+ * Converts this FetchLinkableGitRepositoriesRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ FetchLinkableGitRepositoriesRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for FetchLinkableGitRepositoriesRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ FetchLinkableGitRepositoriesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesRequest";
+ };
+
+ return FetchLinkableGitRepositoriesRequest;
+ })();
+
+ v1.FetchLinkableGitRepositoriesResponse = (function() {
+
+ /**
+ * Properties of a FetchLinkableGitRepositoriesResponse.
+ * @memberof google.cloud.developerconnect.v1
+ * @interface IFetchLinkableGitRepositoriesResponse
+ * @property {Array.|null} [linkableGitRepositories] FetchLinkableGitRepositoriesResponse linkableGitRepositories
+ * @property {string|null} [nextPageToken] FetchLinkableGitRepositoriesResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new FetchLinkableGitRepositoriesResponse.
+ * @memberof google.cloud.developerconnect.v1
+ * @classdesc Represents a FetchLinkableGitRepositoriesResponse.
+ * @implements IFetchLinkableGitRepositoriesResponse
+ * @constructor
+ * @param {google.cloud.developerconnect.v1.IFetchLinkableGitRepositoriesResponse=} [properties] Properties to set
+ */
+ function FetchLinkableGitRepositoriesResponse(properties) {
+ this.linkableGitRepositories = [];
+ 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]];
+ }
+
+ /**
+ * FetchLinkableGitRepositoriesResponse linkableGitRepositories.
+ * @member {Array.} linkableGitRepositories
+ * @memberof google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse
+ * @instance
+ */
+ FetchLinkableGitRepositoriesResponse.prototype.linkableGitRepositories = $util.emptyArray;
+
+ /**
+ * FetchLinkableGitRepositoriesResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse
+ * @instance
+ */
+ FetchLinkableGitRepositoriesResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new FetchLinkableGitRepositoriesResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse
+ * @static
+ * @param {google.cloud.developerconnect.v1.IFetchLinkableGitRepositoriesResponse=} [properties] Properties to set
+ * @returns {google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse} FetchLinkableGitRepositoriesResponse instance
+ */
+ FetchLinkableGitRepositoriesResponse.create = function create(properties) {
+ return new FetchLinkableGitRepositoriesResponse(properties);
+ };
+
+ /**
+ * Encodes the specified FetchLinkableGitRepositoriesResponse message. Does not implicitly {@link google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse
+ * @static
+ * @param {google.cloud.developerconnect.v1.IFetchLinkableGitRepositoriesResponse} message FetchLinkableGitRepositoriesResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FetchLinkableGitRepositoriesResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.linkableGitRepositories != null && message.linkableGitRepositories.length)
+ for (var i = 0; i < message.linkableGitRepositories.length; ++i)
+ $root.google.cloud.developerconnect.v1.LinkableGitRepository.encode(message.linkableGitRepositories[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified FetchLinkableGitRepositoriesResponse message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse
+ * @static
+ * @param {google.cloud.developerconnect.v1.IFetchLinkableGitRepositoriesResponse} message FetchLinkableGitRepositoriesResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FetchLinkableGitRepositoriesResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a FetchLinkableGitRepositoriesResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse} FetchLinkableGitRepositoriesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FetchLinkableGitRepositoriesResponse.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.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.linkableGitRepositories && message.linkableGitRepositories.length))
+ message.linkableGitRepositories = [];
+ message.linkableGitRepositories.push($root.google.cloud.developerconnect.v1.LinkableGitRepository.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a FetchLinkableGitRepositoriesResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse} FetchLinkableGitRepositoriesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FetchLinkableGitRepositoriesResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a FetchLinkableGitRepositoriesResponse message.
+ * @function verify
+ * @memberof google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ FetchLinkableGitRepositoriesResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.linkableGitRepositories != null && message.hasOwnProperty("linkableGitRepositories")) {
+ if (!Array.isArray(message.linkableGitRepositories))
+ return "linkableGitRepositories: array expected";
+ for (var i = 0; i < message.linkableGitRepositories.length; ++i) {
+ var error = $root.google.cloud.developerconnect.v1.LinkableGitRepository.verify(message.linkableGitRepositories[i]);
+ if (error)
+ return "linkableGitRepositories." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a FetchLinkableGitRepositoriesResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse} FetchLinkableGitRepositoriesResponse
+ */
+ FetchLinkableGitRepositoriesResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse)
+ return object;
+ var message = new $root.google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse();
+ if (object.linkableGitRepositories) {
+ if (!Array.isArray(object.linkableGitRepositories))
+ throw TypeError(".google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse.linkableGitRepositories: array expected");
+ message.linkableGitRepositories = [];
+ for (var i = 0; i < object.linkableGitRepositories.length; ++i) {
+ if (typeof object.linkableGitRepositories[i] !== "object")
+ throw TypeError(".google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse.linkableGitRepositories: object expected");
+ message.linkableGitRepositories[i] = $root.google.cloud.developerconnect.v1.LinkableGitRepository.fromObject(object.linkableGitRepositories[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a FetchLinkableGitRepositoriesResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse
+ * @static
+ * @param {google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse} message FetchLinkableGitRepositoriesResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ FetchLinkableGitRepositoriesResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.linkableGitRepositories = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.linkableGitRepositories && message.linkableGitRepositories.length) {
+ object.linkableGitRepositories = [];
+ for (var j = 0; j < message.linkableGitRepositories.length; ++j)
+ object.linkableGitRepositories[j] = $root.google.cloud.developerconnect.v1.LinkableGitRepository.toObject(message.linkableGitRepositories[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this FetchLinkableGitRepositoriesResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ FetchLinkableGitRepositoriesResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for FetchLinkableGitRepositoriesResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ FetchLinkableGitRepositoriesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse";
+ };
+
+ return FetchLinkableGitRepositoriesResponse;
+ })();
+
+ v1.LinkableGitRepository = (function() {
+
+ /**
+ * Properties of a LinkableGitRepository.
+ * @memberof google.cloud.developerconnect.v1
+ * @interface ILinkableGitRepository
+ * @property {string|null} [cloneUri] LinkableGitRepository cloneUri
+ */
+
+ /**
+ * Constructs a new LinkableGitRepository.
+ * @memberof google.cloud.developerconnect.v1
+ * @classdesc Represents a LinkableGitRepository.
+ * @implements ILinkableGitRepository
+ * @constructor
+ * @param {google.cloud.developerconnect.v1.ILinkableGitRepository=} [properties] Properties to set
+ */
+ function LinkableGitRepository(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]];
+ }
+
+ /**
+ * LinkableGitRepository cloneUri.
+ * @member {string} cloneUri
+ * @memberof google.cloud.developerconnect.v1.LinkableGitRepository
+ * @instance
+ */
+ LinkableGitRepository.prototype.cloneUri = "";
+
+ /**
+ * Creates a new LinkableGitRepository instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.developerconnect.v1.LinkableGitRepository
+ * @static
+ * @param {google.cloud.developerconnect.v1.ILinkableGitRepository=} [properties] Properties to set
+ * @returns {google.cloud.developerconnect.v1.LinkableGitRepository} LinkableGitRepository instance
+ */
+ LinkableGitRepository.create = function create(properties) {
+ return new LinkableGitRepository(properties);
+ };
+
+ /**
+ * Encodes the specified LinkableGitRepository message. Does not implicitly {@link google.cloud.developerconnect.v1.LinkableGitRepository.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.developerconnect.v1.LinkableGitRepository
+ * @static
+ * @param {google.cloud.developerconnect.v1.ILinkableGitRepository} message LinkableGitRepository message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ LinkableGitRepository.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.cloneUri != null && Object.hasOwnProperty.call(message, "cloneUri"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.cloneUri);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified LinkableGitRepository message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.LinkableGitRepository.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.developerconnect.v1.LinkableGitRepository
+ * @static
+ * @param {google.cloud.developerconnect.v1.ILinkableGitRepository} message LinkableGitRepository message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ LinkableGitRepository.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a LinkableGitRepository message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.developerconnect.v1.LinkableGitRepository
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.developerconnect.v1.LinkableGitRepository} LinkableGitRepository
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ LinkableGitRepository.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.cloud.developerconnect.v1.LinkableGitRepository();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.cloneUri = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a LinkableGitRepository message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.developerconnect.v1.LinkableGitRepository
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.developerconnect.v1.LinkableGitRepository} LinkableGitRepository
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ LinkableGitRepository.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a LinkableGitRepository message.
+ * @function verify
+ * @memberof google.cloud.developerconnect.v1.LinkableGitRepository
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ LinkableGitRepository.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.cloneUri != null && message.hasOwnProperty("cloneUri"))
+ if (!$util.isString(message.cloneUri))
+ return "cloneUri: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a LinkableGitRepository message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.developerconnect.v1.LinkableGitRepository
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.developerconnect.v1.LinkableGitRepository} LinkableGitRepository
+ */
+ LinkableGitRepository.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.developerconnect.v1.LinkableGitRepository)
+ return object;
+ var message = new $root.google.cloud.developerconnect.v1.LinkableGitRepository();
+ if (object.cloneUri != null)
+ message.cloneUri = String(object.cloneUri);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a LinkableGitRepository message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.developerconnect.v1.LinkableGitRepository
+ * @static
+ * @param {google.cloud.developerconnect.v1.LinkableGitRepository} message LinkableGitRepository
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ LinkableGitRepository.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.cloneUri = "";
+ if (message.cloneUri != null && message.hasOwnProperty("cloneUri"))
+ object.cloneUri = message.cloneUri;
+ return object;
+ };
+
+ /**
+ * Converts this LinkableGitRepository to JSON.
+ * @function toJSON
+ * @memberof google.cloud.developerconnect.v1.LinkableGitRepository
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ LinkableGitRepository.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for LinkableGitRepository
+ * @function getTypeUrl
+ * @memberof google.cloud.developerconnect.v1.LinkableGitRepository
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ LinkableGitRepository.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.developerconnect.v1.LinkableGitRepository";
+ };
+
+ return LinkableGitRepository;
+ })();
+
+ v1.FetchGitHubInstallationsRequest = (function() {
+
+ /**
+ * Properties of a FetchGitHubInstallationsRequest.
+ * @memberof google.cloud.developerconnect.v1
+ * @interface IFetchGitHubInstallationsRequest
+ * @property {string|null} [connection] FetchGitHubInstallationsRequest connection
+ */
+
+ /**
+ * Constructs a new FetchGitHubInstallationsRequest.
+ * @memberof google.cloud.developerconnect.v1
+ * @classdesc Represents a FetchGitHubInstallationsRequest.
+ * @implements IFetchGitHubInstallationsRequest
+ * @constructor
+ * @param {google.cloud.developerconnect.v1.IFetchGitHubInstallationsRequest=} [properties] Properties to set
+ */
+ function FetchGitHubInstallationsRequest(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]];
+ }
+
+ /**
+ * FetchGitHubInstallationsRequest connection.
+ * @member {string} connection
+ * @memberof google.cloud.developerconnect.v1.FetchGitHubInstallationsRequest
+ * @instance
+ */
+ FetchGitHubInstallationsRequest.prototype.connection = "";
+
+ /**
+ * Creates a new FetchGitHubInstallationsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.developerconnect.v1.FetchGitHubInstallationsRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.IFetchGitHubInstallationsRequest=} [properties] Properties to set
+ * @returns {google.cloud.developerconnect.v1.FetchGitHubInstallationsRequest} FetchGitHubInstallationsRequest instance
+ */
+ FetchGitHubInstallationsRequest.create = function create(properties) {
+ return new FetchGitHubInstallationsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified FetchGitHubInstallationsRequest message. Does not implicitly {@link google.cloud.developerconnect.v1.FetchGitHubInstallationsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.developerconnect.v1.FetchGitHubInstallationsRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.IFetchGitHubInstallationsRequest} message FetchGitHubInstallationsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FetchGitHubInstallationsRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.connection != null && Object.hasOwnProperty.call(message, "connection"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.connection);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified FetchGitHubInstallationsRequest message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.FetchGitHubInstallationsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.developerconnect.v1.FetchGitHubInstallationsRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.IFetchGitHubInstallationsRequest} message FetchGitHubInstallationsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FetchGitHubInstallationsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a FetchGitHubInstallationsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.developerconnect.v1.FetchGitHubInstallationsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.developerconnect.v1.FetchGitHubInstallationsRequest} FetchGitHubInstallationsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FetchGitHubInstallationsRequest.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.cloud.developerconnect.v1.FetchGitHubInstallationsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.connection = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a FetchGitHubInstallationsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.developerconnect.v1.FetchGitHubInstallationsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.developerconnect.v1.FetchGitHubInstallationsRequest} FetchGitHubInstallationsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FetchGitHubInstallationsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a FetchGitHubInstallationsRequest message.
+ * @function verify
+ * @memberof google.cloud.developerconnect.v1.FetchGitHubInstallationsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ FetchGitHubInstallationsRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.connection != null && message.hasOwnProperty("connection"))
+ if (!$util.isString(message.connection))
+ return "connection: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a FetchGitHubInstallationsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.developerconnect.v1.FetchGitHubInstallationsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.developerconnect.v1.FetchGitHubInstallationsRequest} FetchGitHubInstallationsRequest
+ */
+ FetchGitHubInstallationsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.developerconnect.v1.FetchGitHubInstallationsRequest)
+ return object;
+ var message = new $root.google.cloud.developerconnect.v1.FetchGitHubInstallationsRequest();
+ if (object.connection != null)
+ message.connection = String(object.connection);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a FetchGitHubInstallationsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.developerconnect.v1.FetchGitHubInstallationsRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.FetchGitHubInstallationsRequest} message FetchGitHubInstallationsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ FetchGitHubInstallationsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.connection = "";
+ if (message.connection != null && message.hasOwnProperty("connection"))
+ object.connection = message.connection;
+ return object;
+ };
+
+ /**
+ * Converts this FetchGitHubInstallationsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.developerconnect.v1.FetchGitHubInstallationsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ FetchGitHubInstallationsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for FetchGitHubInstallationsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.developerconnect.v1.FetchGitHubInstallationsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ FetchGitHubInstallationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.developerconnect.v1.FetchGitHubInstallationsRequest";
+ };
+
+ return FetchGitHubInstallationsRequest;
+ })();
+
+ v1.FetchGitHubInstallationsResponse = (function() {
+
+ /**
+ * Properties of a FetchGitHubInstallationsResponse.
+ * @memberof google.cloud.developerconnect.v1
+ * @interface IFetchGitHubInstallationsResponse
+ * @property {Array.|null} [installations] FetchGitHubInstallationsResponse installations
+ */
+
+ /**
+ * Constructs a new FetchGitHubInstallationsResponse.
+ * @memberof google.cloud.developerconnect.v1
+ * @classdesc Represents a FetchGitHubInstallationsResponse.
+ * @implements IFetchGitHubInstallationsResponse
+ * @constructor
+ * @param {google.cloud.developerconnect.v1.IFetchGitHubInstallationsResponse=} [properties] Properties to set
+ */
+ function FetchGitHubInstallationsResponse(properties) {
+ this.installations = [];
+ 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]];
+ }
+
+ /**
+ * FetchGitHubInstallationsResponse installations.
+ * @member {Array.} installations
+ * @memberof google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse
+ * @instance
+ */
+ FetchGitHubInstallationsResponse.prototype.installations = $util.emptyArray;
+
+ /**
+ * Creates a new FetchGitHubInstallationsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse
+ * @static
+ * @param {google.cloud.developerconnect.v1.IFetchGitHubInstallationsResponse=} [properties] Properties to set
+ * @returns {google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse} FetchGitHubInstallationsResponse instance
+ */
+ FetchGitHubInstallationsResponse.create = function create(properties) {
+ return new FetchGitHubInstallationsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified FetchGitHubInstallationsResponse message. Does not implicitly {@link google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse
+ * @static
+ * @param {google.cloud.developerconnect.v1.IFetchGitHubInstallationsResponse} message FetchGitHubInstallationsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FetchGitHubInstallationsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.installations != null && message.installations.length)
+ for (var i = 0; i < message.installations.length; ++i)
+ $root.google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation.encode(message.installations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified FetchGitHubInstallationsResponse message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse
+ * @static
+ * @param {google.cloud.developerconnect.v1.IFetchGitHubInstallationsResponse} message FetchGitHubInstallationsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FetchGitHubInstallationsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a FetchGitHubInstallationsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse} FetchGitHubInstallationsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FetchGitHubInstallationsResponse.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.cloud.developerconnect.v1.FetchGitHubInstallationsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.installations && message.installations.length))
+ message.installations = [];
+ message.installations.push($root.google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a FetchGitHubInstallationsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse} FetchGitHubInstallationsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FetchGitHubInstallationsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a FetchGitHubInstallationsResponse message.
+ * @function verify
+ * @memberof google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ FetchGitHubInstallationsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.installations != null && message.hasOwnProperty("installations")) {
+ if (!Array.isArray(message.installations))
+ return "installations: array expected";
+ for (var i = 0; i < message.installations.length; ++i) {
+ var error = $root.google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation.verify(message.installations[i]);
+ if (error)
+ return "installations." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a FetchGitHubInstallationsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse} FetchGitHubInstallationsResponse
+ */
+ FetchGitHubInstallationsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse)
+ return object;
+ var message = new $root.google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse();
+ if (object.installations) {
+ if (!Array.isArray(object.installations))
+ throw TypeError(".google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.installations: array expected");
+ message.installations = [];
+ for (var i = 0; i < object.installations.length; ++i) {
+ if (typeof object.installations[i] !== "object")
+ throw TypeError(".google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.installations: object expected");
+ message.installations[i] = $root.google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation.fromObject(object.installations[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a FetchGitHubInstallationsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse
+ * @static
+ * @param {google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse} message FetchGitHubInstallationsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ FetchGitHubInstallationsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.installations = [];
+ if (message.installations && message.installations.length) {
+ object.installations = [];
+ for (var j = 0; j < message.installations.length; ++j)
+ object.installations[j] = $root.google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation.toObject(message.installations[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this FetchGitHubInstallationsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ FetchGitHubInstallationsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for FetchGitHubInstallationsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ FetchGitHubInstallationsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse";
+ };
+
+ FetchGitHubInstallationsResponse.Installation = (function() {
+
+ /**
+ * Properties of an Installation.
+ * @memberof google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse
+ * @interface IInstallation
+ * @property {number|Long|null} [id] Installation id
+ * @property {string|null} [name] Installation name
+ * @property {string|null} [type] Installation type
+ */
+
+ /**
+ * Constructs a new Installation.
+ * @memberof google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse
+ * @classdesc Represents an Installation.
+ * @implements IInstallation
+ * @constructor
+ * @param {google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.IInstallation=} [properties] Properties to set
+ */
+ function Installation(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]];
+ }
+
+ /**
+ * Installation id.
+ * @member {number|Long} id
+ * @memberof google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation
+ * @instance
+ */
+ Installation.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * Installation name.
+ * @member {string} name
+ * @memberof google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation
+ * @instance
+ */
+ Installation.prototype.name = "";
+
+ /**
+ * Installation type.
+ * @member {string} type
+ * @memberof google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation
+ * @instance
+ */
+ Installation.prototype.type = "";
+
+ /**
+ * Creates a new Installation instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation
+ * @static
+ * @param {google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.IInstallation=} [properties] Properties to set
+ * @returns {google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation} Installation instance
+ */
+ Installation.create = function create(properties) {
+ return new Installation(properties);
+ };
+
+ /**
+ * Encodes the specified Installation message. Does not implicitly {@link google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation
+ * @static
+ * @param {google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.IInstallation} message Installation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Installation.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.name);
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.type);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Installation message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation
+ * @static
+ * @param {google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.IInstallation} message Installation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Installation.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an Installation message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation} Installation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Installation.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.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.id = reader.int64();
+ break;
+ }
+ case 2: {
+ message.name = reader.string();
+ break;
+ }
+ case 3: {
+ message.type = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an Installation message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation} Installation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Installation.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an Installation message.
+ * @function verify
+ * @memberof google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Installation.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.id != null && message.hasOwnProperty("id"))
+ if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
+ return "id: integer|Long expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.type != null && message.hasOwnProperty("type"))
+ if (!$util.isString(message.type))
+ return "type: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an Installation message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation} Installation
+ */
+ Installation.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation)
+ return object;
+ var message = new $root.google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation();
+ if (object.id != null)
+ if ($util.Long)
+ (message.id = $util.Long.fromValue(object.id)).unsigned = false;
+ else if (typeof object.id === "string")
+ message.id = parseInt(object.id, 10);
+ else if (typeof object.id === "number")
+ message.id = object.id;
+ else if (typeof object.id === "object")
+ message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.type != null)
+ message.type = String(object.type);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an Installation message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation
+ * @static
+ * @param {google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation} message Installation
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Installation.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.id = options.longs === String ? "0" : 0;
+ object.name = "";
+ object.type = "";
+ }
+ if (message.id != null && message.hasOwnProperty("id"))
+ if (typeof message.id === "number")
+ object.id = options.longs === String ? String(message.id) : message.id;
+ else
+ object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.type != null && message.hasOwnProperty("type"))
+ object.type = message.type;
+ return object;
+ };
+
+ /**
+ * Converts this Installation to JSON.
+ * @function toJSON
+ * @memberof google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Installation.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Installation
+ * @function getTypeUrl
+ * @memberof google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Installation.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse.Installation";
+ };
+
+ return Installation;
+ })();
+
+ return FetchGitHubInstallationsResponse;
+ })();
+
+ v1.FetchGitRefsRequest = (function() {
+
+ /**
+ * Properties of a FetchGitRefsRequest.
+ * @memberof google.cloud.developerconnect.v1
+ * @interface IFetchGitRefsRequest
+ * @property {string|null} [gitRepositoryLink] FetchGitRefsRequest gitRepositoryLink
+ * @property {google.cloud.developerconnect.v1.FetchGitRefsRequest.RefType|null} [refType] FetchGitRefsRequest refType
+ * @property {number|null} [pageSize] FetchGitRefsRequest pageSize
+ * @property {string|null} [pageToken] FetchGitRefsRequest pageToken
+ */
+
+ /**
+ * Constructs a new FetchGitRefsRequest.
+ * @memberof google.cloud.developerconnect.v1
+ * @classdesc Represents a FetchGitRefsRequest.
+ * @implements IFetchGitRefsRequest
+ * @constructor
+ * @param {google.cloud.developerconnect.v1.IFetchGitRefsRequest=} [properties] Properties to set
+ */
+ function FetchGitRefsRequest(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]];
+ }
+
+ /**
+ * FetchGitRefsRequest gitRepositoryLink.
+ * @member {string} gitRepositoryLink
+ * @memberof google.cloud.developerconnect.v1.FetchGitRefsRequest
+ * @instance
+ */
+ FetchGitRefsRequest.prototype.gitRepositoryLink = "";
+
+ /**
+ * FetchGitRefsRequest refType.
+ * @member {google.cloud.developerconnect.v1.FetchGitRefsRequest.RefType} refType
+ * @memberof google.cloud.developerconnect.v1.FetchGitRefsRequest
+ * @instance
+ */
+ FetchGitRefsRequest.prototype.refType = 0;
+
+ /**
+ * FetchGitRefsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.developerconnect.v1.FetchGitRefsRequest
+ * @instance
+ */
+ FetchGitRefsRequest.prototype.pageSize = 0;
+
+ /**
+ * FetchGitRefsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.developerconnect.v1.FetchGitRefsRequest
+ * @instance
+ */
+ FetchGitRefsRequest.prototype.pageToken = "";
+
+ /**
+ * Creates a new FetchGitRefsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.developerconnect.v1.FetchGitRefsRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.IFetchGitRefsRequest=} [properties] Properties to set
+ * @returns {google.cloud.developerconnect.v1.FetchGitRefsRequest} FetchGitRefsRequest instance
+ */
+ FetchGitRefsRequest.create = function create(properties) {
+ return new FetchGitRefsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified FetchGitRefsRequest message. Does not implicitly {@link google.cloud.developerconnect.v1.FetchGitRefsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.developerconnect.v1.FetchGitRefsRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.IFetchGitRefsRequest} message FetchGitRefsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FetchGitRefsRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.gitRepositoryLink != null && Object.hasOwnProperty.call(message, "gitRepositoryLink"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.gitRepositoryLink);
+ if (message.refType != null && Object.hasOwnProperty.call(message, "refType"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.refType);
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.pageSize);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.pageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified FetchGitRefsRequest message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.FetchGitRefsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.developerconnect.v1.FetchGitRefsRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.IFetchGitRefsRequest} message FetchGitRefsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FetchGitRefsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a FetchGitRefsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.developerconnect.v1.FetchGitRefsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.developerconnect.v1.FetchGitRefsRequest} FetchGitRefsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FetchGitRefsRequest.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.cloud.developerconnect.v1.FetchGitRefsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.gitRepositoryLink = reader.string();
+ break;
+ }
+ case 2: {
+ message.refType = reader.int32();
+ break;
+ }
+ case 4: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 5: {
+ message.pageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a FetchGitRefsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.developerconnect.v1.FetchGitRefsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.developerconnect.v1.FetchGitRefsRequest} FetchGitRefsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FetchGitRefsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a FetchGitRefsRequest message.
+ * @function verify
+ * @memberof google.cloud.developerconnect.v1.FetchGitRefsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ FetchGitRefsRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.gitRepositoryLink != null && message.hasOwnProperty("gitRepositoryLink"))
+ if (!$util.isString(message.gitRepositoryLink))
+ return "gitRepositoryLink: string expected";
+ if (message.refType != null && message.hasOwnProperty("refType"))
+ switch (message.refType) {
+ default:
+ return "refType: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a FetchGitRefsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.developerconnect.v1.FetchGitRefsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.developerconnect.v1.FetchGitRefsRequest} FetchGitRefsRequest
+ */
+ FetchGitRefsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.developerconnect.v1.FetchGitRefsRequest)
+ return object;
+ var message = new $root.google.cloud.developerconnect.v1.FetchGitRefsRequest();
+ if (object.gitRepositoryLink != null)
+ message.gitRepositoryLink = String(object.gitRepositoryLink);
+ switch (object.refType) {
+ default:
+ if (typeof object.refType === "number") {
+ message.refType = object.refType;
+ break;
+ }
+ break;
+ case "REF_TYPE_UNSPECIFIED":
+ case 0:
+ message.refType = 0;
+ break;
+ case "TAG":
+ case 1:
+ message.refType = 1;
+ break;
+ case "BRANCH":
+ case 2:
+ message.refType = 2;
+ break;
+ }
+ if (object.pageSize != null)
+ message.pageSize = object.pageSize | 0;
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a FetchGitRefsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.developerconnect.v1.FetchGitRefsRequest
+ * @static
+ * @param {google.cloud.developerconnect.v1.FetchGitRefsRequest} message FetchGitRefsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ FetchGitRefsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.gitRepositoryLink = "";
+ object.refType = options.enums === String ? "REF_TYPE_UNSPECIFIED" : 0;
+ object.pageSize = 0;
+ object.pageToken = "";
+ }
+ if (message.gitRepositoryLink != null && message.hasOwnProperty("gitRepositoryLink"))
+ object.gitRepositoryLink = message.gitRepositoryLink;
+ if (message.refType != null && message.hasOwnProperty("refType"))
+ object.refType = options.enums === String ? $root.google.cloud.developerconnect.v1.FetchGitRefsRequest.RefType[message.refType] === undefined ? message.refType : $root.google.cloud.developerconnect.v1.FetchGitRefsRequest.RefType[message.refType] : message.refType;
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ object.pageToken = message.pageToken;
+ return object;
+ };
+
+ /**
+ * Converts this FetchGitRefsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.developerconnect.v1.FetchGitRefsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ FetchGitRefsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for FetchGitRefsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.developerconnect.v1.FetchGitRefsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ FetchGitRefsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.developerconnect.v1.FetchGitRefsRequest";
+ };
+
+ /**
+ * RefType enum.
+ * @name google.cloud.developerconnect.v1.FetchGitRefsRequest.RefType
+ * @enum {number}
+ * @property {number} REF_TYPE_UNSPECIFIED=0 REF_TYPE_UNSPECIFIED value
+ * @property {number} TAG=1 TAG value
+ * @property {number} BRANCH=2 BRANCH value
+ */
+ FetchGitRefsRequest.RefType = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "REF_TYPE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "TAG"] = 1;
+ values[valuesById[2] = "BRANCH"] = 2;
+ return values;
+ })();
+
+ return FetchGitRefsRequest;
+ })();
+
+ v1.FetchGitRefsResponse = (function() {
+
+ /**
+ * Properties of a FetchGitRefsResponse.
+ * @memberof google.cloud.developerconnect.v1
+ * @interface IFetchGitRefsResponse
+ * @property {Array.|null} [refNames] FetchGitRefsResponse refNames
+ * @property {string|null} [nextPageToken] FetchGitRefsResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new FetchGitRefsResponse.
+ * @memberof google.cloud.developerconnect.v1
+ * @classdesc Represents a FetchGitRefsResponse.
+ * @implements IFetchGitRefsResponse
+ * @constructor
+ * @param {google.cloud.developerconnect.v1.IFetchGitRefsResponse=} [properties] Properties to set
+ */
+ function FetchGitRefsResponse(properties) {
+ this.refNames = [];
+ 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]];
+ }
+
+ /**
+ * FetchGitRefsResponse refNames.
+ * @member {Array.} refNames
+ * @memberof google.cloud.developerconnect.v1.FetchGitRefsResponse
+ * @instance
+ */
+ FetchGitRefsResponse.prototype.refNames = $util.emptyArray;
+
+ /**
+ * FetchGitRefsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.developerconnect.v1.FetchGitRefsResponse
+ * @instance
+ */
+ FetchGitRefsResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new FetchGitRefsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.developerconnect.v1.FetchGitRefsResponse
+ * @static
+ * @param {google.cloud.developerconnect.v1.IFetchGitRefsResponse=} [properties] Properties to set
+ * @returns {google.cloud.developerconnect.v1.FetchGitRefsResponse} FetchGitRefsResponse instance
+ */
+ FetchGitRefsResponse.create = function create(properties) {
+ return new FetchGitRefsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified FetchGitRefsResponse message. Does not implicitly {@link google.cloud.developerconnect.v1.FetchGitRefsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.developerconnect.v1.FetchGitRefsResponse
+ * @static
+ * @param {google.cloud.developerconnect.v1.IFetchGitRefsResponse} message FetchGitRefsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FetchGitRefsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.refNames != null && message.refNames.length)
+ for (var i = 0; i < message.refNames.length; ++i)
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.refNames[i]);
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified FetchGitRefsResponse message, length delimited. Does not implicitly {@link google.cloud.developerconnect.v1.FetchGitRefsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.developerconnect.v1.FetchGitRefsResponse
+ * @static
+ * @param {google.cloud.developerconnect.v1.IFetchGitRefsResponse} message FetchGitRefsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FetchGitRefsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a FetchGitRefsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.developerconnect.v1.FetchGitRefsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.developerconnect.v1.FetchGitRefsResponse} FetchGitRefsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FetchGitRefsResponse.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.cloud.developerconnect.v1.FetchGitRefsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.refNames && message.refNames.length))
+ message.refNames = [];
+ message.refNames.push(reader.string());
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a FetchGitRefsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.developerconnect.v1.FetchGitRefsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.developerconnect.v1.FetchGitRefsResponse} FetchGitRefsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FetchGitRefsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a FetchGitRefsResponse message.
+ * @function verify
+ * @memberof google.cloud.developerconnect.v1.FetchGitRefsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ FetchGitRefsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.refNames != null && message.hasOwnProperty("refNames")) {
+ if (!Array.isArray(message.refNames))
+ return "refNames: array expected";
+ for (var i = 0; i < message.refNames.length; ++i)
+ if (!$util.isString(message.refNames[i]))
+ return "refNames: string[] expected";
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a FetchGitRefsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.developerconnect.v1.FetchGitRefsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.developerconnect.v1.FetchGitRefsResponse} FetchGitRefsResponse
+ */
+ FetchGitRefsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.developerconnect.v1.FetchGitRefsResponse)
+ return object;
+ var message = new $root.google.cloud.developerconnect.v1.FetchGitRefsResponse();
+ if (object.refNames) {
+ if (!Array.isArray(object.refNames))
+ throw TypeError(".google.cloud.developerconnect.v1.FetchGitRefsResponse.refNames: array expected");
+ message.refNames = [];
+ for (var i = 0; i < object.refNames.length; ++i)
+ message.refNames[i] = String(object.refNames[i]);
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a FetchGitRefsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.developerconnect.v1.FetchGitRefsResponse
+ * @static
+ * @param {google.cloud.developerconnect.v1.FetchGitRefsResponse} message FetchGitRefsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ FetchGitRefsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.refNames = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.refNames && message.refNames.length) {
+ object.refNames = [];
+ for (var j = 0; j < message.refNames.length; ++j)
+ object.refNames[j] = message.refNames[j];
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this FetchGitRefsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.developerconnect.v1.FetchGitRefsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ FetchGitRefsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for FetchGitRefsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.developerconnect.v1.FetchGitRefsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ FetchGitRefsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.developerconnect.v1.FetchGitRefsResponse";
+ };
+
+ return FetchGitRefsResponse;
+ })();
+
+ return v1;
+ })();
+
+ return developerconnect;
+ })();
+
+ return cloud;
+ })();
+
+ google.api = (function() {
+
+ /**
+ * Namespace api.
+ * @memberof google
+ * @namespace
+ */
+ var api = {};
+
+ api.Http = (function() {
+
+ /**
+ * Properties of a Http.
+ * @memberof google.api
+ * @interface IHttp
+ * @property {Array.|null} [rules] Http rules
+ * @property {boolean|null} [fullyDecodeReservedExpansion] Http fullyDecodeReservedExpansion
+ */
+
+ /**
+ * Constructs a new Http.
+ * @memberof google.api
+ * @classdesc Represents a Http.
+ * @implements IHttp
+ * @constructor
+ * @param {google.api.IHttp=} [properties] Properties to set
+ */
+ function Http(properties) {
+ this.rules = [];
+ 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]];
+ }
+
+ /**
+ * Http rules.
+ * @member {Array.} rules
+ * @memberof google.api.Http
+ * @instance
+ */
+ Http.prototype.rules = $util.emptyArray;
+
+ /**
+ * Http fullyDecodeReservedExpansion.
+ * @member {boolean} fullyDecodeReservedExpansion
+ * @memberof google.api.Http
+ * @instance
+ */
+ Http.prototype.fullyDecodeReservedExpansion = false;
+
+ /**
+ * Creates a new Http instance using the specified properties.
+ * @function create
+ * @memberof google.api.Http
+ * @static
+ * @param {google.api.IHttp=} [properties] Properties to set
+ * @returns {google.api.Http} Http instance
+ */
+ Http.create = function create(properties) {
+ return new Http(properties);
+ };
+
+ /**
+ * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.Http
+ * @static
+ * @param {google.api.IHttp} message Http message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Http.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.rules != null && message.rules.length)
+ for (var i = 0; i < message.rules.length; ++i)
+ $root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.fullyDecodeReservedExpansion != null && Object.hasOwnProperty.call(message, "fullyDecodeReservedExpansion"))
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.fullyDecodeReservedExpansion);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.Http
+ * @static
+ * @param {google.api.IHttp} message Http message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Http.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Http message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.Http
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.Http} Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Http.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.Http();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.rules && message.rules.length))
+ message.rules = [];
+ message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.fullyDecodeReservedExpansion = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Http message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.Http
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.Http} Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Http.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Http message.
+ * @function verify
+ * @memberof google.api.Http
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Http.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.rules != null && message.hasOwnProperty("rules")) {
+ if (!Array.isArray(message.rules))
+ return "rules: array expected";
+ for (var i = 0; i < message.rules.length; ++i) {
+ var error = $root.google.api.HttpRule.verify(message.rules[i]);
+ if (error)
+ return "rules." + error;
+ }
+ }
+ if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion"))
+ if (typeof message.fullyDecodeReservedExpansion !== "boolean")
+ return "fullyDecodeReservedExpansion: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a Http message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.Http
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.Http} Http
+ */
+ Http.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.Http)
+ return object;
+ var message = new $root.google.api.Http();
+ if (object.rules) {
+ if (!Array.isArray(object.rules))
+ throw TypeError(".google.api.Http.rules: array expected");
+ message.rules = [];
+ for (var i = 0; i < object.rules.length; ++i) {
+ if (typeof object.rules[i] !== "object")
+ throw TypeError(".google.api.Http.rules: object expected");
+ message.rules[i] = $root.google.api.HttpRule.fromObject(object.rules[i]);
+ }
+ }
+ if (object.fullyDecodeReservedExpansion != null)
+ message.fullyDecodeReservedExpansion = Boolean(object.fullyDecodeReservedExpansion);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Http message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.Http
+ * @static
+ * @param {google.api.Http} message Http
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Http.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.rules = [];
+ if (options.defaults)
+ object.fullyDecodeReservedExpansion = false;
+ if (message.rules && message.rules.length) {
+ object.rules = [];
+ for (var j = 0; j < message.rules.length; ++j)
+ object.rules[j] = $root.google.api.HttpRule.toObject(message.rules[j], options);
+ }
+ if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion"))
+ object.fullyDecodeReservedExpansion = message.fullyDecodeReservedExpansion;
+ return object;
+ };
+
+ /**
+ * Converts this Http to JSON.
+ * @function toJSON
+ * @memberof google.api.Http
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Http.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Http
+ * @function getTypeUrl
+ * @memberof google.api.Http
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Http.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.Http";
+ };
+
+ return Http;
+ })();
+
+ api.HttpRule = (function() {
+
+ /**
+ * Properties of a HttpRule.
+ * @memberof google.api
+ * @interface IHttpRule
+ * @property {string|null} [selector] HttpRule selector
+ * @property {string|null} [get] HttpRule get
+ * @property {string|null} [put] HttpRule put
+ * @property {string|null} [post] HttpRule post
+ * @property {string|null} ["delete"] HttpRule delete
+ * @property {string|null} [patch] HttpRule patch
+ * @property {google.api.ICustomHttpPattern|null} [custom] HttpRule custom
+ * @property {string|null} [body] HttpRule body
+ * @property {string|null} [responseBody] HttpRule responseBody
+ * @property {Array.|null} [additionalBindings] HttpRule additionalBindings
+ */
+
+ /**
+ * Constructs a new HttpRule.
+ * @memberof google.api
+ * @classdesc Represents a HttpRule.
+ * @implements IHttpRule
+ * @constructor
+ * @param {google.api.IHttpRule=} [properties] Properties to set
+ */
+ function HttpRule(properties) {
+ this.additionalBindings = [];
+ 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]];
+ }
+
+ /**
+ * HttpRule selector.
+ * @member {string} selector
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.selector = "";
+
+ /**
+ * HttpRule get.
+ * @member {string|null|undefined} get
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.get = null;
+
+ /**
+ * HttpRule put.
+ * @member {string|null|undefined} put
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.put = null;
+
+ /**
+ * HttpRule post.
+ * @member {string|null|undefined} post
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.post = null;
+
+ /**
+ * HttpRule delete.
+ * @member {string|null|undefined} delete
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype["delete"] = null;
+
+ /**
+ * HttpRule patch.
+ * @member {string|null|undefined} patch
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.patch = null;
+
+ /**
+ * HttpRule custom.
+ * @member {google.api.ICustomHttpPattern|null|undefined} custom
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.custom = null;
+
+ /**
+ * HttpRule body.
+ * @member {string} body
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.body = "";
+
+ /**
+ * HttpRule responseBody.
+ * @member {string} responseBody
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.responseBody = "";
+
+ /**
+ * HttpRule additionalBindings.
+ * @member {Array.} additionalBindings
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.additionalBindings = $util.emptyArray;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * HttpRule pattern.
+ * @member {"get"|"put"|"post"|"delete"|"patch"|"custom"|undefined} pattern
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ Object.defineProperty(HttpRule.prototype, "pattern", {
+ get: $util.oneOfGetter($oneOfFields = ["get", "put", "post", "delete", "patch", "custom"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new HttpRule instance using the specified properties.
+ * @function create
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {google.api.IHttpRule=} [properties] Properties to set
+ * @returns {google.api.HttpRule} HttpRule instance
+ */
+ HttpRule.create = function create(properties) {
+ return new HttpRule(properties);
+ };
+
+ /**
+ * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {google.api.IHttpRule} message HttpRule message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ HttpRule.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.selector != null && Object.hasOwnProperty.call(message, "selector"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector);
+ if (message.get != null && Object.hasOwnProperty.call(message, "get"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.get);
+ if (message.put != null && Object.hasOwnProperty.call(message, "put"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.put);
+ if (message.post != null && Object.hasOwnProperty.call(message, "post"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.post);
+ if (message["delete"] != null && Object.hasOwnProperty.call(message, "delete"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message["delete"]);
+ if (message.patch != null && Object.hasOwnProperty.call(message, "patch"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.patch);
+ if (message.body != null && Object.hasOwnProperty.call(message, "body"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.body);
+ if (message.custom != null && Object.hasOwnProperty.call(message, "custom"))
+ $root.google.api.CustomHttpPattern.encode(message.custom, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
+ if (message.additionalBindings != null && message.additionalBindings.length)
+ for (var i = 0; i < message.additionalBindings.length; ++i)
+ $root.google.api.HttpRule.encode(message.additionalBindings[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
+ if (message.responseBody != null && Object.hasOwnProperty.call(message, "responseBody"))
+ writer.uint32(/* id 12, wireType 2 =*/98).string(message.responseBody);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {google.api.IHttpRule} message HttpRule message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ HttpRule.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.HttpRule} HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ HttpRule.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.HttpRule();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.selector = reader.string();
+ break;
+ }
+ case 2: {
+ message.get = reader.string();
+ break;
+ }
+ case 3: {
+ message.put = reader.string();
+ break;
+ }
+ case 4: {
+ message.post = reader.string();
+ break;
+ }
+ case 5: {
+ message["delete"] = reader.string();
+ break;
+ }
+ case 6: {
+ message.patch = reader.string();
+ break;
+ }
+ case 8: {
+ message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32());
+ break;
+ }
+ case 7: {
+ message.body = reader.string();
+ break;
+ }
+ case 12: {
+ message.responseBody = reader.string();
+ break;
+ }
+ case 11: {
+ if (!(message.additionalBindings && message.additionalBindings.length))
+ message.additionalBindings = [];
+ message.additionalBindings.push($root.google.api.HttpRule.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.HttpRule} HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ HttpRule.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a HttpRule message.
+ * @function verify
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ HttpRule.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.selector != null && message.hasOwnProperty("selector"))
+ if (!$util.isString(message.selector))
+ return "selector: string expected";
+ if (message.get != null && message.hasOwnProperty("get")) {
+ properties.pattern = 1;
+ if (!$util.isString(message.get))
+ return "get: string expected";
+ }
+ if (message.put != null && message.hasOwnProperty("put")) {
+ if (properties.pattern === 1)
+ return "pattern: multiple values";
+ properties.pattern = 1;
+ if (!$util.isString(message.put))
+ return "put: string expected";
+ }
+ if (message.post != null && message.hasOwnProperty("post")) {
+ if (properties.pattern === 1)
+ return "pattern: multiple values";
+ properties.pattern = 1;
+ if (!$util.isString(message.post))
+ return "post: string expected";
+ }
+ if (message["delete"] != null && message.hasOwnProperty("delete")) {
+ if (properties.pattern === 1)
+ return "pattern: multiple values";
+ properties.pattern = 1;
+ if (!$util.isString(message["delete"]))
+ return "delete: string expected";
+ }
+ if (message.patch != null && message.hasOwnProperty("patch")) {
+ if (properties.pattern === 1)
+ return "pattern: multiple values";
+ properties.pattern = 1;
+ if (!$util.isString(message.patch))
+ return "patch: string expected";
+ }
+ if (message.custom != null && message.hasOwnProperty("custom")) {
+ if (properties.pattern === 1)
+ return "pattern: multiple values";
+ properties.pattern = 1;
+ {
+ var error = $root.google.api.CustomHttpPattern.verify(message.custom);
+ if (error)
+ return "custom." + error;
+ }
+ }
+ if (message.body != null && message.hasOwnProperty("body"))
+ if (!$util.isString(message.body))
+ return "body: string expected";
+ if (message.responseBody != null && message.hasOwnProperty("responseBody"))
+ if (!$util.isString(message.responseBody))
+ return "responseBody: string expected";
+ if (message.additionalBindings != null && message.hasOwnProperty("additionalBindings")) {
+ if (!Array.isArray(message.additionalBindings))
+ return "additionalBindings: array expected";
+ for (var i = 0; i < message.additionalBindings.length; ++i) {
+ var error = $root.google.api.HttpRule.verify(message.additionalBindings[i]);
+ if (error)
+ return "additionalBindings." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.HttpRule} HttpRule
+ */
+ HttpRule.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.HttpRule)
+ return object;
+ var message = new $root.google.api.HttpRule();
+ if (object.selector != null)
+ message.selector = String(object.selector);
+ if (object.get != null)
+ message.get = String(object.get);
+ if (object.put != null)
+ message.put = String(object.put);
+ if (object.post != null)
+ message.post = String(object.post);
+ if (object["delete"] != null)
+ message["delete"] = String(object["delete"]);
+ if (object.patch != null)
+ message.patch = String(object.patch);
+ if (object.custom != null) {
+ if (typeof object.custom !== "object")
+ throw TypeError(".google.api.HttpRule.custom: object expected");
+ message.custom = $root.google.api.CustomHttpPattern.fromObject(object.custom);
+ }
+ if (object.body != null)
+ message.body = String(object.body);
+ if (object.responseBody != null)
+ message.responseBody = String(object.responseBody);
+ if (object.additionalBindings) {
+ if (!Array.isArray(object.additionalBindings))
+ throw TypeError(".google.api.HttpRule.additionalBindings: array expected");
+ message.additionalBindings = [];
+ for (var i = 0; i < object.additionalBindings.length; ++i) {
+ if (typeof object.additionalBindings[i] !== "object")
+ throw TypeError(".google.api.HttpRule.additionalBindings: object expected");
+ message.additionalBindings[i] = $root.google.api.HttpRule.fromObject(object.additionalBindings[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {google.api.HttpRule} message HttpRule
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ HttpRule.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.additionalBindings = [];
+ if (options.defaults) {
+ object.selector = "";
+ object.body = "";
+ object.responseBody = "";
+ }
+ if (message.selector != null && message.hasOwnProperty("selector"))
+ object.selector = message.selector;
+ if (message.get != null && message.hasOwnProperty("get")) {
+ object.get = message.get;
+ if (options.oneofs)
+ object.pattern = "get";
+ }
+ if (message.put != null && message.hasOwnProperty("put")) {
+ object.put = message.put;
+ if (options.oneofs)
+ object.pattern = "put";
+ }
+ if (message.post != null && message.hasOwnProperty("post")) {
+ object.post = message.post;
+ if (options.oneofs)
+ object.pattern = "post";
+ }
+ if (message["delete"] != null && message.hasOwnProperty("delete")) {
+ object["delete"] = message["delete"];
+ if (options.oneofs)
+ object.pattern = "delete";
+ }
+ if (message.patch != null && message.hasOwnProperty("patch")) {
+ object.patch = message.patch;
+ if (options.oneofs)
+ object.pattern = "patch";
+ }
+ if (message.body != null && message.hasOwnProperty("body"))
+ object.body = message.body;
+ if (message.custom != null && message.hasOwnProperty("custom")) {
+ object.custom = $root.google.api.CustomHttpPattern.toObject(message.custom, options);
+ if (options.oneofs)
+ object.pattern = "custom";
+ }
+ if (message.additionalBindings && message.additionalBindings.length) {
+ object.additionalBindings = [];
+ for (var j = 0; j < message.additionalBindings.length; ++j)
+ object.additionalBindings[j] = $root.google.api.HttpRule.toObject(message.additionalBindings[j], options);
+ }
+ if (message.responseBody != null && message.hasOwnProperty("responseBody"))
+ object.responseBody = message.responseBody;
+ return object;
+ };
+
+ /**
+ * Converts this HttpRule to JSON.
+ * @function toJSON
+ * @memberof google.api.HttpRule
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ HttpRule.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for HttpRule
+ * @function getTypeUrl
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ HttpRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.HttpRule";
+ };
+
+ return HttpRule;
+ })();
+
+ api.CustomHttpPattern = (function() {
+
+ /**
+ * Properties of a CustomHttpPattern.
+ * @memberof google.api
+ * @interface ICustomHttpPattern
+ * @property {string|null} [kind] CustomHttpPattern kind
+ * @property {string|null} [path] CustomHttpPattern path
+ */
+
+ /**
+ * Constructs a new CustomHttpPattern.
+ * @memberof google.api
+ * @classdesc Represents a CustomHttpPattern.
+ * @implements ICustomHttpPattern
+ * @constructor
+ * @param {google.api.ICustomHttpPattern=} [properties] Properties to set
+ */
+ function CustomHttpPattern(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]];
+ }
+
+ /**
+ * CustomHttpPattern kind.
+ * @member {string} kind
+ * @memberof google.api.CustomHttpPattern
+ * @instance
+ */
+ CustomHttpPattern.prototype.kind = "";
+
+ /**
+ * CustomHttpPattern path.
+ * @member {string} path
+ * @memberof google.api.CustomHttpPattern
+ * @instance
+ */
+ CustomHttpPattern.prototype.path = "";
+
+ /**
+ * Creates a new CustomHttpPattern instance using the specified properties.
+ * @function create
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {google.api.ICustomHttpPattern=} [properties] Properties to set
+ * @returns {google.api.CustomHttpPattern} CustomHttpPattern instance
+ */
+ CustomHttpPattern.create = function create(properties) {
+ return new CustomHttpPattern(properties);
+ };
+
+ /**
+ * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CustomHttpPattern.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.kind != null && Object.hasOwnProperty.call(message, "kind"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind);
+ if (message.path != null && Object.hasOwnProperty.call(message, "path"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.path);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CustomHttpPattern.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.CustomHttpPattern} CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CustomHttpPattern.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.CustomHttpPattern();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.kind = reader.string();
+ break;
+ }
+ case 2: {
+ message.path = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.CustomHttpPattern} CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CustomHttpPattern.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CustomHttpPattern message.
+ * @function verify
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CustomHttpPattern.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.kind != null && message.hasOwnProperty("kind"))
+ if (!$util.isString(message.kind))
+ return "kind: string expected";
+ if (message.path != null && message.hasOwnProperty("path"))
+ if (!$util.isString(message.path))
+ return "path: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.CustomHttpPattern} CustomHttpPattern
+ */
+ CustomHttpPattern.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.CustomHttpPattern)
+ return object;
+ var message = new $root.google.api.CustomHttpPattern();
+ if (object.kind != null)
+ message.kind = String(object.kind);
+ if (object.path != null)
+ message.path = String(object.path);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {google.api.CustomHttpPattern} message CustomHttpPattern
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CustomHttpPattern.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.kind = "";
+ object.path = "";
+ }
+ if (message.kind != null && message.hasOwnProperty("kind"))
+ object.kind = message.kind;
+ if (message.path != null && message.hasOwnProperty("path"))
+ object.path = message.path;
+ return object;
+ };
+
+ /**
+ * Converts this CustomHttpPattern to JSON.
+ * @function toJSON
+ * @memberof google.api.CustomHttpPattern
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CustomHttpPattern.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CustomHttpPattern
+ * @function getTypeUrl
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CustomHttpPattern.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.CustomHttpPattern";
+ };
+
+ return CustomHttpPattern;
+ })();
+
+ api.CommonLanguageSettings = (function() {
+
+ /**
+ * Properties of a CommonLanguageSettings.
+ * @memberof google.api
+ * @interface ICommonLanguageSettings
+ * @property {string|null} [referenceDocsUri] CommonLanguageSettings referenceDocsUri
+ * @property {Array.|null} [destinations] CommonLanguageSettings destinations
+ */
+
+ /**
+ * Constructs a new CommonLanguageSettings.
+ * @memberof google.api
+ * @classdesc Represents a CommonLanguageSettings.
+ * @implements ICommonLanguageSettings
+ * @constructor
+ * @param {google.api.ICommonLanguageSettings=} [properties] Properties to set
+ */
+ function CommonLanguageSettings(properties) {
+ this.destinations = [];
+ 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]];
+ }
+
+ /**
+ * CommonLanguageSettings referenceDocsUri.
+ * @member {string} referenceDocsUri
+ * @memberof google.api.CommonLanguageSettings
+ * @instance
+ */
+ CommonLanguageSettings.prototype.referenceDocsUri = "";
+
+ /**
+ * CommonLanguageSettings destinations.
+ * @member {Array.} destinations
+ * @memberof google.api.CommonLanguageSettings
+ * @instance
+ */
+ CommonLanguageSettings.prototype.destinations = $util.emptyArray;
+
+ /**
+ * Creates a new CommonLanguageSettings instance using the specified properties.
+ * @function create
+ * @memberof google.api.CommonLanguageSettings
+ * @static
+ * @param {google.api.ICommonLanguageSettings=} [properties] Properties to set
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings instance
+ */
+ CommonLanguageSettings.create = function create(properties) {
+ return new CommonLanguageSettings(properties);
+ };
+
+ /**
+ * Encodes the specified CommonLanguageSettings message. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.CommonLanguageSettings
+ * @static
+ * @param {google.api.ICommonLanguageSettings} message CommonLanguageSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CommonLanguageSettings.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.referenceDocsUri != null && Object.hasOwnProperty.call(message, "referenceDocsUri"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.referenceDocsUri);
+ if (message.destinations != null && message.destinations.length) {
+ writer.uint32(/* id 2, wireType 2 =*/18).fork();
+ for (var i = 0; i < message.destinations.length; ++i)
+ writer.int32(message.destinations[i]);
+ writer.ldelim();
+ }
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CommonLanguageSettings message, length delimited. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.CommonLanguageSettings
+ * @static
+ * @param {google.api.ICommonLanguageSettings} message CommonLanguageSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CommonLanguageSettings.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.CommonLanguageSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CommonLanguageSettings.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.CommonLanguageSettings();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.referenceDocsUri = reader.string();
+ break;
+ }
+ case 2: {
+ if (!(message.destinations && message.destinations.length))
+ message.destinations = [];
+ if ((tag & 7) === 2) {
+ var end2 = reader.uint32() + reader.pos;
+ while (reader.pos < end2)
+ message.destinations.push(reader.int32());
+ } else
+ message.destinations.push(reader.int32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.CommonLanguageSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CommonLanguageSettings.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CommonLanguageSettings message.
+ * @function verify
+ * @memberof google.api.CommonLanguageSettings
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CommonLanguageSettings.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri"))
+ if (!$util.isString(message.referenceDocsUri))
+ return "referenceDocsUri: string expected";
+ if (message.destinations != null && message.hasOwnProperty("destinations")) {
+ if (!Array.isArray(message.destinations))
+ return "destinations: array expected";
+ for (var i = 0; i < message.destinations.length; ++i)
+ switch (message.destinations[i]) {
+ default:
+ return "destinations: enum value[] expected";
+ case 0:
+ case 10:
+ case 20:
+ break;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a CommonLanguageSettings message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.CommonLanguageSettings
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings
+ */
+ CommonLanguageSettings.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.CommonLanguageSettings)
+ return object;
+ var message = new $root.google.api.CommonLanguageSettings();
+ if (object.referenceDocsUri != null)
+ message.referenceDocsUri = String(object.referenceDocsUri);
+ if (object.destinations) {
+ if (!Array.isArray(object.destinations))
+ throw TypeError(".google.api.CommonLanguageSettings.destinations: array expected");
+ message.destinations = [];
+ for (var i = 0; i < object.destinations.length; ++i)
+ switch (object.destinations[i]) {
+ default:
+ if (typeof object.destinations[i] === "number") {
+ message.destinations[i] = object.destinations[i];
+ break;
+ }
+ case "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED":
+ case 0:
+ message.destinations[i] = 0;
+ break;
+ case "GITHUB":
+ case 10:
+ message.destinations[i] = 10;
+ break;
+ case "PACKAGE_MANAGER":
+ case 20:
+ message.destinations[i] = 20;
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CommonLanguageSettings message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.CommonLanguageSettings
+ * @static
+ * @param {google.api.CommonLanguageSettings} message CommonLanguageSettings
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CommonLanguageSettings.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.destinations = [];
+ if (options.defaults)
+ object.referenceDocsUri = "";
+ if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri"))
+ object.referenceDocsUri = message.referenceDocsUri;
+ if (message.destinations && message.destinations.length) {
+ object.destinations = [];
+ for (var j = 0; j < message.destinations.length; ++j)
+ object.destinations[j] = options.enums === String ? $root.google.api.ClientLibraryDestination[message.destinations[j]] === undefined ? message.destinations[j] : $root.google.api.ClientLibraryDestination[message.destinations[j]] : message.destinations[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this CommonLanguageSettings to JSON.
+ * @function toJSON
+ * @memberof google.api.CommonLanguageSettings
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CommonLanguageSettings.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CommonLanguageSettings
+ * @function getTypeUrl
+ * @memberof google.api.CommonLanguageSettings
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CommonLanguageSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.CommonLanguageSettings";
+ };
+
+ return CommonLanguageSettings;
+ })();
+
+ api.ClientLibrarySettings = (function() {
+
+ /**
+ * Properties of a ClientLibrarySettings.
+ * @memberof google.api
+ * @interface IClientLibrarySettings
+ * @property {string|null} [version] ClientLibrarySettings version
+ * @property {google.api.LaunchStage|null} [launchStage] ClientLibrarySettings launchStage
+ * @property {boolean|null} [restNumericEnums] ClientLibrarySettings restNumericEnums
+ * @property {google.api.IJavaSettings|null} [javaSettings] ClientLibrarySettings javaSettings
+ * @property {google.api.ICppSettings|null} [cppSettings] ClientLibrarySettings cppSettings
+ * @property {google.api.IPhpSettings|null} [phpSettings] ClientLibrarySettings phpSettings
+ * @property {google.api.IPythonSettings|null} [pythonSettings] ClientLibrarySettings pythonSettings
+ * @property {google.api.INodeSettings|null} [nodeSettings] ClientLibrarySettings nodeSettings
+ * @property {google.api.IDotnetSettings|null} [dotnetSettings] ClientLibrarySettings dotnetSettings
+ * @property {google.api.IRubySettings|null} [rubySettings] ClientLibrarySettings rubySettings
+ * @property {google.api.IGoSettings|null} [goSettings] ClientLibrarySettings goSettings
+ */
+
+ /**
+ * Constructs a new ClientLibrarySettings.
+ * @memberof google.api
+ * @classdesc Represents a ClientLibrarySettings.
+ * @implements IClientLibrarySettings
+ * @constructor
+ * @param {google.api.IClientLibrarySettings=} [properties] Properties to set
+ */
+ function ClientLibrarySettings(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]];
+ }
+
+ /**
+ * ClientLibrarySettings version.
+ * @member {string} version
+ * @memberof google.api.ClientLibrarySettings
+ * @instance
+ */
+ ClientLibrarySettings.prototype.version = "";
+
+ /**
+ * ClientLibrarySettings launchStage.
+ * @member {google.api.LaunchStage} launchStage
+ * @memberof google.api.ClientLibrarySettings
+ * @instance
+ */
+ ClientLibrarySettings.prototype.launchStage = 0;
+
+ /**
+ * ClientLibrarySettings restNumericEnums.
+ * @member {boolean} restNumericEnums
+ * @memberof google.api.ClientLibrarySettings
+ * @instance
+ */
+ ClientLibrarySettings.prototype.restNumericEnums = false;
+
+ /**
+ * ClientLibrarySettings javaSettings.
+ * @member {google.api.IJavaSettings|null|undefined} javaSettings
+ * @memberof google.api.ClientLibrarySettings
+ * @instance
+ */
+ ClientLibrarySettings.prototype.javaSettings = null;
+
+ /**
+ * ClientLibrarySettings cppSettings.
+ * @member {google.api.ICppSettings|null|undefined} cppSettings
+ * @memberof google.api.ClientLibrarySettings
+ * @instance
+ */
+ ClientLibrarySettings.prototype.cppSettings = null;
+
+ /**
+ * ClientLibrarySettings phpSettings.
+ * @member {google.api.IPhpSettings|null|undefined} phpSettings
+ * @memberof google.api.ClientLibrarySettings
+ * @instance
+ */
+ ClientLibrarySettings.prototype.phpSettings = null;
+
+ /**
+ * ClientLibrarySettings pythonSettings.
+ * @member {google.api.IPythonSettings|null|undefined} pythonSettings
+ * @memberof google.api.ClientLibrarySettings
+ * @instance
+ */
+ ClientLibrarySettings.prototype.pythonSettings = null;
+
+ /**
+ * ClientLibrarySettings nodeSettings.
+ * @member {google.api.INodeSettings|null|undefined} nodeSettings
+ * @memberof google.api.ClientLibrarySettings
+ * @instance
+ */
+ ClientLibrarySettings.prototype.nodeSettings = null;
+
+ /**
+ * ClientLibrarySettings dotnetSettings.
+ * @member {google.api.IDotnetSettings|null|undefined} dotnetSettings
+ * @memberof google.api.ClientLibrarySettings
+ * @instance
+ */
+ ClientLibrarySettings.prototype.dotnetSettings = null;
+
+ /**
+ * ClientLibrarySettings rubySettings.
+ * @member {google.api.IRubySettings|null|undefined} rubySettings
+ * @memberof google.api.ClientLibrarySettings
+ * @instance
+ */
+ ClientLibrarySettings.prototype.rubySettings = null;
+
+ /**
+ * ClientLibrarySettings goSettings.
+ * @member {google.api.IGoSettings|null|undefined} goSettings
+ * @memberof google.api.ClientLibrarySettings
+ * @instance
+ */
+ ClientLibrarySettings.prototype.goSettings = null;
+
+ /**
+ * Creates a new ClientLibrarySettings instance using the specified properties.
+ * @function create
+ * @memberof google.api.ClientLibrarySettings
+ * @static
+ * @param {google.api.IClientLibrarySettings=} [properties] Properties to set
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings instance
+ */
+ ClientLibrarySettings.create = function create(properties) {
+ return new ClientLibrarySettings(properties);
+ };
+
+ /**
+ * Encodes the specified ClientLibrarySettings message. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.ClientLibrarySettings
+ * @static
+ * @param {google.api.IClientLibrarySettings} message ClientLibrarySettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ClientLibrarySettings.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.version);
+ if (message.launchStage != null && Object.hasOwnProperty.call(message, "launchStage"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.launchStage);
+ if (message.restNumericEnums != null && Object.hasOwnProperty.call(message, "restNumericEnums"))
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.restNumericEnums);
+ if (message.javaSettings != null && Object.hasOwnProperty.call(message, "javaSettings"))
+ $root.google.api.JavaSettings.encode(message.javaSettings, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
+ if (message.cppSettings != null && Object.hasOwnProperty.call(message, "cppSettings"))
+ $root.google.api.CppSettings.encode(message.cppSettings, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
+ if (message.phpSettings != null && Object.hasOwnProperty.call(message, "phpSettings"))
+ $root.google.api.PhpSettings.encode(message.phpSettings, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim();
+ if (message.pythonSettings != null && Object.hasOwnProperty.call(message, "pythonSettings"))
+ $root.google.api.PythonSettings.encode(message.pythonSettings, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim();
+ if (message.nodeSettings != null && Object.hasOwnProperty.call(message, "nodeSettings"))
+ $root.google.api.NodeSettings.encode(message.nodeSettings, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim();
+ if (message.dotnetSettings != null && Object.hasOwnProperty.call(message, "dotnetSettings"))
+ $root.google.api.DotnetSettings.encode(message.dotnetSettings, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim();
+ if (message.rubySettings != null && Object.hasOwnProperty.call(message, "rubySettings"))
+ $root.google.api.RubySettings.encode(message.rubySettings, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim();
+ if (message.goSettings != null && Object.hasOwnProperty.call(message, "goSettings"))
+ $root.google.api.GoSettings.encode(message.goSettings, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ClientLibrarySettings message, length delimited. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.ClientLibrarySettings
+ * @static
+ * @param {google.api.IClientLibrarySettings} message ClientLibrarySettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ClientLibrarySettings.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.ClientLibrarySettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ClientLibrarySettings.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.ClientLibrarySettings();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.version = reader.string();
+ break;
+ }
+ case 2: {
+ message.launchStage = reader.int32();
+ break;
+ }
+ case 3: {
+ message.restNumericEnums = reader.bool();
+ break;
+ }
+ case 21: {
+ message.javaSettings = $root.google.api.JavaSettings.decode(reader, reader.uint32());
+ break;
+ }
+ case 22: {
+ message.cppSettings = $root.google.api.CppSettings.decode(reader, reader.uint32());
+ break;
+ }
+ case 23: {
+ message.phpSettings = $root.google.api.PhpSettings.decode(reader, reader.uint32());
+ break;
+ }
+ case 24: {
+ message.pythonSettings = $root.google.api.PythonSettings.decode(reader, reader.uint32());
+ break;
+ }
+ case 25: {
+ message.nodeSettings = $root.google.api.NodeSettings.decode(reader, reader.uint32());
+ break;
+ }
+ case 26: {
+ message.dotnetSettings = $root.google.api.DotnetSettings.decode(reader, reader.uint32());
+ break;
+ }
+ case 27: {
+ message.rubySettings = $root.google.api.RubySettings.decode(reader, reader.uint32());
+ break;
+ }
+ case 28: {
+ message.goSettings = $root.google.api.GoSettings.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.ClientLibrarySettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ClientLibrarySettings.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ClientLibrarySettings message.
+ * @function verify
+ * @memberof google.api.ClientLibrarySettings
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ClientLibrarySettings.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.version != null && message.hasOwnProperty("version"))
+ if (!$util.isString(message.version))
+ return "version: string expected";
+ if (message.launchStage != null && message.hasOwnProperty("launchStage"))
+ switch (message.launchStage) {
+ default:
+ return "launchStage: enum value expected";
+ case 0:
+ case 6:
+ case 7:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ break;
+ }
+ if (message.restNumericEnums != null && message.hasOwnProperty("restNumericEnums"))
+ if (typeof message.restNumericEnums !== "boolean")
+ return "restNumericEnums: boolean expected";
+ if (message.javaSettings != null && message.hasOwnProperty("javaSettings")) {
+ var error = $root.google.api.JavaSettings.verify(message.javaSettings);
+ if (error)
+ return "javaSettings." + error;
+ }
+ if (message.cppSettings != null && message.hasOwnProperty("cppSettings")) {
+ var error = $root.google.api.CppSettings.verify(message.cppSettings);
+ if (error)
+ return "cppSettings." + error;
+ }
+ if (message.phpSettings != null && message.hasOwnProperty("phpSettings")) {
+ var error = $root.google.api.PhpSettings.verify(message.phpSettings);
+ if (error)
+ return "phpSettings." + error;
+ }
+ if (message.pythonSettings != null && message.hasOwnProperty("pythonSettings")) {
+ var error = $root.google.api.PythonSettings.verify(message.pythonSettings);
+ if (error)
+ return "pythonSettings." + error;
+ }
+ if (message.nodeSettings != null && message.hasOwnProperty("nodeSettings")) {
+ var error = $root.google.api.NodeSettings.verify(message.nodeSettings);
+ if (error)
+ return "nodeSettings." + error;
+ }
+ if (message.dotnetSettings != null && message.hasOwnProperty("dotnetSettings")) {
+ var error = $root.google.api.DotnetSettings.verify(message.dotnetSettings);
+ if (error)
+ return "dotnetSettings." + error;
+ }
+ if (message.rubySettings != null && message.hasOwnProperty("rubySettings")) {
+ var error = $root.google.api.RubySettings.verify(message.rubySettings);
+ if (error)
+ return "rubySettings." + error;
+ }
+ if (message.goSettings != null && message.hasOwnProperty("goSettings")) {
+ var error = $root.google.api.GoSettings.verify(message.goSettings);
+ if (error)
+ return "goSettings." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ClientLibrarySettings message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.ClientLibrarySettings
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings
+ */
+ ClientLibrarySettings.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.ClientLibrarySettings)
+ return object;
+ var message = new $root.google.api.ClientLibrarySettings();
+ if (object.version != null)
+ message.version = String(object.version);
+ switch (object.launchStage) {
+ default:
+ if (typeof object.launchStage === "number") {
+ message.launchStage = object.launchStage;
+ break;
+ }
+ break;
+ case "LAUNCH_STAGE_UNSPECIFIED":
+ case 0:
+ message.launchStage = 0;
+ break;
+ case "UNIMPLEMENTED":
+ case 6:
+ message.launchStage = 6;
+ break;
+ case "PRELAUNCH":
+ case 7:
+ message.launchStage = 7;
+ break;
+ case "EARLY_ACCESS":
+ case 1:
+ message.launchStage = 1;
+ break;
+ case "ALPHA":
+ case 2:
+ message.launchStage = 2;
+ break;
+ case "BETA":
+ case 3:
+ message.launchStage = 3;
+ break;
+ case "GA":
+ case 4:
+ message.launchStage = 4;
+ break;
+ case "DEPRECATED":
+ case 5:
+ message.launchStage = 5;
+ break;
+ }
+ if (object.restNumericEnums != null)
+ message.restNumericEnums = Boolean(object.restNumericEnums);
+ if (object.javaSettings != null) {
+ if (typeof object.javaSettings !== "object")
+ throw TypeError(".google.api.ClientLibrarySettings.javaSettings: object expected");
+ message.javaSettings = $root.google.api.JavaSettings.fromObject(object.javaSettings);
+ }
+ if (object.cppSettings != null) {
+ if (typeof object.cppSettings !== "object")
+ throw TypeError(".google.api.ClientLibrarySettings.cppSettings: object expected");
+ message.cppSettings = $root.google.api.CppSettings.fromObject(object.cppSettings);
+ }
+ if (object.phpSettings != null) {
+ if (typeof object.phpSettings !== "object")
+ throw TypeError(".google.api.ClientLibrarySettings.phpSettings: object expected");
+ message.phpSettings = $root.google.api.PhpSettings.fromObject(object.phpSettings);
+ }
+ if (object.pythonSettings != null) {
+ if (typeof object.pythonSettings !== "object")
+ throw TypeError(".google.api.ClientLibrarySettings.pythonSettings: object expected");
+ message.pythonSettings = $root.google.api.PythonSettings.fromObject(object.pythonSettings);
+ }
+ if (object.nodeSettings != null) {
+ if (typeof object.nodeSettings !== "object")
+ throw TypeError(".google.api.ClientLibrarySettings.nodeSettings: object expected");
+ message.nodeSettings = $root.google.api.NodeSettings.fromObject(object.nodeSettings);
+ }
+ if (object.dotnetSettings != null) {
+ if (typeof object.dotnetSettings !== "object")
+ throw TypeError(".google.api.ClientLibrarySettings.dotnetSettings: object expected");
+ message.dotnetSettings = $root.google.api.DotnetSettings.fromObject(object.dotnetSettings);
+ }
+ if (object.rubySettings != null) {
+ if (typeof object.rubySettings !== "object")
+ throw TypeError(".google.api.ClientLibrarySettings.rubySettings: object expected");
+ message.rubySettings = $root.google.api.RubySettings.fromObject(object.rubySettings);
+ }
+ if (object.goSettings != null) {
+ if (typeof object.goSettings !== "object")
+ throw TypeError(".google.api.ClientLibrarySettings.goSettings: object expected");
+ message.goSettings = $root.google.api.GoSettings.fromObject(object.goSettings);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ClientLibrarySettings message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.ClientLibrarySettings
+ * @static
+ * @param {google.api.ClientLibrarySettings} message ClientLibrarySettings
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ClientLibrarySettings.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.version = "";
+ object.launchStage = options.enums === String ? "LAUNCH_STAGE_UNSPECIFIED" : 0;
+ object.restNumericEnums = false;
+ object.javaSettings = null;
+ object.cppSettings = null;
+ object.phpSettings = null;
+ object.pythonSettings = null;
+ object.nodeSettings = null;
+ object.dotnetSettings = null;
+ object.rubySettings = null;
+ object.goSettings = null;
+ }
+ if (message.version != null && message.hasOwnProperty("version"))
+ object.version = message.version;
+ if (message.launchStage != null && message.hasOwnProperty("launchStage"))
+ object.launchStage = options.enums === String ? $root.google.api.LaunchStage[message.launchStage] === undefined ? message.launchStage : $root.google.api.LaunchStage[message.launchStage] : message.launchStage;
+ if (message.restNumericEnums != null && message.hasOwnProperty("restNumericEnums"))
+ object.restNumericEnums = message.restNumericEnums;
+ if (message.javaSettings != null && message.hasOwnProperty("javaSettings"))
+ object.javaSettings = $root.google.api.JavaSettings.toObject(message.javaSettings, options);
+ if (message.cppSettings != null && message.hasOwnProperty("cppSettings"))
+ object.cppSettings = $root.google.api.CppSettings.toObject(message.cppSettings, options);
+ if (message.phpSettings != null && message.hasOwnProperty("phpSettings"))
+ object.phpSettings = $root.google.api.PhpSettings.toObject(message.phpSettings, options);
+ if (message.pythonSettings != null && message.hasOwnProperty("pythonSettings"))
+ object.pythonSettings = $root.google.api.PythonSettings.toObject(message.pythonSettings, options);
+ if (message.nodeSettings != null && message.hasOwnProperty("nodeSettings"))
+ object.nodeSettings = $root.google.api.NodeSettings.toObject(message.nodeSettings, options);
+ if (message.dotnetSettings != null && message.hasOwnProperty("dotnetSettings"))
+ object.dotnetSettings = $root.google.api.DotnetSettings.toObject(message.dotnetSettings, options);
+ if (message.rubySettings != null && message.hasOwnProperty("rubySettings"))
+ object.rubySettings = $root.google.api.RubySettings.toObject(message.rubySettings, options);
+ if (message.goSettings != null && message.hasOwnProperty("goSettings"))
+ object.goSettings = $root.google.api.GoSettings.toObject(message.goSettings, options);
+ return object;
+ };
+
+ /**
+ * Converts this ClientLibrarySettings to JSON.
+ * @function toJSON
+ * @memberof google.api.ClientLibrarySettings
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ClientLibrarySettings.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ClientLibrarySettings
+ * @function getTypeUrl
+ * @memberof google.api.ClientLibrarySettings
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ClientLibrarySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.ClientLibrarySettings";
+ };
+
+ return ClientLibrarySettings;
+ })();
+
+ api.Publishing = (function() {
+
+ /**
+ * Properties of a Publishing.
+ * @memberof google.api
+ * @interface IPublishing
+ * @property {Array.|null} [methodSettings] Publishing methodSettings
+ * @property {string|null} [newIssueUri] Publishing newIssueUri
+ * @property {string|null} [documentationUri] Publishing documentationUri
+ * @property {string|null} [apiShortName] Publishing apiShortName
+ * @property {string|null} [githubLabel] Publishing githubLabel
+ * @property {Array.|null} [codeownerGithubTeams] Publishing codeownerGithubTeams
+ * @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
+ */
+
+ /**
+ * Constructs a new Publishing.
+ * @memberof google.api
+ * @classdesc Represents a Publishing.
+ * @implements IPublishing
+ * @constructor
+ * @param {google.api.IPublishing=} [properties] Properties to set
+ */
+ function Publishing(properties) {
+ this.methodSettings = [];
+ this.codeownerGithubTeams = [];
+ this.librarySettings = [];
+ 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]];
+ }
+
+ /**
+ * Publishing methodSettings.
+ * @member {Array.} methodSettings
+ * @memberof google.api.Publishing
+ * @instance
+ */
+ Publishing.prototype.methodSettings = $util.emptyArray;
+
+ /**
+ * Publishing newIssueUri.
+ * @member {string} newIssueUri
+ * @memberof google.api.Publishing
+ * @instance
+ */
+ Publishing.prototype.newIssueUri = "";
+
+ /**
+ * Publishing documentationUri.
+ * @member {string} documentationUri
+ * @memberof google.api.Publishing
+ * @instance
+ */
+ Publishing.prototype.documentationUri = "";
+
+ /**
+ * Publishing apiShortName.
+ * @member {string} apiShortName
+ * @memberof google.api.Publishing
+ * @instance
+ */
+ Publishing.prototype.apiShortName = "";
+
+ /**
+ * Publishing githubLabel.
+ * @member {string} githubLabel
+ * @memberof google.api.Publishing
+ * @instance
+ */
+ Publishing.prototype.githubLabel = "";
+
+ /**
+ * Publishing codeownerGithubTeams.
+ * @member {Array.} codeownerGithubTeams
+ * @memberof google.api.Publishing
+ * @instance
+ */
+ Publishing.prototype.codeownerGithubTeams = $util.emptyArray;
+
+ /**
+ * Publishing docTagPrefix.
+ * @member {string} docTagPrefix
+ * @memberof google.api.Publishing
+ * @instance
+ */
+ Publishing.prototype.docTagPrefix = "";
+
+ /**
+ * Publishing organization.
+ * @member {google.api.ClientLibraryOrganization} organization
+ * @memberof google.api.Publishing
+ * @instance
+ */
+ Publishing.prototype.organization = 0;
+
+ /**
+ * Publishing librarySettings.
+ * @member {Array.} librarySettings
+ * @memberof google.api.Publishing
+ * @instance
+ */
+ 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
+ * @memberof google.api.Publishing
+ * @static
+ * @param {google.api.IPublishing=} [properties] Properties to set
+ * @returns {google.api.Publishing} Publishing instance
+ */
+ Publishing.create = function create(properties) {
+ return new Publishing(properties);
+ };
+
+ /**
+ * Encodes the specified Publishing message. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.Publishing
+ * @static
+ * @param {google.api.IPublishing} message Publishing message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Publishing.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.methodSettings != null && message.methodSettings.length)
+ for (var i = 0; i < message.methodSettings.length; ++i)
+ $root.google.api.MethodSettings.encode(message.methodSettings[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.newIssueUri != null && Object.hasOwnProperty.call(message, "newIssueUri"))
+ writer.uint32(/* id 101, wireType 2 =*/810).string(message.newIssueUri);
+ if (message.documentationUri != null && Object.hasOwnProperty.call(message, "documentationUri"))
+ writer.uint32(/* id 102, wireType 2 =*/818).string(message.documentationUri);
+ if (message.apiShortName != null && Object.hasOwnProperty.call(message, "apiShortName"))
+ writer.uint32(/* id 103, wireType 2 =*/826).string(message.apiShortName);
+ if (message.githubLabel != null && Object.hasOwnProperty.call(message, "githubLabel"))
+ writer.uint32(/* id 104, wireType 2 =*/834).string(message.githubLabel);
+ if (message.codeownerGithubTeams != null && message.codeownerGithubTeams.length)
+ for (var i = 0; i < message.codeownerGithubTeams.length; ++i)
+ writer.uint32(/* id 105, wireType 2 =*/842).string(message.codeownerGithubTeams[i]);
+ if (message.docTagPrefix != null && Object.hasOwnProperty.call(message, "docTagPrefix"))
+ writer.uint32(/* id 106, wireType 2 =*/850).string(message.docTagPrefix);
+ if (message.organization != null && Object.hasOwnProperty.call(message, "organization"))
+ writer.uint32(/* id 107, wireType 0 =*/856).int32(message.organization);
+ 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;
+ };
+
+ /**
+ * Encodes the specified Publishing message, length delimited. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.Publishing
+ * @static
+ * @param {google.api.IPublishing} message Publishing message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Publishing.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Publishing message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.Publishing
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.Publishing} Publishing
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Publishing.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.Publishing();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 2: {
+ if (!(message.methodSettings && message.methodSettings.length))
+ message.methodSettings = [];
+ message.methodSettings.push($root.google.api.MethodSettings.decode(reader, reader.uint32()));
+ break;
+ }
+ case 101: {
+ message.newIssueUri = reader.string();
+ break;
+ }
+ case 102: {
+ message.documentationUri = reader.string();
+ break;
+ }
+ case 103: {
+ message.apiShortName = reader.string();
+ break;
+ }
+ case 104: {
+ message.githubLabel = reader.string();
+ break;
+ }
+ case 105: {
+ if (!(message.codeownerGithubTeams && message.codeownerGithubTeams.length))
+ message.codeownerGithubTeams = [];
+ message.codeownerGithubTeams.push(reader.string());
+ break;
+ }
+ case 106: {
+ message.docTagPrefix = reader.string();
+ break;
+ }
+ case 107: {
+ message.organization = reader.int32();
+ break;
+ }
+ case 109: {
+ if (!(message.librarySettings && message.librarySettings.length))
+ message.librarySettings = [];
+ 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;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Publishing message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.Publishing
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.Publishing} Publishing
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Publishing.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Publishing message.
+ * @function verify
+ * @memberof google.api.Publishing
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Publishing.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.methodSettings != null && message.hasOwnProperty("methodSettings")) {
+ if (!Array.isArray(message.methodSettings))
+ return "methodSettings: array expected";
+ for (var i = 0; i < message.methodSettings.length; ++i) {
+ var error = $root.google.api.MethodSettings.verify(message.methodSettings[i]);
+ if (error)
+ return "methodSettings." + error;
+ }
+ }
+ if (message.newIssueUri != null && message.hasOwnProperty("newIssueUri"))
+ if (!$util.isString(message.newIssueUri))
+ return "newIssueUri: string expected";
+ if (message.documentationUri != null && message.hasOwnProperty("documentationUri"))
+ if (!$util.isString(message.documentationUri))
+ return "documentationUri: string expected";
+ if (message.apiShortName != null && message.hasOwnProperty("apiShortName"))
+ if (!$util.isString(message.apiShortName))
+ return "apiShortName: string expected";
+ if (message.githubLabel != null && message.hasOwnProperty("githubLabel"))
+ if (!$util.isString(message.githubLabel))
+ return "githubLabel: string expected";
+ if (message.codeownerGithubTeams != null && message.hasOwnProperty("codeownerGithubTeams")) {
+ if (!Array.isArray(message.codeownerGithubTeams))
+ return "codeownerGithubTeams: array expected";
+ for (var i = 0; i < message.codeownerGithubTeams.length; ++i)
+ if (!$util.isString(message.codeownerGithubTeams[i]))
+ return "codeownerGithubTeams: string[] expected";
+ }
+ if (message.docTagPrefix != null && message.hasOwnProperty("docTagPrefix"))
+ if (!$util.isString(message.docTagPrefix))
+ return "docTagPrefix: string expected";
+ if (message.organization != null && message.hasOwnProperty("organization"))
+ switch (message.organization) {
+ default:
+ return "organization: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ case 6:
+ case 7:
+ break;
+ }
+ if (message.librarySettings != null && message.hasOwnProperty("librarySettings")) {
+ if (!Array.isArray(message.librarySettings))
+ return "librarySettings: array expected";
+ for (var i = 0; i < message.librarySettings.length; ++i) {
+ var error = $root.google.api.ClientLibrarySettings.verify(message.librarySettings[i]);
+ if (error)
+ return "librarySettings." + error;
+ }
+ }
+ if (message.protoReferenceDocumentationUri != null && message.hasOwnProperty("protoReferenceDocumentationUri"))
+ if (!$util.isString(message.protoReferenceDocumentationUri))
+ return "protoReferenceDocumentationUri: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a Publishing message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.Publishing
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.Publishing} Publishing
+ */
+ Publishing.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.Publishing)
+ return object;
+ var message = new $root.google.api.Publishing();
+ if (object.methodSettings) {
+ if (!Array.isArray(object.methodSettings))
+ throw TypeError(".google.api.Publishing.methodSettings: array expected");
+ message.methodSettings = [];
+ for (var i = 0; i < object.methodSettings.length; ++i) {
+ if (typeof object.methodSettings[i] !== "object")
+ throw TypeError(".google.api.Publishing.methodSettings: object expected");
+ message.methodSettings[i] = $root.google.api.MethodSettings.fromObject(object.methodSettings[i]);
+ }
+ }
+ if (object.newIssueUri != null)
+ message.newIssueUri = String(object.newIssueUri);
+ if (object.documentationUri != null)
+ message.documentationUri = String(object.documentationUri);
+ if (object.apiShortName != null)
+ message.apiShortName = String(object.apiShortName);
+ if (object.githubLabel != null)
+ message.githubLabel = String(object.githubLabel);
+ if (object.codeownerGithubTeams) {
+ if (!Array.isArray(object.codeownerGithubTeams))
+ throw TypeError(".google.api.Publishing.codeownerGithubTeams: array expected");
+ message.codeownerGithubTeams = [];
+ for (var i = 0; i < object.codeownerGithubTeams.length; ++i)
+ message.codeownerGithubTeams[i] = String(object.codeownerGithubTeams[i]);
+ }
+ if (object.docTagPrefix != null)
+ message.docTagPrefix = String(object.docTagPrefix);
+ switch (object.organization) {
+ default:
+ if (typeof object.organization === "number") {
+ message.organization = object.organization;
+ break;
+ }
+ break;
+ case "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED":
+ case 0:
+ message.organization = 0;
+ break;
+ case "CLOUD":
+ case 1:
+ message.organization = 1;
+ break;
+ case "ADS":
+ case 2:
+ message.organization = 2;
+ break;
+ case "PHOTOS":
+ case 3:
+ message.organization = 3;
+ break;
+ case "STREET_VIEW":
+ 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))
+ throw TypeError(".google.api.Publishing.librarySettings: array expected");
+ message.librarySettings = [];
+ for (var i = 0; i < object.librarySettings.length; ++i) {
+ if (typeof object.librarySettings[i] !== "object")
+ throw TypeError(".google.api.Publishing.librarySettings: object expected");
+ message.librarySettings[i] = $root.google.api.ClientLibrarySettings.fromObject(object.librarySettings[i]);
+ }
+ }
+ if (object.protoReferenceDocumentationUri != null)
+ message.protoReferenceDocumentationUri = String(object.protoReferenceDocumentationUri);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Publishing message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.Publishing
+ * @static
+ * @param {google.api.Publishing} message Publishing
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Publishing.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.methodSettings = [];
+ object.codeownerGithubTeams = [];
+ object.librarySettings = [];
+ }
+ if (options.defaults) {
+ object.newIssueUri = "";
+ object.documentationUri = "";
+ object.apiShortName = "";
+ object.githubLabel = "";
+ object.docTagPrefix = "";
+ object.organization = options.enums === String ? "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED" : 0;
+ object.protoReferenceDocumentationUri = "";
+ }
+ if (message.methodSettings && message.methodSettings.length) {
+ object.methodSettings = [];
+ for (var j = 0; j < message.methodSettings.length; ++j)
+ object.methodSettings[j] = $root.google.api.MethodSettings.toObject(message.methodSettings[j], options);
+ }
+ if (message.newIssueUri != null && message.hasOwnProperty("newIssueUri"))
+ object.newIssueUri = message.newIssueUri;
+ if (message.documentationUri != null && message.hasOwnProperty("documentationUri"))
+ object.documentationUri = message.documentationUri;
+ if (message.apiShortName != null && message.hasOwnProperty("apiShortName"))
+ object.apiShortName = message.apiShortName;
+ if (message.githubLabel != null && message.hasOwnProperty("githubLabel"))
+ object.githubLabel = message.githubLabel;
+ if (message.codeownerGithubTeams && message.codeownerGithubTeams.length) {
+ object.codeownerGithubTeams = [];
+ for (var j = 0; j < message.codeownerGithubTeams.length; ++j)
+ object.codeownerGithubTeams[j] = message.codeownerGithubTeams[j];
+ }
+ if (message.docTagPrefix != null && message.hasOwnProperty("docTagPrefix"))
+ object.docTagPrefix = message.docTagPrefix;
+ if (message.organization != null && message.hasOwnProperty("organization"))
+ object.organization = options.enums === String ? $root.google.api.ClientLibraryOrganization[message.organization] === undefined ? message.organization : $root.google.api.ClientLibraryOrganization[message.organization] : message.organization;
+ if (message.librarySettings && message.librarySettings.length) {
+ object.librarySettings = [];
+ 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;
+ };
+
+ /**
+ * Converts this Publishing to JSON.
+ * @function toJSON
+ * @memberof google.api.Publishing
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Publishing.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Publishing
+ * @function getTypeUrl
+ * @memberof google.api.Publishing
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Publishing.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.Publishing";
+ };
+
+ return Publishing;
+ })();
+
+ api.JavaSettings = (function() {
+
+ /**
+ * Properties of a JavaSettings.
+ * @memberof google.api
+ * @interface IJavaSettings
+ * @property {string|null} [libraryPackage] JavaSettings libraryPackage
+ * @property {Object.|null} [serviceClassNames] JavaSettings serviceClassNames
+ * @property {google.api.ICommonLanguageSettings|null} [common] JavaSettings common
+ */
+
+ /**
+ * Constructs a new JavaSettings.
+ * @memberof google.api
+ * @classdesc Represents a JavaSettings.
+ * @implements IJavaSettings
+ * @constructor
+ * @param {google.api.IJavaSettings=} [properties] Properties to set
+ */
+ function JavaSettings(properties) {
+ this.serviceClassNames = {};
+ 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]];
+ }
+
+ /**
+ * JavaSettings libraryPackage.
+ * @member {string} libraryPackage
+ * @memberof google.api.JavaSettings
+ * @instance
+ */
+ JavaSettings.prototype.libraryPackage = "";
+
+ /**
+ * JavaSettings serviceClassNames.
+ * @member {Object.} serviceClassNames
+ * @memberof google.api.JavaSettings
+ * @instance
+ */
+ JavaSettings.prototype.serviceClassNames = $util.emptyObject;
+
+ /**
+ * JavaSettings common.
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
+ * @memberof google.api.JavaSettings
+ * @instance
+ */
+ JavaSettings.prototype.common = null;
+
+ /**
+ * Creates a new JavaSettings instance using the specified properties.
+ * @function create
+ * @memberof google.api.JavaSettings
+ * @static
+ * @param {google.api.IJavaSettings=} [properties] Properties to set
+ * @returns {google.api.JavaSettings} JavaSettings instance
+ */
+ JavaSettings.create = function create(properties) {
+ return new JavaSettings(properties);
+ };
+
+ /**
+ * Encodes the specified JavaSettings message. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.JavaSettings
+ * @static
+ * @param {google.api.IJavaSettings} message JavaSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ JavaSettings.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.libraryPackage != null && Object.hasOwnProperty.call(message, "libraryPackage"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.libraryPackage);
+ if (message.serviceClassNames != null && Object.hasOwnProperty.call(message, "serviceClassNames"))
+ for (var keys = Object.keys(message.serviceClassNames), 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.serviceClassNames[keys[i]]).ldelim();
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified JavaSettings message, length delimited. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.JavaSettings
+ * @static
+ * @param {google.api.IJavaSettings} message JavaSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ JavaSettings.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a JavaSettings message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.JavaSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.JavaSettings} JavaSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ JavaSettings.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.JavaSettings(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.libraryPackage = reader.string();
+ break;
+ }
+ case 2: {
+ if (message.serviceClassNames === $util.emptyObject)
+ message.serviceClassNames = {};
+ 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.serviceClassNames[key] = value;
+ break;
+ }
+ case 3: {
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a JavaSettings message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.JavaSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.JavaSettings} JavaSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ JavaSettings.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a JavaSettings message.
+ * @function verify
+ * @memberof google.api.JavaSettings
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ JavaSettings.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.libraryPackage != null && message.hasOwnProperty("libraryPackage"))
+ if (!$util.isString(message.libraryPackage))
+ return "libraryPackage: string expected";
+ if (message.serviceClassNames != null && message.hasOwnProperty("serviceClassNames")) {
+ if (!$util.isObject(message.serviceClassNames))
+ return "serviceClassNames: object expected";
+ var key = Object.keys(message.serviceClassNames);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.serviceClassNames[key[i]]))
+ return "serviceClassNames: string{k:string} expected";
+ }
+ if (message.common != null && message.hasOwnProperty("common")) {
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
+ if (error)
+ return "common." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a JavaSettings message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.JavaSettings
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.JavaSettings} JavaSettings
+ */
+ JavaSettings.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.JavaSettings)
+ return object;
+ var message = new $root.google.api.JavaSettings();
+ if (object.libraryPackage != null)
+ message.libraryPackage = String(object.libraryPackage);
+ if (object.serviceClassNames) {
+ if (typeof object.serviceClassNames !== "object")
+ throw TypeError(".google.api.JavaSettings.serviceClassNames: object expected");
+ message.serviceClassNames = {};
+ for (var keys = Object.keys(object.serviceClassNames), i = 0; i < keys.length; ++i)
+ message.serviceClassNames[keys[i]] = String(object.serviceClassNames[keys[i]]);
+ }
+ if (object.common != null) {
+ if (typeof object.common !== "object")
+ throw TypeError(".google.api.JavaSettings.common: object expected");
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a JavaSettings message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.JavaSettings
+ * @static
+ * @param {google.api.JavaSettings} message JavaSettings
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ JavaSettings.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.objects || options.defaults)
+ object.serviceClassNames = {};
+ if (options.defaults) {
+ object.libraryPackage = "";
+ object.common = null;
+ }
+ if (message.libraryPackage != null && message.hasOwnProperty("libraryPackage"))
+ object.libraryPackage = message.libraryPackage;
+ var keys2;
+ if (message.serviceClassNames && (keys2 = Object.keys(message.serviceClassNames)).length) {
+ object.serviceClassNames = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.serviceClassNames[keys2[j]] = message.serviceClassNames[keys2[j]];
+ }
+ if (message.common != null && message.hasOwnProperty("common"))
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
+ return object;
+ };
+
+ /**
+ * Converts this JavaSettings to JSON.
+ * @function toJSON
+ * @memberof google.api.JavaSettings
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ JavaSettings.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for JavaSettings
+ * @function getTypeUrl
+ * @memberof google.api.JavaSettings
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ JavaSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.JavaSettings";
+ };
+
+ return JavaSettings;
+ })();
+
+ api.CppSettings = (function() {
+
+ /**
+ * Properties of a CppSettings.
+ * @memberof google.api
+ * @interface ICppSettings
+ * @property {google.api.ICommonLanguageSettings|null} [common] CppSettings common
+ */
+
+ /**
+ * Constructs a new CppSettings.
+ * @memberof google.api
+ * @classdesc Represents a CppSettings.
+ * @implements ICppSettings
+ * @constructor
+ * @param {google.api.ICppSettings=} [properties] Properties to set
+ */
+ function CppSettings(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]];
+ }
+
+ /**
+ * CppSettings common.
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
+ * @memberof google.api.CppSettings
+ * @instance
+ */
+ CppSettings.prototype.common = null;
+
+ /**
+ * Creates a new CppSettings instance using the specified properties.
+ * @function create
+ * @memberof google.api.CppSettings
+ * @static
+ * @param {google.api.ICppSettings=} [properties] Properties to set
+ * @returns {google.api.CppSettings} CppSettings instance
+ */
+ CppSettings.create = function create(properties) {
+ return new CppSettings(properties);
+ };
+
+ /**
+ * Encodes the specified CppSettings message. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.CppSettings
+ * @static
+ * @param {google.api.ICppSettings} message CppSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CppSettings.encode = function encode(message, writer) {
+ if (!writer)
+ 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();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CppSettings message, length delimited. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.CppSettings
+ * @static
+ * @param {google.api.ICppSettings} message CppSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CppSettings.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CppSettings message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.CppSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.CppSettings} CppSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CppSettings.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.CppSettings();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CppSettings message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.CppSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.CppSettings} CppSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CppSettings.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CppSettings message.
+ * @function verify
+ * @memberof google.api.CppSettings
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CppSettings.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.common != null && message.hasOwnProperty("common")) {
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
+ if (error)
+ return "common." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a CppSettings message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.CppSettings
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.CppSettings} CppSettings
+ */
+ CppSettings.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.CppSettings)
+ return object;
+ var message = new $root.google.api.CppSettings();
+ if (object.common != null) {
+ if (typeof object.common !== "object")
+ throw TypeError(".google.api.CppSettings.common: object expected");
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CppSettings message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.CppSettings
+ * @static
+ * @param {google.api.CppSettings} message CppSettings
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CppSettings.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.common = null;
+ if (message.common != null && message.hasOwnProperty("common"))
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
+ return object;
+ };
+
+ /**
+ * Converts this CppSettings to JSON.
+ * @function toJSON
+ * @memberof google.api.CppSettings
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CppSettings.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CppSettings
+ * @function getTypeUrl
+ * @memberof google.api.CppSettings
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CppSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.CppSettings";
+ };
+
+ return CppSettings;
+ })();
+
+ api.PhpSettings = (function() {
+
+ /**
+ * Properties of a PhpSettings.
+ * @memberof google.api
+ * @interface IPhpSettings
+ * @property {google.api.ICommonLanguageSettings|null} [common] PhpSettings common
+ */
+
+ /**
+ * Constructs a new PhpSettings.
+ * @memberof google.api
+ * @classdesc Represents a PhpSettings.
+ * @implements IPhpSettings
+ * @constructor
+ * @param {google.api.IPhpSettings=} [properties] Properties to set
+ */
+ function PhpSettings(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]];
+ }
+
+ /**
+ * PhpSettings common.
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
+ * @memberof google.api.PhpSettings
+ * @instance
+ */
+ PhpSettings.prototype.common = null;
+
+ /**
+ * Creates a new PhpSettings instance using the specified properties.
+ * @function create
+ * @memberof google.api.PhpSettings
+ * @static
+ * @param {google.api.IPhpSettings=} [properties] Properties to set
+ * @returns {google.api.PhpSettings} PhpSettings instance
+ */
+ PhpSettings.create = function create(properties) {
+ return new PhpSettings(properties);
+ };
+
+ /**
+ * Encodes the specified PhpSettings message. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.PhpSettings
+ * @static
+ * @param {google.api.IPhpSettings} message PhpSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ PhpSettings.encode = function encode(message, writer) {
+ if (!writer)
+ 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();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified PhpSettings message, length delimited. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.PhpSettings
+ * @static
+ * @param {google.api.IPhpSettings} message PhpSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ PhpSettings.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a PhpSettings message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.PhpSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.PhpSettings} PhpSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ PhpSettings.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.PhpSettings();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a PhpSettings message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.PhpSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.PhpSettings} PhpSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ PhpSettings.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a PhpSettings message.
+ * @function verify
+ * @memberof google.api.PhpSettings
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ PhpSettings.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.common != null && message.hasOwnProperty("common")) {
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
+ if (error)
+ return "common." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a PhpSettings message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.PhpSettings
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.PhpSettings} PhpSettings
+ */
+ PhpSettings.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.PhpSettings)
+ return object;
+ var message = new $root.google.api.PhpSettings();
+ if (object.common != null) {
+ if (typeof object.common !== "object")
+ throw TypeError(".google.api.PhpSettings.common: object expected");
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a PhpSettings message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.PhpSettings
+ * @static
+ * @param {google.api.PhpSettings} message PhpSettings
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ PhpSettings.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.common = null;
+ if (message.common != null && message.hasOwnProperty("common"))
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
+ return object;
+ };
+
+ /**
+ * Converts this PhpSettings to JSON.
+ * @function toJSON
+ * @memberof google.api.PhpSettings
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ PhpSettings.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for PhpSettings
+ * @function getTypeUrl
+ * @memberof google.api.PhpSettings
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ PhpSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.PhpSettings";
+ };
+
+ return PhpSettings;
+ })();
+
+ api.PythonSettings = (function() {
+
+ /**
+ * Properties of a PythonSettings.
+ * @memberof google.api
+ * @interface IPythonSettings
+ * @property {google.api.ICommonLanguageSettings|null} [common] PythonSettings common
+ */
+
+ /**
+ * Constructs a new PythonSettings.
+ * @memberof google.api
+ * @classdesc Represents a PythonSettings.
+ * @implements IPythonSettings
+ * @constructor
+ * @param {google.api.IPythonSettings=} [properties] Properties to set
+ */
+ function PythonSettings(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]];
+ }
+
+ /**
+ * PythonSettings common.
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
+ * @memberof google.api.PythonSettings
+ * @instance
+ */
+ PythonSettings.prototype.common = null;
+
+ /**
+ * Creates a new PythonSettings instance using the specified properties.
+ * @function create
+ * @memberof google.api.PythonSettings
+ * @static
+ * @param {google.api.IPythonSettings=} [properties] Properties to set
+ * @returns {google.api.PythonSettings} PythonSettings instance
+ */
+ PythonSettings.create = function create(properties) {
+ return new PythonSettings(properties);
+ };
+
+ /**
+ * Encodes the specified PythonSettings message. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.PythonSettings
+ * @static
+ * @param {google.api.IPythonSettings} message PythonSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ PythonSettings.encode = function encode(message, writer) {
+ if (!writer)
+ 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();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified PythonSettings message, length delimited. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.PythonSettings
+ * @static
+ * @param {google.api.IPythonSettings} message PythonSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ PythonSettings.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a PythonSettings message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.PythonSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.PythonSettings} PythonSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ PythonSettings.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.PythonSettings();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a PythonSettings message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.PythonSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.PythonSettings} PythonSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ PythonSettings.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a PythonSettings message.
+ * @function verify
+ * @memberof google.api.PythonSettings
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ PythonSettings.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.common != null && message.hasOwnProperty("common")) {
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
+ if (error)
+ return "common." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a PythonSettings message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.PythonSettings
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.PythonSettings} PythonSettings
+ */
+ PythonSettings.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.PythonSettings)
+ return object;
+ var message = new $root.google.api.PythonSettings();
+ if (object.common != null) {
+ if (typeof object.common !== "object")
+ throw TypeError(".google.api.PythonSettings.common: object expected");
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a PythonSettings message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.PythonSettings
+ * @static
+ * @param {google.api.PythonSettings} message PythonSettings
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ PythonSettings.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.common = null;
+ if (message.common != null && message.hasOwnProperty("common"))
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
+ return object;
+ };
+
+ /**
+ * Converts this PythonSettings to JSON.
+ * @function toJSON
+ * @memberof google.api.PythonSettings
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ PythonSettings.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for PythonSettings
+ * @function getTypeUrl
+ * @memberof google.api.PythonSettings
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ PythonSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.PythonSettings";
+ };
+
+ return PythonSettings;
+ })();
+
+ api.NodeSettings = (function() {
+
+ /**
+ * Properties of a NodeSettings.
+ * @memberof google.api
+ * @interface INodeSettings
+ * @property {google.api.ICommonLanguageSettings|null} [common] NodeSettings common
+ */
+
+ /**
+ * Constructs a new NodeSettings.
+ * @memberof google.api
+ * @classdesc Represents a NodeSettings.
+ * @implements INodeSettings
+ * @constructor
+ * @param {google.api.INodeSettings=} [properties] Properties to set
+ */
+ function NodeSettings(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]];
+ }
+
+ /**
+ * NodeSettings common.
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
+ * @memberof google.api.NodeSettings
+ * @instance
+ */
+ NodeSettings.prototype.common = null;
+
+ /**
+ * Creates a new NodeSettings instance using the specified properties.
+ * @function create
+ * @memberof google.api.NodeSettings
+ * @static
+ * @param {google.api.INodeSettings=} [properties] Properties to set
+ * @returns {google.api.NodeSettings} NodeSettings instance
+ */
+ NodeSettings.create = function create(properties) {
+ return new NodeSettings(properties);
+ };
+
+ /**
+ * Encodes the specified NodeSettings message. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.NodeSettings
+ * @static
+ * @param {google.api.INodeSettings} message NodeSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NodeSettings.encode = function encode(message, writer) {
+ if (!writer)
+ 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();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified NodeSettings message, length delimited. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.NodeSettings
+ * @static
+ * @param {google.api.INodeSettings} message NodeSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NodeSettings.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a NodeSettings message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.NodeSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.NodeSettings} NodeSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NodeSettings.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.NodeSettings();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a NodeSettings message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.NodeSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.NodeSettings} NodeSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NodeSettings.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a NodeSettings message.
+ * @function verify
+ * @memberof google.api.NodeSettings
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ NodeSettings.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.common != null && message.hasOwnProperty("common")) {
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
+ if (error)
+ return "common." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a NodeSettings message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.NodeSettings
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.NodeSettings} NodeSettings
+ */
+ NodeSettings.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.NodeSettings)
+ return object;
+ var message = new $root.google.api.NodeSettings();
+ if (object.common != null) {
+ if (typeof object.common !== "object")
+ throw TypeError(".google.api.NodeSettings.common: object expected");
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a NodeSettings message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.NodeSettings
+ * @static
+ * @param {google.api.NodeSettings} message NodeSettings
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ NodeSettings.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.common = null;
+ if (message.common != null && message.hasOwnProperty("common"))
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
+ return object;
+ };
+
+ /**
+ * Converts this NodeSettings to JSON.
+ * @function toJSON
+ * @memberof google.api.NodeSettings
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ NodeSettings.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for NodeSettings
+ * @function getTypeUrl
+ * @memberof google.api.NodeSettings
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ NodeSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.NodeSettings";
+ };
+
+ return NodeSettings;
+ })();
+
+ api.DotnetSettings = (function() {
+
+ /**
+ * Properties of a DotnetSettings.
+ * @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
+ */
+
+ /**
+ * Constructs a new DotnetSettings.
+ * @memberof google.api
+ * @classdesc Represents a DotnetSettings.
+ * @implements IDotnetSettings
+ * @constructor
+ * @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)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * DotnetSettings common.
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
+ * @memberof google.api.DotnetSettings
+ * @instance
+ */
+ 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
+ * @memberof google.api.DotnetSettings
+ * @static
+ * @param {google.api.IDotnetSettings=} [properties] Properties to set
+ * @returns {google.api.DotnetSettings} DotnetSettings instance
+ */
+ DotnetSettings.create = function create(properties) {
+ return new DotnetSettings(properties);
+ };
+
+ /**
+ * Encodes the specified DotnetSettings message. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.DotnetSettings
+ * @static
+ * @param {google.api.IDotnetSettings} message DotnetSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DotnetSettings.encode = function encode(message, writer) {
+ if (!writer)
+ 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;
+ };
+
+ /**
+ * Encodes the specified DotnetSettings message, length delimited. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.DotnetSettings
+ * @static
+ * @param {google.api.IDotnetSettings} message DotnetSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DotnetSettings.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DotnetSettings message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.DotnetSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.DotnetSettings} DotnetSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ 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(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ 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;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DotnetSettings message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.DotnetSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.DotnetSettings} DotnetSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DotnetSettings.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DotnetSettings message.
+ * @function verify
+ * @memberof google.api.DotnetSettings
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DotnetSettings.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.common != null && message.hasOwnProperty("common")) {
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
+ if (error)
+ return "common." + error;
+ }
+ 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;
+ };
+
+ /**
+ * Creates a DotnetSettings message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.DotnetSettings
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.DotnetSettings} DotnetSettings
+ */
+ DotnetSettings.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.DotnetSettings)
+ return object;
+ var message = new $root.google.api.DotnetSettings();
+ if (object.common != null) {
+ if (typeof object.common !== "object")
+ 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;
+ };
+
+ /**
+ * Creates a plain object from a DotnetSettings message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.DotnetSettings
+ * @static
+ * @param {google.api.DotnetSettings} message DotnetSettings
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DotnetSettings.toObject = function toObject(message, options) {
+ 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;
+ };
+
+ /**
+ * Converts this DotnetSettings to JSON.
+ * @function toJSON
+ * @memberof google.api.DotnetSettings
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DotnetSettings.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DotnetSettings
+ * @function getTypeUrl
+ * @memberof google.api.DotnetSettings
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DotnetSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.DotnetSettings";
+ };
+
+ return DotnetSettings;
+ })();
+
+ api.RubySettings = (function() {
+
+ /**
+ * Properties of a RubySettings.
+ * @memberof google.api
+ * @interface IRubySettings
+ * @property {google.api.ICommonLanguageSettings|null} [common] RubySettings common
+ */
+
+ /**
+ * Constructs a new RubySettings.
+ * @memberof google.api
+ * @classdesc Represents a RubySettings.
+ * @implements IRubySettings
+ * @constructor
+ * @param {google.api.IRubySettings=} [properties] Properties to set
+ */
+ function RubySettings(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]];
+ }
+
+ /**
+ * RubySettings common.
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
+ * @memberof google.api.RubySettings
+ * @instance
+ */
+ RubySettings.prototype.common = null;
+
+ /**
+ * Creates a new RubySettings instance using the specified properties.
+ * @function create
+ * @memberof google.api.RubySettings
+ * @static
+ * @param {google.api.IRubySettings=} [properties] Properties to set
+ * @returns {google.api.RubySettings} RubySettings instance
+ */
+ RubySettings.create = function create(properties) {
+ return new RubySettings(properties);
+ };
+
+ /**
+ * Encodes the specified RubySettings message. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.RubySettings
+ * @static
+ * @param {google.api.IRubySettings} message RubySettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RubySettings.encode = function encode(message, writer) {
+ if (!writer)
+ 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();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified RubySettings message, length delimited. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.RubySettings
+ * @static
+ * @param {google.api.IRubySettings} message RubySettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RubySettings.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a RubySettings message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.RubySettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.RubySettings} RubySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RubySettings.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.RubySettings();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a RubySettings message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.RubySettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.RubySettings} RubySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RubySettings.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a RubySettings message.
+ * @function verify
+ * @memberof google.api.RubySettings
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ RubySettings.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.common != null && message.hasOwnProperty("common")) {
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
+ if (error)
+ return "common." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a RubySettings message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.RubySettings
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.RubySettings} RubySettings
+ */
+ RubySettings.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.RubySettings)
+ return object;
+ var message = new $root.google.api.RubySettings();
+ if (object.common != null) {
+ if (typeof object.common !== "object")
+ throw TypeError(".google.api.RubySettings.common: object expected");
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a RubySettings message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.RubySettings
+ * @static
+ * @param {google.api.RubySettings} message RubySettings
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ RubySettings.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.common = null;
+ if (message.common != null && message.hasOwnProperty("common"))
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
+ return object;
+ };
+
+ /**
+ * Converts this RubySettings to JSON.
+ * @function toJSON
+ * @memberof google.api.RubySettings
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ RubySettings.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for RubySettings
+ * @function getTypeUrl
+ * @memberof google.api.RubySettings
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ RubySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.RubySettings";
+ };
+
+ return RubySettings;
+ })();
+
+ api.GoSettings = (function() {
+
+ /**
+ * Properties of a GoSettings.
+ * @memberof google.api
+ * @interface IGoSettings
+ * @property {google.api.ICommonLanguageSettings|null} [common] GoSettings common
+ */
+
+ /**
+ * Constructs a new GoSettings.
+ * @memberof google.api
+ * @classdesc Represents a GoSettings.
+ * @implements IGoSettings
+ * @constructor
+ * @param {google.api.IGoSettings=} [properties] Properties to set
+ */
+ function GoSettings(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]];
+ }
+
+ /**
+ * GoSettings common.
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
+ * @memberof google.api.GoSettings
+ * @instance
+ */
+ GoSettings.prototype.common = null;
+
+ /**
+ * Creates a new GoSettings instance using the specified properties.
+ * @function create
+ * @memberof google.api.GoSettings
+ * @static
+ * @param {google.api.IGoSettings=} [properties] Properties to set
+ * @returns {google.api.GoSettings} GoSettings instance
+ */
+ GoSettings.create = function create(properties) {
+ return new GoSettings(properties);
+ };
+
+ /**
+ * Encodes the specified GoSettings message. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.GoSettings
+ * @static
+ * @param {google.api.IGoSettings} message GoSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GoSettings.encode = function encode(message, writer) {
+ if (!writer)
+ 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();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GoSettings message, length delimited. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.GoSettings
+ * @static
+ * @param {google.api.IGoSettings} message GoSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GoSettings.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GoSettings message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.GoSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.GoSettings} GoSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GoSettings.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.GoSettings();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GoSettings message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.GoSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.GoSettings} GoSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GoSettings.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GoSettings message.
+ * @function verify
+ * @memberof google.api.GoSettings
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GoSettings.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.common != null && message.hasOwnProperty("common")) {
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
+ if (error)
+ return "common." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a GoSettings message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.GoSettings
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.GoSettings} GoSettings
+ */
+ GoSettings.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.GoSettings)
+ return object;
+ var message = new $root.google.api.GoSettings();
+ if (object.common != null) {
+ if (typeof object.common !== "object")
+ throw TypeError(".google.api.GoSettings.common: object expected");
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GoSettings message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.GoSettings
+ * @static
+ * @param {google.api.GoSettings} message GoSettings
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GoSettings.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.common = null;
+ if (message.common != null && message.hasOwnProperty("common"))
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
+ return object;
+ };
+
+ /**
+ * Converts this GoSettings to JSON.
+ * @function toJSON
+ * @memberof google.api.GoSettings
+ * @instance
+ * @returns {Object.