diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index c525e12a69d..d79b129c56a 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,5 +1,6 @@
{
"packages/gapic-node-templating": "0.0.0",
+ "packages/google-ai-generativelanguage": "1.0.1",
"packages/google-analytics-admin": "6.0.0",
"packages/google-analytics-data": "4.0.1",
"packages/google-api-apikeys": "1.0.1",
@@ -9,9 +10,12 @@
"packages/google-appengine": "3.0.1",
"packages/google-area120-tables": "3.0.1",
"packages/google-cloud-accessapproval": "3.0.1",
+ "packages/google-cloud-advisorynotifications": "1.0.1",
"packages/google-cloud-aiplatform": "3.2.0",
+ "packages/google-cloud-alloydb": "1.0.1",
"packages/google-cloud-apigateway": "3.0.1",
"packages/google-cloud-apigeeconnect": "3.0.1",
+ "packages/google-cloud-apigeeregistry": "1.0.1",
"packages/google-cloud-asset": "5.0.2",
"packages/google-cloud-assuredworkloads": "4.0.1",
"packages/google-cloud-baremetalsolution": "1.1.1",
@@ -33,7 +37,10 @@
"packages/google-cloud-certificatemanager": "1.0.1",
"packages/google-cloud-channel": "3.1.0",
"packages/google-cloud-clouddms": "3.1.0",
+ "packages/google-cloud-commerce-consumer-procurement": "0.1.1",
"packages/google-cloud-compute": "4.0.1",
+ "packages/google-cloud-confidentialcomputing": "1.1.0",
+ "packages/google-cloud-config": "0.1.0",
"packages/google-cloud-contactcenterinsights": "3.0.1",
"packages/google-cloud-contentwarehouse": "1.1.0",
"packages/google-cloud-datacatalog": "4.0.1",
@@ -65,13 +72,16 @@
"packages/google-cloud-ids": "3.0.1",
"packages/google-cloud-iot": "4.0.1",
"packages/google-cloud-kms": "4.0.1",
+ "packages/google-cloud-kms-inventory": "1.0.1",
"packages/google-cloud-language": "6.1.0",
"packages/google-cloud-lifesciences": "3.0.1",
"packages/google-cloud-managedidentities": "3.0.1",
"packages/google-cloud-mediatranslation": "4.0.1",
"packages/google-cloud-memcache": "3.0.1",
"packages/google-cloud-metastore": "4.0.1",
+ "packages/google-cloud-migrationcenter": "1.0.1",
"packages/google-cloud-monitoring": "4.0.0",
+ "packages/google-cloud-netapp": "0.1.0",
"packages/google-cloud-networkconnectivity": "3.0.1",
"packages/google-cloud-networkmanagement": "3.1.0",
"packages/google-cloud-networksecurity": "2.0.1",
@@ -83,7 +93,9 @@
"packages/google-cloud-oslogin": "5.1.0",
"packages/google-cloud-phishingprotection": "4.0.1",
"packages/google-cloud-policytroubleshooter": "3.1.1",
+ "packages/google-cloud-policytroubleshooter-iam": "0.2.1",
"packages/google-cloud-privatecatalog": "3.0.1",
+ "packages/google-cloud-rapidmigrationassessment": "1.0.1",
"packages/google-cloud-recaptchaenterprise": "4.0.1",
"packages/google-cloud-recommender": "6.1.0",
"packages/google-cloud-redis": "4.0.1",
@@ -99,6 +111,9 @@
"packages/google-cloud-servicedirectory": "5.0.1",
"packages/google-cloud-shell": "3.0.1",
"packages/google-cloud-speech": "6.0.2",
+ "packages/google-cloud-sql": "0.1.0",
+ "packages/google-cloud-storageinsights": "1.0.1",
+ "packages/google-cloud-support": "1.0.1",
"packages/google-cloud-talent": "6.0.1",
"packages/google-cloud-tasks": "4.0.1",
"packages/google-cloud-texttospeech": "5.0.1",
@@ -115,6 +130,7 @@
"packages/google-cloud-webrisk": "4.0.1",
"packages/google-cloud-websecurityscanner": "3.0.1",
"packages/google-cloud-workflows-executions": "3.1.0",
+ "packages/google-cloud-workstations": "1.1.0",
"packages/google-container": "5.2.0",
"packages/google-dataflow": "3.0.1",
"packages/google-devtools-artifactregistry": "3.0.1",
@@ -125,26 +141,11 @@
"packages/google-identity-accesscontextmanager": "3.0.1",
"packages/google-maps-addressvalidation": "2.0.1",
"packages/google-maps-mapsplatformdatasets": "1.0.1",
+ "packages/google-maps-places": "1.0.1",
"packages/google-maps-routing": "1.0.1",
"packages/google-monitoring-dashboard": "3.0.1",
"packages/google-privacy-dlp": "5.0.1",
"packages/google-storagetransfer": "3.0.1",
"packages/grafeas": "5.0.1",
- "packages/typeless-sample-bot": "2.0.0",
- "packages/google-cloud-advisorynotifications": "1.0.1",
- "packages/google-cloud-kms-inventory": "1.0.1",
- "packages/google-cloud-alloydb": "1.0.1",
- "packages/google-cloud-workstations": "1.1.0",
- "packages/google-cloud-confidentialcomputing": "1.1.0",
- "packages/google-ai-generativelanguage": "1.0.1",
- "packages/google-cloud-storageinsights": "1.0.1",
- "packages/google-maps-places": "1.0.1",
- "packages/google-cloud-support": "1.0.1",
- "packages/google-cloud-rapidmigrationassessment": "1.0.1",
- "packages/google-cloud-migrationcenter": "1.0.1",
- "packages/google-cloud-commerce-consumer-procurement": "0.1.1",
- "packages/google-cloud-policytroubleshooter-iam": "0.2.1",
- "packages/google-cloud-sql": "0.1.0",
- "packages/google-cloud-config": "0.1.0",
- "packages/google-cloud-netapp": "0.1.0"
+ "packages/typeless-sample-bot": "2.0.0"
}
diff --git a/packages/google-cloud-apigeeregistry/.OwlBot.yaml b/packages/google-cloud-apigeeregistry/.OwlBot.yaml
new file mode 100644
index 00000000000..2fc15cc2a0b
--- /dev/null
+++ b/packages/google-cloud-apigeeregistry/.OwlBot.yaml
@@ -0,0 +1,20 @@
+# Copyright 2021 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# 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.
+
+deep-remove-regex:
+ - /owl-bot-staging
+
+deep-copy-regex:
+ - source: /google/cloud/apigeeregistry/(.*)/.*-nodejs
+ dest: /owl-bot-staging/google-cloud-apigeeregistry/$1
diff --git a/packages/google-cloud-apigeeregistry/.eslintignore b/packages/google-cloud-apigeeregistry/.eslintignore
new file mode 100644
index 00000000000..ea5b04aebe6
--- /dev/null
+++ b/packages/google-cloud-apigeeregistry/.eslintignore
@@ -0,0 +1,7 @@
+**/node_modules
+**/coverage
+test/fixtures
+build/
+docs/
+protos/
+samples/generated/
diff --git a/packages/google-cloud-apigeeregistry/.eslintrc.json b/packages/google-cloud-apigeeregistry/.eslintrc.json
new file mode 100644
index 00000000000..78215349546
--- /dev/null
+++ b/packages/google-cloud-apigeeregistry/.eslintrc.json
@@ -0,0 +1,3 @@
+{
+ "extends": "./node_modules/gts"
+}
diff --git a/packages/google-cloud-apigeeregistry/.gitattributes b/packages/google-cloud-apigeeregistry/.gitattributes
new file mode 100644
index 00000000000..33739cb74e4
--- /dev/null
+++ b/packages/google-cloud-apigeeregistry/.gitattributes
@@ -0,0 +1,4 @@
+*.ts text eol=lf
+*.js text eol=lf
+protos/* linguist-generated
+**/api-extractor.json linguist-language=JSON-with-Comments
diff --git a/packages/google-cloud-apigeeregistry/.gitignore b/packages/google-cloud-apigeeregistry/.gitignore
new file mode 100644
index 00000000000..d4f03a0df2e
--- /dev/null
+++ b/packages/google-cloud-apigeeregistry/.gitignore
@@ -0,0 +1,14 @@
+**/*.log
+**/node_modules
+/.coverage
+/coverage
+/.nyc_output
+/docs/
+/out/
+/build/
+system-test/secrets.js
+system-test/*key.json
+*.lock
+.DS_Store
+package-lock.json
+__pycache__
diff --git a/packages/google-cloud-apigeeregistry/.jsdoc.js b/packages/google-cloud-apigeeregistry/.jsdoc.js
new file mode 100644
index 00000000000..671ff23ae00
--- /dev/null
+++ b/packages/google-cloud-apigeeregistry/.jsdoc.js
@@ -0,0 +1,55 @@
+// Copyright 2023 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// ** This file is automatically generated by gapic-generator-typescript. **
+// ** https://github.com/googleapis/gapic-generator-typescript **
+// ** All changes to this file may be overwritten. **
+
+'use strict';
+
+module.exports = {
+ opts: {
+ readme: './README.md',
+ package: './package.json',
+ template: './node_modules/jsdoc-fresh',
+ recurse: true,
+ verbose: true,
+ destination: './docs/'
+ },
+ plugins: [
+ 'plugins/markdown',
+ 'jsdoc-region-tag'
+ ],
+ source: {
+ excludePattern: '(^|\\/|\\\\)[._]',
+ include: [
+ 'build/src',
+ 'protos'
+ ],
+ includePattern: '\\.js$'
+ },
+ templates: {
+ copyright: 'Copyright 2023 Google LLC',
+ includeDate: false,
+ sourceFiles: false,
+ systemName: '@google-cloud/apigee-registry',
+ theme: 'lumen',
+ default: {
+ outputSourceFiles: false
+ }
+ },
+ markdown: {
+ idInHeadings: true
+ }
+};
diff --git a/packages/google-cloud-apigeeregistry/.mocharc.js b/packages/google-cloud-apigeeregistry/.mocharc.js
new file mode 100644
index 00000000000..49e7e228701
--- /dev/null
+++ b/packages/google-cloud-apigeeregistry/.mocharc.js
@@ -0,0 +1,29 @@
+// Copyright 2023 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.
+const config = {
+ "enable-source-maps": true,
+ "throw-deprecation": true,
+ "timeout": 10000,
+ "recursive": true
+}
+if (process.env.MOCHA_THROW_DEPRECATION === 'false') {
+ delete config['throw-deprecation'];
+}
+if (process.env.MOCHA_REPORTER) {
+ config.reporter = process.env.MOCHA_REPORTER;
+}
+if (process.env.MOCHA_REPORTER_OUTPUT) {
+ config['reporter-option'] = `output=${process.env.MOCHA_REPORTER_OUTPUT}`;
+}
+module.exports = config
diff --git a/packages/google-cloud-apigeeregistry/.nycrc b/packages/google-cloud-apigeeregistry/.nycrc
new file mode 100644
index 00000000000..b18d5472b62
--- /dev/null
+++ b/packages/google-cloud-apigeeregistry/.nycrc
@@ -0,0 +1,24 @@
+{
+ "report-dir": "./.coverage",
+ "reporter": ["text", "lcov"],
+ "exclude": [
+ "**/*-test",
+ "**/.coverage",
+ "**/apis",
+ "**/benchmark",
+ "**/conformance",
+ "**/docs",
+ "**/samples",
+ "**/scripts",
+ "**/protos",
+ "**/test",
+ "**/*.d.ts",
+ ".jsdoc.js",
+ "**/.jsdoc.js",
+ "karma.conf.js",
+ "webpack-tests.config.js",
+ "webpack.config.js"
+ ],
+ "exclude-after-remap": false,
+ "all": true
+}
diff --git a/packages/google-cloud-apigeeregistry/.prettierignore b/packages/google-cloud-apigeeregistry/.prettierignore
new file mode 100644
index 00000000000..9340ad9b86d
--- /dev/null
+++ b/packages/google-cloud-apigeeregistry/.prettierignore
@@ -0,0 +1,6 @@
+**/node_modules
+**/coverage
+test/fixtures
+build/
+docs/
+protos/
diff --git a/packages/google-cloud-apigeeregistry/.prettierrc.js b/packages/google-cloud-apigeeregistry/.prettierrc.js
new file mode 100644
index 00000000000..1e6cec783e4
--- /dev/null
+++ b/packages/google-cloud-apigeeregistry/.prettierrc.js
@@ -0,0 +1,17 @@
+// Copyright 2023 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+module.exports = {
+ ...require('gts/.prettierrc.json')
+}
diff --git a/packages/google-cloud-apigeeregistry/.repo-metadata.json b/packages/google-cloud-apigeeregistry/.repo-metadata.json
new file mode 100644
index 00000000000..71e1696543b
--- /dev/null
+++ b/packages/google-cloud-apigeeregistry/.repo-metadata.json
@@ -0,0 +1,14 @@
+{
+ "name": "apigeeregistry",
+ "name_pretty": "Apigee Registry API",
+ "product_documentation": "https://cloud.google.com/apigee/docs/api-hub/get-started-registry-api",
+ "client_documentation": "https://cloud.google.com/nodejs/docs/reference/apigee-registry/latest",
+ "issue_tracker": "https://github.com/googleapis/google-cloud-node/issues",
+ "release_level": "beta",
+ "language": "nodejs",
+ "repo": "googleapis/google-cloud-node",
+ "distribution_name": "@google-cloud/apigee-registry",
+ "api_id": "apigeeregistry.googleapis.com",
+ "default_version": "v1",
+ "requires_billing": true
+}
diff --git a/packages/google-cloud-apigeeregistry/CHANGELOG.md b/packages/google-cloud-apigeeregistry/CHANGELOG.md
new file mode 100644
index 00000000000..7d6ef629a77
--- /dev/null
+++ b/packages/google-cloud-apigeeregistry/CHANGELOG.md
@@ -0,0 +1,63 @@
+# Changelog
+
+## [1.0.1](https://github.com/googleapis/nodejs-apigee-registry/compare/v1.0.0...v1.0.1) (2023-09-07)
+
+
+### Bug Fixes
+
+* Simplify logic for HTTP/1.1 REST fallback option ([#54](https://github.com/googleapis/nodejs-apigee-registry/issues/54)) ([c873226](https://github.com/googleapis/nodejs-apigee-registry/commit/c87322645e01d1e1cf989aa5f8502876d7b77230))
+
+## [1.0.0](https://github.com/googleapis/nodejs-apigee-registry/compare/v0.3.0...v1.0.0) (2023-08-15)
+
+
+### ⚠ BREAKING CHANGES
+
+* update to Node 14 ([#50](https://github.com/googleapis/nodejs-apigee-registry/issues/50))
+
+### Miscellaneous Chores
+
+* Update to Node 14 ([#50](https://github.com/googleapis/nodejs-apigee-registry/issues/50)) ([ae2c7ea](https://github.com/googleapis/nodejs-apigee-registry/commit/ae2c7ea278d037c3ba020192ab8913b0659191e8))
+
+## [0.3.0](https://github.com/googleapis/nodejs-apigee-registry/compare/v0.2.1...v0.3.0) (2023-02-09)
+
+
+### Features
+
+* Added SuggestConversationSummary RPC ([8110940](https://github.com/googleapis/nodejs-apigee-registry/commit/8110940e67c72bd94776c17863fa52d714b270ae))
+
+
+### Bug Fixes
+
+* **deps:** Use google-gax v3.5.2 ([#25](https://github.com/googleapis/nodejs-apigee-registry/issues/25)) ([1ee9a1d](https://github.com/googleapis/nodejs-apigee-registry/commit/1ee9a1d07a6cd4930c07651a0e17bb41c0663777))
+
+## [0.2.1](https://github.com/googleapis/nodejs-apigee-registry/compare/v0.2.0...v0.2.1) (2022-09-21)
+
+
+### Bug Fixes
+
+* Additional error codes added to service configuration for retry ([#16](https://github.com/googleapis/nodejs-apigee-registry/issues/16)) ([4be826d](https://github.com/googleapis/nodejs-apigee-registry/commit/4be826ddc63cd21391a7c204fc361156c5c0b673))
+* Preserve default values in x-goog-request-params header ([#18](https://github.com/googleapis/nodejs-apigee-registry/issues/18)) ([19c2bf9](https://github.com/googleapis/nodejs-apigee-registry/commit/19c2bf9e6bc00d99fd3b07c9c71ca946ece94695))
+
+## [0.2.0](https://github.com/googleapis/nodejs-apigee-registry/compare/v0.1.0...v0.2.0) (2022-08-30)
+
+
+### Features
+
+* added support for force field for API and API version deletion ([c0bf481](https://github.com/googleapis/nodejs-apigee-registry/commit/c0bf48111db1e05f88cb68fac40584e60bbdf6f6))
+
+
+### Bug Fixes
+
+* change import long to require ([#12](https://github.com/googleapis/nodejs-apigee-registry/issues/12)) ([c04237e](https://github.com/googleapis/nodejs-apigee-registry/commit/c04237ebc9dc76016f9017ee6f8cdf938fd14da8))
+* do not import the whole google-gax from proto JS ([#1553](https://github.com/googleapis/nodejs-apigee-registry/issues/1553)) ([#15](https://github.com/googleapis/nodejs-apigee-registry/issues/15)) ([34da6db](https://github.com/googleapis/nodejs-apigee-registry/commit/34da6dbc51476bf7a30fae332233c76527f9e9ff))
+* remove pip install statements ([#1546](https://github.com/googleapis/nodejs-apigee-registry/issues/1546)) ([#14](https://github.com/googleapis/nodejs-apigee-registry/issues/14)) ([a6dba15](https://github.com/googleapis/nodejs-apigee-registry/commit/a6dba15c574a7537771ee95a50785b30b83eb4a2))
+* use google-gax v3.3.0 ([34da6db](https://github.com/googleapis/nodejs-apigee-registry/commit/34da6dbc51476bf7a30fae332233c76527f9e9ff))
+
+## 0.1.0 (2022-07-21)
+
+
+### Features
+
+* add initial samples and tests ([77257a4](https://github.com/googleapis/nodejs-apigee-registry/commit/77257a467f559529416327d362ba46aaef41b037))
+* add templated files from docker image ([4999fc5](https://github.com/googleapis/nodejs-apigee-registry/commit/4999fc5f4b8150c2b2d3bcdb15d17c6ac400bfb2))
+* initial stub of library ([81efd1e](https://github.com/googleapis/nodejs-apigee-registry/commit/81efd1e2ac2c301b1a95fca58b83c9ab61103f19))
diff --git a/packages/google-cloud-apigeeregistry/CODE_OF_CONDUCT.md b/packages/google-cloud-apigeeregistry/CODE_OF_CONDUCT.md
new file mode 100644
index 00000000000..2add2547a81
--- /dev/null
+++ b/packages/google-cloud-apigeeregistry/CODE_OF_CONDUCT.md
@@ -0,0 +1,94 @@
+
+# Code of Conduct
+
+## Our Pledge
+
+In the interest of fostering an open and welcoming environment, we as
+contributors and maintainers pledge to making participation in our project and
+our community a harassment-free experience for everyone, regardless of age, body
+size, disability, ethnicity, gender identity and expression, level of
+experience, education, socio-economic status, nationality, personal appearance,
+race, religion, or sexual identity and orientation.
+
+## Our Standards
+
+Examples of behavior that contributes to creating a positive environment
+include:
+
+* Using welcoming and inclusive language
+* Being respectful of differing viewpoints and experiences
+* Gracefully accepting constructive criticism
+* Focusing on what is best for the community
+* Showing empathy towards other community members
+
+Examples of unacceptable behavior by participants include:
+
+* The use of sexualized language or imagery and unwelcome sexual attention or
+ advances
+* Trolling, insulting/derogatory comments, and personal or political attacks
+* Public or private harassment
+* Publishing others' private information, such as a physical or electronic
+ address, without explicit permission
+* Other conduct which could reasonably be considered inappropriate in a
+ professional setting
+
+## Our Responsibilities
+
+Project maintainers are responsible for clarifying the standards of acceptable
+behavior and are expected to take appropriate and fair corrective action in
+response to any instances of unacceptable behavior.
+
+Project maintainers have the right and responsibility to remove, edit, or reject
+comments, commits, code, wiki edits, issues, and other contributions that are
+not aligned to this Code of Conduct, or to ban temporarily or permanently any
+contributor for other behaviors that they deem inappropriate, threatening,
+offensive, or harmful.
+
+## Scope
+
+This Code of Conduct applies both within project spaces and in public spaces
+when an individual is representing the project or its community. Examples of
+representing a project or community include using an official project e-mail
+address, posting via an official social media account, or acting as an appointed
+representative at an online or offline event. Representation of a project may be
+further defined and clarified by project maintainers.
+
+This Code of Conduct also applies outside the project spaces when the Project
+Steward has a reasonable belief that an individual's behavior may have a
+negative impact on the project or its community.
+
+## Conflict Resolution
+
+We do not believe that all conflict is bad; healthy debate and disagreement
+often yield positive results. However, it is never okay to be disrespectful or
+to engage in behavior that violates the project’s code of conduct.
+
+If you see someone violating the code of conduct, you are encouraged to address
+the behavior directly with those involved. Many issues can be resolved quickly
+and easily, and this gives people more control over the outcome of their
+dispute. If you are unable to resolve the matter for any reason, or if the
+behavior is threatening or harassing, report it. We are dedicated to providing
+an environment where participants feel welcome and safe.
+
+Reports should be directed to *googleapis-stewards@google.com*, the
+Project Steward(s) for *Google Cloud Client Libraries*. It is the Project Steward’s duty to
+receive and address reported violations of the code of conduct. They will then
+work with a committee consisting of representatives from the Open Source
+Programs Office and the Google Open Source Strategy team. If for any reason you
+are uncomfortable reaching out to the Project Steward, please email
+opensource@google.com.
+
+We will investigate every complaint, but you may not receive a direct response.
+We will use our discretion in determining when and how to follow up on reported
+incidents, which may range from not taking action to permanent expulsion from
+the project and project-sponsored spaces. We will notify the accused of the
+report and provide them an opportunity to discuss it before any action is taken.
+The identity of the reporter will be omitted from the details of the report
+supplied to the accused. In potentially harmful situations, such as ongoing
+harassment or threats to anyone's safety, we may take action without notice.
+
+## Attribution
+
+This Code of Conduct is adapted from the Contributor Covenant, version 1.4,
+available at
+https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
\ No newline at end of file
diff --git a/packages/google-cloud-apigeeregistry/CONTRIBUTING.md b/packages/google-cloud-apigeeregistry/CONTRIBUTING.md
new file mode 100644
index 00000000000..0a19fb4c70f
--- /dev/null
+++ b/packages/google-cloud-apigeeregistry/CONTRIBUTING.md
@@ -0,0 +1,76 @@
+# How to become a contributor and submit your own code
+
+**Table of contents**
+
+* [Contributor License Agreements](#contributor-license-agreements)
+* [Contributing a patch](#contributing-a-patch)
+* [Running the tests](#running-the-tests)
+* [Releasing the library](#releasing-the-library)
+
+## Contributor License Agreements
+
+We'd love to accept your sample apps and patches! Before we can take them, we
+have to jump a couple of legal hurdles.
+
+Please fill out either the individual or corporate Contributor License Agreement
+(CLA).
+
+ * If you are an individual writing original source code and you're sure you
+ own the intellectual property, then you'll need to sign an [individual CLA](https://developers.google.com/open-source/cla/individual).
+ * If you work for a company that wants to allow you to contribute your work,
+ then you'll need to sign a [corporate CLA](https://developers.google.com/open-source/cla/corporate).
+
+Follow either of the two links above to access the appropriate CLA and
+instructions for how to sign and return it. Once we receive it, we'll be able to
+accept your pull requests.
+
+## Contributing A Patch
+
+1. Submit an issue describing your proposed change to the repo in question.
+1. The repo owner will respond to your issue promptly.
+1. If your proposed change is accepted, and you haven't already done so, sign a
+ Contributor License Agreement (see details above).
+1. Fork the desired repo, develop and test your code changes.
+1. Ensure that your code adheres to the existing style in the code to which
+ you are contributing.
+1. Ensure that your code has an appropriate set of tests which all pass.
+1. Title your pull request following [Conventional Commits](https://www.conventionalcommits.org/) styling.
+1. Submit a pull request.
+
+### Before you begin
+
+1. [Select or create a Cloud Platform project][projects].
+1. [Enable billing for your project][billing].
+1. [Enable the Apigee Registry API API][enable_api].
+1. [Set up authentication with a service account][auth] so you can access the
+ API from your local workstation.
+
+
+## Running the tests
+
+1. [Prepare your environment for Node.js setup][setup].
+
+1. Install dependencies:
+
+ npm install
+
+1. Run the tests:
+
+ # Run unit tests.
+ npm test
+
+ # Run sample integration tests.
+ npm run samples-test
+
+ # Run all system tests.
+ npm run system-test
+
+1. Lint (and maybe fix) any changes:
+
+ npm run fix
+
+[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=apigeeregistry.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/getting-started
\ No newline at end of file
diff --git a/packages/google-cloud-apigeeregistry/LICENSE b/packages/google-cloud-apigeeregistry/LICENSE
new file mode 100644
index 00000000000..d6456956733
--- /dev/null
+++ b/packages/google-cloud-apigeeregistry/LICENSE
@@ -0,0 +1,202 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ 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.
diff --git a/packages/google-cloud-apigeeregistry/README.md b/packages/google-cloud-apigeeregistry/README.md
new file mode 100644
index 00000000000..0a9caf86a87
--- /dev/null
+++ b/packages/google-cloud-apigeeregistry/README.md
@@ -0,0 +1,173 @@
+[//]: # "This README.md file is auto-generated, all changes to this file will be lost."
+[//]: # "To regenerate it, use `python -m synthtool`."
+
+
+# [Apigee Registry API: Node.js Client](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-apigeeregistry)
+
+[![release level](https://img.shields.io/badge/release%20level-beta-yellow.svg?style=flat)](https://cloud.google.com/terms/launch-stages)
+[![npm version](https://img.shields.io/npm/v/@google-cloud/apigee-registry.svg)](https://www.npmjs.org/package/@google-cloud/apigee-registry)
+
+
+
+
+apigeeregistry 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-apigeeregistry/CHANGELOG.md).
+
+* [Apigee Registry API Node.js Client API Reference][client-docs]
+* [Apigee Registry API Documentation][product-docs]
+* [github.com/googleapis/google-cloud-node/packages/google-cloud-apigeeregistry](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-apigeeregistry)
+
+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)
+
+* [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 Apigee Registry 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/apigee-registry
+```
+
+
+
+
+## Samples
+
+Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-apigeeregistry/samples) directory. Each sample's `README.md` has instructions for running its sample.
+
+| Sample | Source Code | Try it |
+| --------------------------- | --------------------------------- | ------ |
+| Provisioning.create_instance | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-apigeeregistry/samples/generated/v1/provisioning.create_instance.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-apigeeregistry/samples/generated/v1/provisioning.create_instance.js,packages/google-cloud-apigeeregistry/samples/README.md) |
+| Provisioning.delete_instance | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-apigeeregistry/samples/generated/v1/provisioning.delete_instance.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-apigeeregistry/samples/generated/v1/provisioning.delete_instance.js,packages/google-cloud-apigeeregistry/samples/README.md) |
+| Provisioning.get_instance | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-apigeeregistry/samples/generated/v1/provisioning.get_instance.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-apigeeregistry/samples/generated/v1/provisioning.get_instance.js,packages/google-cloud-apigeeregistry/samples/README.md) |
+| Registry.create_api | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-apigeeregistry/samples/generated/v1/registry.create_api.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-apigeeregistry/samples/generated/v1/registry.create_api.js,packages/google-cloud-apigeeregistry/samples/README.md) |
+| Registry.create_api_deployment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-apigeeregistry/samples/generated/v1/registry.create_api_deployment.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-apigeeregistry/samples/generated/v1/registry.create_api_deployment.js,packages/google-cloud-apigeeregistry/samples/README.md) |
+| Registry.create_api_spec | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-apigeeregistry/samples/generated/v1/registry.create_api_spec.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-apigeeregistry/samples/generated/v1/registry.create_api_spec.js,packages/google-cloud-apigeeregistry/samples/README.md) |
+| Registry.create_api_version | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-apigeeregistry/samples/generated/v1/registry.create_api_version.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-apigeeregistry/samples/generated/v1/registry.create_api_version.js,packages/google-cloud-apigeeregistry/samples/README.md) |
+| Registry.create_artifact | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-apigeeregistry/samples/generated/v1/registry.create_artifact.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-apigeeregistry/samples/generated/v1/registry.create_artifact.js,packages/google-cloud-apigeeregistry/samples/README.md) |
+| Registry.delete_api | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-apigeeregistry/samples/generated/v1/registry.delete_api.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-apigeeregistry/samples/generated/v1/registry.delete_api.js,packages/google-cloud-apigeeregistry/samples/README.md) |
+| Registry.delete_api_deployment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-apigeeregistry/samples/generated/v1/registry.delete_api_deployment.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-apigeeregistry/samples/generated/v1/registry.delete_api_deployment.js,packages/google-cloud-apigeeregistry/samples/README.md) |
+| Registry.delete_api_deployment_revision | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-apigeeregistry/samples/generated/v1/registry.delete_api_deployment_revision.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-apigeeregistry/samples/generated/v1/registry.delete_api_deployment_revision.js,packages/google-cloud-apigeeregistry/samples/README.md) |
+| Registry.delete_api_spec | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-apigeeregistry/samples/generated/v1/registry.delete_api_spec.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-apigeeregistry/samples/generated/v1/registry.delete_api_spec.js,packages/google-cloud-apigeeregistry/samples/README.md) |
+| Registry.delete_api_spec_revision | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-apigeeregistry/samples/generated/v1/registry.delete_api_spec_revision.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-apigeeregistry/samples/generated/v1/registry.delete_api_spec_revision.js,packages/google-cloud-apigeeregistry/samples/README.md) |
+| Registry.delete_api_version | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-apigeeregistry/samples/generated/v1/registry.delete_api_version.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-apigeeregistry/samples/generated/v1/registry.delete_api_version.js,packages/google-cloud-apigeeregistry/samples/README.md) |
+| Registry.delete_artifact | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-apigeeregistry/samples/generated/v1/registry.delete_artifact.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-apigeeregistry/samples/generated/v1/registry.delete_artifact.js,packages/google-cloud-apigeeregistry/samples/README.md) |
+| Registry.get_api | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-apigeeregistry/samples/generated/v1/registry.get_api.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-apigeeregistry/samples/generated/v1/registry.get_api.js,packages/google-cloud-apigeeregistry/samples/README.md) |
+| Registry.get_api_deployment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-apigeeregistry/samples/generated/v1/registry.get_api_deployment.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-apigeeregistry/samples/generated/v1/registry.get_api_deployment.js,packages/google-cloud-apigeeregistry/samples/README.md) |
+| Registry.get_api_spec | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-apigeeregistry/samples/generated/v1/registry.get_api_spec.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-apigeeregistry/samples/generated/v1/registry.get_api_spec.js,packages/google-cloud-apigeeregistry/samples/README.md) |
+| Registry.get_api_spec_contents | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-apigeeregistry/samples/generated/v1/registry.get_api_spec_contents.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-apigeeregistry/samples/generated/v1/registry.get_api_spec_contents.js,packages/google-cloud-apigeeregistry/samples/README.md) |
+| Registry.get_api_version | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-apigeeregistry/samples/generated/v1/registry.get_api_version.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-apigeeregistry/samples/generated/v1/registry.get_api_version.js,packages/google-cloud-apigeeregistry/samples/README.md) |
+| Registry.get_artifact | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-apigeeregistry/samples/generated/v1/registry.get_artifact.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-apigeeregistry/samples/generated/v1/registry.get_artifact.js,packages/google-cloud-apigeeregistry/samples/README.md) |
+| Registry.get_artifact_contents | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-apigeeregistry/samples/generated/v1/registry.get_artifact_contents.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-apigeeregistry/samples/generated/v1/registry.get_artifact_contents.js,packages/google-cloud-apigeeregistry/samples/README.md) |
+| Registry.list_api_deployment_revisions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-apigeeregistry/samples/generated/v1/registry.list_api_deployment_revisions.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-apigeeregistry/samples/generated/v1/registry.list_api_deployment_revisions.js,packages/google-cloud-apigeeregistry/samples/README.md) |
+| Registry.list_api_deployments | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-apigeeregistry/samples/generated/v1/registry.list_api_deployments.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-apigeeregistry/samples/generated/v1/registry.list_api_deployments.js,packages/google-cloud-apigeeregistry/samples/README.md) |
+| Registry.list_api_spec_revisions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-apigeeregistry/samples/generated/v1/registry.list_api_spec_revisions.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-apigeeregistry/samples/generated/v1/registry.list_api_spec_revisions.js,packages/google-cloud-apigeeregistry/samples/README.md) |
+| Registry.list_api_specs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-apigeeregistry/samples/generated/v1/registry.list_api_specs.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-apigeeregistry/samples/generated/v1/registry.list_api_specs.js,packages/google-cloud-apigeeregistry/samples/README.md) |
+| Registry.list_api_versions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-apigeeregistry/samples/generated/v1/registry.list_api_versions.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-apigeeregistry/samples/generated/v1/registry.list_api_versions.js,packages/google-cloud-apigeeregistry/samples/README.md) |
+| Registry.list_apis | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-apigeeregistry/samples/generated/v1/registry.list_apis.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-apigeeregistry/samples/generated/v1/registry.list_apis.js,packages/google-cloud-apigeeregistry/samples/README.md) |
+| Registry.list_artifacts | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-apigeeregistry/samples/generated/v1/registry.list_artifacts.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-apigeeregistry/samples/generated/v1/registry.list_artifacts.js,packages/google-cloud-apigeeregistry/samples/README.md) |
+| Registry.replace_artifact | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-apigeeregistry/samples/generated/v1/registry.replace_artifact.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-apigeeregistry/samples/generated/v1/registry.replace_artifact.js,packages/google-cloud-apigeeregistry/samples/README.md) |
+| Registry.rollback_api_deployment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-apigeeregistry/samples/generated/v1/registry.rollback_api_deployment.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-apigeeregistry/samples/generated/v1/registry.rollback_api_deployment.js,packages/google-cloud-apigeeregistry/samples/README.md) |
+| Registry.rollback_api_spec | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-apigeeregistry/samples/generated/v1/registry.rollback_api_spec.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-apigeeregistry/samples/generated/v1/registry.rollback_api_spec.js,packages/google-cloud-apigeeregistry/samples/README.md) |
+| Registry.tag_api_deployment_revision | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-apigeeregistry/samples/generated/v1/registry.tag_api_deployment_revision.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-apigeeregistry/samples/generated/v1/registry.tag_api_deployment_revision.js,packages/google-cloud-apigeeregistry/samples/README.md) |
+| Registry.tag_api_spec_revision | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-apigeeregistry/samples/generated/v1/registry.tag_api_spec_revision.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-apigeeregistry/samples/generated/v1/registry.tag_api_spec_revision.js,packages/google-cloud-apigeeregistry/samples/README.md) |
+| Registry.update_api | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-apigeeregistry/samples/generated/v1/registry.update_api.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-apigeeregistry/samples/generated/v1/registry.update_api.js,packages/google-cloud-apigeeregistry/samples/README.md) |
+| Registry.update_api_deployment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-apigeeregistry/samples/generated/v1/registry.update_api_deployment.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-apigeeregistry/samples/generated/v1/registry.update_api_deployment.js,packages/google-cloud-apigeeregistry/samples/README.md) |
+| Registry.update_api_spec | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-apigeeregistry/samples/generated/v1/registry.update_api_spec.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-apigeeregistry/samples/generated/v1/registry.update_api_spec.js,packages/google-cloud-apigeeregistry/samples/README.md) |
+| Registry.update_api_version | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-apigeeregistry/samples/generated/v1/registry.update_api_version.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-apigeeregistry/samples/generated/v1/registry.update_api_version.js,packages/google-cloud-apigeeregistry/samples/README.md) |
+| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-apigeeregistry/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-apigeeregistry/samples/quickstart.js,packages/google-cloud-apigeeregistry/samples/README.md) |
+
+
+
+The [Apigee Registry 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/apigee-registry@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 **beta**. This means it is expected to be
+mostly stable while we work toward a general availability release; however,
+complete stability is not guaranteed. We will address issues and requests
+against beta libraries with a high priority.
+
+
+
+
+
+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/apigee-registry/latest
+[product-docs]: https://cloud.google.com/apigee/docs/api-hub/get-started-registry-api
+[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=apigeeregistry.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/getting-started
diff --git a/packages/google-cloud-apigeeregistry/linkinator.config.json b/packages/google-cloud-apigeeregistry/linkinator.config.json
new file mode 100644
index 00000000000..befd23c8633
--- /dev/null
+++ b/packages/google-cloud-apigeeregistry/linkinator.config.json
@@ -0,0 +1,16 @@
+{
+ "recurse": true,
+ "skip": [
+ "https://codecov.io/gh/googleapis/",
+ "www.googleapis.com",
+ "img.shields.io",
+ "https://console.cloud.google.com/cloudshell",
+ "https://support.google.com"
+ ],
+ "silent": true,
+ "concurrency": 5,
+ "retry": true,
+ "retryErrors": true,
+ "retryErrorsCount": 5,
+ "retryErrorsJitter": 3000
+}
diff --git a/packages/google-cloud-apigeeregistry/package.json b/packages/google-cloud-apigeeregistry/package.json
new file mode 100644
index 00000000000..784f801f898
--- /dev/null
+++ b/packages/google-cloud-apigeeregistry/package.json
@@ -0,0 +1,73 @@
+{
+ "name": "@google-cloud/apigee-registry",
+ "version": "1.0.1",
+ "description": "apigeeregistry client for Node.js",
+ "repository": {
+ "type": "git",
+ "directory": "packages/google-cloud-apigeeregistry",
+ "url": "https://github.com/googleapis/google-cloud-node.git"
+ },
+ "license": "Apache-2.0",
+ "author": "Google LLC",
+ "main": "build/src/index.js",
+ "files": [
+ "build/src",
+ "build/protos"
+ ],
+ "keywords": [
+ "google apis client",
+ "google api client",
+ "google apis",
+ "google api",
+ "google",
+ "google cloud platform",
+ "google cloud",
+ "cloud",
+ "google apigeeregistry",
+ "apigeeregistry",
+ "apigeeregistry service"
+ ],
+ "scripts": {
+ "clean": "gts clean",
+ "compile": "tsc -p . && cp -r protos build/",
+ "compile-protos": "compileProtos src",
+ "docs": "jsdoc -c .jsdoc.js",
+ "predocs-test": "npm run docs",
+ "docs-test": "linkinator docs",
+ "fix": "gts fix",
+ "lint": "gts check",
+ "prepare": "npm run compile-protos && npm run compile",
+ "system-test": "npm run compile && c8 mocha build/system-test",
+ "test": "c8 mocha build/test",
+ "samples-test": "npm run compile && cd samples/ && npm link ../ && npm i && npm test",
+ "prelint": "cd samples; npm link ../; npm i"
+ },
+ "dependencies": {
+ "google-gax": "^4.0.3"
+ },
+ "devDependencies": {
+ "@types/mocha": "^10.0.0",
+ "@types/node": "^20.4.9",
+ "@types/sinon": "^10.0.0",
+ "c8": "^8.0.1",
+ "gapic-tools": "^0.1.8",
+ "gts": "^5.0.0",
+ "jsdoc": "^4.0.0",
+ "jsdoc-fresh": "^3.0.0",
+ "jsdoc-region-tag": "^3.0.0",
+ "linkinator": "4.1.2",
+ "long": "^5.2.3",
+ "mocha": "^10.0.0",
+ "null-loader": "^4.0.1",
+ "pack-n-play": "^1.0.0-2",
+ "sinon": "^15.0.0",
+ "ts-loader": "^9.1.2",
+ "typescript": "^5.1.6",
+ "webpack": "^5.36.2",
+ "webpack-cli": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ },
+ "homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-apigeeregistry"
+}
diff --git a/packages/google-cloud-apigeeregistry/protos/google/cloud/apigeeregistry/v1/provisioning_service.proto b/packages/google-cloud-apigeeregistry/protos/google/cloud/apigeeregistry/v1/provisioning_service.proto
new file mode 100644
index 00000000000..cca6753c6bc
--- /dev/null
+++ b/packages/google-cloud-apigeeregistry/protos/google/cloud/apigeeregistry/v1/provisioning_service.proto
@@ -0,0 +1,205 @@
+// 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
+//
+// 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.apigeeregistry.v1;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/longrunning/operations.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.ApigeeRegistry.V1";
+option go_package = "cloud.google.com/go/apigeeregistry/apiv1/apigeeregistrypb;apigeeregistrypb";
+option java_multiple_files = true;
+option java_outer_classname = "ProvisioningServiceProto";
+option java_package = "com.google.cloud.apigeeregistry.v1";
+option php_namespace = "Google\\Cloud\\ApigeeRegistry\\V1";
+option ruby_package = "Google::Cloud::ApigeeRegistry::V1";
+
+// The service that is used for managing the data plane provisioning of the
+// Registry.
+service Provisioning {
+ option (google.api.default_host) = "apigeeregistry.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
+
+ // Provisions instance resources for the Registry.
+ rpc CreateInstance(CreateInstanceRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/instances"
+ body: "instance"
+ };
+ option (google.api.method_signature) = "parent,instance,instance_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "Instance"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Deletes the Registry instance.
+ rpc DeleteInstance(DeleteInstanceRequest) returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/instances/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Gets details of a single Instance.
+ rpc GetInstance(GetInstanceRequest) returns (Instance) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/instances/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+}
+
+// Request message for CreateInstance.
+message CreateInstanceRequest {
+ // Required. Parent resource of the Instance, of the form: `projects/*/locations/*`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // Required. Identifier to assign to the Instance. Must be unique within scope of the
+ // parent resource.
+ string instance_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The Instance.
+ Instance instance = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for DeleteInstance.
+message DeleteInstanceRequest {
+ // Required. The name of the Instance to delete.
+ // Format: `projects/*/locations/*/instances/*`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "apigeeregistry.googleapis.com/Instance"
+ }
+ ];
+}
+
+// Request message for GetInstance.
+message GetInstanceRequest {
+ // Required. The name of the Instance to retrieve.
+ // Format: `projects/*/locations/*/instances/*`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "apigeeregistry.googleapis.com/Instance"
+ }
+ ];
+}
+
+// Represents the metadata of the long-running operation.
+message OperationMetadata {
+ // The time the operation was created.
+ google.protobuf.Timestamp create_time = 1;
+
+ // The time the operation finished running.
+ google.protobuf.Timestamp end_time = 2;
+
+ // Server-defined resource path for the target of the operation.
+ string target = 3;
+
+ // Name of the verb executed by the operation.
+ string verb = 4;
+
+ // Human-readable status of the operation, if any.
+ string status_message = 5;
+
+ // Identifies whether the user has requested cancellation
+ // of the operation. Operations that have successfully been cancelled
+ // have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+ // corresponding to `Code.CANCELLED`.
+ bool cancellation_requested = 6;
+
+ // API version used to start the operation.
+ string api_version = 7;
+}
+
+// An Instance represents the instance resources of the Registry.
+// Currently, only one instance is allowed for each project.
+message Instance {
+ option (google.api.resource) = {
+ type: "apigeeregistry.googleapis.com/Instance"
+ pattern: "projects/{project}/locations/{location}/instances/{instance}"
+ };
+
+ // State of the Instance.
+ enum State {
+ // The default value. This value is used if the state is omitted.
+ STATE_UNSPECIFIED = 0;
+
+ // The Instance has not been initialized or has been deleted.
+ INACTIVE = 1;
+
+ // The Instance is being created.
+ CREATING = 2;
+
+ // The Instance has been created and is ready for use.
+ ACTIVE = 3;
+
+ // The Instance is being updated.
+ UPDATING = 4;
+
+ // The Instance is being deleted.
+ DELETING = 5;
+
+ // The Instance encountered an error during a state change.
+ FAILED = 6;
+ }
+
+ // Available configurations to provision an Instance.
+ message Config {
+ // Output only. The GCP location where the Instance resides.
+ string location = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Required. The Customer Managed Encryption Key (CMEK) used for data encryption.
+ // The CMEK name should follow the format of
+ // `projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+)`,
+ // where the `location` must match InstanceConfig.location.
+ string cmek_key_name = 2 [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // Format: `projects/*/locations/*/instance`.
+ // Currently only `locations/global` is supported.
+ string name = 1;
+
+ // Output only. Creation timestamp.
+ google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Last update timestamp.
+ google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The current state of the Instance.
+ State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Extra information of Instance.State if the state is `FAILED`.
+ string state_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Required. Config of the Instance.
+ Config config = 6 [(google.api.field_behavior) = REQUIRED];
+}
diff --git a/packages/google-cloud-apigeeregistry/protos/google/cloud/apigeeregistry/v1/registry_models.proto b/packages/google-cloud-apigeeregistry/protos/google/cloud/apigeeregistry/v1/registry_models.proto
new file mode 100644
index 00000000000..a1c29b4d5b9
--- /dev/null
+++ b/packages/google-cloud-apigeeregistry/protos/google/cloud/apigeeregistry/v1/registry_models.proto
@@ -0,0 +1,364 @@
+// 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
+//
+// 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.apigeeregistry.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.ApigeeRegistry.V1";
+option go_package = "cloud.google.com/go/apigeeregistry/apiv1/apigeeregistrypb;apigeeregistrypb";
+option java_multiple_files = true;
+option java_outer_classname = "RegistryModelsProto";
+option java_package = "com.google.cloud.apigeeregistry.v1";
+option php_namespace = "Google\\Cloud\\ApigeeRegistry\\V1";
+option ruby_package = "Google::Cloud::ApigeeRegistry::V1";
+
+// A top-level description of an API.
+// Produced by producers and are commitments to provide services.
+message Api {
+ option (google.api.resource) = {
+ type: "apigeeregistry.googleapis.com/Api"
+ pattern: "projects/{project}/locations/{location}/apis/{api}"
+ };
+
+ // Resource name.
+ string name = 1;
+
+ // Human-meaningful name.
+ string display_name = 2;
+
+ // A detailed description.
+ string description = 3;
+
+ // Output only. Creation timestamp.
+ google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Last update timestamp.
+ google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // A user-definable description of the availability of this service.
+ // Format: free-form, but we expect single words that describe availability,
+ // e.g., "NONE", "TESTING", "PREVIEW", "GENERAL", "DEPRECATED", "SHUTDOWN".
+ string availability = 6;
+
+ // The recommended version of the API.
+ // Format: `apis/{api}/versions/{version}`
+ string recommended_version = 7 [(google.api.resource_reference) = {
+ type: "apigeeregistry.googleapis.com/ApiVersion"
+ }];
+
+ // The recommended deployment of the API.
+ // Format: `apis/{api}/deployments/{deployment}`
+ string recommended_deployment = 8 [(google.api.resource_reference) = {
+ type: "apigeeregistry.googleapis.com/ApiDeployment"
+ }];
+
+ // Labels attach identifying metadata to resources. Identifying metadata can
+ // be used to filter list operations.
+ //
+ // Label keys and values can be no longer than 64 characters
+ // (Unicode codepoints), can only contain lowercase letters, numeric
+ // characters, underscores, and dashes. International characters are allowed.
+ // No more than 64 user labels can be associated with one resource (System
+ // labels are excluded).
+ //
+ // See https://goo.gl/xmQnxf for more information and examples of labels.
+ // System reserved label keys are prefixed with
+ // `apigeeregistry.googleapis.com/` and cannot be changed.
+ map labels = 9;
+
+ // Annotations attach non-identifying metadata to resources.
+ //
+ // Annotation keys and values are less restricted than those of labels, but
+ // should be generally used for small values of broad interest. Larger, topic-
+ // specific metadata should be stored in Artifacts.
+ map annotations = 10;
+}
+
+// Describes a particular version of an API.
+// ApiVersions are what consumers actually use.
+message ApiVersion {
+ option (google.api.resource) = {
+ type: "apigeeregistry.googleapis.com/ApiVersion"
+ pattern: "projects/{project}/locations/{location}/apis/{api}/versions/{version}"
+ };
+
+ // Resource name.
+ string name = 1;
+
+ // Human-meaningful name.
+ string display_name = 2;
+
+ // A detailed description.
+ string description = 3;
+
+ // Output only. Creation timestamp.
+ google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Last update timestamp.
+ google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // A user-definable description of the lifecycle phase of this API version.
+ // Format: free-form, but we expect single words that describe API maturity,
+ // e.g., "CONCEPT", "DESIGN", "DEVELOPMENT", "STAGING", "PRODUCTION",
+ // "DEPRECATED", "RETIRED".
+ string state = 6;
+
+ // Labels attach identifying metadata to resources. Identifying metadata can
+ // be used to filter list operations.
+ //
+ // Label keys and values can be no longer than 64 characters
+ // (Unicode codepoints), can only contain lowercase letters, numeric
+ // characters, underscores and dashes. International characters are allowed.
+ // No more than 64 user labels can be associated with one resource (System
+ // labels are excluded).
+ //
+ // See https://goo.gl/xmQnxf for more information and examples of labels.
+ // System reserved label keys are prefixed with
+ // `apigeeregistry.googleapis.com/` and cannot be changed.
+ map labels = 7;
+
+ // Annotations attach non-identifying metadata to resources.
+ //
+ // Annotation keys and values are less restricted than those of labels, but
+ // should be generally used for small values of broad interest. Larger, topic-
+ // specific metadata should be stored in Artifacts.
+ map annotations = 8;
+}
+
+// Describes a version of an API in a structured way.
+// ApiSpecs provide formal descriptions that consumers can use to use a version.
+// ApiSpec resources are intended to be fully-resolved descriptions of an
+// ApiVersion. When specs consist of multiple files, these should be bundled
+// together (e.g., in a zip archive) and stored as a unit. Multiple specs can
+// exist to provide representations in different API description formats.
+// Synchronization of these representations would be provided by tooling and
+// background services.
+message ApiSpec {
+ option (google.api.resource) = {
+ type: "apigeeregistry.googleapis.com/ApiSpec"
+ pattern: "projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}"
+ };
+
+ // Resource name.
+ string name = 1;
+
+ // A possibly-hierarchical name used to refer to the spec from other specs.
+ string filename = 2;
+
+ // A detailed description.
+ string description = 3;
+
+ // Output only. Immutable. The revision ID of the spec.
+ // A new revision is committed whenever the spec contents are changed.
+ // The format is an 8-character hexadecimal string.
+ string revision_id = 4 [
+ (google.api.field_behavior) = IMMUTABLE,
+ (google.api.field_behavior) = OUTPUT_ONLY
+ ];
+
+ // Output only. Creation timestamp; when the spec resource was created.
+ google.protobuf.Timestamp create_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Revision creation timestamp; when the represented revision was created.
+ google.protobuf.Timestamp revision_create_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Last update timestamp: when the represented revision was last modified.
+ google.protobuf.Timestamp revision_update_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // A style (format) descriptor for this spec that is specified as a Media Type
+ // (https://en.wikipedia.org/wiki/Media_type). Possible values include
+ // `application/vnd.apigee.proto`, `application/vnd.apigee.openapi`, and
+ // `application/vnd.apigee.graphql`, with possible suffixes representing
+ // compression types. These hypothetical names are defined in the vendor tree
+ // defined in RFC6838 (https://tools.ietf.org/html/rfc6838) and are not final.
+ // Content types can specify compression. Currently only GZip compression is
+ // supported (indicated with "+gzip").
+ string mime_type = 8;
+
+ // Output only. The size of the spec file in bytes. If the spec is gzipped, this is the
+ // size of the uncompressed spec.
+ int32 size_bytes = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. A SHA-256 hash of the spec's contents. If the spec is gzipped, this is
+ // the hash of the uncompressed spec.
+ string hash = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The original source URI of the spec (if one exists).
+ // This is an external location that can be used for reference purposes
+ // but which may not be authoritative since this external resource may
+ // change after the spec is retrieved.
+ string source_uri = 11;
+
+ // Input only. The contents of the spec.
+ // Provided by API callers when specs are created or updated.
+ // To access the contents of a spec, use GetApiSpecContents.
+ bytes contents = 12 [(google.api.field_behavior) = INPUT_ONLY];
+
+ // Labels attach identifying metadata to resources. Identifying metadata can
+ // be used to filter list operations.
+ //
+ // Label keys and values can be no longer than 64 characters
+ // (Unicode codepoints), can only contain lowercase letters, numeric
+ // characters, underscores and dashes. International characters are allowed.
+ // No more than 64 user labels can be associated with one resource (System
+ // labels are excluded).
+ //
+ // See https://goo.gl/xmQnxf for more information and examples of labels.
+ // System reserved label keys are prefixed with
+ // `apigeeregistry.googleapis.com/` and cannot be changed.
+ map labels = 14;
+
+ // Annotations attach non-identifying metadata to resources.
+ //
+ // Annotation keys and values are less restricted than those of labels, but
+ // should be generally used for small values of broad interest. Larger, topic-
+ // specific metadata should be stored in Artifacts.
+ map annotations = 15;
+}
+
+// Describes a service running at particular address that
+// provides a particular version of an API. ApiDeployments have revisions which
+// correspond to different configurations of a single deployment in time.
+// Revision identifiers should be updated whenever the served API spec or
+// endpoint address changes.
+message ApiDeployment {
+ option (google.api.resource) = {
+ type: "apigeeregistry.googleapis.com/ApiDeployment"
+ pattern: "projects/{project}/locations/{location}/apis/{api}/deployments/{deployment}"
+ };
+
+ // Resource name.
+ string name = 1;
+
+ // Human-meaningful name.
+ string display_name = 2;
+
+ // A detailed description.
+ string description = 3;
+
+ // Output only. Immutable. The revision ID of the deployment.
+ // A new revision is committed whenever the deployment contents are changed.
+ // The format is an 8-character hexadecimal string.
+ string revision_id = 4 [
+ (google.api.field_behavior) = IMMUTABLE,
+ (google.api.field_behavior) = OUTPUT_ONLY
+ ];
+
+ // Output only. Creation timestamp; when the deployment resource was created.
+ google.protobuf.Timestamp create_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Revision creation timestamp; when the represented revision was created.
+ google.protobuf.Timestamp revision_create_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Last update timestamp: when the represented revision was last modified.
+ google.protobuf.Timestamp revision_update_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The full resource name (including revision ID) of the spec of the API being
+ // served by the deployment. Changes to this value will update the revision.
+ // Format: `apis/{api}/deployments/{deployment}`
+ string api_spec_revision = 8 [(google.api.resource_reference) = {
+ type: "apigeeregistry.googleapis.com/ApiSpec"
+ }];
+
+ // The address where the deployment is serving. Changes to this value will
+ // update the revision.
+ string endpoint_uri = 9;
+
+ // The address of the external channel of the API (e.g., the Developer
+ // Portal). Changes to this value will not affect the revision.
+ string external_channel_uri = 10;
+
+ // Text briefly identifying the intended audience of the API. Changes to this
+ // value will not affect the revision.
+ string intended_audience = 11;
+
+ // Text briefly describing how to access the endpoint. Changes to this value
+ // will not affect the revision.
+ string access_guidance = 12;
+
+ // Labels attach identifying metadata to resources. Identifying metadata can
+ // be used to filter list operations.
+ //
+ // Label keys and values can be no longer than 64 characters
+ // (Unicode codepoints), can only contain lowercase letters, numeric
+ // characters, underscores and dashes. International characters are allowed.
+ // No more than 64 user labels can be associated with one resource (System
+ // labels are excluded).
+ //
+ // See https://goo.gl/xmQnxf for more information and examples of labels.
+ // System reserved label keys are prefixed with
+ // `apigeeregistry.googleapis.com/` and cannot be changed.
+ map labels = 14;
+
+ // Annotations attach non-identifying metadata to resources.
+ //
+ // Annotation keys and values are less restricted than those of labels, but
+ // should be generally used for small values of broad interest. Larger, topic-
+ // specific metadata should be stored in Artifacts.
+ map annotations = 15;
+}
+
+// Artifacts of resources. Artifacts are unique (single-value) per resource
+// and are used to store metadata that is too large or numerous to be stored
+// directly on the resource. Since artifacts are stored separately from parent
+// resources, they should generally be used for metadata that is needed
+// infrequently, i.e., not for display in primary views of the resource but
+// perhaps displayed or downloaded upon request. The `ListArtifacts` method
+// allows artifacts to be quickly enumerated and checked for presence without
+// downloading their (potentially-large) contents.
+message Artifact {
+ option (google.api.resource) = {
+ type: "apigeeregistry.googleapis.com/Artifact"
+ pattern: "projects/{project}/locations/{location}/artifacts/{artifact}"
+ pattern: "projects/{project}/locations/{location}/apis/{api}/artifacts/{artifact}"
+ pattern: "projects/{project}/locations/{location}/apis/{api}/versions/{version}/artifacts/{artifact}"
+ pattern: "projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}/artifacts/{artifact}"
+ pattern: "projects/{project}/locations/{location}/apis/{api}/deployments/{deployment}/artifacts/{artifact}"
+ };
+
+ // Resource name.
+ string name = 1;
+
+ // Output only. Creation timestamp.
+ google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Last update timestamp.
+ google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // A content type specifier for the artifact.
+ // Content type specifiers are Media Types
+ // (https://en.wikipedia.org/wiki/Media_type) with a possible "schema"
+ // parameter that specifies a schema for the stored information.
+ // Content types can specify compression. Currently only GZip compression is
+ // supported (indicated with "+gzip").
+ string mime_type = 4;
+
+ // Output only. The size of the artifact in bytes. If the artifact is gzipped, this is
+ // the size of the uncompressed artifact.
+ int32 size_bytes = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. A SHA-256 hash of the artifact's contents. If the artifact is gzipped,
+ // this is the hash of the uncompressed artifact.
+ string hash = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Input only. The contents of the artifact.
+ // Provided by API callers when artifacts are created or replaced.
+ // To access the contents of an artifact, use GetArtifactContents.
+ bytes contents = 7 [(google.api.field_behavior) = INPUT_ONLY];
+}
diff --git a/packages/google-cloud-apigeeregistry/protos/google/cloud/apigeeregistry/v1/registry_service.proto b/packages/google-cloud-apigeeregistry/protos/google/cloud/apigeeregistry/v1/registry_service.proto
new file mode 100644
index 00000000000..041796be41f
--- /dev/null
+++ b/packages/google-cloud-apigeeregistry/protos/google/cloud/apigeeregistry/v1/registry_service.proto
@@ -0,0 +1,1133 @@
+// 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
+//
+// 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.apigeeregistry.v1;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/httpbody.proto";
+import "google/api/resource.proto";
+import "google/cloud/apigeeregistry/v1/registry_models.proto";
+import "google/protobuf/empty.proto";
+import "google/protobuf/field_mask.proto";
+
+option csharp_namespace = "Google.Cloud.ApigeeRegistry.V1";
+option go_package = "cloud.google.com/go/apigeeregistry/apiv1/apigeeregistrypb;apigeeregistrypb";
+option java_multiple_files = true;
+option java_outer_classname = "RegistryServiceProto";
+option java_package = "com.google.cloud.apigeeregistry.v1";
+option php_namespace = "Google\\Cloud\\ApigeeRegistry\\V1";
+option ruby_package = "Google::Cloud::ApigeeRegistry::V1";
+
+// The Registry service allows teams to manage descriptions of APIs.
+service Registry {
+ option (google.api.default_host) = "apigeeregistry.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
+
+ // Returns matching APIs.
+ rpc ListApis(ListApisRequest) returns (ListApisResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/apis"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Returns a specified API.
+ rpc GetApi(GetApiRequest) returns (Api) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/apis/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a specified API.
+ rpc CreateApi(CreateApiRequest) returns (Api) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/apis"
+ body: "api"
+ };
+ option (google.api.method_signature) = "parent,api,api_id";
+ }
+
+ // Used to modify a specified API.
+ rpc UpdateApi(UpdateApiRequest) returns (Api) {
+ option (google.api.http) = {
+ patch: "/v1/{api.name=projects/*/locations/*/apis/*}"
+ body: "api"
+ };
+ option (google.api.method_signature) = "api,update_mask";
+ }
+
+ // Removes a specified API and all of the resources that it
+ // owns.
+ rpc DeleteApi(DeleteApiRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/apis/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Returns matching versions.
+ rpc ListApiVersions(ListApiVersionsRequest) returns (ListApiVersionsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*/apis/*}/versions"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Returns a specified version.
+ rpc GetApiVersion(GetApiVersionRequest) returns (ApiVersion) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/apis/*/versions/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a specified version.
+ rpc CreateApiVersion(CreateApiVersionRequest) returns (ApiVersion) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*/apis/*}/versions"
+ body: "api_version"
+ };
+ option (google.api.method_signature) = "parent,api_version,api_version_id";
+ }
+
+ // Used to modify a specified version.
+ rpc UpdateApiVersion(UpdateApiVersionRequest) returns (ApiVersion) {
+ option (google.api.http) = {
+ patch: "/v1/{api_version.name=projects/*/locations/*/apis/*/versions/*}"
+ body: "api_version"
+ };
+ option (google.api.method_signature) = "api_version,update_mask";
+ }
+
+ // Removes a specified version and all of the resources that
+ // it owns.
+ rpc DeleteApiVersion(DeleteApiVersionRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/apis/*/versions/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Returns matching specs.
+ rpc ListApiSpecs(ListApiSpecsRequest) returns (ListApiSpecsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*/apis/*/versions/*}/specs"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Returns a specified spec.
+ rpc GetApiSpec(GetApiSpecRequest) returns (ApiSpec) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Returns the contents of a specified spec.
+ // If specs are stored with GZip compression, the default behavior
+ // is to return the spec uncompressed (the mime_type response field
+ // indicates the exact format returned).
+ rpc GetApiSpecContents(GetApiSpecContentsRequest) returns (google.api.HttpBody) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}:getContents"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a specified spec.
+ rpc CreateApiSpec(CreateApiSpecRequest) returns (ApiSpec) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*/apis/*/versions/*}/specs"
+ body: "api_spec"
+ };
+ option (google.api.method_signature) = "parent,api_spec,api_spec_id";
+ }
+
+ // Used to modify a specified spec.
+ rpc UpdateApiSpec(UpdateApiSpecRequest) returns (ApiSpec) {
+ option (google.api.http) = {
+ patch: "/v1/{api_spec.name=projects/*/locations/*/apis/*/versions/*/specs/*}"
+ body: "api_spec"
+ };
+ option (google.api.method_signature) = "api_spec,update_mask";
+ }
+
+ // Removes a specified spec, all revisions, and all child
+ // resources (e.g., artifacts).
+ rpc DeleteApiSpec(DeleteApiSpecRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Adds a tag to a specified revision of a spec.
+ rpc TagApiSpecRevision(TagApiSpecRevisionRequest) returns (ApiSpec) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}:tagRevision"
+ body: "*"
+ };
+ }
+
+ // Lists all revisions of a spec.
+ // Revisions are returned in descending order of revision creation time.
+ rpc ListApiSpecRevisions(ListApiSpecRevisionsRequest) returns (ListApiSpecRevisionsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}:listRevisions"
+ };
+ }
+
+ // Sets the current revision to a specified prior revision.
+ // Note that this creates a new revision with a new revision ID.
+ rpc RollbackApiSpec(RollbackApiSpecRequest) returns (ApiSpec) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}:rollback"
+ body: "*"
+ };
+ }
+
+ // Deletes a revision of a spec.
+ rpc DeleteApiSpecRevision(DeleteApiSpecRevisionRequest) returns (ApiSpec) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}:deleteRevision"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Returns matching deployments.
+ rpc ListApiDeployments(ListApiDeploymentsRequest) returns (ListApiDeploymentsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*/apis/*}/deployments"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Returns a specified deployment.
+ rpc GetApiDeployment(GetApiDeploymentRequest) returns (ApiDeployment) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/apis/*/deployments/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a specified deployment.
+ rpc CreateApiDeployment(CreateApiDeploymentRequest) returns (ApiDeployment) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*/apis/*}/deployments"
+ body: "api_deployment"
+ };
+ option (google.api.method_signature) = "parent,api_deployment,api_deployment_id";
+ }
+
+ // Used to modify a specified deployment.
+ rpc UpdateApiDeployment(UpdateApiDeploymentRequest) returns (ApiDeployment) {
+ option (google.api.http) = {
+ patch: "/v1/{api_deployment.name=projects/*/locations/*/apis/*/deployments/*}"
+ body: "api_deployment"
+ };
+ option (google.api.method_signature) = "api_deployment,update_mask";
+ }
+
+ // Removes a specified deployment, all revisions, and all
+ // child resources (e.g., artifacts).
+ rpc DeleteApiDeployment(DeleteApiDeploymentRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/apis/*/deployments/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Adds a tag to a specified revision of a
+ // deployment.
+ rpc TagApiDeploymentRevision(TagApiDeploymentRevisionRequest) returns (ApiDeployment) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/locations/*/apis/*/deployments/*}:tagRevision"
+ body: "*"
+ };
+ }
+
+ // Lists all revisions of a deployment.
+ // Revisions are returned in descending order of revision creation time.
+ rpc ListApiDeploymentRevisions(ListApiDeploymentRevisionsRequest) returns (ListApiDeploymentRevisionsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/apis/*/deployments/*}:listRevisions"
+ };
+ }
+
+ // Sets the current revision to a specified prior
+ // revision. Note that this creates a new revision with a new revision ID.
+ rpc RollbackApiDeployment(RollbackApiDeploymentRequest) returns (ApiDeployment) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/locations/*/apis/*/deployments/*}:rollback"
+ body: "*"
+ };
+ }
+
+ // Deletes a revision of a deployment.
+ rpc DeleteApiDeploymentRevision(DeleteApiDeploymentRevisionRequest) returns (ApiDeployment) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/apis/*/deployments/*}:deleteRevision"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Returns matching artifacts.
+ rpc ListArtifacts(ListArtifactsRequest) returns (ListArtifactsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/artifacts"
+ additional_bindings {
+ get: "/v1/{parent=projects/*/locations/*/apis/*}/artifacts"
+ }
+ additional_bindings {
+ get: "/v1/{parent=projects/*/locations/*/apis/*/versions/*}/artifacts"
+ }
+ additional_bindings {
+ get: "/v1/{parent=projects/*/locations/*/apis/*/versions/*/specs/*}/artifacts"
+ }
+ additional_bindings {
+ get: "/v1/{parent=projects/*/locations/*/apis/*/deployments/*}/artifacts"
+ }
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Returns a specified artifact.
+ rpc GetArtifact(GetArtifactRequest) returns (Artifact) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/artifacts/*}"
+ additional_bindings {
+ get: "/v1/{name=projects/*/locations/*/apis/*/artifacts/*}"
+ }
+ additional_bindings {
+ get: "/v1/{name=projects/*/locations/*/apis/*/versions/*/artifacts/*}"
+ }
+ additional_bindings {
+ get: "/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*/artifacts/*}"
+ }
+ additional_bindings {
+ get: "/v1/{name=projects/*/locations/*/apis/*/deployments/*/artifacts/*}"
+ }
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Returns the contents of a specified artifact.
+ // If artifacts are stored with GZip compression, the default behavior
+ // is to return the artifact uncompressed (the mime_type response field
+ // indicates the exact format returned).
+ rpc GetArtifactContents(GetArtifactContentsRequest) returns (google.api.HttpBody) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/artifacts/*}:getContents"
+ additional_bindings {
+ get: "/v1/{name=projects/*/locations/*/apis/*/artifacts/*}:getContents"
+ }
+ additional_bindings {
+ get: "/v1/{name=projects/*/locations/*/apis/*/versions/*/artifacts/*}:getContents"
+ }
+ additional_bindings {
+ get: "/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*/artifacts/*}:getContents"
+ }
+ additional_bindings {
+ get: "/v1/{name=projects/*/locations/*/apis/*/deployments/*/artifacts/*}:getContents"
+ }
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a specified artifact.
+ rpc CreateArtifact(CreateArtifactRequest) returns (Artifact) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/artifacts"
+ body: "artifact"
+ additional_bindings {
+ post: "/v1/{parent=projects/*/locations/*/apis/*}/artifacts"
+ body: "artifact"
+ }
+ additional_bindings {
+ post: "/v1/{parent=projects/*/locations/*/apis/*/versions/*}/artifacts"
+ body: "artifact"
+ }
+ additional_bindings {
+ post: "/v1/{parent=projects/*/locations/*/apis/*/versions/*/specs/*}/artifacts"
+ body: "artifact"
+ }
+ additional_bindings {
+ post: "/v1/{parent=projects/*/locations/*/apis/*/deployments/*}/artifacts"
+ body: "artifact"
+ }
+ };
+ option (google.api.method_signature) = "parent,artifact,artifact_id";
+ }
+
+ // Used to replace a specified artifact.
+ rpc ReplaceArtifact(ReplaceArtifactRequest) returns (Artifact) {
+ option (google.api.http) = {
+ put: "/v1/{artifact.name=projects/*/locations/*/artifacts/*}"
+ body: "artifact"
+ additional_bindings {
+ put: "/v1/{artifact.name=projects/*/locations/*/apis/*/artifacts/*}"
+ body: "artifact"
+ }
+ additional_bindings {
+ put: "/v1/{artifact.name=projects/*/locations/*/apis/*/versions/*/artifacts/*}"
+ body: "artifact"
+ }
+ additional_bindings {
+ put: "/v1/{artifact.name=projects/*/locations/*/apis/*/versions/*/specs/*/artifacts/*}"
+ body: "artifact"
+ }
+ additional_bindings {
+ put: "/v1/{artifact.name=projects/*/locations/*/apis/*/deployments/*/artifacts/*}"
+ body: "artifact"
+ }
+ };
+ option (google.api.method_signature) = "artifact";
+ }
+
+ // Removes a specified artifact.
+ rpc DeleteArtifact(DeleteArtifactRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/artifacts/*}"
+ additional_bindings {
+ delete: "/v1/{name=projects/*/locations/*/apis/*/artifacts/*}"
+ }
+ additional_bindings {
+ delete: "/v1/{name=projects/*/locations/*/apis/*/versions/*/artifacts/*}"
+ }
+ additional_bindings {
+ delete: "/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*/artifacts/*}"
+ }
+ additional_bindings {
+ delete: "/v1/{name=projects/*/locations/*/apis/*/deployments/*/artifacts/*}"
+ }
+ };
+ option (google.api.method_signature) = "name";
+ }
+}
+
+// Request message for ListApis.
+message ListApisRequest {
+ // Required. The parent, which owns this collection of APIs.
+ // Format: `projects/*/locations/*`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "apigeeregistry.googleapis.com/Api"
+ }
+ ];
+
+ // The maximum number of APIs to return.
+ // The service may return fewer than this value.
+ // If unspecified, at most 50 values will be returned.
+ // The maximum is 1000; values above 1000 will be coerced to 1000.
+ int32 page_size = 2;
+
+ // A page token, received from a previous `ListApis` call.
+ // Provide this to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to `ListApis` must match
+ // the call that provided the page token.
+ string page_token = 3;
+
+ // An expression that can be used to filter the list. Filters use the Common
+ // Expression Language and can refer to all message fields.
+ string filter = 4;
+}
+
+// Response message for ListApis.
+message ListApisResponse {
+ // The APIs from the specified publisher.
+ repeated Api apis = 1;
+
+ // A token, which can be sent as `page_token` to retrieve the next page.
+ // If this field is omitted, there are no subsequent pages.
+ string next_page_token = 2;
+}
+
+// Request message for GetApi.
+message GetApiRequest {
+ // Required. The name of the API to retrieve.
+ // Format: `projects/*/locations/*/apis/*`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "apigeeregistry.googleapis.com/Api"
+ }
+ ];
+}
+
+// Request message for CreateApi.
+message CreateApiRequest {
+ // Required. The parent, which owns this collection of APIs.
+ // Format: `projects/*/locations/*`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "apigeeregistry.googleapis.com/Api"
+ }
+ ];
+
+ // Required. The API to create.
+ Api api = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The ID to use for the API, which will become the final component of
+ // the API's resource name.
+ //
+ // This value should be 4-63 characters, and valid characters
+ // are /[a-z][0-9]-/.
+ //
+ // Following AIP-162, IDs must not have the form of a UUID.
+ string api_id = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for UpdateApi.
+message UpdateApiRequest {
+ // Required. The API to update.
+ //
+ // The `name` field is used to identify the API to update.
+ // Format: `projects/*/locations/*/apis/*`
+ Api api = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The list of fields to be updated. If omitted, all fields are updated that
+ // are set in the request message (fields set to default values are ignored).
+ // If an asterisk "*" is specified, all fields are updated, including fields
+ // that are unspecified/default in the request.
+ google.protobuf.FieldMask update_mask = 2;
+
+ // If set to true, and the API is not found, a new API will be created.
+ // In this situation, `update_mask` is ignored.
+ bool allow_missing = 3;
+}
+
+// Request message for DeleteApi.
+message DeleteApiRequest {
+ // Required. The name of the API to delete.
+ // Format: `projects/*/locations/*/apis/*`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "apigeeregistry.googleapis.com/Api"
+ }
+ ];
+
+ // If set to true, any child resources will also be deleted.
+ // (Otherwise, the request will only work if there are no child resources.)
+ bool force = 2;
+}
+
+// Request message for ListApiVersions.
+message ListApiVersionsRequest {
+ // Required. The parent, which owns this collection of versions.
+ // Format: `projects/*/locations/*/apis/*`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "apigeeregistry.googleapis.com/ApiVersion"
+ }
+ ];
+
+ // The maximum number of versions to return.
+ // The service may return fewer than this value.
+ // If unspecified, at most 50 values will be returned.
+ // The maximum is 1000; values above 1000 will be coerced to 1000.
+ int32 page_size = 2;
+
+ // A page token, received from a previous `ListApiVersions` call.
+ // Provide this to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to `ListApiVersions` must
+ // match the call that provided the page token.
+ string page_token = 3;
+
+ // An expression that can be used to filter the list. Filters use the Common
+ // Expression Language and can refer to all message fields.
+ string filter = 4;
+}
+
+// Response message for ListApiVersions.
+message ListApiVersionsResponse {
+ // The versions from the specified publisher.
+ repeated ApiVersion api_versions = 1;
+
+ // A token, which can be sent as `page_token` to retrieve the next page.
+ // If this field is omitted, there are no subsequent pages.
+ string next_page_token = 2;
+}
+
+// Request message for GetApiVersion.
+message GetApiVersionRequest {
+ // Required. The name of the version to retrieve.
+ // Format: `projects/*/locations/*/apis/*/versions/*`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "apigeeregistry.googleapis.com/ApiVersion"
+ }
+ ];
+}
+
+// Request message for CreateApiVersion.
+message CreateApiVersionRequest {
+ // Required. The parent, which owns this collection of versions.
+ // Format: `projects/*/locations/*/apis/*`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "apigeeregistry.googleapis.com/ApiVersion"
+ }
+ ];
+
+ // Required. The version to create.
+ ApiVersion api_version = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The ID to use for the version, which will become the final component of
+ // the version's resource name.
+ //
+ // This value should be 1-63 characters, and valid characters
+ // are /[a-z][0-9]-/.
+ //
+ // Following AIP-162, IDs must not have the form of a UUID.
+ string api_version_id = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for UpdateApiVersion.
+message UpdateApiVersionRequest {
+ // Required. The version to update.
+ //
+ // The `name` field is used to identify the version to update.
+ // Format: `projects/*/locations/*/apis/*/versions/*`
+ ApiVersion api_version = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The list of fields to be updated. If omitted, all fields are updated that
+ // are set in the request message (fields set to default values are ignored).
+ // If an asterisk "*" is specified, all fields are updated, including fields
+ // that are unspecified/default in the request.
+ google.protobuf.FieldMask update_mask = 2;
+
+ // If set to true, and the version is not found, a new version will be
+ // created. In this situation, `update_mask` is ignored.
+ bool allow_missing = 3;
+}
+
+// Request message for DeleteApiVersion.
+message DeleteApiVersionRequest {
+ // Required. The name of the version to delete.
+ // Format: `projects/*/locations/*/apis/*/versions/*`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "apigeeregistry.googleapis.com/ApiVersion"
+ }
+ ];
+
+ // If set to true, any child resources will also be deleted.
+ // (Otherwise, the request will only work if there are no child resources.)
+ bool force = 2;
+}
+
+// Request message for ListApiSpecs.
+message ListApiSpecsRequest {
+ // Required. The parent, which owns this collection of specs.
+ // Format: `projects/*/locations/*/apis/*/versions/*`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "apigeeregistry.googleapis.com/ApiSpec"
+ }
+ ];
+
+ // The maximum number of specs to return.
+ // The service may return fewer than this value.
+ // If unspecified, at most 50 values will be returned.
+ // The maximum is 1000; values above 1000 will be coerced to 1000.
+ int32 page_size = 2;
+
+ // A page token, received from a previous `ListApiSpecs` call.
+ // Provide this to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to `ListApiSpecs` must match
+ // the call that provided the page token.
+ string page_token = 3;
+
+ // An expression that can be used to filter the list. Filters use the Common
+ // Expression Language and can refer to all message fields except contents.
+ string filter = 4;
+}
+
+// Response message for ListApiSpecs.
+message ListApiSpecsResponse {
+ // The specs from the specified publisher.
+ repeated ApiSpec api_specs = 1;
+
+ // A token, which can be sent as `page_token` to retrieve the next page.
+ // If this field is omitted, there are no subsequent pages.
+ string next_page_token = 2;
+}
+
+// Request message for GetApiSpec.
+message GetApiSpecRequest {
+ // Required. The name of the spec to retrieve.
+ // Format: `projects/*/locations/*/apis/*/versions/*/specs/*`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "apigeeregistry.googleapis.com/ApiSpec"
+ }
+ ];
+}
+
+// Request message for GetApiSpecContents.
+message GetApiSpecContentsRequest {
+ // Required. The name of the spec whose contents should be retrieved.
+ // Format: `projects/*/locations/*/apis/*/versions/*/specs/*`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "apigeeregistry.googleapis.com/ApiSpec"
+ }
+ ];
+}
+
+// Request message for CreateApiSpec.
+message CreateApiSpecRequest {
+ // Required. The parent, which owns this collection of specs.
+ // Format: `projects/*/locations/*/apis/*/versions/*`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "apigeeregistry.googleapis.com/ApiSpec"
+ }
+ ];
+
+ // Required. The spec to create.
+ ApiSpec api_spec = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The ID to use for the spec, which will become the final component of
+ // the spec's resource name.
+ //
+ // This value should be 4-63 characters, and valid characters
+ // are /[a-z][0-9]-/.
+ //
+ // Following AIP-162, IDs must not have the form of a UUID.
+ string api_spec_id = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for UpdateApiSpec.
+message UpdateApiSpecRequest {
+ // Required. The spec to update.
+ //
+ // The `name` field is used to identify the spec to update.
+ // Format: `projects/*/locations/*/apis/*/versions/*/specs/*`
+ ApiSpec api_spec = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The list of fields to be updated. If omitted, all fields are updated that
+ // are set in the request message (fields set to default values are ignored).
+ // If an asterisk "*" is specified, all fields are updated, including fields
+ // that are unspecified/default in the request.
+ google.protobuf.FieldMask update_mask = 2;
+
+ // If set to true, and the spec is not found, a new spec will be created.
+ // In this situation, `update_mask` is ignored.
+ bool allow_missing = 3;
+}
+
+// Request message for DeleteApiSpec.
+message DeleteApiSpecRequest {
+ // Required. The name of the spec to delete.
+ // Format: `projects/*/locations/*/apis/*/versions/*/specs/*`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "apigeeregistry.googleapis.com/ApiSpec"
+ }
+ ];
+
+ // If set to true, any child resources will also be deleted.
+ // (Otherwise, the request will only work if there are no child resources.)
+ bool force = 2;
+}
+
+// Request message for TagApiSpecRevision.
+message TagApiSpecRevisionRequest {
+ // Required. The name of the spec to be tagged, including the revision ID.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "apigeeregistry.googleapis.com/ApiSpec"
+ }
+ ];
+
+ // Required. The tag to apply.
+ // The tag should be at most 40 characters, and match `[a-z][a-z0-9-]{3,39}`.
+ string tag = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for ListApiSpecRevisions.
+message ListApiSpecRevisionsRequest {
+ // Required. The name of the spec to list revisions for.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "apigeeregistry.googleapis.com/ApiSpec"
+ }
+ ];
+
+ // The maximum number of revisions to return per page.
+ int32 page_size = 2;
+
+ // The page token, received from a previous ListApiSpecRevisions call.
+ // Provide this to retrieve the subsequent page.
+ string page_token = 3;
+}
+
+// Response message for ListApiSpecRevisionsResponse.
+message ListApiSpecRevisionsResponse {
+ // The revisions of the spec.
+ repeated ApiSpec api_specs = 1;
+
+ // A token that can be sent as `page_token` to retrieve the next page.
+ // If this field is omitted, there are no subsequent pages.
+ string next_page_token = 2;
+}
+
+// Request message for RollbackApiSpec.
+message RollbackApiSpecRequest {
+ // Required. The spec being rolled back.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "apigeeregistry.googleapis.com/ApiSpec"
+ }
+ ];
+
+ // Required. The revision ID to roll back to.
+ // It must be a revision of the same spec.
+ //
+ // Example: `c7cfa2a8`
+ string revision_id = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for DeleteApiSpecRevision.
+message DeleteApiSpecRevisionRequest {
+ // Required. The name of the spec revision to be deleted,
+ // with a revision ID explicitly included.
+ //
+ // Example:
+ // `projects/sample/locations/global/apis/petstore/versions/1.0.0/specs/openapi.yaml@c7cfa2a8`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "apigeeregistry.googleapis.com/ApiSpec"
+ }
+ ];
+}
+
+// Request message for ListApiDeployments.
+message ListApiDeploymentsRequest {
+ // Required. The parent, which owns this collection of deployments.
+ // Format: `projects/*/locations/*/apis/*`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "apigeeregistry.googleapis.com/ApiDeployment"
+ }
+ ];
+
+ // The maximum number of deployments to return.
+ // The service may return fewer than this value.
+ // If unspecified, at most 50 values will be returned.
+ // The maximum is 1000; values above 1000 will be coerced to 1000.
+ int32 page_size = 2;
+
+ // A page token, received from a previous `ListApiDeployments` call.
+ // Provide this to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to `ListApiDeployments` must
+ // match the call that provided the page token.
+ string page_token = 3;
+
+ // An expression that can be used to filter the list. Filters use the Common
+ // Expression Language and can refer to all message fields.
+ string filter = 4;
+}
+
+// Response message for ListApiDeployments.
+message ListApiDeploymentsResponse {
+ // The deployments from the specified publisher.
+ repeated ApiDeployment api_deployments = 1;
+
+ // A token, which can be sent as `page_token` to retrieve the next page.
+ // If this field is omitted, there are no subsequent pages.
+ string next_page_token = 2;
+}
+
+// Request message for GetApiDeployment.
+message GetApiDeploymentRequest {
+ // Required. The name of the deployment to retrieve.
+ // Format: `projects/*/locations/*/apis/*/deployments/*`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "apigeeregistry.googleapis.com/ApiDeployment"
+ }
+ ];
+}
+
+// Request message for CreateApiDeployment.
+message CreateApiDeploymentRequest {
+ // Required. The parent, which owns this collection of deployments.
+ // Format: `projects/*/locations/*/apis/*`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "apigeeregistry.googleapis.com/ApiDeployment"
+ }
+ ];
+
+ // Required. The deployment to create.
+ ApiDeployment api_deployment = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The ID to use for the deployment, which will become the final component of
+ // the deployment's resource name.
+ //
+ // This value should be 4-63 characters, and valid characters
+ // are /[a-z][0-9]-/.
+ //
+ // Following AIP-162, IDs must not have the form of a UUID.
+ string api_deployment_id = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for UpdateApiDeployment.
+message UpdateApiDeploymentRequest {
+ // Required. The deployment to update.
+ //
+ // The `name` field is used to identify the deployment to update.
+ // Format: `projects/*/locations/*/apis/*/deployments/*`
+ ApiDeployment api_deployment = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The list of fields to be updated. If omitted, all fields are updated that
+ // are set in the request message (fields set to default values are ignored).
+ // If an asterisk "*" is specified, all fields are updated, including fields
+ // that are unspecified/default in the request.
+ google.protobuf.FieldMask update_mask = 2;
+
+ // If set to true, and the deployment is not found, a new deployment will be
+ // created. In this situation, `update_mask` is ignored.
+ bool allow_missing = 3;
+}
+
+// Request message for DeleteApiDeployment.
+message DeleteApiDeploymentRequest {
+ // Required. The name of the deployment to delete.
+ // Format: `projects/*/locations/*/apis/*/deployments/*`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "apigeeregistry.googleapis.com/ApiDeployment"
+ }
+ ];
+
+ // If set to true, any child resources will also be deleted.
+ // (Otherwise, the request will only work if there are no child resources.)
+ bool force = 2;
+}
+
+// Request message for TagApiDeploymentRevision.
+message TagApiDeploymentRevisionRequest {
+ // Required. The name of the deployment to be tagged, including the revision ID.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "apigeeregistry.googleapis.com/ApiDeployment"
+ }
+ ];
+
+ // Required. The tag to apply.
+ // The tag should be at most 40 characters, and match `[a-z][a-z0-9-]{3,39}`.
+ string tag = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for ListApiDeploymentRevisions.
+message ListApiDeploymentRevisionsRequest {
+ // Required. The name of the deployment to list revisions for.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "apigeeregistry.googleapis.com/ApiDeployment"
+ }
+ ];
+
+ // The maximum number of revisions to return per page.
+ int32 page_size = 2;
+
+ // The page token, received from a previous ListApiDeploymentRevisions call.
+ // Provide this to retrieve the subsequent page.
+ string page_token = 3;
+}
+
+// Response message for ListApiDeploymentRevisionsResponse.
+message ListApiDeploymentRevisionsResponse {
+ // The revisions of the deployment.
+ repeated ApiDeployment api_deployments = 1;
+
+ // A token that can be sent as `page_token` to retrieve the next page.
+ // If this field is omitted, there are no subsequent pages.
+ string next_page_token = 2;
+}
+
+// Request message for RollbackApiDeployment.
+message RollbackApiDeploymentRequest {
+ // Required. The deployment being rolled back.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "apigeeregistry.googleapis.com/ApiDeployment"
+ }
+ ];
+
+ // Required. The revision ID to roll back to.
+ // It must be a revision of the same deployment.
+ //
+ // Example: `c7cfa2a8`
+ string revision_id = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for DeleteApiDeploymentRevision.
+message DeleteApiDeploymentRevisionRequest {
+ // Required. The name of the deployment revision to be deleted,
+ // with a revision ID explicitly included.
+ //
+ // Example:
+ // `projects/sample/locations/global/apis/petstore/deployments/prod@c7cfa2a8`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "apigeeregistry.googleapis.com/ApiDeployment"
+ }
+ ];
+}
+
+// Request message for ListArtifacts.
+message ListArtifactsRequest {
+ // Required. The parent, which owns this collection of artifacts.
+ // Format: `{parent}`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "apigeeregistry.googleapis.com/Artifact"
+ }
+ ];
+
+ // The maximum number of artifacts to return.
+ // The service may return fewer than this value.
+ // If unspecified, at most 50 values will be returned.
+ // The maximum is 1000; values above 1000 will be coerced to 1000.
+ int32 page_size = 2;
+
+ // A page token, received from a previous `ListArtifacts` call.
+ // Provide this to retrieve the subsequent page.
+ //
+ // When paginating, all other parameters provided to `ListArtifacts` must
+ // match the call that provided the page token.
+ string page_token = 3;
+
+ // An expression that can be used to filter the list. Filters use the Common
+ // Expression Language and can refer to all message fields except contents.
+ string filter = 4;
+}
+
+// Response message for ListArtifacts.
+message ListArtifactsResponse {
+ // The artifacts from the specified publisher.
+ repeated Artifact artifacts = 1;
+
+ // A token, which can be sent as `page_token` to retrieve the next page.
+ // If this field is omitted, there are no subsequent pages.
+ string next_page_token = 2;
+}
+
+// Request message for GetArtifact.
+message GetArtifactRequest {
+ // Required. The name of the artifact to retrieve.
+ // Format: `{parent}/artifacts/*`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "apigeeregistry.googleapis.com/Artifact"
+ }
+ ];
+}
+
+// Request message for GetArtifactContents.
+message GetArtifactContentsRequest {
+ // Required. The name of the artifact whose contents should be retrieved.
+ // Format: `{parent}/artifacts/*`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "apigeeregistry.googleapis.com/Artifact"
+ }
+ ];
+}
+
+// Request message for CreateArtifact.
+message CreateArtifactRequest {
+ // Required. The parent, which owns this collection of artifacts.
+ // Format: `{parent}`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "apigeeregistry.googleapis.com/Artifact"
+ }
+ ];
+
+ // Required. The artifact to create.
+ Artifact artifact = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The ID to use for the artifact, which will become the final component of
+ // the artifact's resource name.
+ //
+ // This value should be 4-63 characters, and valid characters
+ // are /[a-z][0-9]-/.
+ //
+ // Following AIP-162, IDs must not have the form of a UUID.
+ string artifact_id = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for ReplaceArtifact.
+message ReplaceArtifactRequest {
+ // Required. The artifact to replace.
+ //
+ // The `name` field is used to identify the artifact to replace.
+ // Format: `{parent}/artifacts/*`
+ Artifact artifact = 1 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for DeleteArtifact.
+message DeleteArtifactRequest {
+ // Required. The name of the artifact to delete.
+ // Format: `{parent}/artifacts/*`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "apigeeregistry.googleapis.com/Artifact"
+ }
+ ];
+}
diff --git a/packages/google-cloud-apigeeregistry/protos/protos.d.ts b/packages/google-cloud-apigeeregistry/protos/protos.d.ts
new file mode 100644
index 00000000000..8a72b619b04
--- /dev/null
+++ b/packages/google-cloud-apigeeregistry/protos/protos.d.ts
@@ -0,0 +1,13878 @@
+// Copyright 2023 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 apigeeregistry. */
+ namespace apigeeregistry {
+
+ /** Namespace v1. */
+ namespace v1 {
+
+ /** Represents a Provisioning */
+ class Provisioning extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new Provisioning 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 Provisioning 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): Provisioning;
+
+ /**
+ * Calls CreateInstance.
+ * @param request CreateInstanceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createInstance(request: google.cloud.apigeeregistry.v1.ICreateInstanceRequest, callback: google.cloud.apigeeregistry.v1.Provisioning.CreateInstanceCallback): void;
+
+ /**
+ * Calls CreateInstance.
+ * @param request CreateInstanceRequest message or plain object
+ * @returns Promise
+ */
+ public createInstance(request: google.cloud.apigeeregistry.v1.ICreateInstanceRequest): Promise;
+
+ /**
+ * Calls DeleteInstance.
+ * @param request DeleteInstanceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteInstance(request: google.cloud.apigeeregistry.v1.IDeleteInstanceRequest, callback: google.cloud.apigeeregistry.v1.Provisioning.DeleteInstanceCallback): void;
+
+ /**
+ * Calls DeleteInstance.
+ * @param request DeleteInstanceRequest message or plain object
+ * @returns Promise
+ */
+ public deleteInstance(request: google.cloud.apigeeregistry.v1.IDeleteInstanceRequest): Promise;
+
+ /**
+ * Calls GetInstance.
+ * @param request GetInstanceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Instance
+ */
+ public getInstance(request: google.cloud.apigeeregistry.v1.IGetInstanceRequest, callback: google.cloud.apigeeregistry.v1.Provisioning.GetInstanceCallback): void;
+
+ /**
+ * Calls GetInstance.
+ * @param request GetInstanceRequest message or plain object
+ * @returns Promise
+ */
+ public getInstance(request: google.cloud.apigeeregistry.v1.IGetInstanceRequest): Promise;
+ }
+
+ namespace Provisioning {
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Provisioning|createInstance}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateInstanceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Provisioning|deleteInstance}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteInstanceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Provisioning|getInstance}.
+ * @param error Error, if any
+ * @param [response] Instance
+ */
+ type GetInstanceCallback = (error: (Error|null), response?: google.cloud.apigeeregistry.v1.Instance) => void;
+ }
+
+ /** Properties of a CreateInstanceRequest. */
+ interface ICreateInstanceRequest {
+
+ /** CreateInstanceRequest parent */
+ parent?: (string|null);
+
+ /** CreateInstanceRequest instanceId */
+ instanceId?: (string|null);
+
+ /** CreateInstanceRequest instance */
+ instance?: (google.cloud.apigeeregistry.v1.IInstance|null);
+ }
+
+ /** Represents a CreateInstanceRequest. */
+ class CreateInstanceRequest implements ICreateInstanceRequest {
+
+ /**
+ * Constructs a new CreateInstanceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.ICreateInstanceRequest);
+
+ /** CreateInstanceRequest parent. */
+ public parent: string;
+
+ /** CreateInstanceRequest instanceId. */
+ public instanceId: string;
+
+ /** CreateInstanceRequest instance. */
+ public instance?: (google.cloud.apigeeregistry.v1.IInstance|null);
+
+ /**
+ * Creates a new CreateInstanceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateInstanceRequest instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.ICreateInstanceRequest): google.cloud.apigeeregistry.v1.CreateInstanceRequest;
+
+ /**
+ * Encodes the specified CreateInstanceRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.CreateInstanceRequest.verify|verify} messages.
+ * @param message CreateInstanceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.ICreateInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.CreateInstanceRequest.verify|verify} messages.
+ * @param message CreateInstanceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.ICreateInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateInstanceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateInstanceRequest
+ * @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.apigeeregistry.v1.CreateInstanceRequest;
+
+ /**
+ * Decodes a CreateInstanceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateInstanceRequest
+ * @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.apigeeregistry.v1.CreateInstanceRequest;
+
+ /**
+ * Verifies a CreateInstanceRequest 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 CreateInstanceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateInstanceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.CreateInstanceRequest;
+
+ /**
+ * Creates a plain object from a CreateInstanceRequest message. Also converts values to other types if specified.
+ * @param message CreateInstanceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.CreateInstanceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateInstanceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateInstanceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteInstanceRequest. */
+ interface IDeleteInstanceRequest {
+
+ /** DeleteInstanceRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteInstanceRequest. */
+ class DeleteInstanceRequest implements IDeleteInstanceRequest {
+
+ /**
+ * Constructs a new DeleteInstanceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IDeleteInstanceRequest);
+
+ /** DeleteInstanceRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteInstanceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteInstanceRequest instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IDeleteInstanceRequest): google.cloud.apigeeregistry.v1.DeleteInstanceRequest;
+
+ /**
+ * Encodes the specified DeleteInstanceRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.DeleteInstanceRequest.verify|verify} messages.
+ * @param message DeleteInstanceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IDeleteInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.DeleteInstanceRequest.verify|verify} messages.
+ * @param message DeleteInstanceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IDeleteInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteInstanceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteInstanceRequest
+ * @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.apigeeregistry.v1.DeleteInstanceRequest;
+
+ /**
+ * Decodes a DeleteInstanceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteInstanceRequest
+ * @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.apigeeregistry.v1.DeleteInstanceRequest;
+
+ /**
+ * Verifies a DeleteInstanceRequest 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 DeleteInstanceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteInstanceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.DeleteInstanceRequest;
+
+ /**
+ * Creates a plain object from a DeleteInstanceRequest message. Also converts values to other types if specified.
+ * @param message DeleteInstanceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.DeleteInstanceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteInstanceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteInstanceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetInstanceRequest. */
+ interface IGetInstanceRequest {
+
+ /** GetInstanceRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetInstanceRequest. */
+ class GetInstanceRequest implements IGetInstanceRequest {
+
+ /**
+ * Constructs a new GetInstanceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IGetInstanceRequest);
+
+ /** GetInstanceRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetInstanceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetInstanceRequest instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IGetInstanceRequest): google.cloud.apigeeregistry.v1.GetInstanceRequest;
+
+ /**
+ * Encodes the specified GetInstanceRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.GetInstanceRequest.verify|verify} messages.
+ * @param message GetInstanceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IGetInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.GetInstanceRequest.verify|verify} messages.
+ * @param message GetInstanceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IGetInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetInstanceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetInstanceRequest
+ * @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.apigeeregistry.v1.GetInstanceRequest;
+
+ /**
+ * Decodes a GetInstanceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetInstanceRequest
+ * @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.apigeeregistry.v1.GetInstanceRequest;
+
+ /**
+ * Verifies a GetInstanceRequest 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 GetInstanceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetInstanceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.GetInstanceRequest;
+
+ /**
+ * Creates a plain object from a GetInstanceRequest message. Also converts values to other types if specified.
+ * @param message GetInstanceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.GetInstanceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetInstanceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetInstanceRequest
+ * @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 cancellationRequested */
+ cancellationRequested?: (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.apigeeregistry.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 cancellationRequested. */
+ public cancellationRequested: 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.apigeeregistry.v1.IOperationMetadata): google.cloud.apigeeregistry.v1.OperationMetadata;
+
+ /**
+ * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.apigeeregistry.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.apigeeregistry.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.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.apigeeregistry.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.apigeeregistry.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.apigeeregistry.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.apigeeregistry.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.apigeeregistry.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 an Instance. */
+ interface IInstance {
+
+ /** Instance name */
+ name?: (string|null);
+
+ /** Instance createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Instance updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Instance state */
+ state?: (google.cloud.apigeeregistry.v1.Instance.State|keyof typeof google.cloud.apigeeregistry.v1.Instance.State|null);
+
+ /** Instance stateMessage */
+ stateMessage?: (string|null);
+
+ /** Instance config */
+ config?: (google.cloud.apigeeregistry.v1.Instance.IConfig|null);
+ }
+
+ /** Represents an Instance. */
+ class Instance implements IInstance {
+
+ /**
+ * Constructs a new Instance.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IInstance);
+
+ /** Instance name. */
+ public name: string;
+
+ /** Instance createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Instance updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Instance state. */
+ public state: (google.cloud.apigeeregistry.v1.Instance.State|keyof typeof google.cloud.apigeeregistry.v1.Instance.State);
+
+ /** Instance stateMessage. */
+ public stateMessage: string;
+
+ /** Instance config. */
+ public config?: (google.cloud.apigeeregistry.v1.Instance.IConfig|null);
+
+ /**
+ * Creates a new Instance instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Instance instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IInstance): google.cloud.apigeeregistry.v1.Instance;
+
+ /**
+ * Encodes the specified Instance message. Does not implicitly {@link google.cloud.apigeeregistry.v1.Instance.verify|verify} messages.
+ * @param message Instance message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IInstance, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Instance message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.Instance.verify|verify} messages.
+ * @param message Instance message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IInstance, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Instance message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Instance
+ * @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.apigeeregistry.v1.Instance;
+
+ /**
+ * Decodes an Instance message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Instance
+ * @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.apigeeregistry.v1.Instance;
+
+ /**
+ * Verifies an Instance 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 Instance message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Instance
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.Instance;
+
+ /**
+ * Creates a plain object from an Instance message. Also converts values to other types if specified.
+ * @param message Instance
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.Instance, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Instance to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Instance
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Instance {
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ INACTIVE = 1,
+ CREATING = 2,
+ ACTIVE = 3,
+ UPDATING = 4,
+ DELETING = 5,
+ FAILED = 6
+ }
+
+ /** Properties of a Config. */
+ interface IConfig {
+
+ /** Config location */
+ location?: (string|null);
+
+ /** Config cmekKeyName */
+ cmekKeyName?: (string|null);
+ }
+
+ /** Represents a Config. */
+ class Config implements IConfig {
+
+ /**
+ * Constructs a new Config.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.Instance.IConfig);
+
+ /** Config location. */
+ public location: string;
+
+ /** Config cmekKeyName. */
+ public cmekKeyName: string;
+
+ /**
+ * Creates a new Config instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Config instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.Instance.IConfig): google.cloud.apigeeregistry.v1.Instance.Config;
+
+ /**
+ * Encodes the specified Config message. Does not implicitly {@link google.cloud.apigeeregistry.v1.Instance.Config.verify|verify} messages.
+ * @param message Config message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.Instance.IConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Config message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.Instance.Config.verify|verify} messages.
+ * @param message Config message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.Instance.IConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Config message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Config
+ * @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.apigeeregistry.v1.Instance.Config;
+
+ /**
+ * Decodes a Config message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Config
+ * @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.apigeeregistry.v1.Instance.Config;
+
+ /**
+ * Verifies a Config 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 Config message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Config
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.Instance.Config;
+
+ /**
+ * Creates a plain object from a Config message. Also converts values to other types if specified.
+ * @param message Config
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.Instance.Config, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Config to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Config
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an Api. */
+ interface IApi {
+
+ /** Api name */
+ name?: (string|null);
+
+ /** Api displayName */
+ displayName?: (string|null);
+
+ /** Api description */
+ description?: (string|null);
+
+ /** Api createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Api updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Api availability */
+ availability?: (string|null);
+
+ /** Api recommendedVersion */
+ recommendedVersion?: (string|null);
+
+ /** Api recommendedDeployment */
+ recommendedDeployment?: (string|null);
+
+ /** Api labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** Api annotations */
+ annotations?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents an Api. */
+ class Api implements IApi {
+
+ /**
+ * Constructs a new Api.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IApi);
+
+ /** Api name. */
+ public name: string;
+
+ /** Api displayName. */
+ public displayName: string;
+
+ /** Api description. */
+ public description: string;
+
+ /** Api createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Api updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Api availability. */
+ public availability: string;
+
+ /** Api recommendedVersion. */
+ public recommendedVersion: string;
+
+ /** Api recommendedDeployment. */
+ public recommendedDeployment: string;
+
+ /** Api labels. */
+ public labels: { [k: string]: string };
+
+ /** Api annotations. */
+ public annotations: { [k: string]: string };
+
+ /**
+ * Creates a new Api instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Api instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IApi): google.cloud.apigeeregistry.v1.Api;
+
+ /**
+ * Encodes the specified Api message. Does not implicitly {@link google.cloud.apigeeregistry.v1.Api.verify|verify} messages.
+ * @param message Api message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IApi, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Api message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.Api.verify|verify} messages.
+ * @param message Api message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IApi, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Api message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Api
+ * @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.apigeeregistry.v1.Api;
+
+ /**
+ * Decodes an Api message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Api
+ * @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.apigeeregistry.v1.Api;
+
+ /**
+ * Verifies an Api 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 Api message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Api
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.Api;
+
+ /**
+ * Creates a plain object from an Api message. Also converts values to other types if specified.
+ * @param message Api
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.Api, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Api to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Api
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ApiVersion. */
+ interface IApiVersion {
+
+ /** ApiVersion name */
+ name?: (string|null);
+
+ /** ApiVersion displayName */
+ displayName?: (string|null);
+
+ /** ApiVersion description */
+ description?: (string|null);
+
+ /** ApiVersion createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** ApiVersion updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** ApiVersion state */
+ state?: (string|null);
+
+ /** ApiVersion labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** ApiVersion annotations */
+ annotations?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents an ApiVersion. */
+ class ApiVersion implements IApiVersion {
+
+ /**
+ * Constructs a new ApiVersion.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IApiVersion);
+
+ /** ApiVersion name. */
+ public name: string;
+
+ /** ApiVersion displayName. */
+ public displayName: string;
+
+ /** ApiVersion description. */
+ public description: string;
+
+ /** ApiVersion createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** ApiVersion updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** ApiVersion state. */
+ public state: string;
+
+ /** ApiVersion labels. */
+ public labels: { [k: string]: string };
+
+ /** ApiVersion annotations. */
+ public annotations: { [k: string]: string };
+
+ /**
+ * Creates a new ApiVersion instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ApiVersion instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IApiVersion): google.cloud.apigeeregistry.v1.ApiVersion;
+
+ /**
+ * Encodes the specified ApiVersion message. Does not implicitly {@link google.cloud.apigeeregistry.v1.ApiVersion.verify|verify} messages.
+ * @param message ApiVersion message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IApiVersion, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ApiVersion message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.ApiVersion.verify|verify} messages.
+ * @param message ApiVersion message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IApiVersion, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ApiVersion message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ApiVersion
+ * @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.apigeeregistry.v1.ApiVersion;
+
+ /**
+ * Decodes an ApiVersion message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ApiVersion
+ * @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.apigeeregistry.v1.ApiVersion;
+
+ /**
+ * Verifies an ApiVersion 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 ApiVersion message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ApiVersion
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.ApiVersion;
+
+ /**
+ * Creates a plain object from an ApiVersion message. Also converts values to other types if specified.
+ * @param message ApiVersion
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.ApiVersion, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ApiVersion to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ApiVersion
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ApiSpec. */
+ interface IApiSpec {
+
+ /** ApiSpec name */
+ name?: (string|null);
+
+ /** ApiSpec filename */
+ filename?: (string|null);
+
+ /** ApiSpec description */
+ description?: (string|null);
+
+ /** ApiSpec revisionId */
+ revisionId?: (string|null);
+
+ /** ApiSpec createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** ApiSpec revisionCreateTime */
+ revisionCreateTime?: (google.protobuf.ITimestamp|null);
+
+ /** ApiSpec revisionUpdateTime */
+ revisionUpdateTime?: (google.protobuf.ITimestamp|null);
+
+ /** ApiSpec mimeType */
+ mimeType?: (string|null);
+
+ /** ApiSpec sizeBytes */
+ sizeBytes?: (number|null);
+
+ /** ApiSpec hash */
+ hash?: (string|null);
+
+ /** ApiSpec sourceUri */
+ sourceUri?: (string|null);
+
+ /** ApiSpec contents */
+ contents?: (Uint8Array|string|null);
+
+ /** ApiSpec labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** ApiSpec annotations */
+ annotations?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents an ApiSpec. */
+ class ApiSpec implements IApiSpec {
+
+ /**
+ * Constructs a new ApiSpec.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IApiSpec);
+
+ /** ApiSpec name. */
+ public name: string;
+
+ /** ApiSpec filename. */
+ public filename: string;
+
+ /** ApiSpec description. */
+ public description: string;
+
+ /** ApiSpec revisionId. */
+ public revisionId: string;
+
+ /** ApiSpec createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** ApiSpec revisionCreateTime. */
+ public revisionCreateTime?: (google.protobuf.ITimestamp|null);
+
+ /** ApiSpec revisionUpdateTime. */
+ public revisionUpdateTime?: (google.protobuf.ITimestamp|null);
+
+ /** ApiSpec mimeType. */
+ public mimeType: string;
+
+ /** ApiSpec sizeBytes. */
+ public sizeBytes: number;
+
+ /** ApiSpec hash. */
+ public hash: string;
+
+ /** ApiSpec sourceUri. */
+ public sourceUri: string;
+
+ /** ApiSpec contents. */
+ public contents: (Uint8Array|string);
+
+ /** ApiSpec labels. */
+ public labels: { [k: string]: string };
+
+ /** ApiSpec annotations. */
+ public annotations: { [k: string]: string };
+
+ /**
+ * Creates a new ApiSpec instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ApiSpec instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IApiSpec): google.cloud.apigeeregistry.v1.ApiSpec;
+
+ /**
+ * Encodes the specified ApiSpec message. Does not implicitly {@link google.cloud.apigeeregistry.v1.ApiSpec.verify|verify} messages.
+ * @param message ApiSpec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IApiSpec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ApiSpec message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.ApiSpec.verify|verify} messages.
+ * @param message ApiSpec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IApiSpec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ApiSpec message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ApiSpec
+ * @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.apigeeregistry.v1.ApiSpec;
+
+ /**
+ * Decodes an ApiSpec message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ApiSpec
+ * @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.apigeeregistry.v1.ApiSpec;
+
+ /**
+ * Verifies an ApiSpec 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 ApiSpec message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ApiSpec
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.ApiSpec;
+
+ /**
+ * Creates a plain object from an ApiSpec message. Also converts values to other types if specified.
+ * @param message ApiSpec
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.ApiSpec, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ApiSpec to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ApiSpec
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ApiDeployment. */
+ interface IApiDeployment {
+
+ /** ApiDeployment name */
+ name?: (string|null);
+
+ /** ApiDeployment displayName */
+ displayName?: (string|null);
+
+ /** ApiDeployment description */
+ description?: (string|null);
+
+ /** ApiDeployment revisionId */
+ revisionId?: (string|null);
+
+ /** ApiDeployment createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** ApiDeployment revisionCreateTime */
+ revisionCreateTime?: (google.protobuf.ITimestamp|null);
+
+ /** ApiDeployment revisionUpdateTime */
+ revisionUpdateTime?: (google.protobuf.ITimestamp|null);
+
+ /** ApiDeployment apiSpecRevision */
+ apiSpecRevision?: (string|null);
+
+ /** ApiDeployment endpointUri */
+ endpointUri?: (string|null);
+
+ /** ApiDeployment externalChannelUri */
+ externalChannelUri?: (string|null);
+
+ /** ApiDeployment intendedAudience */
+ intendedAudience?: (string|null);
+
+ /** ApiDeployment accessGuidance */
+ accessGuidance?: (string|null);
+
+ /** ApiDeployment labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** ApiDeployment annotations */
+ annotations?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents an ApiDeployment. */
+ class ApiDeployment implements IApiDeployment {
+
+ /**
+ * Constructs a new ApiDeployment.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IApiDeployment);
+
+ /** ApiDeployment name. */
+ public name: string;
+
+ /** ApiDeployment displayName. */
+ public displayName: string;
+
+ /** ApiDeployment description. */
+ public description: string;
+
+ /** ApiDeployment revisionId. */
+ public revisionId: string;
+
+ /** ApiDeployment createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** ApiDeployment revisionCreateTime. */
+ public revisionCreateTime?: (google.protobuf.ITimestamp|null);
+
+ /** ApiDeployment revisionUpdateTime. */
+ public revisionUpdateTime?: (google.protobuf.ITimestamp|null);
+
+ /** ApiDeployment apiSpecRevision. */
+ public apiSpecRevision: string;
+
+ /** ApiDeployment endpointUri. */
+ public endpointUri: string;
+
+ /** ApiDeployment externalChannelUri. */
+ public externalChannelUri: string;
+
+ /** ApiDeployment intendedAudience. */
+ public intendedAudience: string;
+
+ /** ApiDeployment accessGuidance. */
+ public accessGuidance: string;
+
+ /** ApiDeployment labels. */
+ public labels: { [k: string]: string };
+
+ /** ApiDeployment annotations. */
+ public annotations: { [k: string]: string };
+
+ /**
+ * Creates a new ApiDeployment instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ApiDeployment instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IApiDeployment): google.cloud.apigeeregistry.v1.ApiDeployment;
+
+ /**
+ * Encodes the specified ApiDeployment message. Does not implicitly {@link google.cloud.apigeeregistry.v1.ApiDeployment.verify|verify} messages.
+ * @param message ApiDeployment message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IApiDeployment, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ApiDeployment message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.ApiDeployment.verify|verify} messages.
+ * @param message ApiDeployment message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IApiDeployment, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ApiDeployment message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ApiDeployment
+ * @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.apigeeregistry.v1.ApiDeployment;
+
+ /**
+ * Decodes an ApiDeployment message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ApiDeployment
+ * @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.apigeeregistry.v1.ApiDeployment;
+
+ /**
+ * Verifies an ApiDeployment 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 ApiDeployment message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ApiDeployment
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.ApiDeployment;
+
+ /**
+ * Creates a plain object from an ApiDeployment message. Also converts values to other types if specified.
+ * @param message ApiDeployment
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.ApiDeployment, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ApiDeployment to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ApiDeployment
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Artifact. */
+ interface IArtifact {
+
+ /** Artifact name */
+ name?: (string|null);
+
+ /** Artifact createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Artifact updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Artifact mimeType */
+ mimeType?: (string|null);
+
+ /** Artifact sizeBytes */
+ sizeBytes?: (number|null);
+
+ /** Artifact hash */
+ hash?: (string|null);
+
+ /** Artifact contents */
+ contents?: (Uint8Array|string|null);
+ }
+
+ /** Represents an Artifact. */
+ class Artifact implements IArtifact {
+
+ /**
+ * Constructs a new Artifact.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IArtifact);
+
+ /** Artifact name. */
+ public name: string;
+
+ /** Artifact createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Artifact updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Artifact mimeType. */
+ public mimeType: string;
+
+ /** Artifact sizeBytes. */
+ public sizeBytes: number;
+
+ /** Artifact hash. */
+ public hash: string;
+
+ /** Artifact contents. */
+ public contents: (Uint8Array|string);
+
+ /**
+ * Creates a new Artifact instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Artifact instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IArtifact): google.cloud.apigeeregistry.v1.Artifact;
+
+ /**
+ * Encodes the specified Artifact message. Does not implicitly {@link google.cloud.apigeeregistry.v1.Artifact.verify|verify} messages.
+ * @param message Artifact message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IArtifact, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Artifact message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.Artifact.verify|verify} messages.
+ * @param message Artifact message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IArtifact, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Artifact message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Artifact
+ * @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.apigeeregistry.v1.Artifact;
+
+ /**
+ * Decodes an Artifact message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Artifact
+ * @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.apigeeregistry.v1.Artifact;
+
+ /**
+ * Verifies an Artifact 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 Artifact message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Artifact
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.Artifact;
+
+ /**
+ * Creates a plain object from an Artifact message. Also converts values to other types if specified.
+ * @param message Artifact
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.Artifact, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Artifact to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Artifact
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Represents a Registry */
+ class Registry extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new Registry 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 Registry 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): Registry;
+
+ /**
+ * Calls ListApis.
+ * @param request ListApisRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListApisResponse
+ */
+ public listApis(request: google.cloud.apigeeregistry.v1.IListApisRequest, callback: google.cloud.apigeeregistry.v1.Registry.ListApisCallback): void;
+
+ /**
+ * Calls ListApis.
+ * @param request ListApisRequest message or plain object
+ * @returns Promise
+ */
+ public listApis(request: google.cloud.apigeeregistry.v1.IListApisRequest): Promise;
+
+ /**
+ * Calls GetApi.
+ * @param request GetApiRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Api
+ */
+ public getApi(request: google.cloud.apigeeregistry.v1.IGetApiRequest, callback: google.cloud.apigeeregistry.v1.Registry.GetApiCallback): void;
+
+ /**
+ * Calls GetApi.
+ * @param request GetApiRequest message or plain object
+ * @returns Promise
+ */
+ public getApi(request: google.cloud.apigeeregistry.v1.IGetApiRequest): Promise;
+
+ /**
+ * Calls CreateApi.
+ * @param request CreateApiRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Api
+ */
+ public createApi(request: google.cloud.apigeeregistry.v1.ICreateApiRequest, callback: google.cloud.apigeeregistry.v1.Registry.CreateApiCallback): void;
+
+ /**
+ * Calls CreateApi.
+ * @param request CreateApiRequest message or plain object
+ * @returns Promise
+ */
+ public createApi(request: google.cloud.apigeeregistry.v1.ICreateApiRequest): Promise;
+
+ /**
+ * Calls UpdateApi.
+ * @param request UpdateApiRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Api
+ */
+ public updateApi(request: google.cloud.apigeeregistry.v1.IUpdateApiRequest, callback: google.cloud.apigeeregistry.v1.Registry.UpdateApiCallback): void;
+
+ /**
+ * Calls UpdateApi.
+ * @param request UpdateApiRequest message or plain object
+ * @returns Promise
+ */
+ public updateApi(request: google.cloud.apigeeregistry.v1.IUpdateApiRequest): Promise;
+
+ /**
+ * Calls DeleteApi.
+ * @param request DeleteApiRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteApi(request: google.cloud.apigeeregistry.v1.IDeleteApiRequest, callback: google.cloud.apigeeregistry.v1.Registry.DeleteApiCallback): void;
+
+ /**
+ * Calls DeleteApi.
+ * @param request DeleteApiRequest message or plain object
+ * @returns Promise
+ */
+ public deleteApi(request: google.cloud.apigeeregistry.v1.IDeleteApiRequest): Promise;
+
+ /**
+ * Calls ListApiVersions.
+ * @param request ListApiVersionsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListApiVersionsResponse
+ */
+ public listApiVersions(request: google.cloud.apigeeregistry.v1.IListApiVersionsRequest, callback: google.cloud.apigeeregistry.v1.Registry.ListApiVersionsCallback): void;
+
+ /**
+ * Calls ListApiVersions.
+ * @param request ListApiVersionsRequest message or plain object
+ * @returns Promise
+ */
+ public listApiVersions(request: google.cloud.apigeeregistry.v1.IListApiVersionsRequest): Promise;
+
+ /**
+ * Calls GetApiVersion.
+ * @param request GetApiVersionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ApiVersion
+ */
+ public getApiVersion(request: google.cloud.apigeeregistry.v1.IGetApiVersionRequest, callback: google.cloud.apigeeregistry.v1.Registry.GetApiVersionCallback): void;
+
+ /**
+ * Calls GetApiVersion.
+ * @param request GetApiVersionRequest message or plain object
+ * @returns Promise
+ */
+ public getApiVersion(request: google.cloud.apigeeregistry.v1.IGetApiVersionRequest): Promise;
+
+ /**
+ * Calls CreateApiVersion.
+ * @param request CreateApiVersionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ApiVersion
+ */
+ public createApiVersion(request: google.cloud.apigeeregistry.v1.ICreateApiVersionRequest, callback: google.cloud.apigeeregistry.v1.Registry.CreateApiVersionCallback): void;
+
+ /**
+ * Calls CreateApiVersion.
+ * @param request CreateApiVersionRequest message or plain object
+ * @returns Promise
+ */
+ public createApiVersion(request: google.cloud.apigeeregistry.v1.ICreateApiVersionRequest): Promise;
+
+ /**
+ * Calls UpdateApiVersion.
+ * @param request UpdateApiVersionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ApiVersion
+ */
+ public updateApiVersion(request: google.cloud.apigeeregistry.v1.IUpdateApiVersionRequest, callback: google.cloud.apigeeregistry.v1.Registry.UpdateApiVersionCallback): void;
+
+ /**
+ * Calls UpdateApiVersion.
+ * @param request UpdateApiVersionRequest message or plain object
+ * @returns Promise
+ */
+ public updateApiVersion(request: google.cloud.apigeeregistry.v1.IUpdateApiVersionRequest): Promise;
+
+ /**
+ * Calls DeleteApiVersion.
+ * @param request DeleteApiVersionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteApiVersion(request: google.cloud.apigeeregistry.v1.IDeleteApiVersionRequest, callback: google.cloud.apigeeregistry.v1.Registry.DeleteApiVersionCallback): void;
+
+ /**
+ * Calls DeleteApiVersion.
+ * @param request DeleteApiVersionRequest message or plain object
+ * @returns Promise
+ */
+ public deleteApiVersion(request: google.cloud.apigeeregistry.v1.IDeleteApiVersionRequest): Promise;
+
+ /**
+ * Calls ListApiSpecs.
+ * @param request ListApiSpecsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListApiSpecsResponse
+ */
+ public listApiSpecs(request: google.cloud.apigeeregistry.v1.IListApiSpecsRequest, callback: google.cloud.apigeeregistry.v1.Registry.ListApiSpecsCallback): void;
+
+ /**
+ * Calls ListApiSpecs.
+ * @param request ListApiSpecsRequest message or plain object
+ * @returns Promise
+ */
+ public listApiSpecs(request: google.cloud.apigeeregistry.v1.IListApiSpecsRequest): Promise;
+
+ /**
+ * Calls GetApiSpec.
+ * @param request GetApiSpecRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ApiSpec
+ */
+ public getApiSpec(request: google.cloud.apigeeregistry.v1.IGetApiSpecRequest, callback: google.cloud.apigeeregistry.v1.Registry.GetApiSpecCallback): void;
+
+ /**
+ * Calls GetApiSpec.
+ * @param request GetApiSpecRequest message or plain object
+ * @returns Promise
+ */
+ public getApiSpec(request: google.cloud.apigeeregistry.v1.IGetApiSpecRequest): Promise;
+
+ /**
+ * Calls GetApiSpecContents.
+ * @param request GetApiSpecContentsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and HttpBody
+ */
+ public getApiSpecContents(request: google.cloud.apigeeregistry.v1.IGetApiSpecContentsRequest, callback: google.cloud.apigeeregistry.v1.Registry.GetApiSpecContentsCallback): void;
+
+ /**
+ * Calls GetApiSpecContents.
+ * @param request GetApiSpecContentsRequest message or plain object
+ * @returns Promise
+ */
+ public getApiSpecContents(request: google.cloud.apigeeregistry.v1.IGetApiSpecContentsRequest): Promise;
+
+ /**
+ * Calls CreateApiSpec.
+ * @param request CreateApiSpecRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ApiSpec
+ */
+ public createApiSpec(request: google.cloud.apigeeregistry.v1.ICreateApiSpecRequest, callback: google.cloud.apigeeregistry.v1.Registry.CreateApiSpecCallback): void;
+
+ /**
+ * Calls CreateApiSpec.
+ * @param request CreateApiSpecRequest message or plain object
+ * @returns Promise
+ */
+ public createApiSpec(request: google.cloud.apigeeregistry.v1.ICreateApiSpecRequest): Promise;
+
+ /**
+ * Calls UpdateApiSpec.
+ * @param request UpdateApiSpecRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ApiSpec
+ */
+ public updateApiSpec(request: google.cloud.apigeeregistry.v1.IUpdateApiSpecRequest, callback: google.cloud.apigeeregistry.v1.Registry.UpdateApiSpecCallback): void;
+
+ /**
+ * Calls UpdateApiSpec.
+ * @param request UpdateApiSpecRequest message or plain object
+ * @returns Promise
+ */
+ public updateApiSpec(request: google.cloud.apigeeregistry.v1.IUpdateApiSpecRequest): Promise;
+
+ /**
+ * Calls DeleteApiSpec.
+ * @param request DeleteApiSpecRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteApiSpec(request: google.cloud.apigeeregistry.v1.IDeleteApiSpecRequest, callback: google.cloud.apigeeregistry.v1.Registry.DeleteApiSpecCallback): void;
+
+ /**
+ * Calls DeleteApiSpec.
+ * @param request DeleteApiSpecRequest message or plain object
+ * @returns Promise
+ */
+ public deleteApiSpec(request: google.cloud.apigeeregistry.v1.IDeleteApiSpecRequest): Promise;
+
+ /**
+ * Calls TagApiSpecRevision.
+ * @param request TagApiSpecRevisionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ApiSpec
+ */
+ public tagApiSpecRevision(request: google.cloud.apigeeregistry.v1.ITagApiSpecRevisionRequest, callback: google.cloud.apigeeregistry.v1.Registry.TagApiSpecRevisionCallback): void;
+
+ /**
+ * Calls TagApiSpecRevision.
+ * @param request TagApiSpecRevisionRequest message or plain object
+ * @returns Promise
+ */
+ public tagApiSpecRevision(request: google.cloud.apigeeregistry.v1.ITagApiSpecRevisionRequest): Promise;
+
+ /**
+ * Calls ListApiSpecRevisions.
+ * @param request ListApiSpecRevisionsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListApiSpecRevisionsResponse
+ */
+ public listApiSpecRevisions(request: google.cloud.apigeeregistry.v1.IListApiSpecRevisionsRequest, callback: google.cloud.apigeeregistry.v1.Registry.ListApiSpecRevisionsCallback): void;
+
+ /**
+ * Calls ListApiSpecRevisions.
+ * @param request ListApiSpecRevisionsRequest message or plain object
+ * @returns Promise
+ */
+ public listApiSpecRevisions(request: google.cloud.apigeeregistry.v1.IListApiSpecRevisionsRequest): Promise;
+
+ /**
+ * Calls RollbackApiSpec.
+ * @param request RollbackApiSpecRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ApiSpec
+ */
+ public rollbackApiSpec(request: google.cloud.apigeeregistry.v1.IRollbackApiSpecRequest, callback: google.cloud.apigeeregistry.v1.Registry.RollbackApiSpecCallback): void;
+
+ /**
+ * Calls RollbackApiSpec.
+ * @param request RollbackApiSpecRequest message or plain object
+ * @returns Promise
+ */
+ public rollbackApiSpec(request: google.cloud.apigeeregistry.v1.IRollbackApiSpecRequest): Promise;
+
+ /**
+ * Calls DeleteApiSpecRevision.
+ * @param request DeleteApiSpecRevisionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ApiSpec
+ */
+ public deleteApiSpecRevision(request: google.cloud.apigeeregistry.v1.IDeleteApiSpecRevisionRequest, callback: google.cloud.apigeeregistry.v1.Registry.DeleteApiSpecRevisionCallback): void;
+
+ /**
+ * Calls DeleteApiSpecRevision.
+ * @param request DeleteApiSpecRevisionRequest message or plain object
+ * @returns Promise
+ */
+ public deleteApiSpecRevision(request: google.cloud.apigeeregistry.v1.IDeleteApiSpecRevisionRequest): Promise;
+
+ /**
+ * Calls ListApiDeployments.
+ * @param request ListApiDeploymentsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListApiDeploymentsResponse
+ */
+ public listApiDeployments(request: google.cloud.apigeeregistry.v1.IListApiDeploymentsRequest, callback: google.cloud.apigeeregistry.v1.Registry.ListApiDeploymentsCallback): void;
+
+ /**
+ * Calls ListApiDeployments.
+ * @param request ListApiDeploymentsRequest message or plain object
+ * @returns Promise
+ */
+ public listApiDeployments(request: google.cloud.apigeeregistry.v1.IListApiDeploymentsRequest): Promise;
+
+ /**
+ * Calls GetApiDeployment.
+ * @param request GetApiDeploymentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ApiDeployment
+ */
+ public getApiDeployment(request: google.cloud.apigeeregistry.v1.IGetApiDeploymentRequest, callback: google.cloud.apigeeregistry.v1.Registry.GetApiDeploymentCallback): void;
+
+ /**
+ * Calls GetApiDeployment.
+ * @param request GetApiDeploymentRequest message or plain object
+ * @returns Promise
+ */
+ public getApiDeployment(request: google.cloud.apigeeregistry.v1.IGetApiDeploymentRequest): Promise;
+
+ /**
+ * Calls CreateApiDeployment.
+ * @param request CreateApiDeploymentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ApiDeployment
+ */
+ public createApiDeployment(request: google.cloud.apigeeregistry.v1.ICreateApiDeploymentRequest, callback: google.cloud.apigeeregistry.v1.Registry.CreateApiDeploymentCallback): void;
+
+ /**
+ * Calls CreateApiDeployment.
+ * @param request CreateApiDeploymentRequest message or plain object
+ * @returns Promise
+ */
+ public createApiDeployment(request: google.cloud.apigeeregistry.v1.ICreateApiDeploymentRequest): Promise;
+
+ /**
+ * Calls UpdateApiDeployment.
+ * @param request UpdateApiDeploymentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ApiDeployment
+ */
+ public updateApiDeployment(request: google.cloud.apigeeregistry.v1.IUpdateApiDeploymentRequest, callback: google.cloud.apigeeregistry.v1.Registry.UpdateApiDeploymentCallback): void;
+
+ /**
+ * Calls UpdateApiDeployment.
+ * @param request UpdateApiDeploymentRequest message or plain object
+ * @returns Promise
+ */
+ public updateApiDeployment(request: google.cloud.apigeeregistry.v1.IUpdateApiDeploymentRequest): Promise;
+
+ /**
+ * Calls DeleteApiDeployment.
+ * @param request DeleteApiDeploymentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteApiDeployment(request: google.cloud.apigeeregistry.v1.IDeleteApiDeploymentRequest, callback: google.cloud.apigeeregistry.v1.Registry.DeleteApiDeploymentCallback): void;
+
+ /**
+ * Calls DeleteApiDeployment.
+ * @param request DeleteApiDeploymentRequest message or plain object
+ * @returns Promise
+ */
+ public deleteApiDeployment(request: google.cloud.apigeeregistry.v1.IDeleteApiDeploymentRequest): Promise;
+
+ /**
+ * Calls TagApiDeploymentRevision.
+ * @param request TagApiDeploymentRevisionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ApiDeployment
+ */
+ public tagApiDeploymentRevision(request: google.cloud.apigeeregistry.v1.ITagApiDeploymentRevisionRequest, callback: google.cloud.apigeeregistry.v1.Registry.TagApiDeploymentRevisionCallback): void;
+
+ /**
+ * Calls TagApiDeploymentRevision.
+ * @param request TagApiDeploymentRevisionRequest message or plain object
+ * @returns Promise
+ */
+ public tagApiDeploymentRevision(request: google.cloud.apigeeregistry.v1.ITagApiDeploymentRevisionRequest): Promise;
+
+ /**
+ * Calls ListApiDeploymentRevisions.
+ * @param request ListApiDeploymentRevisionsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListApiDeploymentRevisionsResponse
+ */
+ public listApiDeploymentRevisions(request: google.cloud.apigeeregistry.v1.IListApiDeploymentRevisionsRequest, callback: google.cloud.apigeeregistry.v1.Registry.ListApiDeploymentRevisionsCallback): void;
+
+ /**
+ * Calls ListApiDeploymentRevisions.
+ * @param request ListApiDeploymentRevisionsRequest message or plain object
+ * @returns Promise
+ */
+ public listApiDeploymentRevisions(request: google.cloud.apigeeregistry.v1.IListApiDeploymentRevisionsRequest): Promise;
+
+ /**
+ * Calls RollbackApiDeployment.
+ * @param request RollbackApiDeploymentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ApiDeployment
+ */
+ public rollbackApiDeployment(request: google.cloud.apigeeregistry.v1.IRollbackApiDeploymentRequest, callback: google.cloud.apigeeregistry.v1.Registry.RollbackApiDeploymentCallback): void;
+
+ /**
+ * Calls RollbackApiDeployment.
+ * @param request RollbackApiDeploymentRequest message or plain object
+ * @returns Promise
+ */
+ public rollbackApiDeployment(request: google.cloud.apigeeregistry.v1.IRollbackApiDeploymentRequest): Promise;
+
+ /**
+ * Calls DeleteApiDeploymentRevision.
+ * @param request DeleteApiDeploymentRevisionRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ApiDeployment
+ */
+ public deleteApiDeploymentRevision(request: google.cloud.apigeeregistry.v1.IDeleteApiDeploymentRevisionRequest, callback: google.cloud.apigeeregistry.v1.Registry.DeleteApiDeploymentRevisionCallback): void;
+
+ /**
+ * Calls DeleteApiDeploymentRevision.
+ * @param request DeleteApiDeploymentRevisionRequest message or plain object
+ * @returns Promise
+ */
+ public deleteApiDeploymentRevision(request: google.cloud.apigeeregistry.v1.IDeleteApiDeploymentRevisionRequest): Promise;
+
+ /**
+ * Calls ListArtifacts.
+ * @param request ListArtifactsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListArtifactsResponse
+ */
+ public listArtifacts(request: google.cloud.apigeeregistry.v1.IListArtifactsRequest, callback: google.cloud.apigeeregistry.v1.Registry.ListArtifactsCallback): void;
+
+ /**
+ * Calls ListArtifacts.
+ * @param request ListArtifactsRequest message or plain object
+ * @returns Promise
+ */
+ public listArtifacts(request: google.cloud.apigeeregistry.v1.IListArtifactsRequest): Promise;
+
+ /**
+ * Calls GetArtifact.
+ * @param request GetArtifactRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Artifact
+ */
+ public getArtifact(request: google.cloud.apigeeregistry.v1.IGetArtifactRequest, callback: google.cloud.apigeeregistry.v1.Registry.GetArtifactCallback): void;
+
+ /**
+ * Calls GetArtifact.
+ * @param request GetArtifactRequest message or plain object
+ * @returns Promise
+ */
+ public getArtifact(request: google.cloud.apigeeregistry.v1.IGetArtifactRequest): Promise;
+
+ /**
+ * Calls GetArtifactContents.
+ * @param request GetArtifactContentsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and HttpBody
+ */
+ public getArtifactContents(request: google.cloud.apigeeregistry.v1.IGetArtifactContentsRequest, callback: google.cloud.apigeeregistry.v1.Registry.GetArtifactContentsCallback): void;
+
+ /**
+ * Calls GetArtifactContents.
+ * @param request GetArtifactContentsRequest message or plain object
+ * @returns Promise
+ */
+ public getArtifactContents(request: google.cloud.apigeeregistry.v1.IGetArtifactContentsRequest): Promise;
+
+ /**
+ * Calls CreateArtifact.
+ * @param request CreateArtifactRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Artifact
+ */
+ public createArtifact(request: google.cloud.apigeeregistry.v1.ICreateArtifactRequest, callback: google.cloud.apigeeregistry.v1.Registry.CreateArtifactCallback): void;
+
+ /**
+ * Calls CreateArtifact.
+ * @param request CreateArtifactRequest message or plain object
+ * @returns Promise
+ */
+ public createArtifact(request: google.cloud.apigeeregistry.v1.ICreateArtifactRequest): Promise;
+
+ /**
+ * Calls ReplaceArtifact.
+ * @param request ReplaceArtifactRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Artifact
+ */
+ public replaceArtifact(request: google.cloud.apigeeregistry.v1.IReplaceArtifactRequest, callback: google.cloud.apigeeregistry.v1.Registry.ReplaceArtifactCallback): void;
+
+ /**
+ * Calls ReplaceArtifact.
+ * @param request ReplaceArtifactRequest message or plain object
+ * @returns Promise
+ */
+ public replaceArtifact(request: google.cloud.apigeeregistry.v1.IReplaceArtifactRequest): Promise;
+
+ /**
+ * Calls DeleteArtifact.
+ * @param request DeleteArtifactRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteArtifact(request: google.cloud.apigeeregistry.v1.IDeleteArtifactRequest, callback: google.cloud.apigeeregistry.v1.Registry.DeleteArtifactCallback): void;
+
+ /**
+ * Calls DeleteArtifact.
+ * @param request DeleteArtifactRequest message or plain object
+ * @returns Promise
+ */
+ public deleteArtifact(request: google.cloud.apigeeregistry.v1.IDeleteArtifactRequest): Promise;
+ }
+
+ namespace Registry {
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|listApis}.
+ * @param error Error, if any
+ * @param [response] ListApisResponse
+ */
+ type ListApisCallback = (error: (Error|null), response?: google.cloud.apigeeregistry.v1.ListApisResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|getApi}.
+ * @param error Error, if any
+ * @param [response] Api
+ */
+ type GetApiCallback = (error: (Error|null), response?: google.cloud.apigeeregistry.v1.Api) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|createApi}.
+ * @param error Error, if any
+ * @param [response] Api
+ */
+ type CreateApiCallback = (error: (Error|null), response?: google.cloud.apigeeregistry.v1.Api) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|updateApi}.
+ * @param error Error, if any
+ * @param [response] Api
+ */
+ type UpdateApiCallback = (error: (Error|null), response?: google.cloud.apigeeregistry.v1.Api) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|deleteApi}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteApiCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|listApiVersions}.
+ * @param error Error, if any
+ * @param [response] ListApiVersionsResponse
+ */
+ type ListApiVersionsCallback = (error: (Error|null), response?: google.cloud.apigeeregistry.v1.ListApiVersionsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|getApiVersion}.
+ * @param error Error, if any
+ * @param [response] ApiVersion
+ */
+ type GetApiVersionCallback = (error: (Error|null), response?: google.cloud.apigeeregistry.v1.ApiVersion) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|createApiVersion}.
+ * @param error Error, if any
+ * @param [response] ApiVersion
+ */
+ type CreateApiVersionCallback = (error: (Error|null), response?: google.cloud.apigeeregistry.v1.ApiVersion) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|updateApiVersion}.
+ * @param error Error, if any
+ * @param [response] ApiVersion
+ */
+ type UpdateApiVersionCallback = (error: (Error|null), response?: google.cloud.apigeeregistry.v1.ApiVersion) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|deleteApiVersion}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteApiVersionCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|listApiSpecs}.
+ * @param error Error, if any
+ * @param [response] ListApiSpecsResponse
+ */
+ type ListApiSpecsCallback = (error: (Error|null), response?: google.cloud.apigeeregistry.v1.ListApiSpecsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|getApiSpec}.
+ * @param error Error, if any
+ * @param [response] ApiSpec
+ */
+ type GetApiSpecCallback = (error: (Error|null), response?: google.cloud.apigeeregistry.v1.ApiSpec) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|getApiSpecContents}.
+ * @param error Error, if any
+ * @param [response] HttpBody
+ */
+ type GetApiSpecContentsCallback = (error: (Error|null), response?: google.api.HttpBody) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|createApiSpec}.
+ * @param error Error, if any
+ * @param [response] ApiSpec
+ */
+ type CreateApiSpecCallback = (error: (Error|null), response?: google.cloud.apigeeregistry.v1.ApiSpec) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|updateApiSpec}.
+ * @param error Error, if any
+ * @param [response] ApiSpec
+ */
+ type UpdateApiSpecCallback = (error: (Error|null), response?: google.cloud.apigeeregistry.v1.ApiSpec) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|deleteApiSpec}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteApiSpecCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|tagApiSpecRevision}.
+ * @param error Error, if any
+ * @param [response] ApiSpec
+ */
+ type TagApiSpecRevisionCallback = (error: (Error|null), response?: google.cloud.apigeeregistry.v1.ApiSpec) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|listApiSpecRevisions}.
+ * @param error Error, if any
+ * @param [response] ListApiSpecRevisionsResponse
+ */
+ type ListApiSpecRevisionsCallback = (error: (Error|null), response?: google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|rollbackApiSpec}.
+ * @param error Error, if any
+ * @param [response] ApiSpec
+ */
+ type RollbackApiSpecCallback = (error: (Error|null), response?: google.cloud.apigeeregistry.v1.ApiSpec) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|deleteApiSpecRevision}.
+ * @param error Error, if any
+ * @param [response] ApiSpec
+ */
+ type DeleteApiSpecRevisionCallback = (error: (Error|null), response?: google.cloud.apigeeregistry.v1.ApiSpec) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|listApiDeployments}.
+ * @param error Error, if any
+ * @param [response] ListApiDeploymentsResponse
+ */
+ type ListApiDeploymentsCallback = (error: (Error|null), response?: google.cloud.apigeeregistry.v1.ListApiDeploymentsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|getApiDeployment}.
+ * @param error Error, if any
+ * @param [response] ApiDeployment
+ */
+ type GetApiDeploymentCallback = (error: (Error|null), response?: google.cloud.apigeeregistry.v1.ApiDeployment) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|createApiDeployment}.
+ * @param error Error, if any
+ * @param [response] ApiDeployment
+ */
+ type CreateApiDeploymentCallback = (error: (Error|null), response?: google.cloud.apigeeregistry.v1.ApiDeployment) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|updateApiDeployment}.
+ * @param error Error, if any
+ * @param [response] ApiDeployment
+ */
+ type UpdateApiDeploymentCallback = (error: (Error|null), response?: google.cloud.apigeeregistry.v1.ApiDeployment) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|deleteApiDeployment}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteApiDeploymentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|tagApiDeploymentRevision}.
+ * @param error Error, if any
+ * @param [response] ApiDeployment
+ */
+ type TagApiDeploymentRevisionCallback = (error: (Error|null), response?: google.cloud.apigeeregistry.v1.ApiDeployment) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|listApiDeploymentRevisions}.
+ * @param error Error, if any
+ * @param [response] ListApiDeploymentRevisionsResponse
+ */
+ type ListApiDeploymentRevisionsCallback = (error: (Error|null), response?: google.cloud.apigeeregistry.v1.ListApiDeploymentRevisionsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|rollbackApiDeployment}.
+ * @param error Error, if any
+ * @param [response] ApiDeployment
+ */
+ type RollbackApiDeploymentCallback = (error: (Error|null), response?: google.cloud.apigeeregistry.v1.ApiDeployment) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|deleteApiDeploymentRevision}.
+ * @param error Error, if any
+ * @param [response] ApiDeployment
+ */
+ type DeleteApiDeploymentRevisionCallback = (error: (Error|null), response?: google.cloud.apigeeregistry.v1.ApiDeployment) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|listArtifacts}.
+ * @param error Error, if any
+ * @param [response] ListArtifactsResponse
+ */
+ type ListArtifactsCallback = (error: (Error|null), response?: google.cloud.apigeeregistry.v1.ListArtifactsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|getArtifact}.
+ * @param error Error, if any
+ * @param [response] Artifact
+ */
+ type GetArtifactCallback = (error: (Error|null), response?: google.cloud.apigeeregistry.v1.Artifact) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|getArtifactContents}.
+ * @param error Error, if any
+ * @param [response] HttpBody
+ */
+ type GetArtifactContentsCallback = (error: (Error|null), response?: google.api.HttpBody) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|createArtifact}.
+ * @param error Error, if any
+ * @param [response] Artifact
+ */
+ type CreateArtifactCallback = (error: (Error|null), response?: google.cloud.apigeeregistry.v1.Artifact) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|replaceArtifact}.
+ * @param error Error, if any
+ * @param [response] Artifact
+ */
+ type ReplaceArtifactCallback = (error: (Error|null), response?: google.cloud.apigeeregistry.v1.Artifact) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|deleteArtifact}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteArtifactCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+ }
+
+ /** Properties of a ListApisRequest. */
+ interface IListApisRequest {
+
+ /** ListApisRequest parent */
+ parent?: (string|null);
+
+ /** ListApisRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListApisRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListApisRequest filter */
+ filter?: (string|null);
+ }
+
+ /** Represents a ListApisRequest. */
+ class ListApisRequest implements IListApisRequest {
+
+ /**
+ * Constructs a new ListApisRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IListApisRequest);
+
+ /** ListApisRequest parent. */
+ public parent: string;
+
+ /** ListApisRequest pageSize. */
+ public pageSize: number;
+
+ /** ListApisRequest pageToken. */
+ public pageToken: string;
+
+ /** ListApisRequest filter. */
+ public filter: string;
+
+ /**
+ * Creates a new ListApisRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListApisRequest instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IListApisRequest): google.cloud.apigeeregistry.v1.ListApisRequest;
+
+ /**
+ * Encodes the specified ListApisRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApisRequest.verify|verify} messages.
+ * @param message ListApisRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IListApisRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListApisRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApisRequest.verify|verify} messages.
+ * @param message ListApisRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IListApisRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListApisRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListApisRequest
+ * @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.apigeeregistry.v1.ListApisRequest;
+
+ /**
+ * Decodes a ListApisRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListApisRequest
+ * @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.apigeeregistry.v1.ListApisRequest;
+
+ /**
+ * Verifies a ListApisRequest 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 ListApisRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListApisRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.ListApisRequest;
+
+ /**
+ * Creates a plain object from a ListApisRequest message. Also converts values to other types if specified.
+ * @param message ListApisRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.ListApisRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListApisRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListApisRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListApisResponse. */
+ interface IListApisResponse {
+
+ /** ListApisResponse apis */
+ apis?: (google.cloud.apigeeregistry.v1.IApi[]|null);
+
+ /** ListApisResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListApisResponse. */
+ class ListApisResponse implements IListApisResponse {
+
+ /**
+ * Constructs a new ListApisResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IListApisResponse);
+
+ /** ListApisResponse apis. */
+ public apis: google.cloud.apigeeregistry.v1.IApi[];
+
+ /** ListApisResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListApisResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListApisResponse instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IListApisResponse): google.cloud.apigeeregistry.v1.ListApisResponse;
+
+ /**
+ * Encodes the specified ListApisResponse message. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApisResponse.verify|verify} messages.
+ * @param message ListApisResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IListApisResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListApisResponse message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApisResponse.verify|verify} messages.
+ * @param message ListApisResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IListApisResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListApisResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListApisResponse
+ * @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.apigeeregistry.v1.ListApisResponse;
+
+ /**
+ * Decodes a ListApisResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListApisResponse
+ * @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.apigeeregistry.v1.ListApisResponse;
+
+ /**
+ * Verifies a ListApisResponse 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 ListApisResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListApisResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.ListApisResponse;
+
+ /**
+ * Creates a plain object from a ListApisResponse message. Also converts values to other types if specified.
+ * @param message ListApisResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.ListApisResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListApisResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListApisResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetApiRequest. */
+ interface IGetApiRequest {
+
+ /** GetApiRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetApiRequest. */
+ class GetApiRequest implements IGetApiRequest {
+
+ /**
+ * Constructs a new GetApiRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IGetApiRequest);
+
+ /** GetApiRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetApiRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetApiRequest instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IGetApiRequest): google.cloud.apigeeregistry.v1.GetApiRequest;
+
+ /**
+ * Encodes the specified GetApiRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.GetApiRequest.verify|verify} messages.
+ * @param message GetApiRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IGetApiRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetApiRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.GetApiRequest.verify|verify} messages.
+ * @param message GetApiRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IGetApiRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetApiRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetApiRequest
+ * @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.apigeeregistry.v1.GetApiRequest;
+
+ /**
+ * Decodes a GetApiRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetApiRequest
+ * @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.apigeeregistry.v1.GetApiRequest;
+
+ /**
+ * Verifies a GetApiRequest 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 GetApiRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetApiRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.GetApiRequest;
+
+ /**
+ * Creates a plain object from a GetApiRequest message. Also converts values to other types if specified.
+ * @param message GetApiRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.GetApiRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetApiRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetApiRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateApiRequest. */
+ interface ICreateApiRequest {
+
+ /** CreateApiRequest parent */
+ parent?: (string|null);
+
+ /** CreateApiRequest api */
+ api?: (google.cloud.apigeeregistry.v1.IApi|null);
+
+ /** CreateApiRequest apiId */
+ apiId?: (string|null);
+ }
+
+ /** Represents a CreateApiRequest. */
+ class CreateApiRequest implements ICreateApiRequest {
+
+ /**
+ * Constructs a new CreateApiRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.ICreateApiRequest);
+
+ /** CreateApiRequest parent. */
+ public parent: string;
+
+ /** CreateApiRequest api. */
+ public api?: (google.cloud.apigeeregistry.v1.IApi|null);
+
+ /** CreateApiRequest apiId. */
+ public apiId: string;
+
+ /**
+ * Creates a new CreateApiRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateApiRequest instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.ICreateApiRequest): google.cloud.apigeeregistry.v1.CreateApiRequest;
+
+ /**
+ * Encodes the specified CreateApiRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.CreateApiRequest.verify|verify} messages.
+ * @param message CreateApiRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.ICreateApiRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateApiRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.CreateApiRequest.verify|verify} messages.
+ * @param message CreateApiRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.ICreateApiRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateApiRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateApiRequest
+ * @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.apigeeregistry.v1.CreateApiRequest;
+
+ /**
+ * Decodes a CreateApiRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateApiRequest
+ * @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.apigeeregistry.v1.CreateApiRequest;
+
+ /**
+ * Verifies a CreateApiRequest 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 CreateApiRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateApiRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.CreateApiRequest;
+
+ /**
+ * Creates a plain object from a CreateApiRequest message. Also converts values to other types if specified.
+ * @param message CreateApiRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.CreateApiRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateApiRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateApiRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateApiRequest. */
+ interface IUpdateApiRequest {
+
+ /** UpdateApiRequest api */
+ api?: (google.cloud.apigeeregistry.v1.IApi|null);
+
+ /** UpdateApiRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateApiRequest allowMissing */
+ allowMissing?: (boolean|null);
+ }
+
+ /** Represents an UpdateApiRequest. */
+ class UpdateApiRequest implements IUpdateApiRequest {
+
+ /**
+ * Constructs a new UpdateApiRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IUpdateApiRequest);
+
+ /** UpdateApiRequest api. */
+ public api?: (google.cloud.apigeeregistry.v1.IApi|null);
+
+ /** UpdateApiRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateApiRequest allowMissing. */
+ public allowMissing: boolean;
+
+ /**
+ * Creates a new UpdateApiRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateApiRequest instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IUpdateApiRequest): google.cloud.apigeeregistry.v1.UpdateApiRequest;
+
+ /**
+ * Encodes the specified UpdateApiRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.UpdateApiRequest.verify|verify} messages.
+ * @param message UpdateApiRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IUpdateApiRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateApiRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.UpdateApiRequest.verify|verify} messages.
+ * @param message UpdateApiRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IUpdateApiRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateApiRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateApiRequest
+ * @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.apigeeregistry.v1.UpdateApiRequest;
+
+ /**
+ * Decodes an UpdateApiRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateApiRequest
+ * @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.apigeeregistry.v1.UpdateApiRequest;
+
+ /**
+ * Verifies an UpdateApiRequest 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 UpdateApiRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateApiRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.UpdateApiRequest;
+
+ /**
+ * Creates a plain object from an UpdateApiRequest message. Also converts values to other types if specified.
+ * @param message UpdateApiRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.UpdateApiRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateApiRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateApiRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteApiRequest. */
+ interface IDeleteApiRequest {
+
+ /** DeleteApiRequest name */
+ name?: (string|null);
+
+ /** DeleteApiRequest force */
+ force?: (boolean|null);
+ }
+
+ /** Represents a DeleteApiRequest. */
+ class DeleteApiRequest implements IDeleteApiRequest {
+
+ /**
+ * Constructs a new DeleteApiRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IDeleteApiRequest);
+
+ /** DeleteApiRequest name. */
+ public name: string;
+
+ /** DeleteApiRequest force. */
+ public force: boolean;
+
+ /**
+ * Creates a new DeleteApiRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteApiRequest instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IDeleteApiRequest): google.cloud.apigeeregistry.v1.DeleteApiRequest;
+
+ /**
+ * Encodes the specified DeleteApiRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.DeleteApiRequest.verify|verify} messages.
+ * @param message DeleteApiRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IDeleteApiRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteApiRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.DeleteApiRequest.verify|verify} messages.
+ * @param message DeleteApiRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IDeleteApiRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteApiRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteApiRequest
+ * @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.apigeeregistry.v1.DeleteApiRequest;
+
+ /**
+ * Decodes a DeleteApiRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteApiRequest
+ * @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.apigeeregistry.v1.DeleteApiRequest;
+
+ /**
+ * Verifies a DeleteApiRequest 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 DeleteApiRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteApiRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.DeleteApiRequest;
+
+ /**
+ * Creates a plain object from a DeleteApiRequest message. Also converts values to other types if specified.
+ * @param message DeleteApiRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.DeleteApiRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteApiRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteApiRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListApiVersionsRequest. */
+ interface IListApiVersionsRequest {
+
+ /** ListApiVersionsRequest parent */
+ parent?: (string|null);
+
+ /** ListApiVersionsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListApiVersionsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListApiVersionsRequest filter */
+ filter?: (string|null);
+ }
+
+ /** Represents a ListApiVersionsRequest. */
+ class ListApiVersionsRequest implements IListApiVersionsRequest {
+
+ /**
+ * Constructs a new ListApiVersionsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IListApiVersionsRequest);
+
+ /** ListApiVersionsRequest parent. */
+ public parent: string;
+
+ /** ListApiVersionsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListApiVersionsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListApiVersionsRequest filter. */
+ public filter: string;
+
+ /**
+ * Creates a new ListApiVersionsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListApiVersionsRequest instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IListApiVersionsRequest): google.cloud.apigeeregistry.v1.ListApiVersionsRequest;
+
+ /**
+ * Encodes the specified ListApiVersionsRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApiVersionsRequest.verify|verify} messages.
+ * @param message ListApiVersionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IListApiVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListApiVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApiVersionsRequest.verify|verify} messages.
+ * @param message ListApiVersionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IListApiVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListApiVersionsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListApiVersionsRequest
+ * @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.apigeeregistry.v1.ListApiVersionsRequest;
+
+ /**
+ * Decodes a ListApiVersionsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListApiVersionsRequest
+ * @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.apigeeregistry.v1.ListApiVersionsRequest;
+
+ /**
+ * Verifies a ListApiVersionsRequest 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 ListApiVersionsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListApiVersionsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.ListApiVersionsRequest;
+
+ /**
+ * Creates a plain object from a ListApiVersionsRequest message. Also converts values to other types if specified.
+ * @param message ListApiVersionsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.ListApiVersionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListApiVersionsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListApiVersionsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListApiVersionsResponse. */
+ interface IListApiVersionsResponse {
+
+ /** ListApiVersionsResponse apiVersions */
+ apiVersions?: (google.cloud.apigeeregistry.v1.IApiVersion[]|null);
+
+ /** ListApiVersionsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListApiVersionsResponse. */
+ class ListApiVersionsResponse implements IListApiVersionsResponse {
+
+ /**
+ * Constructs a new ListApiVersionsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IListApiVersionsResponse);
+
+ /** ListApiVersionsResponse apiVersions. */
+ public apiVersions: google.cloud.apigeeregistry.v1.IApiVersion[];
+
+ /** ListApiVersionsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListApiVersionsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListApiVersionsResponse instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IListApiVersionsResponse): google.cloud.apigeeregistry.v1.ListApiVersionsResponse;
+
+ /**
+ * Encodes the specified ListApiVersionsResponse message. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApiVersionsResponse.verify|verify} messages.
+ * @param message ListApiVersionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IListApiVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListApiVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApiVersionsResponse.verify|verify} messages.
+ * @param message ListApiVersionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IListApiVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListApiVersionsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListApiVersionsResponse
+ * @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.apigeeregistry.v1.ListApiVersionsResponse;
+
+ /**
+ * Decodes a ListApiVersionsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListApiVersionsResponse
+ * @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.apigeeregistry.v1.ListApiVersionsResponse;
+
+ /**
+ * Verifies a ListApiVersionsResponse 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 ListApiVersionsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListApiVersionsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.ListApiVersionsResponse;
+
+ /**
+ * Creates a plain object from a ListApiVersionsResponse message. Also converts values to other types if specified.
+ * @param message ListApiVersionsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.ListApiVersionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListApiVersionsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListApiVersionsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetApiVersionRequest. */
+ interface IGetApiVersionRequest {
+
+ /** GetApiVersionRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetApiVersionRequest. */
+ class GetApiVersionRequest implements IGetApiVersionRequest {
+
+ /**
+ * Constructs a new GetApiVersionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IGetApiVersionRequest);
+
+ /** GetApiVersionRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetApiVersionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetApiVersionRequest instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IGetApiVersionRequest): google.cloud.apigeeregistry.v1.GetApiVersionRequest;
+
+ /**
+ * Encodes the specified GetApiVersionRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.GetApiVersionRequest.verify|verify} messages.
+ * @param message GetApiVersionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IGetApiVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetApiVersionRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.GetApiVersionRequest.verify|verify} messages.
+ * @param message GetApiVersionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IGetApiVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetApiVersionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetApiVersionRequest
+ * @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.apigeeregistry.v1.GetApiVersionRequest;
+
+ /**
+ * Decodes a GetApiVersionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetApiVersionRequest
+ * @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.apigeeregistry.v1.GetApiVersionRequest;
+
+ /**
+ * Verifies a GetApiVersionRequest 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 GetApiVersionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetApiVersionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.GetApiVersionRequest;
+
+ /**
+ * Creates a plain object from a GetApiVersionRequest message. Also converts values to other types if specified.
+ * @param message GetApiVersionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.GetApiVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetApiVersionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetApiVersionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateApiVersionRequest. */
+ interface ICreateApiVersionRequest {
+
+ /** CreateApiVersionRequest parent */
+ parent?: (string|null);
+
+ /** CreateApiVersionRequest apiVersion */
+ apiVersion?: (google.cloud.apigeeregistry.v1.IApiVersion|null);
+
+ /** CreateApiVersionRequest apiVersionId */
+ apiVersionId?: (string|null);
+ }
+
+ /** Represents a CreateApiVersionRequest. */
+ class CreateApiVersionRequest implements ICreateApiVersionRequest {
+
+ /**
+ * Constructs a new CreateApiVersionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.ICreateApiVersionRequest);
+
+ /** CreateApiVersionRequest parent. */
+ public parent: string;
+
+ /** CreateApiVersionRequest apiVersion. */
+ public apiVersion?: (google.cloud.apigeeregistry.v1.IApiVersion|null);
+
+ /** CreateApiVersionRequest apiVersionId. */
+ public apiVersionId: string;
+
+ /**
+ * Creates a new CreateApiVersionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateApiVersionRequest instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.ICreateApiVersionRequest): google.cloud.apigeeregistry.v1.CreateApiVersionRequest;
+
+ /**
+ * Encodes the specified CreateApiVersionRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.CreateApiVersionRequest.verify|verify} messages.
+ * @param message CreateApiVersionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.ICreateApiVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateApiVersionRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.CreateApiVersionRequest.verify|verify} messages.
+ * @param message CreateApiVersionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.ICreateApiVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateApiVersionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateApiVersionRequest
+ * @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.apigeeregistry.v1.CreateApiVersionRequest;
+
+ /**
+ * Decodes a CreateApiVersionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateApiVersionRequest
+ * @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.apigeeregistry.v1.CreateApiVersionRequest;
+
+ /**
+ * Verifies a CreateApiVersionRequest 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 CreateApiVersionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateApiVersionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.CreateApiVersionRequest;
+
+ /**
+ * Creates a plain object from a CreateApiVersionRequest message. Also converts values to other types if specified.
+ * @param message CreateApiVersionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.CreateApiVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateApiVersionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateApiVersionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateApiVersionRequest. */
+ interface IUpdateApiVersionRequest {
+
+ /** UpdateApiVersionRequest apiVersion */
+ apiVersion?: (google.cloud.apigeeregistry.v1.IApiVersion|null);
+
+ /** UpdateApiVersionRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateApiVersionRequest allowMissing */
+ allowMissing?: (boolean|null);
+ }
+
+ /** Represents an UpdateApiVersionRequest. */
+ class UpdateApiVersionRequest implements IUpdateApiVersionRequest {
+
+ /**
+ * Constructs a new UpdateApiVersionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IUpdateApiVersionRequest);
+
+ /** UpdateApiVersionRequest apiVersion. */
+ public apiVersion?: (google.cloud.apigeeregistry.v1.IApiVersion|null);
+
+ /** UpdateApiVersionRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateApiVersionRequest allowMissing. */
+ public allowMissing: boolean;
+
+ /**
+ * Creates a new UpdateApiVersionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateApiVersionRequest instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IUpdateApiVersionRequest): google.cloud.apigeeregistry.v1.UpdateApiVersionRequest;
+
+ /**
+ * Encodes the specified UpdateApiVersionRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.UpdateApiVersionRequest.verify|verify} messages.
+ * @param message UpdateApiVersionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IUpdateApiVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateApiVersionRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.UpdateApiVersionRequest.verify|verify} messages.
+ * @param message UpdateApiVersionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IUpdateApiVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateApiVersionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateApiVersionRequest
+ * @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.apigeeregistry.v1.UpdateApiVersionRequest;
+
+ /**
+ * Decodes an UpdateApiVersionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateApiVersionRequest
+ * @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.apigeeregistry.v1.UpdateApiVersionRequest;
+
+ /**
+ * Verifies an UpdateApiVersionRequest 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 UpdateApiVersionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateApiVersionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.UpdateApiVersionRequest;
+
+ /**
+ * Creates a plain object from an UpdateApiVersionRequest message. Also converts values to other types if specified.
+ * @param message UpdateApiVersionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.UpdateApiVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateApiVersionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateApiVersionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteApiVersionRequest. */
+ interface IDeleteApiVersionRequest {
+
+ /** DeleteApiVersionRequest name */
+ name?: (string|null);
+
+ /** DeleteApiVersionRequest force */
+ force?: (boolean|null);
+ }
+
+ /** Represents a DeleteApiVersionRequest. */
+ class DeleteApiVersionRequest implements IDeleteApiVersionRequest {
+
+ /**
+ * Constructs a new DeleteApiVersionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IDeleteApiVersionRequest);
+
+ /** DeleteApiVersionRequest name. */
+ public name: string;
+
+ /** DeleteApiVersionRequest force. */
+ public force: boolean;
+
+ /**
+ * Creates a new DeleteApiVersionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteApiVersionRequest instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IDeleteApiVersionRequest): google.cloud.apigeeregistry.v1.DeleteApiVersionRequest;
+
+ /**
+ * Encodes the specified DeleteApiVersionRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.DeleteApiVersionRequest.verify|verify} messages.
+ * @param message DeleteApiVersionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IDeleteApiVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteApiVersionRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.DeleteApiVersionRequest.verify|verify} messages.
+ * @param message DeleteApiVersionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IDeleteApiVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteApiVersionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteApiVersionRequest
+ * @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.apigeeregistry.v1.DeleteApiVersionRequest;
+
+ /**
+ * Decodes a DeleteApiVersionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteApiVersionRequest
+ * @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.apigeeregistry.v1.DeleteApiVersionRequest;
+
+ /**
+ * Verifies a DeleteApiVersionRequest 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 DeleteApiVersionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteApiVersionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.DeleteApiVersionRequest;
+
+ /**
+ * Creates a plain object from a DeleteApiVersionRequest message. Also converts values to other types if specified.
+ * @param message DeleteApiVersionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.DeleteApiVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteApiVersionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteApiVersionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListApiSpecsRequest. */
+ interface IListApiSpecsRequest {
+
+ /** ListApiSpecsRequest parent */
+ parent?: (string|null);
+
+ /** ListApiSpecsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListApiSpecsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListApiSpecsRequest filter */
+ filter?: (string|null);
+ }
+
+ /** Represents a ListApiSpecsRequest. */
+ class ListApiSpecsRequest implements IListApiSpecsRequest {
+
+ /**
+ * Constructs a new ListApiSpecsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IListApiSpecsRequest);
+
+ /** ListApiSpecsRequest parent. */
+ public parent: string;
+
+ /** ListApiSpecsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListApiSpecsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListApiSpecsRequest filter. */
+ public filter: string;
+
+ /**
+ * Creates a new ListApiSpecsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListApiSpecsRequest instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IListApiSpecsRequest): google.cloud.apigeeregistry.v1.ListApiSpecsRequest;
+
+ /**
+ * Encodes the specified ListApiSpecsRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApiSpecsRequest.verify|verify} messages.
+ * @param message ListApiSpecsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IListApiSpecsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListApiSpecsRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApiSpecsRequest.verify|verify} messages.
+ * @param message ListApiSpecsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IListApiSpecsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListApiSpecsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListApiSpecsRequest
+ * @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.apigeeregistry.v1.ListApiSpecsRequest;
+
+ /**
+ * Decodes a ListApiSpecsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListApiSpecsRequest
+ * @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.apigeeregistry.v1.ListApiSpecsRequest;
+
+ /**
+ * Verifies a ListApiSpecsRequest 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 ListApiSpecsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListApiSpecsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.ListApiSpecsRequest;
+
+ /**
+ * Creates a plain object from a ListApiSpecsRequest message. Also converts values to other types if specified.
+ * @param message ListApiSpecsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.ListApiSpecsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListApiSpecsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListApiSpecsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListApiSpecsResponse. */
+ interface IListApiSpecsResponse {
+
+ /** ListApiSpecsResponse apiSpecs */
+ apiSpecs?: (google.cloud.apigeeregistry.v1.IApiSpec[]|null);
+
+ /** ListApiSpecsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListApiSpecsResponse. */
+ class ListApiSpecsResponse implements IListApiSpecsResponse {
+
+ /**
+ * Constructs a new ListApiSpecsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IListApiSpecsResponse);
+
+ /** ListApiSpecsResponse apiSpecs. */
+ public apiSpecs: google.cloud.apigeeregistry.v1.IApiSpec[];
+
+ /** ListApiSpecsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListApiSpecsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListApiSpecsResponse instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IListApiSpecsResponse): google.cloud.apigeeregistry.v1.ListApiSpecsResponse;
+
+ /**
+ * Encodes the specified ListApiSpecsResponse message. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApiSpecsResponse.verify|verify} messages.
+ * @param message ListApiSpecsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IListApiSpecsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListApiSpecsResponse message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApiSpecsResponse.verify|verify} messages.
+ * @param message ListApiSpecsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IListApiSpecsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListApiSpecsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListApiSpecsResponse
+ * @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.apigeeregistry.v1.ListApiSpecsResponse;
+
+ /**
+ * Decodes a ListApiSpecsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListApiSpecsResponse
+ * @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.apigeeregistry.v1.ListApiSpecsResponse;
+
+ /**
+ * Verifies a ListApiSpecsResponse 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 ListApiSpecsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListApiSpecsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.ListApiSpecsResponse;
+
+ /**
+ * Creates a plain object from a ListApiSpecsResponse message. Also converts values to other types if specified.
+ * @param message ListApiSpecsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.ListApiSpecsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListApiSpecsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListApiSpecsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetApiSpecRequest. */
+ interface IGetApiSpecRequest {
+
+ /** GetApiSpecRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetApiSpecRequest. */
+ class GetApiSpecRequest implements IGetApiSpecRequest {
+
+ /**
+ * Constructs a new GetApiSpecRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IGetApiSpecRequest);
+
+ /** GetApiSpecRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetApiSpecRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetApiSpecRequest instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IGetApiSpecRequest): google.cloud.apigeeregistry.v1.GetApiSpecRequest;
+
+ /**
+ * Encodes the specified GetApiSpecRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.GetApiSpecRequest.verify|verify} messages.
+ * @param message GetApiSpecRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IGetApiSpecRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetApiSpecRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.GetApiSpecRequest.verify|verify} messages.
+ * @param message GetApiSpecRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IGetApiSpecRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetApiSpecRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetApiSpecRequest
+ * @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.apigeeregistry.v1.GetApiSpecRequest;
+
+ /**
+ * Decodes a GetApiSpecRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetApiSpecRequest
+ * @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.apigeeregistry.v1.GetApiSpecRequest;
+
+ /**
+ * Verifies a GetApiSpecRequest 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 GetApiSpecRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetApiSpecRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.GetApiSpecRequest;
+
+ /**
+ * Creates a plain object from a GetApiSpecRequest message. Also converts values to other types if specified.
+ * @param message GetApiSpecRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.GetApiSpecRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetApiSpecRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetApiSpecRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetApiSpecContentsRequest. */
+ interface IGetApiSpecContentsRequest {
+
+ /** GetApiSpecContentsRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetApiSpecContentsRequest. */
+ class GetApiSpecContentsRequest implements IGetApiSpecContentsRequest {
+
+ /**
+ * Constructs a new GetApiSpecContentsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IGetApiSpecContentsRequest);
+
+ /** GetApiSpecContentsRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetApiSpecContentsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetApiSpecContentsRequest instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IGetApiSpecContentsRequest): google.cloud.apigeeregistry.v1.GetApiSpecContentsRequest;
+
+ /**
+ * Encodes the specified GetApiSpecContentsRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.GetApiSpecContentsRequest.verify|verify} messages.
+ * @param message GetApiSpecContentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IGetApiSpecContentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetApiSpecContentsRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.GetApiSpecContentsRequest.verify|verify} messages.
+ * @param message GetApiSpecContentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IGetApiSpecContentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetApiSpecContentsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetApiSpecContentsRequest
+ * @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.apigeeregistry.v1.GetApiSpecContentsRequest;
+
+ /**
+ * Decodes a GetApiSpecContentsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetApiSpecContentsRequest
+ * @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.apigeeregistry.v1.GetApiSpecContentsRequest;
+
+ /**
+ * Verifies a GetApiSpecContentsRequest 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 GetApiSpecContentsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetApiSpecContentsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.GetApiSpecContentsRequest;
+
+ /**
+ * Creates a plain object from a GetApiSpecContentsRequest message. Also converts values to other types if specified.
+ * @param message GetApiSpecContentsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.GetApiSpecContentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetApiSpecContentsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetApiSpecContentsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateApiSpecRequest. */
+ interface ICreateApiSpecRequest {
+
+ /** CreateApiSpecRequest parent */
+ parent?: (string|null);
+
+ /** CreateApiSpecRequest apiSpec */
+ apiSpec?: (google.cloud.apigeeregistry.v1.IApiSpec|null);
+
+ /** CreateApiSpecRequest apiSpecId */
+ apiSpecId?: (string|null);
+ }
+
+ /** Represents a CreateApiSpecRequest. */
+ class CreateApiSpecRequest implements ICreateApiSpecRequest {
+
+ /**
+ * Constructs a new CreateApiSpecRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.ICreateApiSpecRequest);
+
+ /** CreateApiSpecRequest parent. */
+ public parent: string;
+
+ /** CreateApiSpecRequest apiSpec. */
+ public apiSpec?: (google.cloud.apigeeregistry.v1.IApiSpec|null);
+
+ /** CreateApiSpecRequest apiSpecId. */
+ public apiSpecId: string;
+
+ /**
+ * Creates a new CreateApiSpecRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateApiSpecRequest instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.ICreateApiSpecRequest): google.cloud.apigeeregistry.v1.CreateApiSpecRequest;
+
+ /**
+ * Encodes the specified CreateApiSpecRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.CreateApiSpecRequest.verify|verify} messages.
+ * @param message CreateApiSpecRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.ICreateApiSpecRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateApiSpecRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.CreateApiSpecRequest.verify|verify} messages.
+ * @param message CreateApiSpecRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.ICreateApiSpecRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateApiSpecRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateApiSpecRequest
+ * @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.apigeeregistry.v1.CreateApiSpecRequest;
+
+ /**
+ * Decodes a CreateApiSpecRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateApiSpecRequest
+ * @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.apigeeregistry.v1.CreateApiSpecRequest;
+
+ /**
+ * Verifies a CreateApiSpecRequest 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 CreateApiSpecRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateApiSpecRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.CreateApiSpecRequest;
+
+ /**
+ * Creates a plain object from a CreateApiSpecRequest message. Also converts values to other types if specified.
+ * @param message CreateApiSpecRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.CreateApiSpecRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateApiSpecRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateApiSpecRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateApiSpecRequest. */
+ interface IUpdateApiSpecRequest {
+
+ /** UpdateApiSpecRequest apiSpec */
+ apiSpec?: (google.cloud.apigeeregistry.v1.IApiSpec|null);
+
+ /** UpdateApiSpecRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateApiSpecRequest allowMissing */
+ allowMissing?: (boolean|null);
+ }
+
+ /** Represents an UpdateApiSpecRequest. */
+ class UpdateApiSpecRequest implements IUpdateApiSpecRequest {
+
+ /**
+ * Constructs a new UpdateApiSpecRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IUpdateApiSpecRequest);
+
+ /** UpdateApiSpecRequest apiSpec. */
+ public apiSpec?: (google.cloud.apigeeregistry.v1.IApiSpec|null);
+
+ /** UpdateApiSpecRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateApiSpecRequest allowMissing. */
+ public allowMissing: boolean;
+
+ /**
+ * Creates a new UpdateApiSpecRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateApiSpecRequest instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IUpdateApiSpecRequest): google.cloud.apigeeregistry.v1.UpdateApiSpecRequest;
+
+ /**
+ * Encodes the specified UpdateApiSpecRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.UpdateApiSpecRequest.verify|verify} messages.
+ * @param message UpdateApiSpecRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IUpdateApiSpecRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateApiSpecRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.UpdateApiSpecRequest.verify|verify} messages.
+ * @param message UpdateApiSpecRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IUpdateApiSpecRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateApiSpecRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateApiSpecRequest
+ * @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.apigeeregistry.v1.UpdateApiSpecRequest;
+
+ /**
+ * Decodes an UpdateApiSpecRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateApiSpecRequest
+ * @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.apigeeregistry.v1.UpdateApiSpecRequest;
+
+ /**
+ * Verifies an UpdateApiSpecRequest 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 UpdateApiSpecRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateApiSpecRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.UpdateApiSpecRequest;
+
+ /**
+ * Creates a plain object from an UpdateApiSpecRequest message. Also converts values to other types if specified.
+ * @param message UpdateApiSpecRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.UpdateApiSpecRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateApiSpecRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateApiSpecRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteApiSpecRequest. */
+ interface IDeleteApiSpecRequest {
+
+ /** DeleteApiSpecRequest name */
+ name?: (string|null);
+
+ /** DeleteApiSpecRequest force */
+ force?: (boolean|null);
+ }
+
+ /** Represents a DeleteApiSpecRequest. */
+ class DeleteApiSpecRequest implements IDeleteApiSpecRequest {
+
+ /**
+ * Constructs a new DeleteApiSpecRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IDeleteApiSpecRequest);
+
+ /** DeleteApiSpecRequest name. */
+ public name: string;
+
+ /** DeleteApiSpecRequest force. */
+ public force: boolean;
+
+ /**
+ * Creates a new DeleteApiSpecRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteApiSpecRequest instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IDeleteApiSpecRequest): google.cloud.apigeeregistry.v1.DeleteApiSpecRequest;
+
+ /**
+ * Encodes the specified DeleteApiSpecRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.DeleteApiSpecRequest.verify|verify} messages.
+ * @param message DeleteApiSpecRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IDeleteApiSpecRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteApiSpecRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.DeleteApiSpecRequest.verify|verify} messages.
+ * @param message DeleteApiSpecRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IDeleteApiSpecRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteApiSpecRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteApiSpecRequest
+ * @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.apigeeregistry.v1.DeleteApiSpecRequest;
+
+ /**
+ * Decodes a DeleteApiSpecRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteApiSpecRequest
+ * @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.apigeeregistry.v1.DeleteApiSpecRequest;
+
+ /**
+ * Verifies a DeleteApiSpecRequest 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 DeleteApiSpecRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteApiSpecRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.DeleteApiSpecRequest;
+
+ /**
+ * Creates a plain object from a DeleteApiSpecRequest message. Also converts values to other types if specified.
+ * @param message DeleteApiSpecRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.DeleteApiSpecRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteApiSpecRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteApiSpecRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TagApiSpecRevisionRequest. */
+ interface ITagApiSpecRevisionRequest {
+
+ /** TagApiSpecRevisionRequest name */
+ name?: (string|null);
+
+ /** TagApiSpecRevisionRequest tag */
+ tag?: (string|null);
+ }
+
+ /** Represents a TagApiSpecRevisionRequest. */
+ class TagApiSpecRevisionRequest implements ITagApiSpecRevisionRequest {
+
+ /**
+ * Constructs a new TagApiSpecRevisionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.ITagApiSpecRevisionRequest);
+
+ /** TagApiSpecRevisionRequest name. */
+ public name: string;
+
+ /** TagApiSpecRevisionRequest tag. */
+ public tag: string;
+
+ /**
+ * Creates a new TagApiSpecRevisionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TagApiSpecRevisionRequest instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.ITagApiSpecRevisionRequest): google.cloud.apigeeregistry.v1.TagApiSpecRevisionRequest;
+
+ /**
+ * Encodes the specified TagApiSpecRevisionRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.TagApiSpecRevisionRequest.verify|verify} messages.
+ * @param message TagApiSpecRevisionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.ITagApiSpecRevisionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TagApiSpecRevisionRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.TagApiSpecRevisionRequest.verify|verify} messages.
+ * @param message TagApiSpecRevisionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.ITagApiSpecRevisionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TagApiSpecRevisionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TagApiSpecRevisionRequest
+ * @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.apigeeregistry.v1.TagApiSpecRevisionRequest;
+
+ /**
+ * Decodes a TagApiSpecRevisionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TagApiSpecRevisionRequest
+ * @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.apigeeregistry.v1.TagApiSpecRevisionRequest;
+
+ /**
+ * Verifies a TagApiSpecRevisionRequest 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 TagApiSpecRevisionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TagApiSpecRevisionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.TagApiSpecRevisionRequest;
+
+ /**
+ * Creates a plain object from a TagApiSpecRevisionRequest message. Also converts values to other types if specified.
+ * @param message TagApiSpecRevisionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.TagApiSpecRevisionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TagApiSpecRevisionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TagApiSpecRevisionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListApiSpecRevisionsRequest. */
+ interface IListApiSpecRevisionsRequest {
+
+ /** ListApiSpecRevisionsRequest name */
+ name?: (string|null);
+
+ /** ListApiSpecRevisionsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListApiSpecRevisionsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListApiSpecRevisionsRequest. */
+ class ListApiSpecRevisionsRequest implements IListApiSpecRevisionsRequest {
+
+ /**
+ * Constructs a new ListApiSpecRevisionsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IListApiSpecRevisionsRequest);
+
+ /** ListApiSpecRevisionsRequest name. */
+ public name: string;
+
+ /** ListApiSpecRevisionsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListApiSpecRevisionsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListApiSpecRevisionsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListApiSpecRevisionsRequest instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IListApiSpecRevisionsRequest): google.cloud.apigeeregistry.v1.ListApiSpecRevisionsRequest;
+
+ /**
+ * Encodes the specified ListApiSpecRevisionsRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApiSpecRevisionsRequest.verify|verify} messages.
+ * @param message ListApiSpecRevisionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IListApiSpecRevisionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListApiSpecRevisionsRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApiSpecRevisionsRequest.verify|verify} messages.
+ * @param message ListApiSpecRevisionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IListApiSpecRevisionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListApiSpecRevisionsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListApiSpecRevisionsRequest
+ * @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.apigeeregistry.v1.ListApiSpecRevisionsRequest;
+
+ /**
+ * Decodes a ListApiSpecRevisionsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListApiSpecRevisionsRequest
+ * @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.apigeeregistry.v1.ListApiSpecRevisionsRequest;
+
+ /**
+ * Verifies a ListApiSpecRevisionsRequest 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 ListApiSpecRevisionsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListApiSpecRevisionsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.ListApiSpecRevisionsRequest;
+
+ /**
+ * Creates a plain object from a ListApiSpecRevisionsRequest message. Also converts values to other types if specified.
+ * @param message ListApiSpecRevisionsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.ListApiSpecRevisionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListApiSpecRevisionsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListApiSpecRevisionsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListApiSpecRevisionsResponse. */
+ interface IListApiSpecRevisionsResponse {
+
+ /** ListApiSpecRevisionsResponse apiSpecs */
+ apiSpecs?: (google.cloud.apigeeregistry.v1.IApiSpec[]|null);
+
+ /** ListApiSpecRevisionsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListApiSpecRevisionsResponse. */
+ class ListApiSpecRevisionsResponse implements IListApiSpecRevisionsResponse {
+
+ /**
+ * Constructs a new ListApiSpecRevisionsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IListApiSpecRevisionsResponse);
+
+ /** ListApiSpecRevisionsResponse apiSpecs. */
+ public apiSpecs: google.cloud.apigeeregistry.v1.IApiSpec[];
+
+ /** ListApiSpecRevisionsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListApiSpecRevisionsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListApiSpecRevisionsResponse instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IListApiSpecRevisionsResponse): google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse;
+
+ /**
+ * Encodes the specified ListApiSpecRevisionsResponse message. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse.verify|verify} messages.
+ * @param message ListApiSpecRevisionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IListApiSpecRevisionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListApiSpecRevisionsResponse message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse.verify|verify} messages.
+ * @param message ListApiSpecRevisionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IListApiSpecRevisionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListApiSpecRevisionsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListApiSpecRevisionsResponse
+ * @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.apigeeregistry.v1.ListApiSpecRevisionsResponse;
+
+ /**
+ * Decodes a ListApiSpecRevisionsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListApiSpecRevisionsResponse
+ * @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.apigeeregistry.v1.ListApiSpecRevisionsResponse;
+
+ /**
+ * Verifies a ListApiSpecRevisionsResponse 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 ListApiSpecRevisionsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListApiSpecRevisionsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse;
+
+ /**
+ * Creates a plain object from a ListApiSpecRevisionsResponse message. Also converts values to other types if specified.
+ * @param message ListApiSpecRevisionsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListApiSpecRevisionsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListApiSpecRevisionsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RollbackApiSpecRequest. */
+ interface IRollbackApiSpecRequest {
+
+ /** RollbackApiSpecRequest name */
+ name?: (string|null);
+
+ /** RollbackApiSpecRequest revisionId */
+ revisionId?: (string|null);
+ }
+
+ /** Represents a RollbackApiSpecRequest. */
+ class RollbackApiSpecRequest implements IRollbackApiSpecRequest {
+
+ /**
+ * Constructs a new RollbackApiSpecRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IRollbackApiSpecRequest);
+
+ /** RollbackApiSpecRequest name. */
+ public name: string;
+
+ /** RollbackApiSpecRequest revisionId. */
+ public revisionId: string;
+
+ /**
+ * Creates a new RollbackApiSpecRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RollbackApiSpecRequest instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IRollbackApiSpecRequest): google.cloud.apigeeregistry.v1.RollbackApiSpecRequest;
+
+ /**
+ * Encodes the specified RollbackApiSpecRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.RollbackApiSpecRequest.verify|verify} messages.
+ * @param message RollbackApiSpecRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IRollbackApiSpecRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RollbackApiSpecRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.RollbackApiSpecRequest.verify|verify} messages.
+ * @param message RollbackApiSpecRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IRollbackApiSpecRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RollbackApiSpecRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RollbackApiSpecRequest
+ * @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.apigeeregistry.v1.RollbackApiSpecRequest;
+
+ /**
+ * Decodes a RollbackApiSpecRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RollbackApiSpecRequest
+ * @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.apigeeregistry.v1.RollbackApiSpecRequest;
+
+ /**
+ * Verifies a RollbackApiSpecRequest 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 RollbackApiSpecRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RollbackApiSpecRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.RollbackApiSpecRequest;
+
+ /**
+ * Creates a plain object from a RollbackApiSpecRequest message. Also converts values to other types if specified.
+ * @param message RollbackApiSpecRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.RollbackApiSpecRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RollbackApiSpecRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RollbackApiSpecRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteApiSpecRevisionRequest. */
+ interface IDeleteApiSpecRevisionRequest {
+
+ /** DeleteApiSpecRevisionRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteApiSpecRevisionRequest. */
+ class DeleteApiSpecRevisionRequest implements IDeleteApiSpecRevisionRequest {
+
+ /**
+ * Constructs a new DeleteApiSpecRevisionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IDeleteApiSpecRevisionRequest);
+
+ /** DeleteApiSpecRevisionRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteApiSpecRevisionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteApiSpecRevisionRequest instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IDeleteApiSpecRevisionRequest): google.cloud.apigeeregistry.v1.DeleteApiSpecRevisionRequest;
+
+ /**
+ * Encodes the specified DeleteApiSpecRevisionRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.DeleteApiSpecRevisionRequest.verify|verify} messages.
+ * @param message DeleteApiSpecRevisionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IDeleteApiSpecRevisionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteApiSpecRevisionRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.DeleteApiSpecRevisionRequest.verify|verify} messages.
+ * @param message DeleteApiSpecRevisionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IDeleteApiSpecRevisionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteApiSpecRevisionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteApiSpecRevisionRequest
+ * @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.apigeeregistry.v1.DeleteApiSpecRevisionRequest;
+
+ /**
+ * Decodes a DeleteApiSpecRevisionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteApiSpecRevisionRequest
+ * @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.apigeeregistry.v1.DeleteApiSpecRevisionRequest;
+
+ /**
+ * Verifies a DeleteApiSpecRevisionRequest 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 DeleteApiSpecRevisionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteApiSpecRevisionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.DeleteApiSpecRevisionRequest;
+
+ /**
+ * Creates a plain object from a DeleteApiSpecRevisionRequest message. Also converts values to other types if specified.
+ * @param message DeleteApiSpecRevisionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.DeleteApiSpecRevisionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteApiSpecRevisionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteApiSpecRevisionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListApiDeploymentsRequest. */
+ interface IListApiDeploymentsRequest {
+
+ /** ListApiDeploymentsRequest parent */
+ parent?: (string|null);
+
+ /** ListApiDeploymentsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListApiDeploymentsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListApiDeploymentsRequest filter */
+ filter?: (string|null);
+ }
+
+ /** Represents a ListApiDeploymentsRequest. */
+ class ListApiDeploymentsRequest implements IListApiDeploymentsRequest {
+
+ /**
+ * Constructs a new ListApiDeploymentsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IListApiDeploymentsRequest);
+
+ /** ListApiDeploymentsRequest parent. */
+ public parent: string;
+
+ /** ListApiDeploymentsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListApiDeploymentsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListApiDeploymentsRequest filter. */
+ public filter: string;
+
+ /**
+ * Creates a new ListApiDeploymentsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListApiDeploymentsRequest instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IListApiDeploymentsRequest): google.cloud.apigeeregistry.v1.ListApiDeploymentsRequest;
+
+ /**
+ * Encodes the specified ListApiDeploymentsRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApiDeploymentsRequest.verify|verify} messages.
+ * @param message ListApiDeploymentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IListApiDeploymentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListApiDeploymentsRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApiDeploymentsRequest.verify|verify} messages.
+ * @param message ListApiDeploymentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IListApiDeploymentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListApiDeploymentsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListApiDeploymentsRequest
+ * @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.apigeeregistry.v1.ListApiDeploymentsRequest;
+
+ /**
+ * Decodes a ListApiDeploymentsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListApiDeploymentsRequest
+ * @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.apigeeregistry.v1.ListApiDeploymentsRequest;
+
+ /**
+ * Verifies a ListApiDeploymentsRequest 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 ListApiDeploymentsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListApiDeploymentsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.ListApiDeploymentsRequest;
+
+ /**
+ * Creates a plain object from a ListApiDeploymentsRequest message. Also converts values to other types if specified.
+ * @param message ListApiDeploymentsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.ListApiDeploymentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListApiDeploymentsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListApiDeploymentsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListApiDeploymentsResponse. */
+ interface IListApiDeploymentsResponse {
+
+ /** ListApiDeploymentsResponse apiDeployments */
+ apiDeployments?: (google.cloud.apigeeregistry.v1.IApiDeployment[]|null);
+
+ /** ListApiDeploymentsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListApiDeploymentsResponse. */
+ class ListApiDeploymentsResponse implements IListApiDeploymentsResponse {
+
+ /**
+ * Constructs a new ListApiDeploymentsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IListApiDeploymentsResponse);
+
+ /** ListApiDeploymentsResponse apiDeployments. */
+ public apiDeployments: google.cloud.apigeeregistry.v1.IApiDeployment[];
+
+ /** ListApiDeploymentsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListApiDeploymentsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListApiDeploymentsResponse instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IListApiDeploymentsResponse): google.cloud.apigeeregistry.v1.ListApiDeploymentsResponse;
+
+ /**
+ * Encodes the specified ListApiDeploymentsResponse message. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApiDeploymentsResponse.verify|verify} messages.
+ * @param message ListApiDeploymentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IListApiDeploymentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListApiDeploymentsResponse message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApiDeploymentsResponse.verify|verify} messages.
+ * @param message ListApiDeploymentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IListApiDeploymentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListApiDeploymentsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListApiDeploymentsResponse
+ * @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.apigeeregistry.v1.ListApiDeploymentsResponse;
+
+ /**
+ * Decodes a ListApiDeploymentsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListApiDeploymentsResponse
+ * @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.apigeeregistry.v1.ListApiDeploymentsResponse;
+
+ /**
+ * Verifies a ListApiDeploymentsResponse 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 ListApiDeploymentsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListApiDeploymentsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.ListApiDeploymentsResponse;
+
+ /**
+ * Creates a plain object from a ListApiDeploymentsResponse message. Also converts values to other types if specified.
+ * @param message ListApiDeploymentsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.ListApiDeploymentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListApiDeploymentsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListApiDeploymentsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetApiDeploymentRequest. */
+ interface IGetApiDeploymentRequest {
+
+ /** GetApiDeploymentRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetApiDeploymentRequest. */
+ class GetApiDeploymentRequest implements IGetApiDeploymentRequest {
+
+ /**
+ * Constructs a new GetApiDeploymentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IGetApiDeploymentRequest);
+
+ /** GetApiDeploymentRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetApiDeploymentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetApiDeploymentRequest instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IGetApiDeploymentRequest): google.cloud.apigeeregistry.v1.GetApiDeploymentRequest;
+
+ /**
+ * Encodes the specified GetApiDeploymentRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.GetApiDeploymentRequest.verify|verify} messages.
+ * @param message GetApiDeploymentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IGetApiDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetApiDeploymentRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.GetApiDeploymentRequest.verify|verify} messages.
+ * @param message GetApiDeploymentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IGetApiDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetApiDeploymentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetApiDeploymentRequest
+ * @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.apigeeregistry.v1.GetApiDeploymentRequest;
+
+ /**
+ * Decodes a GetApiDeploymentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetApiDeploymentRequest
+ * @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.apigeeregistry.v1.GetApiDeploymentRequest;
+
+ /**
+ * Verifies a GetApiDeploymentRequest 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 GetApiDeploymentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetApiDeploymentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.GetApiDeploymentRequest;
+
+ /**
+ * Creates a plain object from a GetApiDeploymentRequest message. Also converts values to other types if specified.
+ * @param message GetApiDeploymentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.GetApiDeploymentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetApiDeploymentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetApiDeploymentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateApiDeploymentRequest. */
+ interface ICreateApiDeploymentRequest {
+
+ /** CreateApiDeploymentRequest parent */
+ parent?: (string|null);
+
+ /** CreateApiDeploymentRequest apiDeployment */
+ apiDeployment?: (google.cloud.apigeeregistry.v1.IApiDeployment|null);
+
+ /** CreateApiDeploymentRequest apiDeploymentId */
+ apiDeploymentId?: (string|null);
+ }
+
+ /** Represents a CreateApiDeploymentRequest. */
+ class CreateApiDeploymentRequest implements ICreateApiDeploymentRequest {
+
+ /**
+ * Constructs a new CreateApiDeploymentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.ICreateApiDeploymentRequest);
+
+ /** CreateApiDeploymentRequest parent. */
+ public parent: string;
+
+ /** CreateApiDeploymentRequest apiDeployment. */
+ public apiDeployment?: (google.cloud.apigeeregistry.v1.IApiDeployment|null);
+
+ /** CreateApiDeploymentRequest apiDeploymentId. */
+ public apiDeploymentId: string;
+
+ /**
+ * Creates a new CreateApiDeploymentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateApiDeploymentRequest instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.ICreateApiDeploymentRequest): google.cloud.apigeeregistry.v1.CreateApiDeploymentRequest;
+
+ /**
+ * Encodes the specified CreateApiDeploymentRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.CreateApiDeploymentRequest.verify|verify} messages.
+ * @param message CreateApiDeploymentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.ICreateApiDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateApiDeploymentRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.CreateApiDeploymentRequest.verify|verify} messages.
+ * @param message CreateApiDeploymentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.ICreateApiDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateApiDeploymentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateApiDeploymentRequest
+ * @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.apigeeregistry.v1.CreateApiDeploymentRequest;
+
+ /**
+ * Decodes a CreateApiDeploymentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateApiDeploymentRequest
+ * @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.apigeeregistry.v1.CreateApiDeploymentRequest;
+
+ /**
+ * Verifies a CreateApiDeploymentRequest 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 CreateApiDeploymentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateApiDeploymentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.CreateApiDeploymentRequest;
+
+ /**
+ * Creates a plain object from a CreateApiDeploymentRequest message. Also converts values to other types if specified.
+ * @param message CreateApiDeploymentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.CreateApiDeploymentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateApiDeploymentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateApiDeploymentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateApiDeploymentRequest. */
+ interface IUpdateApiDeploymentRequest {
+
+ /** UpdateApiDeploymentRequest apiDeployment */
+ apiDeployment?: (google.cloud.apigeeregistry.v1.IApiDeployment|null);
+
+ /** UpdateApiDeploymentRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateApiDeploymentRequest allowMissing */
+ allowMissing?: (boolean|null);
+ }
+
+ /** Represents an UpdateApiDeploymentRequest. */
+ class UpdateApiDeploymentRequest implements IUpdateApiDeploymentRequest {
+
+ /**
+ * Constructs a new UpdateApiDeploymentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IUpdateApiDeploymentRequest);
+
+ /** UpdateApiDeploymentRequest apiDeployment. */
+ public apiDeployment?: (google.cloud.apigeeregistry.v1.IApiDeployment|null);
+
+ /** UpdateApiDeploymentRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateApiDeploymentRequest allowMissing. */
+ public allowMissing: boolean;
+
+ /**
+ * Creates a new UpdateApiDeploymentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateApiDeploymentRequest instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IUpdateApiDeploymentRequest): google.cloud.apigeeregistry.v1.UpdateApiDeploymentRequest;
+
+ /**
+ * Encodes the specified UpdateApiDeploymentRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.UpdateApiDeploymentRequest.verify|verify} messages.
+ * @param message UpdateApiDeploymentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IUpdateApiDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateApiDeploymentRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.UpdateApiDeploymentRequest.verify|verify} messages.
+ * @param message UpdateApiDeploymentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IUpdateApiDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateApiDeploymentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateApiDeploymentRequest
+ * @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.apigeeregistry.v1.UpdateApiDeploymentRequest;
+
+ /**
+ * Decodes an UpdateApiDeploymentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateApiDeploymentRequest
+ * @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.apigeeregistry.v1.UpdateApiDeploymentRequest;
+
+ /**
+ * Verifies an UpdateApiDeploymentRequest 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 UpdateApiDeploymentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateApiDeploymentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.UpdateApiDeploymentRequest;
+
+ /**
+ * Creates a plain object from an UpdateApiDeploymentRequest message. Also converts values to other types if specified.
+ * @param message UpdateApiDeploymentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.UpdateApiDeploymentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateApiDeploymentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateApiDeploymentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteApiDeploymentRequest. */
+ interface IDeleteApiDeploymentRequest {
+
+ /** DeleteApiDeploymentRequest name */
+ name?: (string|null);
+
+ /** DeleteApiDeploymentRequest force */
+ force?: (boolean|null);
+ }
+
+ /** Represents a DeleteApiDeploymentRequest. */
+ class DeleteApiDeploymentRequest implements IDeleteApiDeploymentRequest {
+
+ /**
+ * Constructs a new DeleteApiDeploymentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IDeleteApiDeploymentRequest);
+
+ /** DeleteApiDeploymentRequest name. */
+ public name: string;
+
+ /** DeleteApiDeploymentRequest force. */
+ public force: boolean;
+
+ /**
+ * Creates a new DeleteApiDeploymentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteApiDeploymentRequest instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IDeleteApiDeploymentRequest): google.cloud.apigeeregistry.v1.DeleteApiDeploymentRequest;
+
+ /**
+ * Encodes the specified DeleteApiDeploymentRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.DeleteApiDeploymentRequest.verify|verify} messages.
+ * @param message DeleteApiDeploymentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IDeleteApiDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteApiDeploymentRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.DeleteApiDeploymentRequest.verify|verify} messages.
+ * @param message DeleteApiDeploymentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IDeleteApiDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteApiDeploymentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteApiDeploymentRequest
+ * @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.apigeeregistry.v1.DeleteApiDeploymentRequest;
+
+ /**
+ * Decodes a DeleteApiDeploymentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteApiDeploymentRequest
+ * @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.apigeeregistry.v1.DeleteApiDeploymentRequest;
+
+ /**
+ * Verifies a DeleteApiDeploymentRequest 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 DeleteApiDeploymentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteApiDeploymentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.DeleteApiDeploymentRequest;
+
+ /**
+ * Creates a plain object from a DeleteApiDeploymentRequest message. Also converts values to other types if specified.
+ * @param message DeleteApiDeploymentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.DeleteApiDeploymentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteApiDeploymentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteApiDeploymentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TagApiDeploymentRevisionRequest. */
+ interface ITagApiDeploymentRevisionRequest {
+
+ /** TagApiDeploymentRevisionRequest name */
+ name?: (string|null);
+
+ /** TagApiDeploymentRevisionRequest tag */
+ tag?: (string|null);
+ }
+
+ /** Represents a TagApiDeploymentRevisionRequest. */
+ class TagApiDeploymentRevisionRequest implements ITagApiDeploymentRevisionRequest {
+
+ /**
+ * Constructs a new TagApiDeploymentRevisionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.ITagApiDeploymentRevisionRequest);
+
+ /** TagApiDeploymentRevisionRequest name. */
+ public name: string;
+
+ /** TagApiDeploymentRevisionRequest tag. */
+ public tag: string;
+
+ /**
+ * Creates a new TagApiDeploymentRevisionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TagApiDeploymentRevisionRequest instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.ITagApiDeploymentRevisionRequest): google.cloud.apigeeregistry.v1.TagApiDeploymentRevisionRequest;
+
+ /**
+ * Encodes the specified TagApiDeploymentRevisionRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.TagApiDeploymentRevisionRequest.verify|verify} messages.
+ * @param message TagApiDeploymentRevisionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.ITagApiDeploymentRevisionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TagApiDeploymentRevisionRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.TagApiDeploymentRevisionRequest.verify|verify} messages.
+ * @param message TagApiDeploymentRevisionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.ITagApiDeploymentRevisionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TagApiDeploymentRevisionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TagApiDeploymentRevisionRequest
+ * @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.apigeeregistry.v1.TagApiDeploymentRevisionRequest;
+
+ /**
+ * Decodes a TagApiDeploymentRevisionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TagApiDeploymentRevisionRequest
+ * @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.apigeeregistry.v1.TagApiDeploymentRevisionRequest;
+
+ /**
+ * Verifies a TagApiDeploymentRevisionRequest 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 TagApiDeploymentRevisionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TagApiDeploymentRevisionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.TagApiDeploymentRevisionRequest;
+
+ /**
+ * Creates a plain object from a TagApiDeploymentRevisionRequest message. Also converts values to other types if specified.
+ * @param message TagApiDeploymentRevisionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.TagApiDeploymentRevisionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TagApiDeploymentRevisionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TagApiDeploymentRevisionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListApiDeploymentRevisionsRequest. */
+ interface IListApiDeploymentRevisionsRequest {
+
+ /** ListApiDeploymentRevisionsRequest name */
+ name?: (string|null);
+
+ /** ListApiDeploymentRevisionsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListApiDeploymentRevisionsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListApiDeploymentRevisionsRequest. */
+ class ListApiDeploymentRevisionsRequest implements IListApiDeploymentRevisionsRequest {
+
+ /**
+ * Constructs a new ListApiDeploymentRevisionsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IListApiDeploymentRevisionsRequest);
+
+ /** ListApiDeploymentRevisionsRequest name. */
+ public name: string;
+
+ /** ListApiDeploymentRevisionsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListApiDeploymentRevisionsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListApiDeploymentRevisionsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListApiDeploymentRevisionsRequest instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IListApiDeploymentRevisionsRequest): google.cloud.apigeeregistry.v1.ListApiDeploymentRevisionsRequest;
+
+ /**
+ * Encodes the specified ListApiDeploymentRevisionsRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApiDeploymentRevisionsRequest.verify|verify} messages.
+ * @param message ListApiDeploymentRevisionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IListApiDeploymentRevisionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListApiDeploymentRevisionsRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApiDeploymentRevisionsRequest.verify|verify} messages.
+ * @param message ListApiDeploymentRevisionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IListApiDeploymentRevisionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListApiDeploymentRevisionsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListApiDeploymentRevisionsRequest
+ * @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.apigeeregistry.v1.ListApiDeploymentRevisionsRequest;
+
+ /**
+ * Decodes a ListApiDeploymentRevisionsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListApiDeploymentRevisionsRequest
+ * @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.apigeeregistry.v1.ListApiDeploymentRevisionsRequest;
+
+ /**
+ * Verifies a ListApiDeploymentRevisionsRequest 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 ListApiDeploymentRevisionsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListApiDeploymentRevisionsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.ListApiDeploymentRevisionsRequest;
+
+ /**
+ * Creates a plain object from a ListApiDeploymentRevisionsRequest message. Also converts values to other types if specified.
+ * @param message ListApiDeploymentRevisionsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.ListApiDeploymentRevisionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListApiDeploymentRevisionsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListApiDeploymentRevisionsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListApiDeploymentRevisionsResponse. */
+ interface IListApiDeploymentRevisionsResponse {
+
+ /** ListApiDeploymentRevisionsResponse apiDeployments */
+ apiDeployments?: (google.cloud.apigeeregistry.v1.IApiDeployment[]|null);
+
+ /** ListApiDeploymentRevisionsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListApiDeploymentRevisionsResponse. */
+ class ListApiDeploymentRevisionsResponse implements IListApiDeploymentRevisionsResponse {
+
+ /**
+ * Constructs a new ListApiDeploymentRevisionsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IListApiDeploymentRevisionsResponse);
+
+ /** ListApiDeploymentRevisionsResponse apiDeployments. */
+ public apiDeployments: google.cloud.apigeeregistry.v1.IApiDeployment[];
+
+ /** ListApiDeploymentRevisionsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListApiDeploymentRevisionsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListApiDeploymentRevisionsResponse instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IListApiDeploymentRevisionsResponse): google.cloud.apigeeregistry.v1.ListApiDeploymentRevisionsResponse;
+
+ /**
+ * Encodes the specified ListApiDeploymentRevisionsResponse message. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApiDeploymentRevisionsResponse.verify|verify} messages.
+ * @param message ListApiDeploymentRevisionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IListApiDeploymentRevisionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListApiDeploymentRevisionsResponse message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApiDeploymentRevisionsResponse.verify|verify} messages.
+ * @param message ListApiDeploymentRevisionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IListApiDeploymentRevisionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListApiDeploymentRevisionsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListApiDeploymentRevisionsResponse
+ * @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.apigeeregistry.v1.ListApiDeploymentRevisionsResponse;
+
+ /**
+ * Decodes a ListApiDeploymentRevisionsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListApiDeploymentRevisionsResponse
+ * @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.apigeeregistry.v1.ListApiDeploymentRevisionsResponse;
+
+ /**
+ * Verifies a ListApiDeploymentRevisionsResponse 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 ListApiDeploymentRevisionsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListApiDeploymentRevisionsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.ListApiDeploymentRevisionsResponse;
+
+ /**
+ * Creates a plain object from a ListApiDeploymentRevisionsResponse message. Also converts values to other types if specified.
+ * @param message ListApiDeploymentRevisionsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.ListApiDeploymentRevisionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListApiDeploymentRevisionsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListApiDeploymentRevisionsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RollbackApiDeploymentRequest. */
+ interface IRollbackApiDeploymentRequest {
+
+ /** RollbackApiDeploymentRequest name */
+ name?: (string|null);
+
+ /** RollbackApiDeploymentRequest revisionId */
+ revisionId?: (string|null);
+ }
+
+ /** Represents a RollbackApiDeploymentRequest. */
+ class RollbackApiDeploymentRequest implements IRollbackApiDeploymentRequest {
+
+ /**
+ * Constructs a new RollbackApiDeploymentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IRollbackApiDeploymentRequest);
+
+ /** RollbackApiDeploymentRequest name. */
+ public name: string;
+
+ /** RollbackApiDeploymentRequest revisionId. */
+ public revisionId: string;
+
+ /**
+ * Creates a new RollbackApiDeploymentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RollbackApiDeploymentRequest instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IRollbackApiDeploymentRequest): google.cloud.apigeeregistry.v1.RollbackApiDeploymentRequest;
+
+ /**
+ * Encodes the specified RollbackApiDeploymentRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.RollbackApiDeploymentRequest.verify|verify} messages.
+ * @param message RollbackApiDeploymentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IRollbackApiDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RollbackApiDeploymentRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.RollbackApiDeploymentRequest.verify|verify} messages.
+ * @param message RollbackApiDeploymentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IRollbackApiDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RollbackApiDeploymentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RollbackApiDeploymentRequest
+ * @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.apigeeregistry.v1.RollbackApiDeploymentRequest;
+
+ /**
+ * Decodes a RollbackApiDeploymentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RollbackApiDeploymentRequest
+ * @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.apigeeregistry.v1.RollbackApiDeploymentRequest;
+
+ /**
+ * Verifies a RollbackApiDeploymentRequest 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 RollbackApiDeploymentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RollbackApiDeploymentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.RollbackApiDeploymentRequest;
+
+ /**
+ * Creates a plain object from a RollbackApiDeploymentRequest message. Also converts values to other types if specified.
+ * @param message RollbackApiDeploymentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.RollbackApiDeploymentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RollbackApiDeploymentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RollbackApiDeploymentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteApiDeploymentRevisionRequest. */
+ interface IDeleteApiDeploymentRevisionRequest {
+
+ /** DeleteApiDeploymentRevisionRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteApiDeploymentRevisionRequest. */
+ class DeleteApiDeploymentRevisionRequest implements IDeleteApiDeploymentRevisionRequest {
+
+ /**
+ * Constructs a new DeleteApiDeploymentRevisionRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IDeleteApiDeploymentRevisionRequest);
+
+ /** DeleteApiDeploymentRevisionRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteApiDeploymentRevisionRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteApiDeploymentRevisionRequest instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IDeleteApiDeploymentRevisionRequest): google.cloud.apigeeregistry.v1.DeleteApiDeploymentRevisionRequest;
+
+ /**
+ * Encodes the specified DeleteApiDeploymentRevisionRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.DeleteApiDeploymentRevisionRequest.verify|verify} messages.
+ * @param message DeleteApiDeploymentRevisionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IDeleteApiDeploymentRevisionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteApiDeploymentRevisionRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.DeleteApiDeploymentRevisionRequest.verify|verify} messages.
+ * @param message DeleteApiDeploymentRevisionRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IDeleteApiDeploymentRevisionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteApiDeploymentRevisionRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteApiDeploymentRevisionRequest
+ * @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.apigeeregistry.v1.DeleteApiDeploymentRevisionRequest;
+
+ /**
+ * Decodes a DeleteApiDeploymentRevisionRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteApiDeploymentRevisionRequest
+ * @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.apigeeregistry.v1.DeleteApiDeploymentRevisionRequest;
+
+ /**
+ * Verifies a DeleteApiDeploymentRevisionRequest 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 DeleteApiDeploymentRevisionRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteApiDeploymentRevisionRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.DeleteApiDeploymentRevisionRequest;
+
+ /**
+ * Creates a plain object from a DeleteApiDeploymentRevisionRequest message. Also converts values to other types if specified.
+ * @param message DeleteApiDeploymentRevisionRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.DeleteApiDeploymentRevisionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteApiDeploymentRevisionRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteApiDeploymentRevisionRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListArtifactsRequest. */
+ interface IListArtifactsRequest {
+
+ /** ListArtifactsRequest parent */
+ parent?: (string|null);
+
+ /** ListArtifactsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListArtifactsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListArtifactsRequest filter */
+ filter?: (string|null);
+ }
+
+ /** Represents a ListArtifactsRequest. */
+ class ListArtifactsRequest implements IListArtifactsRequest {
+
+ /**
+ * Constructs a new ListArtifactsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IListArtifactsRequest);
+
+ /** ListArtifactsRequest parent. */
+ public parent: string;
+
+ /** ListArtifactsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListArtifactsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListArtifactsRequest filter. */
+ public filter: string;
+
+ /**
+ * Creates a new ListArtifactsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListArtifactsRequest instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IListArtifactsRequest): google.cloud.apigeeregistry.v1.ListArtifactsRequest;
+
+ /**
+ * Encodes the specified ListArtifactsRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListArtifactsRequest.verify|verify} messages.
+ * @param message ListArtifactsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IListArtifactsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListArtifactsRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListArtifactsRequest.verify|verify} messages.
+ * @param message ListArtifactsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IListArtifactsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListArtifactsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListArtifactsRequest
+ * @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.apigeeregistry.v1.ListArtifactsRequest;
+
+ /**
+ * Decodes a ListArtifactsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListArtifactsRequest
+ * @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.apigeeregistry.v1.ListArtifactsRequest;
+
+ /**
+ * Verifies a ListArtifactsRequest 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 ListArtifactsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListArtifactsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.ListArtifactsRequest;
+
+ /**
+ * Creates a plain object from a ListArtifactsRequest message. Also converts values to other types if specified.
+ * @param message ListArtifactsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.ListArtifactsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListArtifactsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListArtifactsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListArtifactsResponse. */
+ interface IListArtifactsResponse {
+
+ /** ListArtifactsResponse artifacts */
+ artifacts?: (google.cloud.apigeeregistry.v1.IArtifact[]|null);
+
+ /** ListArtifactsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListArtifactsResponse. */
+ class ListArtifactsResponse implements IListArtifactsResponse {
+
+ /**
+ * Constructs a new ListArtifactsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IListArtifactsResponse);
+
+ /** ListArtifactsResponse artifacts. */
+ public artifacts: google.cloud.apigeeregistry.v1.IArtifact[];
+
+ /** ListArtifactsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListArtifactsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListArtifactsResponse instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IListArtifactsResponse): google.cloud.apigeeregistry.v1.ListArtifactsResponse;
+
+ /**
+ * Encodes the specified ListArtifactsResponse message. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListArtifactsResponse.verify|verify} messages.
+ * @param message ListArtifactsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IListArtifactsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListArtifactsResponse message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListArtifactsResponse.verify|verify} messages.
+ * @param message ListArtifactsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IListArtifactsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListArtifactsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListArtifactsResponse
+ * @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.apigeeregistry.v1.ListArtifactsResponse;
+
+ /**
+ * Decodes a ListArtifactsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListArtifactsResponse
+ * @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.apigeeregistry.v1.ListArtifactsResponse;
+
+ /**
+ * Verifies a ListArtifactsResponse 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 ListArtifactsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListArtifactsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.ListArtifactsResponse;
+
+ /**
+ * Creates a plain object from a ListArtifactsResponse message. Also converts values to other types if specified.
+ * @param message ListArtifactsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.ListArtifactsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListArtifactsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListArtifactsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetArtifactRequest. */
+ interface IGetArtifactRequest {
+
+ /** GetArtifactRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetArtifactRequest. */
+ class GetArtifactRequest implements IGetArtifactRequest {
+
+ /**
+ * Constructs a new GetArtifactRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IGetArtifactRequest);
+
+ /** GetArtifactRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetArtifactRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetArtifactRequest instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IGetArtifactRequest): google.cloud.apigeeregistry.v1.GetArtifactRequest;
+
+ /**
+ * Encodes the specified GetArtifactRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.GetArtifactRequest.verify|verify} messages.
+ * @param message GetArtifactRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IGetArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.GetArtifactRequest.verify|verify} messages.
+ * @param message GetArtifactRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IGetArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetArtifactRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetArtifactRequest
+ * @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.apigeeregistry.v1.GetArtifactRequest;
+
+ /**
+ * Decodes a GetArtifactRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetArtifactRequest
+ * @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.apigeeregistry.v1.GetArtifactRequest;
+
+ /**
+ * Verifies a GetArtifactRequest 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 GetArtifactRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetArtifactRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.GetArtifactRequest;
+
+ /**
+ * Creates a plain object from a GetArtifactRequest message. Also converts values to other types if specified.
+ * @param message GetArtifactRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.GetArtifactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetArtifactRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetArtifactRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetArtifactContentsRequest. */
+ interface IGetArtifactContentsRequest {
+
+ /** GetArtifactContentsRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetArtifactContentsRequest. */
+ class GetArtifactContentsRequest implements IGetArtifactContentsRequest {
+
+ /**
+ * Constructs a new GetArtifactContentsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IGetArtifactContentsRequest);
+
+ /** GetArtifactContentsRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetArtifactContentsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetArtifactContentsRequest instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IGetArtifactContentsRequest): google.cloud.apigeeregistry.v1.GetArtifactContentsRequest;
+
+ /**
+ * Encodes the specified GetArtifactContentsRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.GetArtifactContentsRequest.verify|verify} messages.
+ * @param message GetArtifactContentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IGetArtifactContentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetArtifactContentsRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.GetArtifactContentsRequest.verify|verify} messages.
+ * @param message GetArtifactContentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IGetArtifactContentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetArtifactContentsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetArtifactContentsRequest
+ * @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.apigeeregistry.v1.GetArtifactContentsRequest;
+
+ /**
+ * Decodes a GetArtifactContentsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetArtifactContentsRequest
+ * @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.apigeeregistry.v1.GetArtifactContentsRequest;
+
+ /**
+ * Verifies a GetArtifactContentsRequest 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 GetArtifactContentsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetArtifactContentsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.GetArtifactContentsRequest;
+
+ /**
+ * Creates a plain object from a GetArtifactContentsRequest message. Also converts values to other types if specified.
+ * @param message GetArtifactContentsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.GetArtifactContentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetArtifactContentsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetArtifactContentsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateArtifactRequest. */
+ interface ICreateArtifactRequest {
+
+ /** CreateArtifactRequest parent */
+ parent?: (string|null);
+
+ /** CreateArtifactRequest artifact */
+ artifact?: (google.cloud.apigeeregistry.v1.IArtifact|null);
+
+ /** CreateArtifactRequest artifactId */
+ artifactId?: (string|null);
+ }
+
+ /** Represents a CreateArtifactRequest. */
+ class CreateArtifactRequest implements ICreateArtifactRequest {
+
+ /**
+ * Constructs a new CreateArtifactRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.ICreateArtifactRequest);
+
+ /** CreateArtifactRequest parent. */
+ public parent: string;
+
+ /** CreateArtifactRequest artifact. */
+ public artifact?: (google.cloud.apigeeregistry.v1.IArtifact|null);
+
+ /** CreateArtifactRequest artifactId. */
+ public artifactId: string;
+
+ /**
+ * Creates a new CreateArtifactRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateArtifactRequest instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.ICreateArtifactRequest): google.cloud.apigeeregistry.v1.CreateArtifactRequest;
+
+ /**
+ * Encodes the specified CreateArtifactRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.CreateArtifactRequest.verify|verify} messages.
+ * @param message CreateArtifactRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.ICreateArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.CreateArtifactRequest.verify|verify} messages.
+ * @param message CreateArtifactRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.ICreateArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateArtifactRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateArtifactRequest
+ * @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.apigeeregistry.v1.CreateArtifactRequest;
+
+ /**
+ * Decodes a CreateArtifactRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateArtifactRequest
+ * @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.apigeeregistry.v1.CreateArtifactRequest;
+
+ /**
+ * Verifies a CreateArtifactRequest 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 CreateArtifactRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateArtifactRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.CreateArtifactRequest;
+
+ /**
+ * Creates a plain object from a CreateArtifactRequest message. Also converts values to other types if specified.
+ * @param message CreateArtifactRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.CreateArtifactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateArtifactRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateArtifactRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ReplaceArtifactRequest. */
+ interface IReplaceArtifactRequest {
+
+ /** ReplaceArtifactRequest artifact */
+ artifact?: (google.cloud.apigeeregistry.v1.IArtifact|null);
+ }
+
+ /** Represents a ReplaceArtifactRequest. */
+ class ReplaceArtifactRequest implements IReplaceArtifactRequest {
+
+ /**
+ * Constructs a new ReplaceArtifactRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IReplaceArtifactRequest);
+
+ /** ReplaceArtifactRequest artifact. */
+ public artifact?: (google.cloud.apigeeregistry.v1.IArtifact|null);
+
+ /**
+ * Creates a new ReplaceArtifactRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReplaceArtifactRequest instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IReplaceArtifactRequest): google.cloud.apigeeregistry.v1.ReplaceArtifactRequest;
+
+ /**
+ * Encodes the specified ReplaceArtifactRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.ReplaceArtifactRequest.verify|verify} messages.
+ * @param message ReplaceArtifactRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IReplaceArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReplaceArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.ReplaceArtifactRequest.verify|verify} messages.
+ * @param message ReplaceArtifactRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IReplaceArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReplaceArtifactRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReplaceArtifactRequest
+ * @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.apigeeregistry.v1.ReplaceArtifactRequest;
+
+ /**
+ * Decodes a ReplaceArtifactRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReplaceArtifactRequest
+ * @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.apigeeregistry.v1.ReplaceArtifactRequest;
+
+ /**
+ * Verifies a ReplaceArtifactRequest 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 ReplaceArtifactRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReplaceArtifactRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.ReplaceArtifactRequest;
+
+ /**
+ * Creates a plain object from a ReplaceArtifactRequest message. Also converts values to other types if specified.
+ * @param message ReplaceArtifactRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.ReplaceArtifactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReplaceArtifactRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReplaceArtifactRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteArtifactRequest. */
+ interface IDeleteArtifactRequest {
+
+ /** DeleteArtifactRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteArtifactRequest. */
+ class DeleteArtifactRequest implements IDeleteArtifactRequest {
+
+ /**
+ * Constructs a new DeleteArtifactRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.apigeeregistry.v1.IDeleteArtifactRequest);
+
+ /** DeleteArtifactRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteArtifactRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteArtifactRequest instance
+ */
+ public static create(properties?: google.cloud.apigeeregistry.v1.IDeleteArtifactRequest): google.cloud.apigeeregistry.v1.DeleteArtifactRequest;
+
+ /**
+ * Encodes the specified DeleteArtifactRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.DeleteArtifactRequest.verify|verify} messages.
+ * @param message DeleteArtifactRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.apigeeregistry.v1.IDeleteArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.DeleteArtifactRequest.verify|verify} messages.
+ * @param message DeleteArtifactRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.apigeeregistry.v1.IDeleteArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteArtifactRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteArtifactRequest
+ * @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.apigeeregistry.v1.DeleteArtifactRequest;
+
+ /**
+ * Decodes a DeleteArtifactRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteArtifactRequest
+ * @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.apigeeregistry.v1.DeleteArtifactRequest;
+
+ /**
+ * Verifies a DeleteArtifactRequest 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 DeleteArtifactRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteArtifactRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.apigeeregistry.v1.DeleteArtifactRequest;
+
+ /**
+ * Creates a plain object from a DeleteArtifactRequest message. Also converts values to other types if specified.
+ * @param message DeleteArtifactRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.apigeeregistry.v1.DeleteArtifactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteArtifactRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteArtifactRequest
+ * @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);
+ }
+
+ /** 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[];
+
+ /**
+ * 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);
+ }
+
+ /** 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);
+
+ /**
+ * 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);
+ }
+
+ /** 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);
+
+ /**
+ * 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
+ }
+
+ /** 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
+ }
+
+ /** 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;
+ }
+
+ /** Properties of a HttpBody. */
+ interface IHttpBody {
+
+ /** HttpBody contentType */
+ contentType?: (string|null);
+
+ /** HttpBody data */
+ data?: (Uint8Array|string|null);
+
+ /** HttpBody extensions */
+ extensions?: (google.protobuf.IAny[]|null);
+ }
+
+ /** Represents a HttpBody. */
+ class HttpBody implements IHttpBody {
+
+ /**
+ * Constructs a new HttpBody.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttpBody);
+
+ /** HttpBody contentType. */
+ public contentType: string;
+
+ /** HttpBody data. */
+ public data: (Uint8Array|string);
+
+ /** HttpBody extensions. */
+ public extensions: google.protobuf.IAny[];
+
+ /**
+ * Creates a new HttpBody instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HttpBody instance
+ */
+ public static create(properties?: google.api.IHttpBody): google.api.HttpBody;
+
+ /**
+ * Encodes the specified HttpBody message. Does not implicitly {@link google.api.HttpBody.verify|verify} messages.
+ * @param message HttpBody message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttpBody, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HttpBody message, length delimited. Does not implicitly {@link google.api.HttpBody.verify|verify} messages.
+ * @param message HttpBody message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttpBody, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HttpBody message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HttpBody
+ * @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.HttpBody;
+
+ /**
+ * Decodes a HttpBody message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HttpBody
+ * @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.HttpBody;
+
+ /**
+ * Verifies a HttpBody 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 HttpBody message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HttpBody
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.HttpBody;
+
+ /**
+ * Creates a plain object from a HttpBody message. Also converts values to other types if specified.
+ * @param message HttpBody
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.HttpBody, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HttpBody to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HttpBody
+ * @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;
+ }
+
+ /** 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?: (string|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: string;
+
+ /**
+ * 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);
+ }
+
+ /** 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[];
+
+ /**
+ * 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;
+ }
+
+ /** 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_REQUIRED = 2,
+ LABEL_REPEATED = 3
+ }
+ }
+
+ /** 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 phpGenericServices */
+ phpGenericServices?: (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 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 phpGenericServices. */
+ public phpGenericServices: 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 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 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 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 target */
+ target?: (google.protobuf.FieldOptions.OptionTargetType|keyof typeof google.protobuf.FieldOptions.OptionTargetType|null);
+
+ /** FieldOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** FieldOptions .google.api.fieldBehavior */
+ ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|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 target. */
+ public target: (google.protobuf.FieldOptions.OptionTargetType|keyof typeof google.protobuf.FieldOptions.OptionTargetType);
+
+ /** 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 OneofOptions. */
+ interface IOneofOptions {
+
+ /** 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 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 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 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 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 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 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 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 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 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 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 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;
+ }
+
+ /** 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;
+ }
+ }
+
+ /** 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-apigeeregistry/protos/protos.js b/packages/google-cloud-apigeeregistry/protos/protos.js
new file mode 100644
index 00000000000..c2c9af179f4
--- /dev/null
+++ b/packages/google-cloud-apigeeregistry/protos/protos.js
@@ -0,0 +1,34270 @@
+// Copyright 2023 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_apigee_registry_protos || ($protobuf.roots._google_cloud_apigee_registry_protos = {});
+
+ $root.google = (function() {
+
+ /**
+ * Namespace google.
+ * @exports google
+ * @namespace
+ */
+ var google = {};
+
+ google.cloud = (function() {
+
+ /**
+ * Namespace cloud.
+ * @memberof google
+ * @namespace
+ */
+ var cloud = {};
+
+ cloud.apigeeregistry = (function() {
+
+ /**
+ * Namespace apigeeregistry.
+ * @memberof google.cloud
+ * @namespace
+ */
+ var apigeeregistry = {};
+
+ apigeeregistry.v1 = (function() {
+
+ /**
+ * Namespace v1.
+ * @memberof google.cloud.apigeeregistry
+ * @namespace
+ */
+ var v1 = {};
+
+ v1.Provisioning = (function() {
+
+ /**
+ * Constructs a new Provisioning service.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @classdesc Represents a Provisioning
+ * @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 Provisioning(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (Provisioning.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Provisioning;
+
+ /**
+ * Creates new Provisioning service using the specified rpc implementation.
+ * @function create
+ * @memberof google.cloud.apigeeregistry.v1.Provisioning
+ * @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 {Provisioning} RPC service. Useful where requests and/or responses are streamed.
+ */
+ Provisioning.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Provisioning|createInstance}.
+ * @memberof google.cloud.apigeeregistry.v1.Provisioning
+ * @typedef CreateInstanceCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateInstance.
+ * @function createInstance
+ * @memberof google.cloud.apigeeregistry.v1.Provisioning
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.ICreateInstanceRequest} request CreateInstanceRequest message or plain object
+ * @param {google.cloud.apigeeregistry.v1.Provisioning.CreateInstanceCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Provisioning.prototype.createInstance = function createInstance(request, callback) {
+ return this.rpcCall(createInstance, $root.google.cloud.apigeeregistry.v1.CreateInstanceRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateInstance" });
+
+ /**
+ * Calls CreateInstance.
+ * @function createInstance
+ * @memberof google.cloud.apigeeregistry.v1.Provisioning
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.ICreateInstanceRequest} request CreateInstanceRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Provisioning|deleteInstance}.
+ * @memberof google.cloud.apigeeregistry.v1.Provisioning
+ * @typedef DeleteInstanceCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeleteInstance.
+ * @function deleteInstance
+ * @memberof google.cloud.apigeeregistry.v1.Provisioning
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IDeleteInstanceRequest} request DeleteInstanceRequest message or plain object
+ * @param {google.cloud.apigeeregistry.v1.Provisioning.DeleteInstanceCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Provisioning.prototype.deleteInstance = function deleteInstance(request, callback) {
+ return this.rpcCall(deleteInstance, $root.google.cloud.apigeeregistry.v1.DeleteInstanceRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeleteInstance" });
+
+ /**
+ * Calls DeleteInstance.
+ * @function deleteInstance
+ * @memberof google.cloud.apigeeregistry.v1.Provisioning
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IDeleteInstanceRequest} request DeleteInstanceRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Provisioning|getInstance}.
+ * @memberof google.cloud.apigeeregistry.v1.Provisioning
+ * @typedef GetInstanceCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.apigeeregistry.v1.Instance} [response] Instance
+ */
+
+ /**
+ * Calls GetInstance.
+ * @function getInstance
+ * @memberof google.cloud.apigeeregistry.v1.Provisioning
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IGetInstanceRequest} request GetInstanceRequest message or plain object
+ * @param {google.cloud.apigeeregistry.v1.Provisioning.GetInstanceCallback} callback Node-style callback called with the error, if any, and Instance
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Provisioning.prototype.getInstance = function getInstance(request, callback) {
+ return this.rpcCall(getInstance, $root.google.cloud.apigeeregistry.v1.GetInstanceRequest, $root.google.cloud.apigeeregistry.v1.Instance, request, callback);
+ }, "name", { value: "GetInstance" });
+
+ /**
+ * Calls GetInstance.
+ * @function getInstance
+ * @memberof google.cloud.apigeeregistry.v1.Provisioning
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IGetInstanceRequest} request GetInstanceRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ return Provisioning;
+ })();
+
+ v1.CreateInstanceRequest = (function() {
+
+ /**
+ * Properties of a CreateInstanceRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @interface ICreateInstanceRequest
+ * @property {string|null} [parent] CreateInstanceRequest parent
+ * @property {string|null} [instanceId] CreateInstanceRequest instanceId
+ * @property {google.cloud.apigeeregistry.v1.IInstance|null} [instance] CreateInstanceRequest instance
+ */
+
+ /**
+ * Constructs a new CreateInstanceRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @classdesc Represents a CreateInstanceRequest.
+ * @implements ICreateInstanceRequest
+ * @constructor
+ * @param {google.cloud.apigeeregistry.v1.ICreateInstanceRequest=} [properties] Properties to set
+ */
+ function CreateInstanceRequest(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]];
+ }
+
+ /**
+ * CreateInstanceRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.apigeeregistry.v1.CreateInstanceRequest
+ * @instance
+ */
+ CreateInstanceRequest.prototype.parent = "";
+
+ /**
+ * CreateInstanceRequest instanceId.
+ * @member {string} instanceId
+ * @memberof google.cloud.apigeeregistry.v1.CreateInstanceRequest
+ * @instance
+ */
+ CreateInstanceRequest.prototype.instanceId = "";
+
+ /**
+ * CreateInstanceRequest instance.
+ * @member {google.cloud.apigeeregistry.v1.IInstance|null|undefined} instance
+ * @memberof google.cloud.apigeeregistry.v1.CreateInstanceRequest
+ * @instance
+ */
+ CreateInstanceRequest.prototype.instance = null;
+
+ /**
+ * Creates a new CreateInstanceRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.apigeeregistry.v1.CreateInstanceRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.ICreateInstanceRequest=} [properties] Properties to set
+ * @returns {google.cloud.apigeeregistry.v1.CreateInstanceRequest} CreateInstanceRequest instance
+ */
+ CreateInstanceRequest.create = function create(properties) {
+ return new CreateInstanceRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateInstanceRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.CreateInstanceRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.apigeeregistry.v1.CreateInstanceRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.ICreateInstanceRequest} message CreateInstanceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateInstanceRequest.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.instanceId != null && Object.hasOwnProperty.call(message, "instanceId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.instanceId);
+ if (message.instance != null && Object.hasOwnProperty.call(message, "instance"))
+ $root.google.cloud.apigeeregistry.v1.Instance.encode(message.instance, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.CreateInstanceRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.CreateInstanceRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.ICreateInstanceRequest} message CreateInstanceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateInstanceRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateInstanceRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.apigeeregistry.v1.CreateInstanceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.apigeeregistry.v1.CreateInstanceRequest} CreateInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateInstanceRequest.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.apigeeregistry.v1.CreateInstanceRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.instanceId = reader.string();
+ break;
+ }
+ case 3: {
+ message.instance = $root.google.cloud.apigeeregistry.v1.Instance.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateInstanceRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.CreateInstanceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.apigeeregistry.v1.CreateInstanceRequest} CreateInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateInstanceRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateInstanceRequest message.
+ * @function verify
+ * @memberof google.cloud.apigeeregistry.v1.CreateInstanceRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateInstanceRequest.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.instanceId != null && message.hasOwnProperty("instanceId"))
+ if (!$util.isString(message.instanceId))
+ return "instanceId: string expected";
+ if (message.instance != null && message.hasOwnProperty("instance")) {
+ var error = $root.google.cloud.apigeeregistry.v1.Instance.verify(message.instance);
+ if (error)
+ return "instance." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a CreateInstanceRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.apigeeregistry.v1.CreateInstanceRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.apigeeregistry.v1.CreateInstanceRequest} CreateInstanceRequest
+ */
+ CreateInstanceRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.apigeeregistry.v1.CreateInstanceRequest)
+ return object;
+ var message = new $root.google.cloud.apigeeregistry.v1.CreateInstanceRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.instanceId != null)
+ message.instanceId = String(object.instanceId);
+ if (object.instance != null) {
+ if (typeof object.instance !== "object")
+ throw TypeError(".google.cloud.apigeeregistry.v1.CreateInstanceRequest.instance: object expected");
+ message.instance = $root.google.cloud.apigeeregistry.v1.Instance.fromObject(object.instance);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateInstanceRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.apigeeregistry.v1.CreateInstanceRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.CreateInstanceRequest} message CreateInstanceRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateInstanceRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.instanceId = "";
+ object.instance = null;
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.instanceId != null && message.hasOwnProperty("instanceId"))
+ object.instanceId = message.instanceId;
+ if (message.instance != null && message.hasOwnProperty("instance"))
+ object.instance = $root.google.cloud.apigeeregistry.v1.Instance.toObject(message.instance, options);
+ return object;
+ };
+
+ /**
+ * Converts this CreateInstanceRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.apigeeregistry.v1.CreateInstanceRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateInstanceRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateInstanceRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.apigeeregistry.v1.CreateInstanceRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateInstanceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.apigeeregistry.v1.CreateInstanceRequest";
+ };
+
+ return CreateInstanceRequest;
+ })();
+
+ v1.DeleteInstanceRequest = (function() {
+
+ /**
+ * Properties of a DeleteInstanceRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @interface IDeleteInstanceRequest
+ * @property {string|null} [name] DeleteInstanceRequest name
+ */
+
+ /**
+ * Constructs a new DeleteInstanceRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @classdesc Represents a DeleteInstanceRequest.
+ * @implements IDeleteInstanceRequest
+ * @constructor
+ * @param {google.cloud.apigeeregistry.v1.IDeleteInstanceRequest=} [properties] Properties to set
+ */
+ function DeleteInstanceRequest(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]];
+ }
+
+ /**
+ * DeleteInstanceRequest name.
+ * @member {string} name
+ * @memberof google.cloud.apigeeregistry.v1.DeleteInstanceRequest
+ * @instance
+ */
+ DeleteInstanceRequest.prototype.name = "";
+
+ /**
+ * Creates a new DeleteInstanceRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.apigeeregistry.v1.DeleteInstanceRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IDeleteInstanceRequest=} [properties] Properties to set
+ * @returns {google.cloud.apigeeregistry.v1.DeleteInstanceRequest} DeleteInstanceRequest instance
+ */
+ DeleteInstanceRequest.create = function create(properties) {
+ return new DeleteInstanceRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteInstanceRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.DeleteInstanceRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.apigeeregistry.v1.DeleteInstanceRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IDeleteInstanceRequest} message DeleteInstanceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteInstanceRequest.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 DeleteInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.DeleteInstanceRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.DeleteInstanceRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IDeleteInstanceRequest} message DeleteInstanceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteInstanceRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteInstanceRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.apigeeregistry.v1.DeleteInstanceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.apigeeregistry.v1.DeleteInstanceRequest} DeleteInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteInstanceRequest.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.apigeeregistry.v1.DeleteInstanceRequest();
+ 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 DeleteInstanceRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.DeleteInstanceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.apigeeregistry.v1.DeleteInstanceRequest} DeleteInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteInstanceRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteInstanceRequest message.
+ * @function verify
+ * @memberof google.cloud.apigeeregistry.v1.DeleteInstanceRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteInstanceRequest.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 DeleteInstanceRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.apigeeregistry.v1.DeleteInstanceRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.apigeeregistry.v1.DeleteInstanceRequest} DeleteInstanceRequest
+ */
+ DeleteInstanceRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.apigeeregistry.v1.DeleteInstanceRequest)
+ return object;
+ var message = new $root.google.cloud.apigeeregistry.v1.DeleteInstanceRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteInstanceRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.apigeeregistry.v1.DeleteInstanceRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.DeleteInstanceRequest} message DeleteInstanceRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteInstanceRequest.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 DeleteInstanceRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.apigeeregistry.v1.DeleteInstanceRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteInstanceRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteInstanceRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.apigeeregistry.v1.DeleteInstanceRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteInstanceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.apigeeregistry.v1.DeleteInstanceRequest";
+ };
+
+ return DeleteInstanceRequest;
+ })();
+
+ v1.GetInstanceRequest = (function() {
+
+ /**
+ * Properties of a GetInstanceRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @interface IGetInstanceRequest
+ * @property {string|null} [name] GetInstanceRequest name
+ */
+
+ /**
+ * Constructs a new GetInstanceRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @classdesc Represents a GetInstanceRequest.
+ * @implements IGetInstanceRequest
+ * @constructor
+ * @param {google.cloud.apigeeregistry.v1.IGetInstanceRequest=} [properties] Properties to set
+ */
+ function GetInstanceRequest(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]];
+ }
+
+ /**
+ * GetInstanceRequest name.
+ * @member {string} name
+ * @memberof google.cloud.apigeeregistry.v1.GetInstanceRequest
+ * @instance
+ */
+ GetInstanceRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetInstanceRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.apigeeregistry.v1.GetInstanceRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IGetInstanceRequest=} [properties] Properties to set
+ * @returns {google.cloud.apigeeregistry.v1.GetInstanceRequest} GetInstanceRequest instance
+ */
+ GetInstanceRequest.create = function create(properties) {
+ return new GetInstanceRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetInstanceRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.GetInstanceRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.apigeeregistry.v1.GetInstanceRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IGetInstanceRequest} message GetInstanceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetInstanceRequest.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 GetInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.GetInstanceRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.GetInstanceRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IGetInstanceRequest} message GetInstanceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetInstanceRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetInstanceRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.apigeeregistry.v1.GetInstanceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.apigeeregistry.v1.GetInstanceRequest} GetInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetInstanceRequest.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.apigeeregistry.v1.GetInstanceRequest();
+ 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 GetInstanceRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.GetInstanceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.apigeeregistry.v1.GetInstanceRequest} GetInstanceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetInstanceRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetInstanceRequest message.
+ * @function verify
+ * @memberof google.cloud.apigeeregistry.v1.GetInstanceRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetInstanceRequest.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 GetInstanceRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.apigeeregistry.v1.GetInstanceRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.apigeeregistry.v1.GetInstanceRequest} GetInstanceRequest
+ */
+ GetInstanceRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.apigeeregistry.v1.GetInstanceRequest)
+ return object;
+ var message = new $root.google.cloud.apigeeregistry.v1.GetInstanceRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetInstanceRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.apigeeregistry.v1.GetInstanceRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.GetInstanceRequest} message GetInstanceRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetInstanceRequest.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 GetInstanceRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.apigeeregistry.v1.GetInstanceRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetInstanceRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetInstanceRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.apigeeregistry.v1.GetInstanceRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetInstanceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.apigeeregistry.v1.GetInstanceRequest";
+ };
+
+ return GetInstanceRequest;
+ })();
+
+ v1.OperationMetadata = (function() {
+
+ /**
+ * Properties of an OperationMetadata.
+ * @memberof google.cloud.apigeeregistry.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} [cancellationRequested] OperationMetadata cancellationRequested
+ * @property {string|null} [apiVersion] OperationMetadata apiVersion
+ */
+
+ /**
+ * Constructs a new OperationMetadata.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @classdesc Represents an OperationMetadata.
+ * @implements IOperationMetadata
+ * @constructor
+ * @param {google.cloud.apigeeregistry.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.apigeeregistry.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.createTime = null;
+
+ /**
+ * OperationMetadata endTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} endTime
+ * @memberof google.cloud.apigeeregistry.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.endTime = null;
+
+ /**
+ * OperationMetadata target.
+ * @member {string} target
+ * @memberof google.cloud.apigeeregistry.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.target = "";
+
+ /**
+ * OperationMetadata verb.
+ * @member {string} verb
+ * @memberof google.cloud.apigeeregistry.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.verb = "";
+
+ /**
+ * OperationMetadata statusMessage.
+ * @member {string} statusMessage
+ * @memberof google.cloud.apigeeregistry.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.statusMessage = "";
+
+ /**
+ * OperationMetadata cancellationRequested.
+ * @member {boolean} cancellationRequested
+ * @memberof google.cloud.apigeeregistry.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.cancellationRequested = false;
+
+ /**
+ * OperationMetadata apiVersion.
+ * @member {string} apiVersion
+ * @memberof google.cloud.apigeeregistry.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.apiVersion = "";
+
+ /**
+ * Creates a new OperationMetadata instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.apigeeregistry.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IOperationMetadata=} [properties] Properties to set
+ * @returns {google.cloud.apigeeregistry.v1.OperationMetadata} OperationMetadata instance
+ */
+ OperationMetadata.create = function create(properties) {
+ return new OperationMetadata(properties);
+ };
+
+ /**
+ * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.apigeeregistry.v1.OperationMetadata.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.apigeeregistry.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.apigeeregistry.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.cancellationRequested != null && Object.hasOwnProperty.call(message, "cancellationRequested"))
+ writer.uint32(/* id 6, wireType 0 =*/48).bool(message.cancellationRequested);
+ 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.apigeeregistry.v1.OperationMetadata.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.apigeeregistry.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.apigeeregistry.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.apigeeregistry.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.apigeeregistry.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.cancellationRequested = 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.apigeeregistry.v1.OperationMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.apigeeregistry.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.apigeeregistry.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.cancellationRequested != null && message.hasOwnProperty("cancellationRequested"))
+ if (typeof message.cancellationRequested !== "boolean")
+ return "cancellationRequested: 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.apigeeregistry.v1.OperationMetadata
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.apigeeregistry.v1.OperationMetadata} OperationMetadata
+ */
+ OperationMetadata.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.apigeeregistry.v1.OperationMetadata)
+ return object;
+ var message = new $root.google.cloud.apigeeregistry.v1.OperationMetadata();
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.apigeeregistry.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.apigeeregistry.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.cancellationRequested != null)
+ message.cancellationRequested = Boolean(object.cancellationRequested);
+ 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.apigeeregistry.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.apigeeregistry.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.cancellationRequested = 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.cancellationRequested != null && message.hasOwnProperty("cancellationRequested"))
+ object.cancellationRequested = message.cancellationRequested;
+ if (message.apiVersion != null && message.hasOwnProperty("apiVersion"))
+ object.apiVersion = message.apiVersion;
+ return object;
+ };
+
+ /**
+ * Converts this OperationMetadata to JSON.
+ * @function toJSON
+ * @memberof google.cloud.apigeeregistry.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.apigeeregistry.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.apigeeregistry.v1.OperationMetadata";
+ };
+
+ return OperationMetadata;
+ })();
+
+ v1.Instance = (function() {
+
+ /**
+ * Properties of an Instance.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @interface IInstance
+ * @property {string|null} [name] Instance name
+ * @property {google.protobuf.ITimestamp|null} [createTime] Instance createTime
+ * @property {google.protobuf.ITimestamp|null} [updateTime] Instance updateTime
+ * @property {google.cloud.apigeeregistry.v1.Instance.State|null} [state] Instance state
+ * @property {string|null} [stateMessage] Instance stateMessage
+ * @property {google.cloud.apigeeregistry.v1.Instance.IConfig|null} [config] Instance config
+ */
+
+ /**
+ * Constructs a new Instance.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @classdesc Represents an Instance.
+ * @implements IInstance
+ * @constructor
+ * @param {google.cloud.apigeeregistry.v1.IInstance=} [properties] Properties to set
+ */
+ function Instance(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]];
+ }
+
+ /**
+ * Instance name.
+ * @member {string} name
+ * @memberof google.cloud.apigeeregistry.v1.Instance
+ * @instance
+ */
+ Instance.prototype.name = "";
+
+ /**
+ * Instance createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.apigeeregistry.v1.Instance
+ * @instance
+ */
+ Instance.prototype.createTime = null;
+
+ /**
+ * Instance updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.apigeeregistry.v1.Instance
+ * @instance
+ */
+ Instance.prototype.updateTime = null;
+
+ /**
+ * Instance state.
+ * @member {google.cloud.apigeeregistry.v1.Instance.State} state
+ * @memberof google.cloud.apigeeregistry.v1.Instance
+ * @instance
+ */
+ Instance.prototype.state = 0;
+
+ /**
+ * Instance stateMessage.
+ * @member {string} stateMessage
+ * @memberof google.cloud.apigeeregistry.v1.Instance
+ * @instance
+ */
+ Instance.prototype.stateMessage = "";
+
+ /**
+ * Instance config.
+ * @member {google.cloud.apigeeregistry.v1.Instance.IConfig|null|undefined} config
+ * @memberof google.cloud.apigeeregistry.v1.Instance
+ * @instance
+ */
+ Instance.prototype.config = null;
+
+ /**
+ * Creates a new Instance instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.apigeeregistry.v1.Instance
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IInstance=} [properties] Properties to set
+ * @returns {google.cloud.apigeeregistry.v1.Instance} Instance instance
+ */
+ Instance.create = function create(properties) {
+ return new Instance(properties);
+ };
+
+ /**
+ * Encodes the specified Instance message. Does not implicitly {@link google.cloud.apigeeregistry.v1.Instance.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.apigeeregistry.v1.Instance
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IInstance} message Instance message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Instance.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.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state);
+ if (message.stateMessage != null && Object.hasOwnProperty.call(message, "stateMessage"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.stateMessage);
+ if (message.config != null && Object.hasOwnProperty.call(message, "config"))
+ $root.google.cloud.apigeeregistry.v1.Instance.Config.encode(message.config, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Instance message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.Instance.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.Instance
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IInstance} message Instance message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Instance.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an Instance message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.apigeeregistry.v1.Instance
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.apigeeregistry.v1.Instance} Instance
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Instance.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.apigeeregistry.v1.Instance();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ 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 4: {
+ message.state = reader.int32();
+ break;
+ }
+ case 5: {
+ message.stateMessage = reader.string();
+ break;
+ }
+ case 6: {
+ message.config = $root.google.cloud.apigeeregistry.v1.Instance.Config.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an Instance message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.Instance
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.apigeeregistry.v1.Instance} Instance
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Instance.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an Instance message.
+ * @function verify
+ * @memberof google.cloud.apigeeregistry.v1.Instance
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Instance.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.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.state != null && message.hasOwnProperty("state"))
+ switch (message.state) {
+ default:
+ return "state: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ case 6:
+ break;
+ }
+ if (message.stateMessage != null && message.hasOwnProperty("stateMessage"))
+ if (!$util.isString(message.stateMessage))
+ return "stateMessage: string expected";
+ if (message.config != null && message.hasOwnProperty("config")) {
+ var error = $root.google.cloud.apigeeregistry.v1.Instance.Config.verify(message.config);
+ if (error)
+ return "config." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an Instance message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.apigeeregistry.v1.Instance
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.apigeeregistry.v1.Instance} Instance
+ */
+ Instance.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.apigeeregistry.v1.Instance)
+ return object;
+ var message = new $root.google.cloud.apigeeregistry.v1.Instance();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.apigeeregistry.v1.Instance.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.apigeeregistry.v1.Instance.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ switch (object.state) {
+ default:
+ if (typeof object.state === "number") {
+ message.state = object.state;
+ break;
+ }
+ break;
+ case "STATE_UNSPECIFIED":
+ case 0:
+ message.state = 0;
+ break;
+ case "INACTIVE":
+ case 1:
+ message.state = 1;
+ break;
+ case "CREATING":
+ case 2:
+ message.state = 2;
+ break;
+ case "ACTIVE":
+ case 3:
+ message.state = 3;
+ break;
+ case "UPDATING":
+ case 4:
+ message.state = 4;
+ break;
+ case "DELETING":
+ case 5:
+ message.state = 5;
+ break;
+ case "FAILED":
+ case 6:
+ message.state = 6;
+ break;
+ }
+ if (object.stateMessage != null)
+ message.stateMessage = String(object.stateMessage);
+ if (object.config != null) {
+ if (typeof object.config !== "object")
+ throw TypeError(".google.cloud.apigeeregistry.v1.Instance.config: object expected");
+ message.config = $root.google.cloud.apigeeregistry.v1.Instance.Config.fromObject(object.config);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an Instance message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.apigeeregistry.v1.Instance
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.Instance} message Instance
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Instance.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.createTime = null;
+ object.updateTime = null;
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ object.stateMessage = "";
+ object.config = null;
+ }
+ 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);
+ if (message.state != null && message.hasOwnProperty("state"))
+ object.state = options.enums === String ? $root.google.cloud.apigeeregistry.v1.Instance.State[message.state] === undefined ? message.state : $root.google.cloud.apigeeregistry.v1.Instance.State[message.state] : message.state;
+ if (message.stateMessage != null && message.hasOwnProperty("stateMessage"))
+ object.stateMessage = message.stateMessage;
+ if (message.config != null && message.hasOwnProperty("config"))
+ object.config = $root.google.cloud.apigeeregistry.v1.Instance.Config.toObject(message.config, options);
+ return object;
+ };
+
+ /**
+ * Converts this Instance to JSON.
+ * @function toJSON
+ * @memberof google.cloud.apigeeregistry.v1.Instance
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Instance.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Instance
+ * @function getTypeUrl
+ * @memberof google.cloud.apigeeregistry.v1.Instance
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Instance.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.apigeeregistry.v1.Instance";
+ };
+
+ /**
+ * State enum.
+ * @name google.cloud.apigeeregistry.v1.Instance.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} INACTIVE=1 INACTIVE value
+ * @property {number} CREATING=2 CREATING value
+ * @property {number} ACTIVE=3 ACTIVE value
+ * @property {number} UPDATING=4 UPDATING value
+ * @property {number} DELETING=5 DELETING value
+ * @property {number} FAILED=6 FAILED value
+ */
+ Instance.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "INACTIVE"] = 1;
+ values[valuesById[2] = "CREATING"] = 2;
+ values[valuesById[3] = "ACTIVE"] = 3;
+ values[valuesById[4] = "UPDATING"] = 4;
+ values[valuesById[5] = "DELETING"] = 5;
+ values[valuesById[6] = "FAILED"] = 6;
+ return values;
+ })();
+
+ Instance.Config = (function() {
+
+ /**
+ * Properties of a Config.
+ * @memberof google.cloud.apigeeregistry.v1.Instance
+ * @interface IConfig
+ * @property {string|null} [location] Config location
+ * @property {string|null} [cmekKeyName] Config cmekKeyName
+ */
+
+ /**
+ * Constructs a new Config.
+ * @memberof google.cloud.apigeeregistry.v1.Instance
+ * @classdesc Represents a Config.
+ * @implements IConfig
+ * @constructor
+ * @param {google.cloud.apigeeregistry.v1.Instance.IConfig=} [properties] Properties to set
+ */
+ function Config(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]];
+ }
+
+ /**
+ * Config location.
+ * @member {string} location
+ * @memberof google.cloud.apigeeregistry.v1.Instance.Config
+ * @instance
+ */
+ Config.prototype.location = "";
+
+ /**
+ * Config cmekKeyName.
+ * @member {string} cmekKeyName
+ * @memberof google.cloud.apigeeregistry.v1.Instance.Config
+ * @instance
+ */
+ Config.prototype.cmekKeyName = "";
+
+ /**
+ * Creates a new Config instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.apigeeregistry.v1.Instance.Config
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.Instance.IConfig=} [properties] Properties to set
+ * @returns {google.cloud.apigeeregistry.v1.Instance.Config} Config instance
+ */
+ Config.create = function create(properties) {
+ return new Config(properties);
+ };
+
+ /**
+ * Encodes the specified Config message. Does not implicitly {@link google.cloud.apigeeregistry.v1.Instance.Config.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.apigeeregistry.v1.Instance.Config
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.Instance.IConfig} message Config message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Config.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.location != null && Object.hasOwnProperty.call(message, "location"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.location);
+ if (message.cmekKeyName != null && Object.hasOwnProperty.call(message, "cmekKeyName"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.cmekKeyName);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Config message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.Instance.Config.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.Instance.Config
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.Instance.IConfig} message Config message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Config.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Config message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.apigeeregistry.v1.Instance.Config
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.apigeeregistry.v1.Instance.Config} Config
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Config.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.apigeeregistry.v1.Instance.Config();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.location = reader.string();
+ break;
+ }
+ case 2: {
+ message.cmekKeyName = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Config message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.Instance.Config
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.apigeeregistry.v1.Instance.Config} Config
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Config.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Config message.
+ * @function verify
+ * @memberof google.cloud.apigeeregistry.v1.Instance.Config
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Config.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.location != null && message.hasOwnProperty("location"))
+ if (!$util.isString(message.location))
+ return "location: string expected";
+ if (message.cmekKeyName != null && message.hasOwnProperty("cmekKeyName"))
+ if (!$util.isString(message.cmekKeyName))
+ return "cmekKeyName: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a Config message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.apigeeregistry.v1.Instance.Config
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.apigeeregistry.v1.Instance.Config} Config
+ */
+ Config.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.apigeeregistry.v1.Instance.Config)
+ return object;
+ var message = new $root.google.cloud.apigeeregistry.v1.Instance.Config();
+ if (object.location != null)
+ message.location = String(object.location);
+ if (object.cmekKeyName != null)
+ message.cmekKeyName = String(object.cmekKeyName);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Config message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.apigeeregistry.v1.Instance.Config
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.Instance.Config} message Config
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Config.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.location = "";
+ object.cmekKeyName = "";
+ }
+ if (message.location != null && message.hasOwnProperty("location"))
+ object.location = message.location;
+ if (message.cmekKeyName != null && message.hasOwnProperty("cmekKeyName"))
+ object.cmekKeyName = message.cmekKeyName;
+ return object;
+ };
+
+ /**
+ * Converts this Config to JSON.
+ * @function toJSON
+ * @memberof google.cloud.apigeeregistry.v1.Instance.Config
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Config.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Config
+ * @function getTypeUrl
+ * @memberof google.cloud.apigeeregistry.v1.Instance.Config
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Config.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.apigeeregistry.v1.Instance.Config";
+ };
+
+ return Config;
+ })();
+
+ return Instance;
+ })();
+
+ v1.Api = (function() {
+
+ /**
+ * Properties of an Api.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @interface IApi
+ * @property {string|null} [name] Api name
+ * @property {string|null} [displayName] Api displayName
+ * @property {string|null} [description] Api description
+ * @property {google.protobuf.ITimestamp|null} [createTime] Api createTime
+ * @property {google.protobuf.ITimestamp|null} [updateTime] Api updateTime
+ * @property {string|null} [availability] Api availability
+ * @property {string|null} [recommendedVersion] Api recommendedVersion
+ * @property {string|null} [recommendedDeployment] Api recommendedDeployment
+ * @property {Object.|null} [labels] Api labels
+ * @property {Object.|null} [annotations] Api annotations
+ */
+
+ /**
+ * Constructs a new Api.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @classdesc Represents an Api.
+ * @implements IApi
+ * @constructor
+ * @param {google.cloud.apigeeregistry.v1.IApi=} [properties] Properties to set
+ */
+ function Api(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]];
+ }
+
+ /**
+ * Api name.
+ * @member {string} name
+ * @memberof google.cloud.apigeeregistry.v1.Api
+ * @instance
+ */
+ Api.prototype.name = "";
+
+ /**
+ * Api displayName.
+ * @member {string} displayName
+ * @memberof google.cloud.apigeeregistry.v1.Api
+ * @instance
+ */
+ Api.prototype.displayName = "";
+
+ /**
+ * Api description.
+ * @member {string} description
+ * @memberof google.cloud.apigeeregistry.v1.Api
+ * @instance
+ */
+ Api.prototype.description = "";
+
+ /**
+ * Api createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.apigeeregistry.v1.Api
+ * @instance
+ */
+ Api.prototype.createTime = null;
+
+ /**
+ * Api updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.apigeeregistry.v1.Api
+ * @instance
+ */
+ Api.prototype.updateTime = null;
+
+ /**
+ * Api availability.
+ * @member {string} availability
+ * @memberof google.cloud.apigeeregistry.v1.Api
+ * @instance
+ */
+ Api.prototype.availability = "";
+
+ /**
+ * Api recommendedVersion.
+ * @member {string} recommendedVersion
+ * @memberof google.cloud.apigeeregistry.v1.Api
+ * @instance
+ */
+ Api.prototype.recommendedVersion = "";
+
+ /**
+ * Api recommendedDeployment.
+ * @member {string} recommendedDeployment
+ * @memberof google.cloud.apigeeregistry.v1.Api
+ * @instance
+ */
+ Api.prototype.recommendedDeployment = "";
+
+ /**
+ * Api labels.
+ * @member {Object.} labels
+ * @memberof google.cloud.apigeeregistry.v1.Api
+ * @instance
+ */
+ Api.prototype.labels = $util.emptyObject;
+
+ /**
+ * Api annotations.
+ * @member {Object.} annotations
+ * @memberof google.cloud.apigeeregistry.v1.Api
+ * @instance
+ */
+ Api.prototype.annotations = $util.emptyObject;
+
+ /**
+ * Creates a new Api instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.apigeeregistry.v1.Api
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IApi=} [properties] Properties to set
+ * @returns {google.cloud.apigeeregistry.v1.Api} Api instance
+ */
+ Api.create = function create(properties) {
+ return new Api(properties);
+ };
+
+ /**
+ * Encodes the specified Api message. Does not implicitly {@link google.cloud.apigeeregistry.v1.Api.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.apigeeregistry.v1.Api
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IApi} message Api message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Api.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.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.description);
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.availability != null && Object.hasOwnProperty.call(message, "availability"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.availability);
+ if (message.recommendedVersion != null && Object.hasOwnProperty.call(message, "recommendedVersion"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.recommendedVersion);
+ if (message.recommendedDeployment != null && Object.hasOwnProperty.call(message, "recommendedDeployment"))
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.recommendedDeployment);
+ 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 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim();
+ 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 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.annotations[keys[i]]).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Api message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.Api.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.Api
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IApi} message Api message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Api.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an Api message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.apigeeregistry.v1.Api
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.apigeeregistry.v1.Api} Api
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Api.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.apigeeregistry.v1.Api(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.displayName = reader.string();
+ break;
+ }
+ case 3: {
+ message.description = reader.string();
+ break;
+ }
+ case 4: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 5: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ message.availability = reader.string();
+ break;
+ }
+ case 7: {
+ message.recommendedVersion = reader.string();
+ break;
+ }
+ case 8: {
+ message.recommendedDeployment = reader.string();
+ break;
+ }
+ case 9: {
+ 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 10: {
+ 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;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an Api message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.Api
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.apigeeregistry.v1.Api} Api
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Api.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an Api message.
+ * @function verify
+ * @memberof google.cloud.apigeeregistry.v1.Api
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Api.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.displayName != null && message.hasOwnProperty("displayName"))
+ if (!$util.isString(message.displayName))
+ return "displayName: string expected";
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: 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.availability != null && message.hasOwnProperty("availability"))
+ if (!$util.isString(message.availability))
+ return "availability: string expected";
+ if (message.recommendedVersion != null && message.hasOwnProperty("recommendedVersion"))
+ if (!$util.isString(message.recommendedVersion))
+ return "recommendedVersion: string expected";
+ if (message.recommendedDeployment != null && message.hasOwnProperty("recommendedDeployment"))
+ if (!$util.isString(message.recommendedDeployment))
+ return "recommendedDeployment: string expected";
+ 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.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";
+ }
+ return null;
+ };
+
+ /**
+ * Creates an Api message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.apigeeregistry.v1.Api
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.apigeeregistry.v1.Api} Api
+ */
+ Api.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.apigeeregistry.v1.Api)
+ return object;
+ var message = new $root.google.cloud.apigeeregistry.v1.Api();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.displayName != null)
+ message.displayName = String(object.displayName);
+ if (object.description != null)
+ message.description = String(object.description);
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.apigeeregistry.v1.Api.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.apigeeregistry.v1.Api.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ if (object.availability != null)
+ message.availability = String(object.availability);
+ if (object.recommendedVersion != null)
+ message.recommendedVersion = String(object.recommendedVersion);
+ if (object.recommendedDeployment != null)
+ message.recommendedDeployment = String(object.recommendedDeployment);
+ if (object.labels) {
+ if (typeof object.labels !== "object")
+ throw TypeError(".google.cloud.apigeeregistry.v1.Api.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.annotations) {
+ if (typeof object.annotations !== "object")
+ throw TypeError(".google.cloud.apigeeregistry.v1.Api.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]]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an Api message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.apigeeregistry.v1.Api
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.Api} message Api
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Api.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.displayName = "";
+ object.description = "";
+ object.createTime = null;
+ object.updateTime = null;
+ object.availability = "";
+ object.recommendedVersion = "";
+ object.recommendedDeployment = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ object.displayName = message.displayName;
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ 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.availability != null && message.hasOwnProperty("availability"))
+ object.availability = message.availability;
+ if (message.recommendedVersion != null && message.hasOwnProperty("recommendedVersion"))
+ object.recommendedVersion = message.recommendedVersion;
+ if (message.recommendedDeployment != null && message.hasOwnProperty("recommendedDeployment"))
+ object.recommendedDeployment = message.recommendedDeployment;
+ 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.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]];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this Api to JSON.
+ * @function toJSON
+ * @memberof google.cloud.apigeeregistry.v1.Api
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Api.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Api
+ * @function getTypeUrl
+ * @memberof google.cloud.apigeeregistry.v1.Api
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Api.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.apigeeregistry.v1.Api";
+ };
+
+ return Api;
+ })();
+
+ v1.ApiVersion = (function() {
+
+ /**
+ * Properties of an ApiVersion.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @interface IApiVersion
+ * @property {string|null} [name] ApiVersion name
+ * @property {string|null} [displayName] ApiVersion displayName
+ * @property {string|null} [description] ApiVersion description
+ * @property {google.protobuf.ITimestamp|null} [createTime] ApiVersion createTime
+ * @property {google.protobuf.ITimestamp|null} [updateTime] ApiVersion updateTime
+ * @property {string|null} [state] ApiVersion state
+ * @property {Object.|null} [labels] ApiVersion labels
+ * @property {Object.|null} [annotations] ApiVersion annotations
+ */
+
+ /**
+ * Constructs a new ApiVersion.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @classdesc Represents an ApiVersion.
+ * @implements IApiVersion
+ * @constructor
+ * @param {google.cloud.apigeeregistry.v1.IApiVersion=} [properties] Properties to set
+ */
+ function ApiVersion(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]];
+ }
+
+ /**
+ * ApiVersion name.
+ * @member {string} name
+ * @memberof google.cloud.apigeeregistry.v1.ApiVersion
+ * @instance
+ */
+ ApiVersion.prototype.name = "";
+
+ /**
+ * ApiVersion displayName.
+ * @member {string} displayName
+ * @memberof google.cloud.apigeeregistry.v1.ApiVersion
+ * @instance
+ */
+ ApiVersion.prototype.displayName = "";
+
+ /**
+ * ApiVersion description.
+ * @member {string} description
+ * @memberof google.cloud.apigeeregistry.v1.ApiVersion
+ * @instance
+ */
+ ApiVersion.prototype.description = "";
+
+ /**
+ * ApiVersion createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.apigeeregistry.v1.ApiVersion
+ * @instance
+ */
+ ApiVersion.prototype.createTime = null;
+
+ /**
+ * ApiVersion updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.apigeeregistry.v1.ApiVersion
+ * @instance
+ */
+ ApiVersion.prototype.updateTime = null;
+
+ /**
+ * ApiVersion state.
+ * @member {string} state
+ * @memberof google.cloud.apigeeregistry.v1.ApiVersion
+ * @instance
+ */
+ ApiVersion.prototype.state = "";
+
+ /**
+ * ApiVersion labels.
+ * @member {Object.} labels
+ * @memberof google.cloud.apigeeregistry.v1.ApiVersion
+ * @instance
+ */
+ ApiVersion.prototype.labels = $util.emptyObject;
+
+ /**
+ * ApiVersion annotations.
+ * @member {Object.} annotations
+ * @memberof google.cloud.apigeeregistry.v1.ApiVersion
+ * @instance
+ */
+ ApiVersion.prototype.annotations = $util.emptyObject;
+
+ /**
+ * Creates a new ApiVersion instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.apigeeregistry.v1.ApiVersion
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IApiVersion=} [properties] Properties to set
+ * @returns {google.cloud.apigeeregistry.v1.ApiVersion} ApiVersion instance
+ */
+ ApiVersion.create = function create(properties) {
+ return new ApiVersion(properties);
+ };
+
+ /**
+ * Encodes the specified ApiVersion message. Does not implicitly {@link google.cloud.apigeeregistry.v1.ApiVersion.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.apigeeregistry.v1.ApiVersion
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IApiVersion} message ApiVersion message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ApiVersion.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.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.description);
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.state);
+ 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 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim();
+ 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 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.annotations[keys[i]]).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ApiVersion message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.ApiVersion.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.ApiVersion
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IApiVersion} message ApiVersion message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ApiVersion.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an ApiVersion message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.apigeeregistry.v1.ApiVersion
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.apigeeregistry.v1.ApiVersion} ApiVersion
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ApiVersion.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.apigeeregistry.v1.ApiVersion(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.displayName = reader.string();
+ break;
+ }
+ case 3: {
+ message.description = reader.string();
+ break;
+ }
+ case 4: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 5: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ message.state = reader.string();
+ break;
+ }
+ case 7: {
+ 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 8: {
+ 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;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an ApiVersion message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.ApiVersion
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.apigeeregistry.v1.ApiVersion} ApiVersion
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ApiVersion.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an ApiVersion message.
+ * @function verify
+ * @memberof google.cloud.apigeeregistry.v1.ApiVersion
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ApiVersion.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.displayName != null && message.hasOwnProperty("displayName"))
+ if (!$util.isString(message.displayName))
+ return "displayName: string expected";
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: 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.state != null && message.hasOwnProperty("state"))
+ if (!$util.isString(message.state))
+ return "state: string expected";
+ 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.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";
+ }
+ return null;
+ };
+
+ /**
+ * Creates an ApiVersion message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.apigeeregistry.v1.ApiVersion
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.apigeeregistry.v1.ApiVersion} ApiVersion
+ */
+ ApiVersion.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.apigeeregistry.v1.ApiVersion)
+ return object;
+ var message = new $root.google.cloud.apigeeregistry.v1.ApiVersion();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.displayName != null)
+ message.displayName = String(object.displayName);
+ if (object.description != null)
+ message.description = String(object.description);
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.apigeeregistry.v1.ApiVersion.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.apigeeregistry.v1.ApiVersion.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ if (object.state != null)
+ message.state = String(object.state);
+ if (object.labels) {
+ if (typeof object.labels !== "object")
+ throw TypeError(".google.cloud.apigeeregistry.v1.ApiVersion.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.annotations) {
+ if (typeof object.annotations !== "object")
+ throw TypeError(".google.cloud.apigeeregistry.v1.ApiVersion.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]]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an ApiVersion message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.apigeeregistry.v1.ApiVersion
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.ApiVersion} message ApiVersion
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ApiVersion.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.displayName = "";
+ object.description = "";
+ object.createTime = null;
+ object.updateTime = null;
+ object.state = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ object.displayName = message.displayName;
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ 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.state != null && message.hasOwnProperty("state"))
+ object.state = message.state;
+ 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.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]];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this ApiVersion to JSON.
+ * @function toJSON
+ * @memberof google.cloud.apigeeregistry.v1.ApiVersion
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ApiVersion.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ApiVersion
+ * @function getTypeUrl
+ * @memberof google.cloud.apigeeregistry.v1.ApiVersion
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ApiVersion.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.apigeeregistry.v1.ApiVersion";
+ };
+
+ return ApiVersion;
+ })();
+
+ v1.ApiSpec = (function() {
+
+ /**
+ * Properties of an ApiSpec.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @interface IApiSpec
+ * @property {string|null} [name] ApiSpec name
+ * @property {string|null} [filename] ApiSpec filename
+ * @property {string|null} [description] ApiSpec description
+ * @property {string|null} [revisionId] ApiSpec revisionId
+ * @property {google.protobuf.ITimestamp|null} [createTime] ApiSpec createTime
+ * @property {google.protobuf.ITimestamp|null} [revisionCreateTime] ApiSpec revisionCreateTime
+ * @property {google.protobuf.ITimestamp|null} [revisionUpdateTime] ApiSpec revisionUpdateTime
+ * @property {string|null} [mimeType] ApiSpec mimeType
+ * @property {number|null} [sizeBytes] ApiSpec sizeBytes
+ * @property {string|null} [hash] ApiSpec hash
+ * @property {string|null} [sourceUri] ApiSpec sourceUri
+ * @property {Uint8Array|null} [contents] ApiSpec contents
+ * @property {Object.|null} [labels] ApiSpec labels
+ * @property {Object.|null} [annotations] ApiSpec annotations
+ */
+
+ /**
+ * Constructs a new ApiSpec.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @classdesc Represents an ApiSpec.
+ * @implements IApiSpec
+ * @constructor
+ * @param {google.cloud.apigeeregistry.v1.IApiSpec=} [properties] Properties to set
+ */
+ function ApiSpec(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]];
+ }
+
+ /**
+ * ApiSpec name.
+ * @member {string} name
+ * @memberof google.cloud.apigeeregistry.v1.ApiSpec
+ * @instance
+ */
+ ApiSpec.prototype.name = "";
+
+ /**
+ * ApiSpec filename.
+ * @member {string} filename
+ * @memberof google.cloud.apigeeregistry.v1.ApiSpec
+ * @instance
+ */
+ ApiSpec.prototype.filename = "";
+
+ /**
+ * ApiSpec description.
+ * @member {string} description
+ * @memberof google.cloud.apigeeregistry.v1.ApiSpec
+ * @instance
+ */
+ ApiSpec.prototype.description = "";
+
+ /**
+ * ApiSpec revisionId.
+ * @member {string} revisionId
+ * @memberof google.cloud.apigeeregistry.v1.ApiSpec
+ * @instance
+ */
+ ApiSpec.prototype.revisionId = "";
+
+ /**
+ * ApiSpec createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.apigeeregistry.v1.ApiSpec
+ * @instance
+ */
+ ApiSpec.prototype.createTime = null;
+
+ /**
+ * ApiSpec revisionCreateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} revisionCreateTime
+ * @memberof google.cloud.apigeeregistry.v1.ApiSpec
+ * @instance
+ */
+ ApiSpec.prototype.revisionCreateTime = null;
+
+ /**
+ * ApiSpec revisionUpdateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} revisionUpdateTime
+ * @memberof google.cloud.apigeeregistry.v1.ApiSpec
+ * @instance
+ */
+ ApiSpec.prototype.revisionUpdateTime = null;
+
+ /**
+ * ApiSpec mimeType.
+ * @member {string} mimeType
+ * @memberof google.cloud.apigeeregistry.v1.ApiSpec
+ * @instance
+ */
+ ApiSpec.prototype.mimeType = "";
+
+ /**
+ * ApiSpec sizeBytes.
+ * @member {number} sizeBytes
+ * @memberof google.cloud.apigeeregistry.v1.ApiSpec
+ * @instance
+ */
+ ApiSpec.prototype.sizeBytes = 0;
+
+ /**
+ * ApiSpec hash.
+ * @member {string} hash
+ * @memberof google.cloud.apigeeregistry.v1.ApiSpec
+ * @instance
+ */
+ ApiSpec.prototype.hash = "";
+
+ /**
+ * ApiSpec sourceUri.
+ * @member {string} sourceUri
+ * @memberof google.cloud.apigeeregistry.v1.ApiSpec
+ * @instance
+ */
+ ApiSpec.prototype.sourceUri = "";
+
+ /**
+ * ApiSpec contents.
+ * @member {Uint8Array} contents
+ * @memberof google.cloud.apigeeregistry.v1.ApiSpec
+ * @instance
+ */
+ ApiSpec.prototype.contents = $util.newBuffer([]);
+
+ /**
+ * ApiSpec labels.
+ * @member {Object.} labels
+ * @memberof google.cloud.apigeeregistry.v1.ApiSpec
+ * @instance
+ */
+ ApiSpec.prototype.labels = $util.emptyObject;
+
+ /**
+ * ApiSpec annotations.
+ * @member {Object.} annotations
+ * @memberof google.cloud.apigeeregistry.v1.ApiSpec
+ * @instance
+ */
+ ApiSpec.prototype.annotations = $util.emptyObject;
+
+ /**
+ * Creates a new ApiSpec instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.apigeeregistry.v1.ApiSpec
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IApiSpec=} [properties] Properties to set
+ * @returns {google.cloud.apigeeregistry.v1.ApiSpec} ApiSpec instance
+ */
+ ApiSpec.create = function create(properties) {
+ return new ApiSpec(properties);
+ };
+
+ /**
+ * Encodes the specified ApiSpec message. Does not implicitly {@link google.cloud.apigeeregistry.v1.ApiSpec.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.apigeeregistry.v1.ApiSpec
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IApiSpec} message ApiSpec message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ApiSpec.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.filename != null && Object.hasOwnProperty.call(message, "filename"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.filename);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.description);
+ if (message.revisionId != null && Object.hasOwnProperty.call(message, "revisionId"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.revisionId);
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.revisionCreateTime != null && Object.hasOwnProperty.call(message, "revisionCreateTime"))
+ $root.google.protobuf.Timestamp.encode(message.revisionCreateTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ if (message.revisionUpdateTime != null && Object.hasOwnProperty.call(message, "revisionUpdateTime"))
+ $root.google.protobuf.Timestamp.encode(message.revisionUpdateTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+ if (message.mimeType != null && Object.hasOwnProperty.call(message, "mimeType"))
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.mimeType);
+ if (message.sizeBytes != null && Object.hasOwnProperty.call(message, "sizeBytes"))
+ writer.uint32(/* id 9, wireType 0 =*/72).int32(message.sizeBytes);
+ if (message.hash != null && Object.hasOwnProperty.call(message, "hash"))
+ writer.uint32(/* id 10, wireType 2 =*/82).string(message.hash);
+ if (message.sourceUri != null && Object.hasOwnProperty.call(message, "sourceUri"))
+ writer.uint32(/* id 11, wireType 2 =*/90).string(message.sourceUri);
+ if (message.contents != null && Object.hasOwnProperty.call(message, "contents"))
+ writer.uint32(/* id 12, wireType 2 =*/98).bytes(message.contents);
+ 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 14, wireType 2 =*/114).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim();
+ 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 15, wireType 2 =*/122).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.annotations[keys[i]]).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ApiSpec message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.ApiSpec.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.ApiSpec
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IApiSpec} message ApiSpec message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ApiSpec.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an ApiSpec message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.apigeeregistry.v1.ApiSpec
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.apigeeregistry.v1.ApiSpec} ApiSpec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ApiSpec.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.apigeeregistry.v1.ApiSpec(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.filename = reader.string();
+ break;
+ }
+ case 3: {
+ message.description = reader.string();
+ break;
+ }
+ case 4: {
+ message.revisionId = reader.string();
+ break;
+ }
+ case 5: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ message.revisionCreateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 7: {
+ message.revisionUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 8: {
+ message.mimeType = reader.string();
+ break;
+ }
+ case 9: {
+ message.sizeBytes = reader.int32();
+ break;
+ }
+ case 10: {
+ message.hash = reader.string();
+ break;
+ }
+ case 11: {
+ message.sourceUri = reader.string();
+ break;
+ }
+ case 12: {
+ message.contents = reader.bytes();
+ break;
+ }
+ case 14: {
+ 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 15: {
+ 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;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an ApiSpec message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.ApiSpec
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.apigeeregistry.v1.ApiSpec} ApiSpec
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ApiSpec.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an ApiSpec message.
+ * @function verify
+ * @memberof google.cloud.apigeeregistry.v1.ApiSpec
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ApiSpec.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.filename != null && message.hasOwnProperty("filename"))
+ if (!$util.isString(message.filename))
+ return "filename: string expected";
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.revisionId != null && message.hasOwnProperty("revisionId"))
+ if (!$util.isString(message.revisionId))
+ return "revisionId: 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.revisionCreateTime != null && message.hasOwnProperty("revisionCreateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.revisionCreateTime);
+ if (error)
+ return "revisionCreateTime." + error;
+ }
+ if (message.revisionUpdateTime != null && message.hasOwnProperty("revisionUpdateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.revisionUpdateTime);
+ if (error)
+ return "revisionUpdateTime." + error;
+ }
+ if (message.mimeType != null && message.hasOwnProperty("mimeType"))
+ if (!$util.isString(message.mimeType))
+ return "mimeType: string expected";
+ if (message.sizeBytes != null && message.hasOwnProperty("sizeBytes"))
+ if (!$util.isInteger(message.sizeBytes))
+ return "sizeBytes: integer expected";
+ if (message.hash != null && message.hasOwnProperty("hash"))
+ if (!$util.isString(message.hash))
+ return "hash: string expected";
+ if (message.sourceUri != null && message.hasOwnProperty("sourceUri"))
+ if (!$util.isString(message.sourceUri))
+ return "sourceUri: string expected";
+ if (message.contents != null && message.hasOwnProperty("contents"))
+ if (!(message.contents && typeof message.contents.length === "number" || $util.isString(message.contents)))
+ return "contents: buffer expected";
+ 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.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";
+ }
+ return null;
+ };
+
+ /**
+ * Creates an ApiSpec message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.apigeeregistry.v1.ApiSpec
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.apigeeregistry.v1.ApiSpec} ApiSpec
+ */
+ ApiSpec.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.apigeeregistry.v1.ApiSpec)
+ return object;
+ var message = new $root.google.cloud.apigeeregistry.v1.ApiSpec();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.filename != null)
+ message.filename = String(object.filename);
+ if (object.description != null)
+ message.description = String(object.description);
+ if (object.revisionId != null)
+ message.revisionId = String(object.revisionId);
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.apigeeregistry.v1.ApiSpec.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
+ }
+ if (object.revisionCreateTime != null) {
+ if (typeof object.revisionCreateTime !== "object")
+ throw TypeError(".google.cloud.apigeeregistry.v1.ApiSpec.revisionCreateTime: object expected");
+ message.revisionCreateTime = $root.google.protobuf.Timestamp.fromObject(object.revisionCreateTime);
+ }
+ if (object.revisionUpdateTime != null) {
+ if (typeof object.revisionUpdateTime !== "object")
+ throw TypeError(".google.cloud.apigeeregistry.v1.ApiSpec.revisionUpdateTime: object expected");
+ message.revisionUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.revisionUpdateTime);
+ }
+ if (object.mimeType != null)
+ message.mimeType = String(object.mimeType);
+ if (object.sizeBytes != null)
+ message.sizeBytes = object.sizeBytes | 0;
+ if (object.hash != null)
+ message.hash = String(object.hash);
+ if (object.sourceUri != null)
+ message.sourceUri = String(object.sourceUri);
+ if (object.contents != null)
+ if (typeof object.contents === "string")
+ $util.base64.decode(object.contents, message.contents = $util.newBuffer($util.base64.length(object.contents)), 0);
+ else if (object.contents.length >= 0)
+ message.contents = object.contents;
+ if (object.labels) {
+ if (typeof object.labels !== "object")
+ throw TypeError(".google.cloud.apigeeregistry.v1.ApiSpec.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.annotations) {
+ if (typeof object.annotations !== "object")
+ throw TypeError(".google.cloud.apigeeregistry.v1.ApiSpec.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]]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an ApiSpec message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.apigeeregistry.v1.ApiSpec
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.ApiSpec} message ApiSpec
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ApiSpec.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.filename = "";
+ object.description = "";
+ object.revisionId = "";
+ object.createTime = null;
+ object.revisionCreateTime = null;
+ object.revisionUpdateTime = null;
+ object.mimeType = "";
+ object.sizeBytes = 0;
+ object.hash = "";
+ object.sourceUri = "";
+ if (options.bytes === String)
+ object.contents = "";
+ else {
+ object.contents = [];
+ if (options.bytes !== Array)
+ object.contents = $util.newBuffer(object.contents);
+ }
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.filename != null && message.hasOwnProperty("filename"))
+ object.filename = message.filename;
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ if (message.revisionId != null && message.hasOwnProperty("revisionId"))
+ object.revisionId = message.revisionId;
+ if (message.createTime != null && message.hasOwnProperty("createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
+ if (message.revisionCreateTime != null && message.hasOwnProperty("revisionCreateTime"))
+ object.revisionCreateTime = $root.google.protobuf.Timestamp.toObject(message.revisionCreateTime, options);
+ if (message.revisionUpdateTime != null && message.hasOwnProperty("revisionUpdateTime"))
+ object.revisionUpdateTime = $root.google.protobuf.Timestamp.toObject(message.revisionUpdateTime, options);
+ if (message.mimeType != null && message.hasOwnProperty("mimeType"))
+ object.mimeType = message.mimeType;
+ if (message.sizeBytes != null && message.hasOwnProperty("sizeBytes"))
+ object.sizeBytes = message.sizeBytes;
+ if (message.hash != null && message.hasOwnProperty("hash"))
+ object.hash = message.hash;
+ if (message.sourceUri != null && message.hasOwnProperty("sourceUri"))
+ object.sourceUri = message.sourceUri;
+ if (message.contents != null && message.hasOwnProperty("contents"))
+ object.contents = options.bytes === String ? $util.base64.encode(message.contents, 0, message.contents.length) : options.bytes === Array ? Array.prototype.slice.call(message.contents) : message.contents;
+ 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.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]];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this ApiSpec to JSON.
+ * @function toJSON
+ * @memberof google.cloud.apigeeregistry.v1.ApiSpec
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ApiSpec.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ApiSpec
+ * @function getTypeUrl
+ * @memberof google.cloud.apigeeregistry.v1.ApiSpec
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ApiSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.apigeeregistry.v1.ApiSpec";
+ };
+
+ return ApiSpec;
+ })();
+
+ v1.ApiDeployment = (function() {
+
+ /**
+ * Properties of an ApiDeployment.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @interface IApiDeployment
+ * @property {string|null} [name] ApiDeployment name
+ * @property {string|null} [displayName] ApiDeployment displayName
+ * @property {string|null} [description] ApiDeployment description
+ * @property {string|null} [revisionId] ApiDeployment revisionId
+ * @property {google.protobuf.ITimestamp|null} [createTime] ApiDeployment createTime
+ * @property {google.protobuf.ITimestamp|null} [revisionCreateTime] ApiDeployment revisionCreateTime
+ * @property {google.protobuf.ITimestamp|null} [revisionUpdateTime] ApiDeployment revisionUpdateTime
+ * @property {string|null} [apiSpecRevision] ApiDeployment apiSpecRevision
+ * @property {string|null} [endpointUri] ApiDeployment endpointUri
+ * @property {string|null} [externalChannelUri] ApiDeployment externalChannelUri
+ * @property {string|null} [intendedAudience] ApiDeployment intendedAudience
+ * @property {string|null} [accessGuidance] ApiDeployment accessGuidance
+ * @property {Object.|null} [labels] ApiDeployment labels
+ * @property {Object.|null} [annotations] ApiDeployment annotations
+ */
+
+ /**
+ * Constructs a new ApiDeployment.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @classdesc Represents an ApiDeployment.
+ * @implements IApiDeployment
+ * @constructor
+ * @param {google.cloud.apigeeregistry.v1.IApiDeployment=} [properties] Properties to set
+ */
+ function ApiDeployment(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]];
+ }
+
+ /**
+ * ApiDeployment name.
+ * @member {string} name
+ * @memberof google.cloud.apigeeregistry.v1.ApiDeployment
+ * @instance
+ */
+ ApiDeployment.prototype.name = "";
+
+ /**
+ * ApiDeployment displayName.
+ * @member {string} displayName
+ * @memberof google.cloud.apigeeregistry.v1.ApiDeployment
+ * @instance
+ */
+ ApiDeployment.prototype.displayName = "";
+
+ /**
+ * ApiDeployment description.
+ * @member {string} description
+ * @memberof google.cloud.apigeeregistry.v1.ApiDeployment
+ * @instance
+ */
+ ApiDeployment.prototype.description = "";
+
+ /**
+ * ApiDeployment revisionId.
+ * @member {string} revisionId
+ * @memberof google.cloud.apigeeregistry.v1.ApiDeployment
+ * @instance
+ */
+ ApiDeployment.prototype.revisionId = "";
+
+ /**
+ * ApiDeployment createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.apigeeregistry.v1.ApiDeployment
+ * @instance
+ */
+ ApiDeployment.prototype.createTime = null;
+
+ /**
+ * ApiDeployment revisionCreateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} revisionCreateTime
+ * @memberof google.cloud.apigeeregistry.v1.ApiDeployment
+ * @instance
+ */
+ ApiDeployment.prototype.revisionCreateTime = null;
+
+ /**
+ * ApiDeployment revisionUpdateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} revisionUpdateTime
+ * @memberof google.cloud.apigeeregistry.v1.ApiDeployment
+ * @instance
+ */
+ ApiDeployment.prototype.revisionUpdateTime = null;
+
+ /**
+ * ApiDeployment apiSpecRevision.
+ * @member {string} apiSpecRevision
+ * @memberof google.cloud.apigeeregistry.v1.ApiDeployment
+ * @instance
+ */
+ ApiDeployment.prototype.apiSpecRevision = "";
+
+ /**
+ * ApiDeployment endpointUri.
+ * @member {string} endpointUri
+ * @memberof google.cloud.apigeeregistry.v1.ApiDeployment
+ * @instance
+ */
+ ApiDeployment.prototype.endpointUri = "";
+
+ /**
+ * ApiDeployment externalChannelUri.
+ * @member {string} externalChannelUri
+ * @memberof google.cloud.apigeeregistry.v1.ApiDeployment
+ * @instance
+ */
+ ApiDeployment.prototype.externalChannelUri = "";
+
+ /**
+ * ApiDeployment intendedAudience.
+ * @member {string} intendedAudience
+ * @memberof google.cloud.apigeeregistry.v1.ApiDeployment
+ * @instance
+ */
+ ApiDeployment.prototype.intendedAudience = "";
+
+ /**
+ * ApiDeployment accessGuidance.
+ * @member {string} accessGuidance
+ * @memberof google.cloud.apigeeregistry.v1.ApiDeployment
+ * @instance
+ */
+ ApiDeployment.prototype.accessGuidance = "";
+
+ /**
+ * ApiDeployment labels.
+ * @member {Object.} labels
+ * @memberof google.cloud.apigeeregistry.v1.ApiDeployment
+ * @instance
+ */
+ ApiDeployment.prototype.labels = $util.emptyObject;
+
+ /**
+ * ApiDeployment annotations.
+ * @member {Object.} annotations
+ * @memberof google.cloud.apigeeregistry.v1.ApiDeployment
+ * @instance
+ */
+ ApiDeployment.prototype.annotations = $util.emptyObject;
+
+ /**
+ * Creates a new ApiDeployment instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.apigeeregistry.v1.ApiDeployment
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IApiDeployment=} [properties] Properties to set
+ * @returns {google.cloud.apigeeregistry.v1.ApiDeployment} ApiDeployment instance
+ */
+ ApiDeployment.create = function create(properties) {
+ return new ApiDeployment(properties);
+ };
+
+ /**
+ * Encodes the specified ApiDeployment message. Does not implicitly {@link google.cloud.apigeeregistry.v1.ApiDeployment.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.apigeeregistry.v1.ApiDeployment
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IApiDeployment} message ApiDeployment message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ApiDeployment.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.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.description);
+ if (message.revisionId != null && Object.hasOwnProperty.call(message, "revisionId"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.revisionId);
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.revisionCreateTime != null && Object.hasOwnProperty.call(message, "revisionCreateTime"))
+ $root.google.protobuf.Timestamp.encode(message.revisionCreateTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ if (message.revisionUpdateTime != null && Object.hasOwnProperty.call(message, "revisionUpdateTime"))
+ $root.google.protobuf.Timestamp.encode(message.revisionUpdateTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+ if (message.apiSpecRevision != null && Object.hasOwnProperty.call(message, "apiSpecRevision"))
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.apiSpecRevision);
+ if (message.endpointUri != null && Object.hasOwnProperty.call(message, "endpointUri"))
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.endpointUri);
+ if (message.externalChannelUri != null && Object.hasOwnProperty.call(message, "externalChannelUri"))
+ writer.uint32(/* id 10, wireType 2 =*/82).string(message.externalChannelUri);
+ if (message.intendedAudience != null && Object.hasOwnProperty.call(message, "intendedAudience"))
+ writer.uint32(/* id 11, wireType 2 =*/90).string(message.intendedAudience);
+ if (message.accessGuidance != null && Object.hasOwnProperty.call(message, "accessGuidance"))
+ writer.uint32(/* id 12, wireType 2 =*/98).string(message.accessGuidance);
+ 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 14, wireType 2 =*/114).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim();
+ 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 15, wireType 2 =*/122).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.annotations[keys[i]]).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ApiDeployment message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.ApiDeployment.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.ApiDeployment
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IApiDeployment} message ApiDeployment message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ApiDeployment.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an ApiDeployment message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.apigeeregistry.v1.ApiDeployment
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.apigeeregistry.v1.ApiDeployment} ApiDeployment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ApiDeployment.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.apigeeregistry.v1.ApiDeployment(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.displayName = reader.string();
+ break;
+ }
+ case 3: {
+ message.description = reader.string();
+ break;
+ }
+ case 4: {
+ message.revisionId = reader.string();
+ break;
+ }
+ case 5: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 6: {
+ message.revisionCreateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 7: {
+ message.revisionUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 8: {
+ message.apiSpecRevision = reader.string();
+ break;
+ }
+ case 9: {
+ message.endpointUri = reader.string();
+ break;
+ }
+ case 10: {
+ message.externalChannelUri = reader.string();
+ break;
+ }
+ case 11: {
+ message.intendedAudience = reader.string();
+ break;
+ }
+ case 12: {
+ message.accessGuidance = reader.string();
+ break;
+ }
+ case 14: {
+ 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 15: {
+ 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;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an ApiDeployment message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.ApiDeployment
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.apigeeregistry.v1.ApiDeployment} ApiDeployment
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ApiDeployment.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an ApiDeployment message.
+ * @function verify
+ * @memberof google.cloud.apigeeregistry.v1.ApiDeployment
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ApiDeployment.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.displayName != null && message.hasOwnProperty("displayName"))
+ if (!$util.isString(message.displayName))
+ return "displayName: string expected";
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.revisionId != null && message.hasOwnProperty("revisionId"))
+ if (!$util.isString(message.revisionId))
+ return "revisionId: 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.revisionCreateTime != null && message.hasOwnProperty("revisionCreateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.revisionCreateTime);
+ if (error)
+ return "revisionCreateTime." + error;
+ }
+ if (message.revisionUpdateTime != null && message.hasOwnProperty("revisionUpdateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.revisionUpdateTime);
+ if (error)
+ return "revisionUpdateTime." + error;
+ }
+ if (message.apiSpecRevision != null && message.hasOwnProperty("apiSpecRevision"))
+ if (!$util.isString(message.apiSpecRevision))
+ return "apiSpecRevision: string expected";
+ if (message.endpointUri != null && message.hasOwnProperty("endpointUri"))
+ if (!$util.isString(message.endpointUri))
+ return "endpointUri: string expected";
+ if (message.externalChannelUri != null && message.hasOwnProperty("externalChannelUri"))
+ if (!$util.isString(message.externalChannelUri))
+ return "externalChannelUri: string expected";
+ if (message.intendedAudience != null && message.hasOwnProperty("intendedAudience"))
+ if (!$util.isString(message.intendedAudience))
+ return "intendedAudience: string expected";
+ if (message.accessGuidance != null && message.hasOwnProperty("accessGuidance"))
+ if (!$util.isString(message.accessGuidance))
+ return "accessGuidance: string expected";
+ 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.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";
+ }
+ return null;
+ };
+
+ /**
+ * Creates an ApiDeployment message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.apigeeregistry.v1.ApiDeployment
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.apigeeregistry.v1.ApiDeployment} ApiDeployment
+ */
+ ApiDeployment.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.apigeeregistry.v1.ApiDeployment)
+ return object;
+ var message = new $root.google.cloud.apigeeregistry.v1.ApiDeployment();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.displayName != null)
+ message.displayName = String(object.displayName);
+ if (object.description != null)
+ message.description = String(object.description);
+ if (object.revisionId != null)
+ message.revisionId = String(object.revisionId);
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.apigeeregistry.v1.ApiDeployment.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
+ }
+ if (object.revisionCreateTime != null) {
+ if (typeof object.revisionCreateTime !== "object")
+ throw TypeError(".google.cloud.apigeeregistry.v1.ApiDeployment.revisionCreateTime: object expected");
+ message.revisionCreateTime = $root.google.protobuf.Timestamp.fromObject(object.revisionCreateTime);
+ }
+ if (object.revisionUpdateTime != null) {
+ if (typeof object.revisionUpdateTime !== "object")
+ throw TypeError(".google.cloud.apigeeregistry.v1.ApiDeployment.revisionUpdateTime: object expected");
+ message.revisionUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.revisionUpdateTime);
+ }
+ if (object.apiSpecRevision != null)
+ message.apiSpecRevision = String(object.apiSpecRevision);
+ if (object.endpointUri != null)
+ message.endpointUri = String(object.endpointUri);
+ if (object.externalChannelUri != null)
+ message.externalChannelUri = String(object.externalChannelUri);
+ if (object.intendedAudience != null)
+ message.intendedAudience = String(object.intendedAudience);
+ if (object.accessGuidance != null)
+ message.accessGuidance = String(object.accessGuidance);
+ if (object.labels) {
+ if (typeof object.labels !== "object")
+ throw TypeError(".google.cloud.apigeeregistry.v1.ApiDeployment.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.annotations) {
+ if (typeof object.annotations !== "object")
+ throw TypeError(".google.cloud.apigeeregistry.v1.ApiDeployment.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]]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an ApiDeployment message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.apigeeregistry.v1.ApiDeployment
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.ApiDeployment} message ApiDeployment
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ApiDeployment.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.displayName = "";
+ object.description = "";
+ object.revisionId = "";
+ object.createTime = null;
+ object.revisionCreateTime = null;
+ object.revisionUpdateTime = null;
+ object.apiSpecRevision = "";
+ object.endpointUri = "";
+ object.externalChannelUri = "";
+ object.intendedAudience = "";
+ object.accessGuidance = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ object.displayName = message.displayName;
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ if (message.revisionId != null && message.hasOwnProperty("revisionId"))
+ object.revisionId = message.revisionId;
+ if (message.createTime != null && message.hasOwnProperty("createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options);
+ if (message.revisionCreateTime != null && message.hasOwnProperty("revisionCreateTime"))
+ object.revisionCreateTime = $root.google.protobuf.Timestamp.toObject(message.revisionCreateTime, options);
+ if (message.revisionUpdateTime != null && message.hasOwnProperty("revisionUpdateTime"))
+ object.revisionUpdateTime = $root.google.protobuf.Timestamp.toObject(message.revisionUpdateTime, options);
+ if (message.apiSpecRevision != null && message.hasOwnProperty("apiSpecRevision"))
+ object.apiSpecRevision = message.apiSpecRevision;
+ if (message.endpointUri != null && message.hasOwnProperty("endpointUri"))
+ object.endpointUri = message.endpointUri;
+ if (message.externalChannelUri != null && message.hasOwnProperty("externalChannelUri"))
+ object.externalChannelUri = message.externalChannelUri;
+ if (message.intendedAudience != null && message.hasOwnProperty("intendedAudience"))
+ object.intendedAudience = message.intendedAudience;
+ if (message.accessGuidance != null && message.hasOwnProperty("accessGuidance"))
+ object.accessGuidance = message.accessGuidance;
+ 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.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]];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this ApiDeployment to JSON.
+ * @function toJSON
+ * @memberof google.cloud.apigeeregistry.v1.ApiDeployment
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ApiDeployment.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ApiDeployment
+ * @function getTypeUrl
+ * @memberof google.cloud.apigeeregistry.v1.ApiDeployment
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ApiDeployment.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.apigeeregistry.v1.ApiDeployment";
+ };
+
+ return ApiDeployment;
+ })();
+
+ v1.Artifact = (function() {
+
+ /**
+ * Properties of an Artifact.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @interface IArtifact
+ * @property {string|null} [name] Artifact name
+ * @property {google.protobuf.ITimestamp|null} [createTime] Artifact createTime
+ * @property {google.protobuf.ITimestamp|null} [updateTime] Artifact updateTime
+ * @property {string|null} [mimeType] Artifact mimeType
+ * @property {number|null} [sizeBytes] Artifact sizeBytes
+ * @property {string|null} [hash] Artifact hash
+ * @property {Uint8Array|null} [contents] Artifact contents
+ */
+
+ /**
+ * Constructs a new Artifact.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @classdesc Represents an Artifact.
+ * @implements IArtifact
+ * @constructor
+ * @param {google.cloud.apigeeregistry.v1.IArtifact=} [properties] Properties to set
+ */
+ function Artifact(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]];
+ }
+
+ /**
+ * Artifact name.
+ * @member {string} name
+ * @memberof google.cloud.apigeeregistry.v1.Artifact
+ * @instance
+ */
+ Artifact.prototype.name = "";
+
+ /**
+ * Artifact createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.apigeeregistry.v1.Artifact
+ * @instance
+ */
+ Artifact.prototype.createTime = null;
+
+ /**
+ * Artifact updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.apigeeregistry.v1.Artifact
+ * @instance
+ */
+ Artifact.prototype.updateTime = null;
+
+ /**
+ * Artifact mimeType.
+ * @member {string} mimeType
+ * @memberof google.cloud.apigeeregistry.v1.Artifact
+ * @instance
+ */
+ Artifact.prototype.mimeType = "";
+
+ /**
+ * Artifact sizeBytes.
+ * @member {number} sizeBytes
+ * @memberof google.cloud.apigeeregistry.v1.Artifact
+ * @instance
+ */
+ Artifact.prototype.sizeBytes = 0;
+
+ /**
+ * Artifact hash.
+ * @member {string} hash
+ * @memberof google.cloud.apigeeregistry.v1.Artifact
+ * @instance
+ */
+ Artifact.prototype.hash = "";
+
+ /**
+ * Artifact contents.
+ * @member {Uint8Array} contents
+ * @memberof google.cloud.apigeeregistry.v1.Artifact
+ * @instance
+ */
+ Artifact.prototype.contents = $util.newBuffer([]);
+
+ /**
+ * Creates a new Artifact instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.apigeeregistry.v1.Artifact
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IArtifact=} [properties] Properties to set
+ * @returns {google.cloud.apigeeregistry.v1.Artifact} Artifact instance
+ */
+ Artifact.create = function create(properties) {
+ return new Artifact(properties);
+ };
+
+ /**
+ * Encodes the specified Artifact message. Does not implicitly {@link google.cloud.apigeeregistry.v1.Artifact.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.apigeeregistry.v1.Artifact
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IArtifact} message Artifact message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Artifact.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.mimeType != null && Object.hasOwnProperty.call(message, "mimeType"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.mimeType);
+ if (message.sizeBytes != null && Object.hasOwnProperty.call(message, "sizeBytes"))
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.sizeBytes);
+ if (message.hash != null && Object.hasOwnProperty.call(message, "hash"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.hash);
+ if (message.contents != null && Object.hasOwnProperty.call(message, "contents"))
+ writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.contents);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Artifact message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.Artifact.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.Artifact
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IArtifact} message Artifact message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Artifact.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an Artifact message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.apigeeregistry.v1.Artifact
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.apigeeregistry.v1.Artifact} Artifact
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Artifact.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.apigeeregistry.v1.Artifact();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ 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 4: {
+ message.mimeType = reader.string();
+ break;
+ }
+ case 5: {
+ message.sizeBytes = reader.int32();
+ break;
+ }
+ case 6: {
+ message.hash = reader.string();
+ break;
+ }
+ case 7: {
+ message.contents = reader.bytes();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an Artifact message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.Artifact
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.apigeeregistry.v1.Artifact} Artifact
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Artifact.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an Artifact message.
+ * @function verify
+ * @memberof google.cloud.apigeeregistry.v1.Artifact
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Artifact.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.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.mimeType != null && message.hasOwnProperty("mimeType"))
+ if (!$util.isString(message.mimeType))
+ return "mimeType: string expected";
+ if (message.sizeBytes != null && message.hasOwnProperty("sizeBytes"))
+ if (!$util.isInteger(message.sizeBytes))
+ return "sizeBytes: integer expected";
+ if (message.hash != null && message.hasOwnProperty("hash"))
+ if (!$util.isString(message.hash))
+ return "hash: string expected";
+ if (message.contents != null && message.hasOwnProperty("contents"))
+ if (!(message.contents && typeof message.contents.length === "number" || $util.isString(message.contents)))
+ return "contents: buffer expected";
+ return null;
+ };
+
+ /**
+ * Creates an Artifact message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.apigeeregistry.v1.Artifact
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.apigeeregistry.v1.Artifact} Artifact
+ */
+ Artifact.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.apigeeregistry.v1.Artifact)
+ return object;
+ var message = new $root.google.cloud.apigeeregistry.v1.Artifact();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.cloud.apigeeregistry.v1.Artifact.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.apigeeregistry.v1.Artifact.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ if (object.mimeType != null)
+ message.mimeType = String(object.mimeType);
+ if (object.sizeBytes != null)
+ message.sizeBytes = object.sizeBytes | 0;
+ if (object.hash != null)
+ message.hash = String(object.hash);
+ if (object.contents != null)
+ if (typeof object.contents === "string")
+ $util.base64.decode(object.contents, message.contents = $util.newBuffer($util.base64.length(object.contents)), 0);
+ else if (object.contents.length >= 0)
+ message.contents = object.contents;
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an Artifact message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.apigeeregistry.v1.Artifact
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.Artifact} message Artifact
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Artifact.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.createTime = null;
+ object.updateTime = null;
+ object.mimeType = "";
+ object.sizeBytes = 0;
+ object.hash = "";
+ if (options.bytes === String)
+ object.contents = "";
+ else {
+ object.contents = [];
+ if (options.bytes !== Array)
+ object.contents = $util.newBuffer(object.contents);
+ }
+ }
+ 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);
+ if (message.mimeType != null && message.hasOwnProperty("mimeType"))
+ object.mimeType = message.mimeType;
+ if (message.sizeBytes != null && message.hasOwnProperty("sizeBytes"))
+ object.sizeBytes = message.sizeBytes;
+ if (message.hash != null && message.hasOwnProperty("hash"))
+ object.hash = message.hash;
+ if (message.contents != null && message.hasOwnProperty("contents"))
+ object.contents = options.bytes === String ? $util.base64.encode(message.contents, 0, message.contents.length) : options.bytes === Array ? Array.prototype.slice.call(message.contents) : message.contents;
+ return object;
+ };
+
+ /**
+ * Converts this Artifact to JSON.
+ * @function toJSON
+ * @memberof google.cloud.apigeeregistry.v1.Artifact
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Artifact.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Artifact
+ * @function getTypeUrl
+ * @memberof google.cloud.apigeeregistry.v1.Artifact
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Artifact.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.apigeeregistry.v1.Artifact";
+ };
+
+ return Artifact;
+ })();
+
+ v1.Registry = (function() {
+
+ /**
+ * Constructs a new Registry service.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @classdesc Represents a Registry
+ * @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 Registry(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (Registry.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Registry;
+
+ /**
+ * Creates new Registry service using the specified rpc implementation.
+ * @function create
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @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 {Registry} RPC service. Useful where requests and/or responses are streamed.
+ */
+ Registry.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|listApis}.
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @typedef ListApisCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.apigeeregistry.v1.ListApisResponse} [response] ListApisResponse
+ */
+
+ /**
+ * Calls ListApis.
+ * @function listApis
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IListApisRequest} request ListApisRequest message or plain object
+ * @param {google.cloud.apigeeregistry.v1.Registry.ListApisCallback} callback Node-style callback called with the error, if any, and ListApisResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Registry.prototype.listApis = function listApis(request, callback) {
+ return this.rpcCall(listApis, $root.google.cloud.apigeeregistry.v1.ListApisRequest, $root.google.cloud.apigeeregistry.v1.ListApisResponse, request, callback);
+ }, "name", { value: "ListApis" });
+
+ /**
+ * Calls ListApis.
+ * @function listApis
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IListApisRequest} request ListApisRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|getApi}.
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @typedef GetApiCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.apigeeregistry.v1.Api} [response] Api
+ */
+
+ /**
+ * Calls GetApi.
+ * @function getApi
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IGetApiRequest} request GetApiRequest message or plain object
+ * @param {google.cloud.apigeeregistry.v1.Registry.GetApiCallback} callback Node-style callback called with the error, if any, and Api
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Registry.prototype.getApi = function getApi(request, callback) {
+ return this.rpcCall(getApi, $root.google.cloud.apigeeregistry.v1.GetApiRequest, $root.google.cloud.apigeeregistry.v1.Api, request, callback);
+ }, "name", { value: "GetApi" });
+
+ /**
+ * Calls GetApi.
+ * @function getApi
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IGetApiRequest} request GetApiRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|createApi}.
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @typedef CreateApiCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.apigeeregistry.v1.Api} [response] Api
+ */
+
+ /**
+ * Calls CreateApi.
+ * @function createApi
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.ICreateApiRequest} request CreateApiRequest message or plain object
+ * @param {google.cloud.apigeeregistry.v1.Registry.CreateApiCallback} callback Node-style callback called with the error, if any, and Api
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Registry.prototype.createApi = function createApi(request, callback) {
+ return this.rpcCall(createApi, $root.google.cloud.apigeeregistry.v1.CreateApiRequest, $root.google.cloud.apigeeregistry.v1.Api, request, callback);
+ }, "name", { value: "CreateApi" });
+
+ /**
+ * Calls CreateApi.
+ * @function createApi
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.ICreateApiRequest} request CreateApiRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|updateApi}.
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @typedef UpdateApiCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.apigeeregistry.v1.Api} [response] Api
+ */
+
+ /**
+ * Calls UpdateApi.
+ * @function updateApi
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IUpdateApiRequest} request UpdateApiRequest message or plain object
+ * @param {google.cloud.apigeeregistry.v1.Registry.UpdateApiCallback} callback Node-style callback called with the error, if any, and Api
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Registry.prototype.updateApi = function updateApi(request, callback) {
+ return this.rpcCall(updateApi, $root.google.cloud.apigeeregistry.v1.UpdateApiRequest, $root.google.cloud.apigeeregistry.v1.Api, request, callback);
+ }, "name", { value: "UpdateApi" });
+
+ /**
+ * Calls UpdateApi.
+ * @function updateApi
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IUpdateApiRequest} request UpdateApiRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|deleteApi}.
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @typedef DeleteApiCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.protobuf.Empty} [response] Empty
+ */
+
+ /**
+ * Calls DeleteApi.
+ * @function deleteApi
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IDeleteApiRequest} request DeleteApiRequest message or plain object
+ * @param {google.cloud.apigeeregistry.v1.Registry.DeleteApiCallback} callback Node-style callback called with the error, if any, and Empty
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Registry.prototype.deleteApi = function deleteApi(request, callback) {
+ return this.rpcCall(deleteApi, $root.google.cloud.apigeeregistry.v1.DeleteApiRequest, $root.google.protobuf.Empty, request, callback);
+ }, "name", { value: "DeleteApi" });
+
+ /**
+ * Calls DeleteApi.
+ * @function deleteApi
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IDeleteApiRequest} request DeleteApiRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|listApiVersions}.
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @typedef ListApiVersionsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.apigeeregistry.v1.ListApiVersionsResponse} [response] ListApiVersionsResponse
+ */
+
+ /**
+ * Calls ListApiVersions.
+ * @function listApiVersions
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IListApiVersionsRequest} request ListApiVersionsRequest message or plain object
+ * @param {google.cloud.apigeeregistry.v1.Registry.ListApiVersionsCallback} callback Node-style callback called with the error, if any, and ListApiVersionsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Registry.prototype.listApiVersions = function listApiVersions(request, callback) {
+ return this.rpcCall(listApiVersions, $root.google.cloud.apigeeregistry.v1.ListApiVersionsRequest, $root.google.cloud.apigeeregistry.v1.ListApiVersionsResponse, request, callback);
+ }, "name", { value: "ListApiVersions" });
+
+ /**
+ * Calls ListApiVersions.
+ * @function listApiVersions
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IListApiVersionsRequest} request ListApiVersionsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|getApiVersion}.
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @typedef GetApiVersionCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.apigeeregistry.v1.ApiVersion} [response] ApiVersion
+ */
+
+ /**
+ * Calls GetApiVersion.
+ * @function getApiVersion
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IGetApiVersionRequest} request GetApiVersionRequest message or plain object
+ * @param {google.cloud.apigeeregistry.v1.Registry.GetApiVersionCallback} callback Node-style callback called with the error, if any, and ApiVersion
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Registry.prototype.getApiVersion = function getApiVersion(request, callback) {
+ return this.rpcCall(getApiVersion, $root.google.cloud.apigeeregistry.v1.GetApiVersionRequest, $root.google.cloud.apigeeregistry.v1.ApiVersion, request, callback);
+ }, "name", { value: "GetApiVersion" });
+
+ /**
+ * Calls GetApiVersion.
+ * @function getApiVersion
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IGetApiVersionRequest} request GetApiVersionRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|createApiVersion}.
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @typedef CreateApiVersionCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.apigeeregistry.v1.ApiVersion} [response] ApiVersion
+ */
+
+ /**
+ * Calls CreateApiVersion.
+ * @function createApiVersion
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.ICreateApiVersionRequest} request CreateApiVersionRequest message or plain object
+ * @param {google.cloud.apigeeregistry.v1.Registry.CreateApiVersionCallback} callback Node-style callback called with the error, if any, and ApiVersion
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Registry.prototype.createApiVersion = function createApiVersion(request, callback) {
+ return this.rpcCall(createApiVersion, $root.google.cloud.apigeeregistry.v1.CreateApiVersionRequest, $root.google.cloud.apigeeregistry.v1.ApiVersion, request, callback);
+ }, "name", { value: "CreateApiVersion" });
+
+ /**
+ * Calls CreateApiVersion.
+ * @function createApiVersion
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.ICreateApiVersionRequest} request CreateApiVersionRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|updateApiVersion}.
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @typedef UpdateApiVersionCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.apigeeregistry.v1.ApiVersion} [response] ApiVersion
+ */
+
+ /**
+ * Calls UpdateApiVersion.
+ * @function updateApiVersion
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IUpdateApiVersionRequest} request UpdateApiVersionRequest message or plain object
+ * @param {google.cloud.apigeeregistry.v1.Registry.UpdateApiVersionCallback} callback Node-style callback called with the error, if any, and ApiVersion
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Registry.prototype.updateApiVersion = function updateApiVersion(request, callback) {
+ return this.rpcCall(updateApiVersion, $root.google.cloud.apigeeregistry.v1.UpdateApiVersionRequest, $root.google.cloud.apigeeregistry.v1.ApiVersion, request, callback);
+ }, "name", { value: "UpdateApiVersion" });
+
+ /**
+ * Calls UpdateApiVersion.
+ * @function updateApiVersion
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IUpdateApiVersionRequest} request UpdateApiVersionRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|deleteApiVersion}.
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @typedef DeleteApiVersionCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.protobuf.Empty} [response] Empty
+ */
+
+ /**
+ * Calls DeleteApiVersion.
+ * @function deleteApiVersion
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IDeleteApiVersionRequest} request DeleteApiVersionRequest message or plain object
+ * @param {google.cloud.apigeeregistry.v1.Registry.DeleteApiVersionCallback} callback Node-style callback called with the error, if any, and Empty
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Registry.prototype.deleteApiVersion = function deleteApiVersion(request, callback) {
+ return this.rpcCall(deleteApiVersion, $root.google.cloud.apigeeregistry.v1.DeleteApiVersionRequest, $root.google.protobuf.Empty, request, callback);
+ }, "name", { value: "DeleteApiVersion" });
+
+ /**
+ * Calls DeleteApiVersion.
+ * @function deleteApiVersion
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IDeleteApiVersionRequest} request DeleteApiVersionRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|listApiSpecs}.
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @typedef ListApiSpecsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.apigeeregistry.v1.ListApiSpecsResponse} [response] ListApiSpecsResponse
+ */
+
+ /**
+ * Calls ListApiSpecs.
+ * @function listApiSpecs
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IListApiSpecsRequest} request ListApiSpecsRequest message or plain object
+ * @param {google.cloud.apigeeregistry.v1.Registry.ListApiSpecsCallback} callback Node-style callback called with the error, if any, and ListApiSpecsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Registry.prototype.listApiSpecs = function listApiSpecs(request, callback) {
+ return this.rpcCall(listApiSpecs, $root.google.cloud.apigeeregistry.v1.ListApiSpecsRequest, $root.google.cloud.apigeeregistry.v1.ListApiSpecsResponse, request, callback);
+ }, "name", { value: "ListApiSpecs" });
+
+ /**
+ * Calls ListApiSpecs.
+ * @function listApiSpecs
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IListApiSpecsRequest} request ListApiSpecsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|getApiSpec}.
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @typedef GetApiSpecCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.apigeeregistry.v1.ApiSpec} [response] ApiSpec
+ */
+
+ /**
+ * Calls GetApiSpec.
+ * @function getApiSpec
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IGetApiSpecRequest} request GetApiSpecRequest message or plain object
+ * @param {google.cloud.apigeeregistry.v1.Registry.GetApiSpecCallback} callback Node-style callback called with the error, if any, and ApiSpec
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Registry.prototype.getApiSpec = function getApiSpec(request, callback) {
+ return this.rpcCall(getApiSpec, $root.google.cloud.apigeeregistry.v1.GetApiSpecRequest, $root.google.cloud.apigeeregistry.v1.ApiSpec, request, callback);
+ }, "name", { value: "GetApiSpec" });
+
+ /**
+ * Calls GetApiSpec.
+ * @function getApiSpec
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IGetApiSpecRequest} request GetApiSpecRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|getApiSpecContents}.
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @typedef GetApiSpecContentsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.api.HttpBody} [response] HttpBody
+ */
+
+ /**
+ * Calls GetApiSpecContents.
+ * @function getApiSpecContents
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IGetApiSpecContentsRequest} request GetApiSpecContentsRequest message or plain object
+ * @param {google.cloud.apigeeregistry.v1.Registry.GetApiSpecContentsCallback} callback Node-style callback called with the error, if any, and HttpBody
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Registry.prototype.getApiSpecContents = function getApiSpecContents(request, callback) {
+ return this.rpcCall(getApiSpecContents, $root.google.cloud.apigeeregistry.v1.GetApiSpecContentsRequest, $root.google.api.HttpBody, request, callback);
+ }, "name", { value: "GetApiSpecContents" });
+
+ /**
+ * Calls GetApiSpecContents.
+ * @function getApiSpecContents
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IGetApiSpecContentsRequest} request GetApiSpecContentsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|createApiSpec}.
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @typedef CreateApiSpecCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.apigeeregistry.v1.ApiSpec} [response] ApiSpec
+ */
+
+ /**
+ * Calls CreateApiSpec.
+ * @function createApiSpec
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.ICreateApiSpecRequest} request CreateApiSpecRequest message or plain object
+ * @param {google.cloud.apigeeregistry.v1.Registry.CreateApiSpecCallback} callback Node-style callback called with the error, if any, and ApiSpec
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Registry.prototype.createApiSpec = function createApiSpec(request, callback) {
+ return this.rpcCall(createApiSpec, $root.google.cloud.apigeeregistry.v1.CreateApiSpecRequest, $root.google.cloud.apigeeregistry.v1.ApiSpec, request, callback);
+ }, "name", { value: "CreateApiSpec" });
+
+ /**
+ * Calls CreateApiSpec.
+ * @function createApiSpec
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.ICreateApiSpecRequest} request CreateApiSpecRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|updateApiSpec}.
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @typedef UpdateApiSpecCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.apigeeregistry.v1.ApiSpec} [response] ApiSpec
+ */
+
+ /**
+ * Calls UpdateApiSpec.
+ * @function updateApiSpec
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IUpdateApiSpecRequest} request UpdateApiSpecRequest message or plain object
+ * @param {google.cloud.apigeeregistry.v1.Registry.UpdateApiSpecCallback} callback Node-style callback called with the error, if any, and ApiSpec
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Registry.prototype.updateApiSpec = function updateApiSpec(request, callback) {
+ return this.rpcCall(updateApiSpec, $root.google.cloud.apigeeregistry.v1.UpdateApiSpecRequest, $root.google.cloud.apigeeregistry.v1.ApiSpec, request, callback);
+ }, "name", { value: "UpdateApiSpec" });
+
+ /**
+ * Calls UpdateApiSpec.
+ * @function updateApiSpec
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IUpdateApiSpecRequest} request UpdateApiSpecRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|deleteApiSpec}.
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @typedef DeleteApiSpecCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.protobuf.Empty} [response] Empty
+ */
+
+ /**
+ * Calls DeleteApiSpec.
+ * @function deleteApiSpec
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IDeleteApiSpecRequest} request DeleteApiSpecRequest message or plain object
+ * @param {google.cloud.apigeeregistry.v1.Registry.DeleteApiSpecCallback} callback Node-style callback called with the error, if any, and Empty
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Registry.prototype.deleteApiSpec = function deleteApiSpec(request, callback) {
+ return this.rpcCall(deleteApiSpec, $root.google.cloud.apigeeregistry.v1.DeleteApiSpecRequest, $root.google.protobuf.Empty, request, callback);
+ }, "name", { value: "DeleteApiSpec" });
+
+ /**
+ * Calls DeleteApiSpec.
+ * @function deleteApiSpec
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IDeleteApiSpecRequest} request DeleteApiSpecRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|tagApiSpecRevision}.
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @typedef TagApiSpecRevisionCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.apigeeregistry.v1.ApiSpec} [response] ApiSpec
+ */
+
+ /**
+ * Calls TagApiSpecRevision.
+ * @function tagApiSpecRevision
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.ITagApiSpecRevisionRequest} request TagApiSpecRevisionRequest message or plain object
+ * @param {google.cloud.apigeeregistry.v1.Registry.TagApiSpecRevisionCallback} callback Node-style callback called with the error, if any, and ApiSpec
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Registry.prototype.tagApiSpecRevision = function tagApiSpecRevision(request, callback) {
+ return this.rpcCall(tagApiSpecRevision, $root.google.cloud.apigeeregistry.v1.TagApiSpecRevisionRequest, $root.google.cloud.apigeeregistry.v1.ApiSpec, request, callback);
+ }, "name", { value: "TagApiSpecRevision" });
+
+ /**
+ * Calls TagApiSpecRevision.
+ * @function tagApiSpecRevision
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.ITagApiSpecRevisionRequest} request TagApiSpecRevisionRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|listApiSpecRevisions}.
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @typedef ListApiSpecRevisionsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse} [response] ListApiSpecRevisionsResponse
+ */
+
+ /**
+ * Calls ListApiSpecRevisions.
+ * @function listApiSpecRevisions
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IListApiSpecRevisionsRequest} request ListApiSpecRevisionsRequest message or plain object
+ * @param {google.cloud.apigeeregistry.v1.Registry.ListApiSpecRevisionsCallback} callback Node-style callback called with the error, if any, and ListApiSpecRevisionsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Registry.prototype.listApiSpecRevisions = function listApiSpecRevisions(request, callback) {
+ return this.rpcCall(listApiSpecRevisions, $root.google.cloud.apigeeregistry.v1.ListApiSpecRevisionsRequest, $root.google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse, request, callback);
+ }, "name", { value: "ListApiSpecRevisions" });
+
+ /**
+ * Calls ListApiSpecRevisions.
+ * @function listApiSpecRevisions
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IListApiSpecRevisionsRequest} request ListApiSpecRevisionsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|rollbackApiSpec}.
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @typedef RollbackApiSpecCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.apigeeregistry.v1.ApiSpec} [response] ApiSpec
+ */
+
+ /**
+ * Calls RollbackApiSpec.
+ * @function rollbackApiSpec
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IRollbackApiSpecRequest} request RollbackApiSpecRequest message or plain object
+ * @param {google.cloud.apigeeregistry.v1.Registry.RollbackApiSpecCallback} callback Node-style callback called with the error, if any, and ApiSpec
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Registry.prototype.rollbackApiSpec = function rollbackApiSpec(request, callback) {
+ return this.rpcCall(rollbackApiSpec, $root.google.cloud.apigeeregistry.v1.RollbackApiSpecRequest, $root.google.cloud.apigeeregistry.v1.ApiSpec, request, callback);
+ }, "name", { value: "RollbackApiSpec" });
+
+ /**
+ * Calls RollbackApiSpec.
+ * @function rollbackApiSpec
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IRollbackApiSpecRequest} request RollbackApiSpecRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|deleteApiSpecRevision}.
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @typedef DeleteApiSpecRevisionCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.apigeeregistry.v1.ApiSpec} [response] ApiSpec
+ */
+
+ /**
+ * Calls DeleteApiSpecRevision.
+ * @function deleteApiSpecRevision
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IDeleteApiSpecRevisionRequest} request DeleteApiSpecRevisionRequest message or plain object
+ * @param {google.cloud.apigeeregistry.v1.Registry.DeleteApiSpecRevisionCallback} callback Node-style callback called with the error, if any, and ApiSpec
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Registry.prototype.deleteApiSpecRevision = function deleteApiSpecRevision(request, callback) {
+ return this.rpcCall(deleteApiSpecRevision, $root.google.cloud.apigeeregistry.v1.DeleteApiSpecRevisionRequest, $root.google.cloud.apigeeregistry.v1.ApiSpec, request, callback);
+ }, "name", { value: "DeleteApiSpecRevision" });
+
+ /**
+ * Calls DeleteApiSpecRevision.
+ * @function deleteApiSpecRevision
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IDeleteApiSpecRevisionRequest} request DeleteApiSpecRevisionRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|listApiDeployments}.
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @typedef ListApiDeploymentsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.apigeeregistry.v1.ListApiDeploymentsResponse} [response] ListApiDeploymentsResponse
+ */
+
+ /**
+ * Calls ListApiDeployments.
+ * @function listApiDeployments
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IListApiDeploymentsRequest} request ListApiDeploymentsRequest message or plain object
+ * @param {google.cloud.apigeeregistry.v1.Registry.ListApiDeploymentsCallback} callback Node-style callback called with the error, if any, and ListApiDeploymentsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Registry.prototype.listApiDeployments = function listApiDeployments(request, callback) {
+ return this.rpcCall(listApiDeployments, $root.google.cloud.apigeeregistry.v1.ListApiDeploymentsRequest, $root.google.cloud.apigeeregistry.v1.ListApiDeploymentsResponse, request, callback);
+ }, "name", { value: "ListApiDeployments" });
+
+ /**
+ * Calls ListApiDeployments.
+ * @function listApiDeployments
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IListApiDeploymentsRequest} request ListApiDeploymentsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|getApiDeployment}.
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @typedef GetApiDeploymentCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.apigeeregistry.v1.ApiDeployment} [response] ApiDeployment
+ */
+
+ /**
+ * Calls GetApiDeployment.
+ * @function getApiDeployment
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IGetApiDeploymentRequest} request GetApiDeploymentRequest message or plain object
+ * @param {google.cloud.apigeeregistry.v1.Registry.GetApiDeploymentCallback} callback Node-style callback called with the error, if any, and ApiDeployment
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Registry.prototype.getApiDeployment = function getApiDeployment(request, callback) {
+ return this.rpcCall(getApiDeployment, $root.google.cloud.apigeeregistry.v1.GetApiDeploymentRequest, $root.google.cloud.apigeeregistry.v1.ApiDeployment, request, callback);
+ }, "name", { value: "GetApiDeployment" });
+
+ /**
+ * Calls GetApiDeployment.
+ * @function getApiDeployment
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IGetApiDeploymentRequest} request GetApiDeploymentRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|createApiDeployment}.
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @typedef CreateApiDeploymentCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.apigeeregistry.v1.ApiDeployment} [response] ApiDeployment
+ */
+
+ /**
+ * Calls CreateApiDeployment.
+ * @function createApiDeployment
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.ICreateApiDeploymentRequest} request CreateApiDeploymentRequest message or plain object
+ * @param {google.cloud.apigeeregistry.v1.Registry.CreateApiDeploymentCallback} callback Node-style callback called with the error, if any, and ApiDeployment
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Registry.prototype.createApiDeployment = function createApiDeployment(request, callback) {
+ return this.rpcCall(createApiDeployment, $root.google.cloud.apigeeregistry.v1.CreateApiDeploymentRequest, $root.google.cloud.apigeeregistry.v1.ApiDeployment, request, callback);
+ }, "name", { value: "CreateApiDeployment" });
+
+ /**
+ * Calls CreateApiDeployment.
+ * @function createApiDeployment
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.ICreateApiDeploymentRequest} request CreateApiDeploymentRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|updateApiDeployment}.
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @typedef UpdateApiDeploymentCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.apigeeregistry.v1.ApiDeployment} [response] ApiDeployment
+ */
+
+ /**
+ * Calls UpdateApiDeployment.
+ * @function updateApiDeployment
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IUpdateApiDeploymentRequest} request UpdateApiDeploymentRequest message or plain object
+ * @param {google.cloud.apigeeregistry.v1.Registry.UpdateApiDeploymentCallback} callback Node-style callback called with the error, if any, and ApiDeployment
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Registry.prototype.updateApiDeployment = function updateApiDeployment(request, callback) {
+ return this.rpcCall(updateApiDeployment, $root.google.cloud.apigeeregistry.v1.UpdateApiDeploymentRequest, $root.google.cloud.apigeeregistry.v1.ApiDeployment, request, callback);
+ }, "name", { value: "UpdateApiDeployment" });
+
+ /**
+ * Calls UpdateApiDeployment.
+ * @function updateApiDeployment
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IUpdateApiDeploymentRequest} request UpdateApiDeploymentRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|deleteApiDeployment}.
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @typedef DeleteApiDeploymentCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.protobuf.Empty} [response] Empty
+ */
+
+ /**
+ * Calls DeleteApiDeployment.
+ * @function deleteApiDeployment
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IDeleteApiDeploymentRequest} request DeleteApiDeploymentRequest message or plain object
+ * @param {google.cloud.apigeeregistry.v1.Registry.DeleteApiDeploymentCallback} callback Node-style callback called with the error, if any, and Empty
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Registry.prototype.deleteApiDeployment = function deleteApiDeployment(request, callback) {
+ return this.rpcCall(deleteApiDeployment, $root.google.cloud.apigeeregistry.v1.DeleteApiDeploymentRequest, $root.google.protobuf.Empty, request, callback);
+ }, "name", { value: "DeleteApiDeployment" });
+
+ /**
+ * Calls DeleteApiDeployment.
+ * @function deleteApiDeployment
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IDeleteApiDeploymentRequest} request DeleteApiDeploymentRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|tagApiDeploymentRevision}.
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @typedef TagApiDeploymentRevisionCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.apigeeregistry.v1.ApiDeployment} [response] ApiDeployment
+ */
+
+ /**
+ * Calls TagApiDeploymentRevision.
+ * @function tagApiDeploymentRevision
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.ITagApiDeploymentRevisionRequest} request TagApiDeploymentRevisionRequest message or plain object
+ * @param {google.cloud.apigeeregistry.v1.Registry.TagApiDeploymentRevisionCallback} callback Node-style callback called with the error, if any, and ApiDeployment
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Registry.prototype.tagApiDeploymentRevision = function tagApiDeploymentRevision(request, callback) {
+ return this.rpcCall(tagApiDeploymentRevision, $root.google.cloud.apigeeregistry.v1.TagApiDeploymentRevisionRequest, $root.google.cloud.apigeeregistry.v1.ApiDeployment, request, callback);
+ }, "name", { value: "TagApiDeploymentRevision" });
+
+ /**
+ * Calls TagApiDeploymentRevision.
+ * @function tagApiDeploymentRevision
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.ITagApiDeploymentRevisionRequest} request TagApiDeploymentRevisionRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|listApiDeploymentRevisions}.
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @typedef ListApiDeploymentRevisionsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.apigeeregistry.v1.ListApiDeploymentRevisionsResponse} [response] ListApiDeploymentRevisionsResponse
+ */
+
+ /**
+ * Calls ListApiDeploymentRevisions.
+ * @function listApiDeploymentRevisions
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IListApiDeploymentRevisionsRequest} request ListApiDeploymentRevisionsRequest message or plain object
+ * @param {google.cloud.apigeeregistry.v1.Registry.ListApiDeploymentRevisionsCallback} callback Node-style callback called with the error, if any, and ListApiDeploymentRevisionsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Registry.prototype.listApiDeploymentRevisions = function listApiDeploymentRevisions(request, callback) {
+ return this.rpcCall(listApiDeploymentRevisions, $root.google.cloud.apigeeregistry.v1.ListApiDeploymentRevisionsRequest, $root.google.cloud.apigeeregistry.v1.ListApiDeploymentRevisionsResponse, request, callback);
+ }, "name", { value: "ListApiDeploymentRevisions" });
+
+ /**
+ * Calls ListApiDeploymentRevisions.
+ * @function listApiDeploymentRevisions
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IListApiDeploymentRevisionsRequest} request ListApiDeploymentRevisionsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|rollbackApiDeployment}.
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @typedef RollbackApiDeploymentCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.apigeeregistry.v1.ApiDeployment} [response] ApiDeployment
+ */
+
+ /**
+ * Calls RollbackApiDeployment.
+ * @function rollbackApiDeployment
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IRollbackApiDeploymentRequest} request RollbackApiDeploymentRequest message or plain object
+ * @param {google.cloud.apigeeregistry.v1.Registry.RollbackApiDeploymentCallback} callback Node-style callback called with the error, if any, and ApiDeployment
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Registry.prototype.rollbackApiDeployment = function rollbackApiDeployment(request, callback) {
+ return this.rpcCall(rollbackApiDeployment, $root.google.cloud.apigeeregistry.v1.RollbackApiDeploymentRequest, $root.google.cloud.apigeeregistry.v1.ApiDeployment, request, callback);
+ }, "name", { value: "RollbackApiDeployment" });
+
+ /**
+ * Calls RollbackApiDeployment.
+ * @function rollbackApiDeployment
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IRollbackApiDeploymentRequest} request RollbackApiDeploymentRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|deleteApiDeploymentRevision}.
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @typedef DeleteApiDeploymentRevisionCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.apigeeregistry.v1.ApiDeployment} [response] ApiDeployment
+ */
+
+ /**
+ * Calls DeleteApiDeploymentRevision.
+ * @function deleteApiDeploymentRevision
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IDeleteApiDeploymentRevisionRequest} request DeleteApiDeploymentRevisionRequest message or plain object
+ * @param {google.cloud.apigeeregistry.v1.Registry.DeleteApiDeploymentRevisionCallback} callback Node-style callback called with the error, if any, and ApiDeployment
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Registry.prototype.deleteApiDeploymentRevision = function deleteApiDeploymentRevision(request, callback) {
+ return this.rpcCall(deleteApiDeploymentRevision, $root.google.cloud.apigeeregistry.v1.DeleteApiDeploymentRevisionRequest, $root.google.cloud.apigeeregistry.v1.ApiDeployment, request, callback);
+ }, "name", { value: "DeleteApiDeploymentRevision" });
+
+ /**
+ * Calls DeleteApiDeploymentRevision.
+ * @function deleteApiDeploymentRevision
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IDeleteApiDeploymentRevisionRequest} request DeleteApiDeploymentRevisionRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|listArtifacts}.
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @typedef ListArtifactsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.apigeeregistry.v1.ListArtifactsResponse} [response] ListArtifactsResponse
+ */
+
+ /**
+ * Calls ListArtifacts.
+ * @function listArtifacts
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IListArtifactsRequest} request ListArtifactsRequest message or plain object
+ * @param {google.cloud.apigeeregistry.v1.Registry.ListArtifactsCallback} callback Node-style callback called with the error, if any, and ListArtifactsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Registry.prototype.listArtifacts = function listArtifacts(request, callback) {
+ return this.rpcCall(listArtifacts, $root.google.cloud.apigeeregistry.v1.ListArtifactsRequest, $root.google.cloud.apigeeregistry.v1.ListArtifactsResponse, request, callback);
+ }, "name", { value: "ListArtifacts" });
+
+ /**
+ * Calls ListArtifacts.
+ * @function listArtifacts
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IListArtifactsRequest} request ListArtifactsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|getArtifact}.
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @typedef GetArtifactCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.apigeeregistry.v1.Artifact} [response] Artifact
+ */
+
+ /**
+ * Calls GetArtifact.
+ * @function getArtifact
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IGetArtifactRequest} request GetArtifactRequest message or plain object
+ * @param {google.cloud.apigeeregistry.v1.Registry.GetArtifactCallback} callback Node-style callback called with the error, if any, and Artifact
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Registry.prototype.getArtifact = function getArtifact(request, callback) {
+ return this.rpcCall(getArtifact, $root.google.cloud.apigeeregistry.v1.GetArtifactRequest, $root.google.cloud.apigeeregistry.v1.Artifact, request, callback);
+ }, "name", { value: "GetArtifact" });
+
+ /**
+ * Calls GetArtifact.
+ * @function getArtifact
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IGetArtifactRequest} request GetArtifactRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|getArtifactContents}.
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @typedef GetArtifactContentsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.api.HttpBody} [response] HttpBody
+ */
+
+ /**
+ * Calls GetArtifactContents.
+ * @function getArtifactContents
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IGetArtifactContentsRequest} request GetArtifactContentsRequest message or plain object
+ * @param {google.cloud.apigeeregistry.v1.Registry.GetArtifactContentsCallback} callback Node-style callback called with the error, if any, and HttpBody
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Registry.prototype.getArtifactContents = function getArtifactContents(request, callback) {
+ return this.rpcCall(getArtifactContents, $root.google.cloud.apigeeregistry.v1.GetArtifactContentsRequest, $root.google.api.HttpBody, request, callback);
+ }, "name", { value: "GetArtifactContents" });
+
+ /**
+ * Calls GetArtifactContents.
+ * @function getArtifactContents
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IGetArtifactContentsRequest} request GetArtifactContentsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|createArtifact}.
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @typedef CreateArtifactCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.apigeeregistry.v1.Artifact} [response] Artifact
+ */
+
+ /**
+ * Calls CreateArtifact.
+ * @function createArtifact
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.ICreateArtifactRequest} request CreateArtifactRequest message or plain object
+ * @param {google.cloud.apigeeregistry.v1.Registry.CreateArtifactCallback} callback Node-style callback called with the error, if any, and Artifact
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Registry.prototype.createArtifact = function createArtifact(request, callback) {
+ return this.rpcCall(createArtifact, $root.google.cloud.apigeeregistry.v1.CreateArtifactRequest, $root.google.cloud.apigeeregistry.v1.Artifact, request, callback);
+ }, "name", { value: "CreateArtifact" });
+
+ /**
+ * Calls CreateArtifact.
+ * @function createArtifact
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.ICreateArtifactRequest} request CreateArtifactRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|replaceArtifact}.
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @typedef ReplaceArtifactCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.apigeeregistry.v1.Artifact} [response] Artifact
+ */
+
+ /**
+ * Calls ReplaceArtifact.
+ * @function replaceArtifact
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IReplaceArtifactRequest} request ReplaceArtifactRequest message or plain object
+ * @param {google.cloud.apigeeregistry.v1.Registry.ReplaceArtifactCallback} callback Node-style callback called with the error, if any, and Artifact
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Registry.prototype.replaceArtifact = function replaceArtifact(request, callback) {
+ return this.rpcCall(replaceArtifact, $root.google.cloud.apigeeregistry.v1.ReplaceArtifactRequest, $root.google.cloud.apigeeregistry.v1.Artifact, request, callback);
+ }, "name", { value: "ReplaceArtifact" });
+
+ /**
+ * Calls ReplaceArtifact.
+ * @function replaceArtifact
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IReplaceArtifactRequest} request ReplaceArtifactRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.apigeeregistry.v1.Registry|deleteArtifact}.
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @typedef DeleteArtifactCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.protobuf.Empty} [response] Empty
+ */
+
+ /**
+ * Calls DeleteArtifact.
+ * @function deleteArtifact
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IDeleteArtifactRequest} request DeleteArtifactRequest message or plain object
+ * @param {google.cloud.apigeeregistry.v1.Registry.DeleteArtifactCallback} callback Node-style callback called with the error, if any, and Empty
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(Registry.prototype.deleteArtifact = function deleteArtifact(request, callback) {
+ return this.rpcCall(deleteArtifact, $root.google.cloud.apigeeregistry.v1.DeleteArtifactRequest, $root.google.protobuf.Empty, request, callback);
+ }, "name", { value: "DeleteArtifact" });
+
+ /**
+ * Calls DeleteArtifact.
+ * @function deleteArtifact
+ * @memberof google.cloud.apigeeregistry.v1.Registry
+ * @instance
+ * @param {google.cloud.apigeeregistry.v1.IDeleteArtifactRequest} request DeleteArtifactRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ return Registry;
+ })();
+
+ v1.ListApisRequest = (function() {
+
+ /**
+ * Properties of a ListApisRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @interface IListApisRequest
+ * @property {string|null} [parent] ListApisRequest parent
+ * @property {number|null} [pageSize] ListApisRequest pageSize
+ * @property {string|null} [pageToken] ListApisRequest pageToken
+ * @property {string|null} [filter] ListApisRequest filter
+ */
+
+ /**
+ * Constructs a new ListApisRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @classdesc Represents a ListApisRequest.
+ * @implements IListApisRequest
+ * @constructor
+ * @param {google.cloud.apigeeregistry.v1.IListApisRequest=} [properties] Properties to set
+ */
+ function ListApisRequest(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]];
+ }
+
+ /**
+ * ListApisRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.apigeeregistry.v1.ListApisRequest
+ * @instance
+ */
+ ListApisRequest.prototype.parent = "";
+
+ /**
+ * ListApisRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.apigeeregistry.v1.ListApisRequest
+ * @instance
+ */
+ ListApisRequest.prototype.pageSize = 0;
+
+ /**
+ * ListApisRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.apigeeregistry.v1.ListApisRequest
+ * @instance
+ */
+ ListApisRequest.prototype.pageToken = "";
+
+ /**
+ * ListApisRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.apigeeregistry.v1.ListApisRequest
+ * @instance
+ */
+ ListApisRequest.prototype.filter = "";
+
+ /**
+ * Creates a new ListApisRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.apigeeregistry.v1.ListApisRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IListApisRequest=} [properties] Properties to set
+ * @returns {google.cloud.apigeeregistry.v1.ListApisRequest} ListApisRequest instance
+ */
+ ListApisRequest.create = function create(properties) {
+ return new ListApisRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListApisRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApisRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.apigeeregistry.v1.ListApisRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IListApisRequest} message ListApisRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListApisRequest.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);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListApisRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApisRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.ListApisRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IListApisRequest} message ListApisRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListApisRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListApisRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.apigeeregistry.v1.ListApisRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.apigeeregistry.v1.ListApisRequest} ListApisRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListApisRequest.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.apigeeregistry.v1.ListApisRequest();
+ 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;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListApisRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.ListApisRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.apigeeregistry.v1.ListApisRequest} ListApisRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListApisRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListApisRequest message.
+ * @function verify
+ * @memberof google.cloud.apigeeregistry.v1.ListApisRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListApisRequest.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";
+ return null;
+ };
+
+ /**
+ * Creates a ListApisRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.apigeeregistry.v1.ListApisRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.apigeeregistry.v1.ListApisRequest} ListApisRequest
+ */
+ ListApisRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.apigeeregistry.v1.ListApisRequest)
+ return object;
+ var message = new $root.google.cloud.apigeeregistry.v1.ListApisRequest();
+ 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);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListApisRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.apigeeregistry.v1.ListApisRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.ListApisRequest} message ListApisRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListApisRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ object.filter = "";
+ }
+ 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;
+ return object;
+ };
+
+ /**
+ * Converts this ListApisRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.apigeeregistry.v1.ListApisRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListApisRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListApisRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.apigeeregistry.v1.ListApisRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListApisRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.apigeeregistry.v1.ListApisRequest";
+ };
+
+ return ListApisRequest;
+ })();
+
+ v1.ListApisResponse = (function() {
+
+ /**
+ * Properties of a ListApisResponse.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @interface IListApisResponse
+ * @property {Array.|null} [apis] ListApisResponse apis
+ * @property {string|null} [nextPageToken] ListApisResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListApisResponse.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @classdesc Represents a ListApisResponse.
+ * @implements IListApisResponse
+ * @constructor
+ * @param {google.cloud.apigeeregistry.v1.IListApisResponse=} [properties] Properties to set
+ */
+ function ListApisResponse(properties) {
+ this.apis = [];
+ 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]];
+ }
+
+ /**
+ * ListApisResponse apis.
+ * @member {Array.} apis
+ * @memberof google.cloud.apigeeregistry.v1.ListApisResponse
+ * @instance
+ */
+ ListApisResponse.prototype.apis = $util.emptyArray;
+
+ /**
+ * ListApisResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.apigeeregistry.v1.ListApisResponse
+ * @instance
+ */
+ ListApisResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListApisResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.apigeeregistry.v1.ListApisResponse
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IListApisResponse=} [properties] Properties to set
+ * @returns {google.cloud.apigeeregistry.v1.ListApisResponse} ListApisResponse instance
+ */
+ ListApisResponse.create = function create(properties) {
+ return new ListApisResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListApisResponse message. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApisResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.apigeeregistry.v1.ListApisResponse
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IListApisResponse} message ListApisResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListApisResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.apis != null && message.apis.length)
+ for (var i = 0; i < message.apis.length; ++i)
+ $root.google.cloud.apigeeregistry.v1.Api.encode(message.apis[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 ListApisResponse message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApisResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.ListApisResponse
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IListApisResponse} message ListApisResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListApisResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListApisResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.apigeeregistry.v1.ListApisResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.apigeeregistry.v1.ListApisResponse} ListApisResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListApisResponse.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.apigeeregistry.v1.ListApisResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.apis && message.apis.length))
+ message.apis = [];
+ message.apis.push($root.google.cloud.apigeeregistry.v1.Api.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListApisResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.ListApisResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.apigeeregistry.v1.ListApisResponse} ListApisResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListApisResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListApisResponse message.
+ * @function verify
+ * @memberof google.cloud.apigeeregistry.v1.ListApisResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListApisResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.apis != null && message.hasOwnProperty("apis")) {
+ if (!Array.isArray(message.apis))
+ return "apis: array expected";
+ for (var i = 0; i < message.apis.length; ++i) {
+ var error = $root.google.cloud.apigeeregistry.v1.Api.verify(message.apis[i]);
+ if (error)
+ return "apis." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListApisResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.apigeeregistry.v1.ListApisResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.apigeeregistry.v1.ListApisResponse} ListApisResponse
+ */
+ ListApisResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.apigeeregistry.v1.ListApisResponse)
+ return object;
+ var message = new $root.google.cloud.apigeeregistry.v1.ListApisResponse();
+ if (object.apis) {
+ if (!Array.isArray(object.apis))
+ throw TypeError(".google.cloud.apigeeregistry.v1.ListApisResponse.apis: array expected");
+ message.apis = [];
+ for (var i = 0; i < object.apis.length; ++i) {
+ if (typeof object.apis[i] !== "object")
+ throw TypeError(".google.cloud.apigeeregistry.v1.ListApisResponse.apis: object expected");
+ message.apis[i] = $root.google.cloud.apigeeregistry.v1.Api.fromObject(object.apis[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListApisResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.apigeeregistry.v1.ListApisResponse
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.ListApisResponse} message ListApisResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListApisResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.apis = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.apis && message.apis.length) {
+ object.apis = [];
+ for (var j = 0; j < message.apis.length; ++j)
+ object.apis[j] = $root.google.cloud.apigeeregistry.v1.Api.toObject(message.apis[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListApisResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.apigeeregistry.v1.ListApisResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListApisResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListApisResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.apigeeregistry.v1.ListApisResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListApisResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.apigeeregistry.v1.ListApisResponse";
+ };
+
+ return ListApisResponse;
+ })();
+
+ v1.GetApiRequest = (function() {
+
+ /**
+ * Properties of a GetApiRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @interface IGetApiRequest
+ * @property {string|null} [name] GetApiRequest name
+ */
+
+ /**
+ * Constructs a new GetApiRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @classdesc Represents a GetApiRequest.
+ * @implements IGetApiRequest
+ * @constructor
+ * @param {google.cloud.apigeeregistry.v1.IGetApiRequest=} [properties] Properties to set
+ */
+ function GetApiRequest(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]];
+ }
+
+ /**
+ * GetApiRequest name.
+ * @member {string} name
+ * @memberof google.cloud.apigeeregistry.v1.GetApiRequest
+ * @instance
+ */
+ GetApiRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetApiRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.apigeeregistry.v1.GetApiRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IGetApiRequest=} [properties] Properties to set
+ * @returns {google.cloud.apigeeregistry.v1.GetApiRequest} GetApiRequest instance
+ */
+ GetApiRequest.create = function create(properties) {
+ return new GetApiRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetApiRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.GetApiRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.apigeeregistry.v1.GetApiRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IGetApiRequest} message GetApiRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetApiRequest.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 GetApiRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.GetApiRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.GetApiRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IGetApiRequest} message GetApiRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetApiRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetApiRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.apigeeregistry.v1.GetApiRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.apigeeregistry.v1.GetApiRequest} GetApiRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetApiRequest.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.apigeeregistry.v1.GetApiRequest();
+ 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 GetApiRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.GetApiRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.apigeeregistry.v1.GetApiRequest} GetApiRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetApiRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetApiRequest message.
+ * @function verify
+ * @memberof google.cloud.apigeeregistry.v1.GetApiRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetApiRequest.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 GetApiRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.apigeeregistry.v1.GetApiRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.apigeeregistry.v1.GetApiRequest} GetApiRequest
+ */
+ GetApiRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.apigeeregistry.v1.GetApiRequest)
+ return object;
+ var message = new $root.google.cloud.apigeeregistry.v1.GetApiRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetApiRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.apigeeregistry.v1.GetApiRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.GetApiRequest} message GetApiRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetApiRequest.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 GetApiRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.apigeeregistry.v1.GetApiRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetApiRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetApiRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.apigeeregistry.v1.GetApiRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetApiRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.apigeeregistry.v1.GetApiRequest";
+ };
+
+ return GetApiRequest;
+ })();
+
+ v1.CreateApiRequest = (function() {
+
+ /**
+ * Properties of a CreateApiRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @interface ICreateApiRequest
+ * @property {string|null} [parent] CreateApiRequest parent
+ * @property {google.cloud.apigeeregistry.v1.IApi|null} [api] CreateApiRequest api
+ * @property {string|null} [apiId] CreateApiRequest apiId
+ */
+
+ /**
+ * Constructs a new CreateApiRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @classdesc Represents a CreateApiRequest.
+ * @implements ICreateApiRequest
+ * @constructor
+ * @param {google.cloud.apigeeregistry.v1.ICreateApiRequest=} [properties] Properties to set
+ */
+ function CreateApiRequest(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]];
+ }
+
+ /**
+ * CreateApiRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.apigeeregistry.v1.CreateApiRequest
+ * @instance
+ */
+ CreateApiRequest.prototype.parent = "";
+
+ /**
+ * CreateApiRequest api.
+ * @member {google.cloud.apigeeregistry.v1.IApi|null|undefined} api
+ * @memberof google.cloud.apigeeregistry.v1.CreateApiRequest
+ * @instance
+ */
+ CreateApiRequest.prototype.api = null;
+
+ /**
+ * CreateApiRequest apiId.
+ * @member {string} apiId
+ * @memberof google.cloud.apigeeregistry.v1.CreateApiRequest
+ * @instance
+ */
+ CreateApiRequest.prototype.apiId = "";
+
+ /**
+ * Creates a new CreateApiRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.apigeeregistry.v1.CreateApiRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.ICreateApiRequest=} [properties] Properties to set
+ * @returns {google.cloud.apigeeregistry.v1.CreateApiRequest} CreateApiRequest instance
+ */
+ CreateApiRequest.create = function create(properties) {
+ return new CreateApiRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateApiRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.CreateApiRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.apigeeregistry.v1.CreateApiRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.ICreateApiRequest} message CreateApiRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateApiRequest.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.api != null && Object.hasOwnProperty.call(message, "api"))
+ $root.google.cloud.apigeeregistry.v1.Api.encode(message.api, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.apiId != null && Object.hasOwnProperty.call(message, "apiId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.apiId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateApiRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.CreateApiRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.CreateApiRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.ICreateApiRequest} message CreateApiRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateApiRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateApiRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.apigeeregistry.v1.CreateApiRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.apigeeregistry.v1.CreateApiRequest} CreateApiRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateApiRequest.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.apigeeregistry.v1.CreateApiRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.api = $root.google.cloud.apigeeregistry.v1.Api.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.apiId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateApiRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.CreateApiRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.apigeeregistry.v1.CreateApiRequest} CreateApiRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateApiRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateApiRequest message.
+ * @function verify
+ * @memberof google.cloud.apigeeregistry.v1.CreateApiRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateApiRequest.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.api != null && message.hasOwnProperty("api")) {
+ var error = $root.google.cloud.apigeeregistry.v1.Api.verify(message.api);
+ if (error)
+ return "api." + error;
+ }
+ if (message.apiId != null && message.hasOwnProperty("apiId"))
+ if (!$util.isString(message.apiId))
+ return "apiId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a CreateApiRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.apigeeregistry.v1.CreateApiRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.apigeeregistry.v1.CreateApiRequest} CreateApiRequest
+ */
+ CreateApiRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.apigeeregistry.v1.CreateApiRequest)
+ return object;
+ var message = new $root.google.cloud.apigeeregistry.v1.CreateApiRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.api != null) {
+ if (typeof object.api !== "object")
+ throw TypeError(".google.cloud.apigeeregistry.v1.CreateApiRequest.api: object expected");
+ message.api = $root.google.cloud.apigeeregistry.v1.Api.fromObject(object.api);
+ }
+ if (object.apiId != null)
+ message.apiId = String(object.apiId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateApiRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.apigeeregistry.v1.CreateApiRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.CreateApiRequest} message CreateApiRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateApiRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.api = null;
+ object.apiId = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.api != null && message.hasOwnProperty("api"))
+ object.api = $root.google.cloud.apigeeregistry.v1.Api.toObject(message.api, options);
+ if (message.apiId != null && message.hasOwnProperty("apiId"))
+ object.apiId = message.apiId;
+ return object;
+ };
+
+ /**
+ * Converts this CreateApiRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.apigeeregistry.v1.CreateApiRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateApiRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateApiRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.apigeeregistry.v1.CreateApiRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateApiRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.apigeeregistry.v1.CreateApiRequest";
+ };
+
+ return CreateApiRequest;
+ })();
+
+ v1.UpdateApiRequest = (function() {
+
+ /**
+ * Properties of an UpdateApiRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @interface IUpdateApiRequest
+ * @property {google.cloud.apigeeregistry.v1.IApi|null} [api] UpdateApiRequest api
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateApiRequest updateMask
+ * @property {boolean|null} [allowMissing] UpdateApiRequest allowMissing
+ */
+
+ /**
+ * Constructs a new UpdateApiRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @classdesc Represents an UpdateApiRequest.
+ * @implements IUpdateApiRequest
+ * @constructor
+ * @param {google.cloud.apigeeregistry.v1.IUpdateApiRequest=} [properties] Properties to set
+ */
+ function UpdateApiRequest(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]];
+ }
+
+ /**
+ * UpdateApiRequest api.
+ * @member {google.cloud.apigeeregistry.v1.IApi|null|undefined} api
+ * @memberof google.cloud.apigeeregistry.v1.UpdateApiRequest
+ * @instance
+ */
+ UpdateApiRequest.prototype.api = null;
+
+ /**
+ * UpdateApiRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.cloud.apigeeregistry.v1.UpdateApiRequest
+ * @instance
+ */
+ UpdateApiRequest.prototype.updateMask = null;
+
+ /**
+ * UpdateApiRequest allowMissing.
+ * @member {boolean} allowMissing
+ * @memberof google.cloud.apigeeregistry.v1.UpdateApiRequest
+ * @instance
+ */
+ UpdateApiRequest.prototype.allowMissing = false;
+
+ /**
+ * Creates a new UpdateApiRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.apigeeregistry.v1.UpdateApiRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IUpdateApiRequest=} [properties] Properties to set
+ * @returns {google.cloud.apigeeregistry.v1.UpdateApiRequest} UpdateApiRequest instance
+ */
+ UpdateApiRequest.create = function create(properties) {
+ return new UpdateApiRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateApiRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.UpdateApiRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.apigeeregistry.v1.UpdateApiRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IUpdateApiRequest} message UpdateApiRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateApiRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.api != null && Object.hasOwnProperty.call(message, "api"))
+ $root.google.cloud.apigeeregistry.v1.Api.encode(message.api, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
+ $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.allowMissing != null && Object.hasOwnProperty.call(message, "allowMissing"))
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allowMissing);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateApiRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.UpdateApiRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.UpdateApiRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IUpdateApiRequest} message UpdateApiRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateApiRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateApiRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.apigeeregistry.v1.UpdateApiRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.apigeeregistry.v1.UpdateApiRequest} UpdateApiRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateApiRequest.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.apigeeregistry.v1.UpdateApiRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.api = $root.google.cloud.apigeeregistry.v1.Api.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.allowMissing = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateApiRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.UpdateApiRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.apigeeregistry.v1.UpdateApiRequest} UpdateApiRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateApiRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateApiRequest message.
+ * @function verify
+ * @memberof google.cloud.apigeeregistry.v1.UpdateApiRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateApiRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.api != null && message.hasOwnProperty("api")) {
+ var error = $root.google.cloud.apigeeregistry.v1.Api.verify(message.api);
+ if (error)
+ return "api." + error;
+ }
+ if (message.updateMask != null && message.hasOwnProperty("updateMask")) {
+ var error = $root.google.protobuf.FieldMask.verify(message.updateMask);
+ if (error)
+ return "updateMask." + error;
+ }
+ if (message.allowMissing != null && message.hasOwnProperty("allowMissing"))
+ if (typeof message.allowMissing !== "boolean")
+ return "allowMissing: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates an UpdateApiRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.apigeeregistry.v1.UpdateApiRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.apigeeregistry.v1.UpdateApiRequest} UpdateApiRequest
+ */
+ UpdateApiRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.apigeeregistry.v1.UpdateApiRequest)
+ return object;
+ var message = new $root.google.cloud.apigeeregistry.v1.UpdateApiRequest();
+ if (object.api != null) {
+ if (typeof object.api !== "object")
+ throw TypeError(".google.cloud.apigeeregistry.v1.UpdateApiRequest.api: object expected");
+ message.api = $root.google.cloud.apigeeregistry.v1.Api.fromObject(object.api);
+ }
+ if (object.updateMask != null) {
+ if (typeof object.updateMask !== "object")
+ throw TypeError(".google.cloud.apigeeregistry.v1.UpdateApiRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
+ }
+ if (object.allowMissing != null)
+ message.allowMissing = Boolean(object.allowMissing);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateApiRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.apigeeregistry.v1.UpdateApiRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.UpdateApiRequest} message UpdateApiRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateApiRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.api = null;
+ object.updateMask = null;
+ object.allowMissing = false;
+ }
+ if (message.api != null && message.hasOwnProperty("api"))
+ object.api = $root.google.cloud.apigeeregistry.v1.Api.toObject(message.api, options);
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
+ if (message.allowMissing != null && message.hasOwnProperty("allowMissing"))
+ object.allowMissing = message.allowMissing;
+ return object;
+ };
+
+ /**
+ * Converts this UpdateApiRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.apigeeregistry.v1.UpdateApiRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateApiRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateApiRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.apigeeregistry.v1.UpdateApiRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateApiRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.apigeeregistry.v1.UpdateApiRequest";
+ };
+
+ return UpdateApiRequest;
+ })();
+
+ v1.DeleteApiRequest = (function() {
+
+ /**
+ * Properties of a DeleteApiRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @interface IDeleteApiRequest
+ * @property {string|null} [name] DeleteApiRequest name
+ * @property {boolean|null} [force] DeleteApiRequest force
+ */
+
+ /**
+ * Constructs a new DeleteApiRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @classdesc Represents a DeleteApiRequest.
+ * @implements IDeleteApiRequest
+ * @constructor
+ * @param {google.cloud.apigeeregistry.v1.IDeleteApiRequest=} [properties] Properties to set
+ */
+ function DeleteApiRequest(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]];
+ }
+
+ /**
+ * DeleteApiRequest name.
+ * @member {string} name
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiRequest
+ * @instance
+ */
+ DeleteApiRequest.prototype.name = "";
+
+ /**
+ * DeleteApiRequest force.
+ * @member {boolean} force
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiRequest
+ * @instance
+ */
+ DeleteApiRequest.prototype.force = false;
+
+ /**
+ * Creates a new DeleteApiRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IDeleteApiRequest=} [properties] Properties to set
+ * @returns {google.cloud.apigeeregistry.v1.DeleteApiRequest} DeleteApiRequest instance
+ */
+ DeleteApiRequest.create = function create(properties) {
+ return new DeleteApiRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteApiRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.DeleteApiRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IDeleteApiRequest} message DeleteApiRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteApiRequest.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.force != null && Object.hasOwnProperty.call(message, "force"))
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DeleteApiRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.DeleteApiRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IDeleteApiRequest} message DeleteApiRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteApiRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteApiRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.apigeeregistry.v1.DeleteApiRequest} DeleteApiRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteApiRequest.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.apigeeregistry.v1.DeleteApiRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.force = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DeleteApiRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.apigeeregistry.v1.DeleteApiRequest} DeleteApiRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteApiRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteApiRequest message.
+ * @function verify
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteApiRequest.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.force != null && message.hasOwnProperty("force"))
+ if (typeof message.force !== "boolean")
+ return "force: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a DeleteApiRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.apigeeregistry.v1.DeleteApiRequest} DeleteApiRequest
+ */
+ DeleteApiRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.apigeeregistry.v1.DeleteApiRequest)
+ return object;
+ var message = new $root.google.cloud.apigeeregistry.v1.DeleteApiRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.force != null)
+ message.force = Boolean(object.force);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteApiRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.DeleteApiRequest} message DeleteApiRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteApiRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.force = false;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.force != null && message.hasOwnProperty("force"))
+ object.force = message.force;
+ return object;
+ };
+
+ /**
+ * Converts this DeleteApiRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteApiRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteApiRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteApiRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.apigeeregistry.v1.DeleteApiRequest";
+ };
+
+ return DeleteApiRequest;
+ })();
+
+ v1.ListApiVersionsRequest = (function() {
+
+ /**
+ * Properties of a ListApiVersionsRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @interface IListApiVersionsRequest
+ * @property {string|null} [parent] ListApiVersionsRequest parent
+ * @property {number|null} [pageSize] ListApiVersionsRequest pageSize
+ * @property {string|null} [pageToken] ListApiVersionsRequest pageToken
+ * @property {string|null} [filter] ListApiVersionsRequest filter
+ */
+
+ /**
+ * Constructs a new ListApiVersionsRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @classdesc Represents a ListApiVersionsRequest.
+ * @implements IListApiVersionsRequest
+ * @constructor
+ * @param {google.cloud.apigeeregistry.v1.IListApiVersionsRequest=} [properties] Properties to set
+ */
+ function ListApiVersionsRequest(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]];
+ }
+
+ /**
+ * ListApiVersionsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.apigeeregistry.v1.ListApiVersionsRequest
+ * @instance
+ */
+ ListApiVersionsRequest.prototype.parent = "";
+
+ /**
+ * ListApiVersionsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.apigeeregistry.v1.ListApiVersionsRequest
+ * @instance
+ */
+ ListApiVersionsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListApiVersionsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.apigeeregistry.v1.ListApiVersionsRequest
+ * @instance
+ */
+ ListApiVersionsRequest.prototype.pageToken = "";
+
+ /**
+ * ListApiVersionsRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.apigeeregistry.v1.ListApiVersionsRequest
+ * @instance
+ */
+ ListApiVersionsRequest.prototype.filter = "";
+
+ /**
+ * Creates a new ListApiVersionsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.apigeeregistry.v1.ListApiVersionsRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IListApiVersionsRequest=} [properties] Properties to set
+ * @returns {google.cloud.apigeeregistry.v1.ListApiVersionsRequest} ListApiVersionsRequest instance
+ */
+ ListApiVersionsRequest.create = function create(properties) {
+ return new ListApiVersionsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListApiVersionsRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApiVersionsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.apigeeregistry.v1.ListApiVersionsRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IListApiVersionsRequest} message ListApiVersionsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListApiVersionsRequest.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);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListApiVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApiVersionsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.ListApiVersionsRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IListApiVersionsRequest} message ListApiVersionsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListApiVersionsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListApiVersionsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.apigeeregistry.v1.ListApiVersionsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.apigeeregistry.v1.ListApiVersionsRequest} ListApiVersionsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListApiVersionsRequest.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.apigeeregistry.v1.ListApiVersionsRequest();
+ 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;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListApiVersionsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.ListApiVersionsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.apigeeregistry.v1.ListApiVersionsRequest} ListApiVersionsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListApiVersionsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListApiVersionsRequest message.
+ * @function verify
+ * @memberof google.cloud.apigeeregistry.v1.ListApiVersionsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListApiVersionsRequest.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";
+ return null;
+ };
+
+ /**
+ * Creates a ListApiVersionsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.apigeeregistry.v1.ListApiVersionsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.apigeeregistry.v1.ListApiVersionsRequest} ListApiVersionsRequest
+ */
+ ListApiVersionsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.apigeeregistry.v1.ListApiVersionsRequest)
+ return object;
+ var message = new $root.google.cloud.apigeeregistry.v1.ListApiVersionsRequest();
+ 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);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListApiVersionsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.apigeeregistry.v1.ListApiVersionsRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.ListApiVersionsRequest} message ListApiVersionsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListApiVersionsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ object.filter = "";
+ }
+ 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;
+ return object;
+ };
+
+ /**
+ * Converts this ListApiVersionsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.apigeeregistry.v1.ListApiVersionsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListApiVersionsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListApiVersionsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.apigeeregistry.v1.ListApiVersionsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListApiVersionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.apigeeregistry.v1.ListApiVersionsRequest";
+ };
+
+ return ListApiVersionsRequest;
+ })();
+
+ v1.ListApiVersionsResponse = (function() {
+
+ /**
+ * Properties of a ListApiVersionsResponse.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @interface IListApiVersionsResponse
+ * @property {Array.|null} [apiVersions] ListApiVersionsResponse apiVersions
+ * @property {string|null} [nextPageToken] ListApiVersionsResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListApiVersionsResponse.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @classdesc Represents a ListApiVersionsResponse.
+ * @implements IListApiVersionsResponse
+ * @constructor
+ * @param {google.cloud.apigeeregistry.v1.IListApiVersionsResponse=} [properties] Properties to set
+ */
+ function ListApiVersionsResponse(properties) {
+ this.apiVersions = [];
+ 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]];
+ }
+
+ /**
+ * ListApiVersionsResponse apiVersions.
+ * @member {Array.} apiVersions
+ * @memberof google.cloud.apigeeregistry.v1.ListApiVersionsResponse
+ * @instance
+ */
+ ListApiVersionsResponse.prototype.apiVersions = $util.emptyArray;
+
+ /**
+ * ListApiVersionsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.apigeeregistry.v1.ListApiVersionsResponse
+ * @instance
+ */
+ ListApiVersionsResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListApiVersionsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.apigeeregistry.v1.ListApiVersionsResponse
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IListApiVersionsResponse=} [properties] Properties to set
+ * @returns {google.cloud.apigeeregistry.v1.ListApiVersionsResponse} ListApiVersionsResponse instance
+ */
+ ListApiVersionsResponse.create = function create(properties) {
+ return new ListApiVersionsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListApiVersionsResponse message. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApiVersionsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.apigeeregistry.v1.ListApiVersionsResponse
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IListApiVersionsResponse} message ListApiVersionsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListApiVersionsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.apiVersions != null && message.apiVersions.length)
+ for (var i = 0; i < message.apiVersions.length; ++i)
+ $root.google.cloud.apigeeregistry.v1.ApiVersion.encode(message.apiVersions[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 ListApiVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApiVersionsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.ListApiVersionsResponse
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IListApiVersionsResponse} message ListApiVersionsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListApiVersionsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListApiVersionsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.apigeeregistry.v1.ListApiVersionsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.apigeeregistry.v1.ListApiVersionsResponse} ListApiVersionsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListApiVersionsResponse.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.apigeeregistry.v1.ListApiVersionsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.apiVersions && message.apiVersions.length))
+ message.apiVersions = [];
+ message.apiVersions.push($root.google.cloud.apigeeregistry.v1.ApiVersion.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListApiVersionsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.ListApiVersionsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.apigeeregistry.v1.ListApiVersionsResponse} ListApiVersionsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListApiVersionsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListApiVersionsResponse message.
+ * @function verify
+ * @memberof google.cloud.apigeeregistry.v1.ListApiVersionsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListApiVersionsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.apiVersions != null && message.hasOwnProperty("apiVersions")) {
+ if (!Array.isArray(message.apiVersions))
+ return "apiVersions: array expected";
+ for (var i = 0; i < message.apiVersions.length; ++i) {
+ var error = $root.google.cloud.apigeeregistry.v1.ApiVersion.verify(message.apiVersions[i]);
+ if (error)
+ return "apiVersions." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListApiVersionsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.apigeeregistry.v1.ListApiVersionsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.apigeeregistry.v1.ListApiVersionsResponse} ListApiVersionsResponse
+ */
+ ListApiVersionsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.apigeeregistry.v1.ListApiVersionsResponse)
+ return object;
+ var message = new $root.google.cloud.apigeeregistry.v1.ListApiVersionsResponse();
+ if (object.apiVersions) {
+ if (!Array.isArray(object.apiVersions))
+ throw TypeError(".google.cloud.apigeeregistry.v1.ListApiVersionsResponse.apiVersions: array expected");
+ message.apiVersions = [];
+ for (var i = 0; i < object.apiVersions.length; ++i) {
+ if (typeof object.apiVersions[i] !== "object")
+ throw TypeError(".google.cloud.apigeeregistry.v1.ListApiVersionsResponse.apiVersions: object expected");
+ message.apiVersions[i] = $root.google.cloud.apigeeregistry.v1.ApiVersion.fromObject(object.apiVersions[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListApiVersionsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.apigeeregistry.v1.ListApiVersionsResponse
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.ListApiVersionsResponse} message ListApiVersionsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListApiVersionsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.apiVersions = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.apiVersions && message.apiVersions.length) {
+ object.apiVersions = [];
+ for (var j = 0; j < message.apiVersions.length; ++j)
+ object.apiVersions[j] = $root.google.cloud.apigeeregistry.v1.ApiVersion.toObject(message.apiVersions[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListApiVersionsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.apigeeregistry.v1.ListApiVersionsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListApiVersionsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListApiVersionsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.apigeeregistry.v1.ListApiVersionsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListApiVersionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.apigeeregistry.v1.ListApiVersionsResponse";
+ };
+
+ return ListApiVersionsResponse;
+ })();
+
+ v1.GetApiVersionRequest = (function() {
+
+ /**
+ * Properties of a GetApiVersionRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @interface IGetApiVersionRequest
+ * @property {string|null} [name] GetApiVersionRequest name
+ */
+
+ /**
+ * Constructs a new GetApiVersionRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @classdesc Represents a GetApiVersionRequest.
+ * @implements IGetApiVersionRequest
+ * @constructor
+ * @param {google.cloud.apigeeregistry.v1.IGetApiVersionRequest=} [properties] Properties to set
+ */
+ function GetApiVersionRequest(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]];
+ }
+
+ /**
+ * GetApiVersionRequest name.
+ * @member {string} name
+ * @memberof google.cloud.apigeeregistry.v1.GetApiVersionRequest
+ * @instance
+ */
+ GetApiVersionRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetApiVersionRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.apigeeregistry.v1.GetApiVersionRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IGetApiVersionRequest=} [properties] Properties to set
+ * @returns {google.cloud.apigeeregistry.v1.GetApiVersionRequest} GetApiVersionRequest instance
+ */
+ GetApiVersionRequest.create = function create(properties) {
+ return new GetApiVersionRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetApiVersionRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.GetApiVersionRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.apigeeregistry.v1.GetApiVersionRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IGetApiVersionRequest} message GetApiVersionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetApiVersionRequest.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 GetApiVersionRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.GetApiVersionRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.GetApiVersionRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IGetApiVersionRequest} message GetApiVersionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetApiVersionRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetApiVersionRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.apigeeregistry.v1.GetApiVersionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.apigeeregistry.v1.GetApiVersionRequest} GetApiVersionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetApiVersionRequest.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.apigeeregistry.v1.GetApiVersionRequest();
+ 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 GetApiVersionRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.GetApiVersionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.apigeeregistry.v1.GetApiVersionRequest} GetApiVersionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetApiVersionRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetApiVersionRequest message.
+ * @function verify
+ * @memberof google.cloud.apigeeregistry.v1.GetApiVersionRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetApiVersionRequest.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 GetApiVersionRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.apigeeregistry.v1.GetApiVersionRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.apigeeregistry.v1.GetApiVersionRequest} GetApiVersionRequest
+ */
+ GetApiVersionRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.apigeeregistry.v1.GetApiVersionRequest)
+ return object;
+ var message = new $root.google.cloud.apigeeregistry.v1.GetApiVersionRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetApiVersionRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.apigeeregistry.v1.GetApiVersionRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.GetApiVersionRequest} message GetApiVersionRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetApiVersionRequest.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 GetApiVersionRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.apigeeregistry.v1.GetApiVersionRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetApiVersionRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetApiVersionRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.apigeeregistry.v1.GetApiVersionRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetApiVersionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.apigeeregistry.v1.GetApiVersionRequest";
+ };
+
+ return GetApiVersionRequest;
+ })();
+
+ v1.CreateApiVersionRequest = (function() {
+
+ /**
+ * Properties of a CreateApiVersionRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @interface ICreateApiVersionRequest
+ * @property {string|null} [parent] CreateApiVersionRequest parent
+ * @property {google.cloud.apigeeregistry.v1.IApiVersion|null} [apiVersion] CreateApiVersionRequest apiVersion
+ * @property {string|null} [apiVersionId] CreateApiVersionRequest apiVersionId
+ */
+
+ /**
+ * Constructs a new CreateApiVersionRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @classdesc Represents a CreateApiVersionRequest.
+ * @implements ICreateApiVersionRequest
+ * @constructor
+ * @param {google.cloud.apigeeregistry.v1.ICreateApiVersionRequest=} [properties] Properties to set
+ */
+ function CreateApiVersionRequest(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]];
+ }
+
+ /**
+ * CreateApiVersionRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.apigeeregistry.v1.CreateApiVersionRequest
+ * @instance
+ */
+ CreateApiVersionRequest.prototype.parent = "";
+
+ /**
+ * CreateApiVersionRequest apiVersion.
+ * @member {google.cloud.apigeeregistry.v1.IApiVersion|null|undefined} apiVersion
+ * @memberof google.cloud.apigeeregistry.v1.CreateApiVersionRequest
+ * @instance
+ */
+ CreateApiVersionRequest.prototype.apiVersion = null;
+
+ /**
+ * CreateApiVersionRequest apiVersionId.
+ * @member {string} apiVersionId
+ * @memberof google.cloud.apigeeregistry.v1.CreateApiVersionRequest
+ * @instance
+ */
+ CreateApiVersionRequest.prototype.apiVersionId = "";
+
+ /**
+ * Creates a new CreateApiVersionRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.apigeeregistry.v1.CreateApiVersionRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.ICreateApiVersionRequest=} [properties] Properties to set
+ * @returns {google.cloud.apigeeregistry.v1.CreateApiVersionRequest} CreateApiVersionRequest instance
+ */
+ CreateApiVersionRequest.create = function create(properties) {
+ return new CreateApiVersionRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateApiVersionRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.CreateApiVersionRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.apigeeregistry.v1.CreateApiVersionRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.ICreateApiVersionRequest} message CreateApiVersionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateApiVersionRequest.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.apiVersion != null && Object.hasOwnProperty.call(message, "apiVersion"))
+ $root.google.cloud.apigeeregistry.v1.ApiVersion.encode(message.apiVersion, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.apiVersionId != null && Object.hasOwnProperty.call(message, "apiVersionId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.apiVersionId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateApiVersionRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.CreateApiVersionRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.CreateApiVersionRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.ICreateApiVersionRequest} message CreateApiVersionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateApiVersionRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateApiVersionRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.apigeeregistry.v1.CreateApiVersionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.apigeeregistry.v1.CreateApiVersionRequest} CreateApiVersionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateApiVersionRequest.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.apigeeregistry.v1.CreateApiVersionRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.apiVersion = $root.google.cloud.apigeeregistry.v1.ApiVersion.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.apiVersionId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateApiVersionRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.CreateApiVersionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.apigeeregistry.v1.CreateApiVersionRequest} CreateApiVersionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateApiVersionRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateApiVersionRequest message.
+ * @function verify
+ * @memberof google.cloud.apigeeregistry.v1.CreateApiVersionRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateApiVersionRequest.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.apiVersion != null && message.hasOwnProperty("apiVersion")) {
+ var error = $root.google.cloud.apigeeregistry.v1.ApiVersion.verify(message.apiVersion);
+ if (error)
+ return "apiVersion." + error;
+ }
+ if (message.apiVersionId != null && message.hasOwnProperty("apiVersionId"))
+ if (!$util.isString(message.apiVersionId))
+ return "apiVersionId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a CreateApiVersionRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.apigeeregistry.v1.CreateApiVersionRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.apigeeregistry.v1.CreateApiVersionRequest} CreateApiVersionRequest
+ */
+ CreateApiVersionRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.apigeeregistry.v1.CreateApiVersionRequest)
+ return object;
+ var message = new $root.google.cloud.apigeeregistry.v1.CreateApiVersionRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.apiVersion != null) {
+ if (typeof object.apiVersion !== "object")
+ throw TypeError(".google.cloud.apigeeregistry.v1.CreateApiVersionRequest.apiVersion: object expected");
+ message.apiVersion = $root.google.cloud.apigeeregistry.v1.ApiVersion.fromObject(object.apiVersion);
+ }
+ if (object.apiVersionId != null)
+ message.apiVersionId = String(object.apiVersionId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateApiVersionRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.apigeeregistry.v1.CreateApiVersionRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.CreateApiVersionRequest} message CreateApiVersionRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateApiVersionRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.apiVersion = null;
+ object.apiVersionId = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.apiVersion != null && message.hasOwnProperty("apiVersion"))
+ object.apiVersion = $root.google.cloud.apigeeregistry.v1.ApiVersion.toObject(message.apiVersion, options);
+ if (message.apiVersionId != null && message.hasOwnProperty("apiVersionId"))
+ object.apiVersionId = message.apiVersionId;
+ return object;
+ };
+
+ /**
+ * Converts this CreateApiVersionRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.apigeeregistry.v1.CreateApiVersionRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateApiVersionRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateApiVersionRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.apigeeregistry.v1.CreateApiVersionRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateApiVersionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.apigeeregistry.v1.CreateApiVersionRequest";
+ };
+
+ return CreateApiVersionRequest;
+ })();
+
+ v1.UpdateApiVersionRequest = (function() {
+
+ /**
+ * Properties of an UpdateApiVersionRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @interface IUpdateApiVersionRequest
+ * @property {google.cloud.apigeeregistry.v1.IApiVersion|null} [apiVersion] UpdateApiVersionRequest apiVersion
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateApiVersionRequest updateMask
+ * @property {boolean|null} [allowMissing] UpdateApiVersionRequest allowMissing
+ */
+
+ /**
+ * Constructs a new UpdateApiVersionRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @classdesc Represents an UpdateApiVersionRequest.
+ * @implements IUpdateApiVersionRequest
+ * @constructor
+ * @param {google.cloud.apigeeregistry.v1.IUpdateApiVersionRequest=} [properties] Properties to set
+ */
+ function UpdateApiVersionRequest(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]];
+ }
+
+ /**
+ * UpdateApiVersionRequest apiVersion.
+ * @member {google.cloud.apigeeregistry.v1.IApiVersion|null|undefined} apiVersion
+ * @memberof google.cloud.apigeeregistry.v1.UpdateApiVersionRequest
+ * @instance
+ */
+ UpdateApiVersionRequest.prototype.apiVersion = null;
+
+ /**
+ * UpdateApiVersionRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.cloud.apigeeregistry.v1.UpdateApiVersionRequest
+ * @instance
+ */
+ UpdateApiVersionRequest.prototype.updateMask = null;
+
+ /**
+ * UpdateApiVersionRequest allowMissing.
+ * @member {boolean} allowMissing
+ * @memberof google.cloud.apigeeregistry.v1.UpdateApiVersionRequest
+ * @instance
+ */
+ UpdateApiVersionRequest.prototype.allowMissing = false;
+
+ /**
+ * Creates a new UpdateApiVersionRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.apigeeregistry.v1.UpdateApiVersionRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IUpdateApiVersionRequest=} [properties] Properties to set
+ * @returns {google.cloud.apigeeregistry.v1.UpdateApiVersionRequest} UpdateApiVersionRequest instance
+ */
+ UpdateApiVersionRequest.create = function create(properties) {
+ return new UpdateApiVersionRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateApiVersionRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.UpdateApiVersionRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.apigeeregistry.v1.UpdateApiVersionRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IUpdateApiVersionRequest} message UpdateApiVersionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateApiVersionRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.apiVersion != null && Object.hasOwnProperty.call(message, "apiVersion"))
+ $root.google.cloud.apigeeregistry.v1.ApiVersion.encode(message.apiVersion, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
+ $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.allowMissing != null && Object.hasOwnProperty.call(message, "allowMissing"))
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allowMissing);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateApiVersionRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.UpdateApiVersionRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.UpdateApiVersionRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IUpdateApiVersionRequest} message UpdateApiVersionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateApiVersionRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateApiVersionRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.apigeeregistry.v1.UpdateApiVersionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.apigeeregistry.v1.UpdateApiVersionRequest} UpdateApiVersionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateApiVersionRequest.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.apigeeregistry.v1.UpdateApiVersionRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.apiVersion = $root.google.cloud.apigeeregistry.v1.ApiVersion.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.allowMissing = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateApiVersionRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.UpdateApiVersionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.apigeeregistry.v1.UpdateApiVersionRequest} UpdateApiVersionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateApiVersionRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateApiVersionRequest message.
+ * @function verify
+ * @memberof google.cloud.apigeeregistry.v1.UpdateApiVersionRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateApiVersionRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.apiVersion != null && message.hasOwnProperty("apiVersion")) {
+ var error = $root.google.cloud.apigeeregistry.v1.ApiVersion.verify(message.apiVersion);
+ if (error)
+ return "apiVersion." + error;
+ }
+ if (message.updateMask != null && message.hasOwnProperty("updateMask")) {
+ var error = $root.google.protobuf.FieldMask.verify(message.updateMask);
+ if (error)
+ return "updateMask." + error;
+ }
+ if (message.allowMissing != null && message.hasOwnProperty("allowMissing"))
+ if (typeof message.allowMissing !== "boolean")
+ return "allowMissing: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates an UpdateApiVersionRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.apigeeregistry.v1.UpdateApiVersionRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.apigeeregistry.v1.UpdateApiVersionRequest} UpdateApiVersionRequest
+ */
+ UpdateApiVersionRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.apigeeregistry.v1.UpdateApiVersionRequest)
+ return object;
+ var message = new $root.google.cloud.apigeeregistry.v1.UpdateApiVersionRequest();
+ if (object.apiVersion != null) {
+ if (typeof object.apiVersion !== "object")
+ throw TypeError(".google.cloud.apigeeregistry.v1.UpdateApiVersionRequest.apiVersion: object expected");
+ message.apiVersion = $root.google.cloud.apigeeregistry.v1.ApiVersion.fromObject(object.apiVersion);
+ }
+ if (object.updateMask != null) {
+ if (typeof object.updateMask !== "object")
+ throw TypeError(".google.cloud.apigeeregistry.v1.UpdateApiVersionRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
+ }
+ if (object.allowMissing != null)
+ message.allowMissing = Boolean(object.allowMissing);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateApiVersionRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.apigeeregistry.v1.UpdateApiVersionRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.UpdateApiVersionRequest} message UpdateApiVersionRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateApiVersionRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.apiVersion = null;
+ object.updateMask = null;
+ object.allowMissing = false;
+ }
+ if (message.apiVersion != null && message.hasOwnProperty("apiVersion"))
+ object.apiVersion = $root.google.cloud.apigeeregistry.v1.ApiVersion.toObject(message.apiVersion, options);
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
+ if (message.allowMissing != null && message.hasOwnProperty("allowMissing"))
+ object.allowMissing = message.allowMissing;
+ return object;
+ };
+
+ /**
+ * Converts this UpdateApiVersionRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.apigeeregistry.v1.UpdateApiVersionRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateApiVersionRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateApiVersionRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.apigeeregistry.v1.UpdateApiVersionRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateApiVersionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.apigeeregistry.v1.UpdateApiVersionRequest";
+ };
+
+ return UpdateApiVersionRequest;
+ })();
+
+ v1.DeleteApiVersionRequest = (function() {
+
+ /**
+ * Properties of a DeleteApiVersionRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @interface IDeleteApiVersionRequest
+ * @property {string|null} [name] DeleteApiVersionRequest name
+ * @property {boolean|null} [force] DeleteApiVersionRequest force
+ */
+
+ /**
+ * Constructs a new DeleteApiVersionRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @classdesc Represents a DeleteApiVersionRequest.
+ * @implements IDeleteApiVersionRequest
+ * @constructor
+ * @param {google.cloud.apigeeregistry.v1.IDeleteApiVersionRequest=} [properties] Properties to set
+ */
+ function DeleteApiVersionRequest(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]];
+ }
+
+ /**
+ * DeleteApiVersionRequest name.
+ * @member {string} name
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiVersionRequest
+ * @instance
+ */
+ DeleteApiVersionRequest.prototype.name = "";
+
+ /**
+ * DeleteApiVersionRequest force.
+ * @member {boolean} force
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiVersionRequest
+ * @instance
+ */
+ DeleteApiVersionRequest.prototype.force = false;
+
+ /**
+ * Creates a new DeleteApiVersionRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiVersionRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IDeleteApiVersionRequest=} [properties] Properties to set
+ * @returns {google.cloud.apigeeregistry.v1.DeleteApiVersionRequest} DeleteApiVersionRequest instance
+ */
+ DeleteApiVersionRequest.create = function create(properties) {
+ return new DeleteApiVersionRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteApiVersionRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.DeleteApiVersionRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiVersionRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IDeleteApiVersionRequest} message DeleteApiVersionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteApiVersionRequest.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.force != null && Object.hasOwnProperty.call(message, "force"))
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DeleteApiVersionRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.DeleteApiVersionRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiVersionRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IDeleteApiVersionRequest} message DeleteApiVersionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteApiVersionRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteApiVersionRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiVersionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.apigeeregistry.v1.DeleteApiVersionRequest} DeleteApiVersionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteApiVersionRequest.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.apigeeregistry.v1.DeleteApiVersionRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.force = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DeleteApiVersionRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiVersionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.apigeeregistry.v1.DeleteApiVersionRequest} DeleteApiVersionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteApiVersionRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteApiVersionRequest message.
+ * @function verify
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiVersionRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteApiVersionRequest.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.force != null && message.hasOwnProperty("force"))
+ if (typeof message.force !== "boolean")
+ return "force: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a DeleteApiVersionRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiVersionRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.apigeeregistry.v1.DeleteApiVersionRequest} DeleteApiVersionRequest
+ */
+ DeleteApiVersionRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.apigeeregistry.v1.DeleteApiVersionRequest)
+ return object;
+ var message = new $root.google.cloud.apigeeregistry.v1.DeleteApiVersionRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.force != null)
+ message.force = Boolean(object.force);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteApiVersionRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiVersionRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.DeleteApiVersionRequest} message DeleteApiVersionRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteApiVersionRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.force = false;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.force != null && message.hasOwnProperty("force"))
+ object.force = message.force;
+ return object;
+ };
+
+ /**
+ * Converts this DeleteApiVersionRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiVersionRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteApiVersionRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteApiVersionRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiVersionRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteApiVersionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.apigeeregistry.v1.DeleteApiVersionRequest";
+ };
+
+ return DeleteApiVersionRequest;
+ })();
+
+ v1.ListApiSpecsRequest = (function() {
+
+ /**
+ * Properties of a ListApiSpecsRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @interface IListApiSpecsRequest
+ * @property {string|null} [parent] ListApiSpecsRequest parent
+ * @property {number|null} [pageSize] ListApiSpecsRequest pageSize
+ * @property {string|null} [pageToken] ListApiSpecsRequest pageToken
+ * @property {string|null} [filter] ListApiSpecsRequest filter
+ */
+
+ /**
+ * Constructs a new ListApiSpecsRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @classdesc Represents a ListApiSpecsRequest.
+ * @implements IListApiSpecsRequest
+ * @constructor
+ * @param {google.cloud.apigeeregistry.v1.IListApiSpecsRequest=} [properties] Properties to set
+ */
+ function ListApiSpecsRequest(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]];
+ }
+
+ /**
+ * ListApiSpecsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecsRequest
+ * @instance
+ */
+ ListApiSpecsRequest.prototype.parent = "";
+
+ /**
+ * ListApiSpecsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecsRequest
+ * @instance
+ */
+ ListApiSpecsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListApiSpecsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecsRequest
+ * @instance
+ */
+ ListApiSpecsRequest.prototype.pageToken = "";
+
+ /**
+ * ListApiSpecsRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecsRequest
+ * @instance
+ */
+ ListApiSpecsRequest.prototype.filter = "";
+
+ /**
+ * Creates a new ListApiSpecsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecsRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IListApiSpecsRequest=} [properties] Properties to set
+ * @returns {google.cloud.apigeeregistry.v1.ListApiSpecsRequest} ListApiSpecsRequest instance
+ */
+ ListApiSpecsRequest.create = function create(properties) {
+ return new ListApiSpecsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListApiSpecsRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApiSpecsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecsRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IListApiSpecsRequest} message ListApiSpecsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListApiSpecsRequest.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);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListApiSpecsRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApiSpecsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecsRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IListApiSpecsRequest} message ListApiSpecsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListApiSpecsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListApiSpecsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.apigeeregistry.v1.ListApiSpecsRequest} ListApiSpecsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListApiSpecsRequest.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.apigeeregistry.v1.ListApiSpecsRequest();
+ 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;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListApiSpecsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.apigeeregistry.v1.ListApiSpecsRequest} ListApiSpecsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListApiSpecsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListApiSpecsRequest message.
+ * @function verify
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListApiSpecsRequest.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";
+ return null;
+ };
+
+ /**
+ * Creates a ListApiSpecsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.apigeeregistry.v1.ListApiSpecsRequest} ListApiSpecsRequest
+ */
+ ListApiSpecsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.apigeeregistry.v1.ListApiSpecsRequest)
+ return object;
+ var message = new $root.google.cloud.apigeeregistry.v1.ListApiSpecsRequest();
+ 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);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListApiSpecsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecsRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.ListApiSpecsRequest} message ListApiSpecsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListApiSpecsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ object.filter = "";
+ }
+ 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;
+ return object;
+ };
+
+ /**
+ * Converts this ListApiSpecsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListApiSpecsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListApiSpecsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListApiSpecsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.apigeeregistry.v1.ListApiSpecsRequest";
+ };
+
+ return ListApiSpecsRequest;
+ })();
+
+ v1.ListApiSpecsResponse = (function() {
+
+ /**
+ * Properties of a ListApiSpecsResponse.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @interface IListApiSpecsResponse
+ * @property {Array.|null} [apiSpecs] ListApiSpecsResponse apiSpecs
+ * @property {string|null} [nextPageToken] ListApiSpecsResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListApiSpecsResponse.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @classdesc Represents a ListApiSpecsResponse.
+ * @implements IListApiSpecsResponse
+ * @constructor
+ * @param {google.cloud.apigeeregistry.v1.IListApiSpecsResponse=} [properties] Properties to set
+ */
+ function ListApiSpecsResponse(properties) {
+ this.apiSpecs = [];
+ 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]];
+ }
+
+ /**
+ * ListApiSpecsResponse apiSpecs.
+ * @member {Array.} apiSpecs
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecsResponse
+ * @instance
+ */
+ ListApiSpecsResponse.prototype.apiSpecs = $util.emptyArray;
+
+ /**
+ * ListApiSpecsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecsResponse
+ * @instance
+ */
+ ListApiSpecsResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListApiSpecsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecsResponse
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IListApiSpecsResponse=} [properties] Properties to set
+ * @returns {google.cloud.apigeeregistry.v1.ListApiSpecsResponse} ListApiSpecsResponse instance
+ */
+ ListApiSpecsResponse.create = function create(properties) {
+ return new ListApiSpecsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListApiSpecsResponse message. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApiSpecsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecsResponse
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IListApiSpecsResponse} message ListApiSpecsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListApiSpecsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.apiSpecs != null && message.apiSpecs.length)
+ for (var i = 0; i < message.apiSpecs.length; ++i)
+ $root.google.cloud.apigeeregistry.v1.ApiSpec.encode(message.apiSpecs[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 ListApiSpecsResponse message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApiSpecsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecsResponse
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IListApiSpecsResponse} message ListApiSpecsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListApiSpecsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListApiSpecsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.apigeeregistry.v1.ListApiSpecsResponse} ListApiSpecsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListApiSpecsResponse.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.apigeeregistry.v1.ListApiSpecsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.apiSpecs && message.apiSpecs.length))
+ message.apiSpecs = [];
+ message.apiSpecs.push($root.google.cloud.apigeeregistry.v1.ApiSpec.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListApiSpecsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.apigeeregistry.v1.ListApiSpecsResponse} ListApiSpecsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListApiSpecsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListApiSpecsResponse message.
+ * @function verify
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListApiSpecsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.apiSpecs != null && message.hasOwnProperty("apiSpecs")) {
+ if (!Array.isArray(message.apiSpecs))
+ return "apiSpecs: array expected";
+ for (var i = 0; i < message.apiSpecs.length; ++i) {
+ var error = $root.google.cloud.apigeeregistry.v1.ApiSpec.verify(message.apiSpecs[i]);
+ if (error)
+ return "apiSpecs." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListApiSpecsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.apigeeregistry.v1.ListApiSpecsResponse} ListApiSpecsResponse
+ */
+ ListApiSpecsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.apigeeregistry.v1.ListApiSpecsResponse)
+ return object;
+ var message = new $root.google.cloud.apigeeregistry.v1.ListApiSpecsResponse();
+ if (object.apiSpecs) {
+ if (!Array.isArray(object.apiSpecs))
+ throw TypeError(".google.cloud.apigeeregistry.v1.ListApiSpecsResponse.apiSpecs: array expected");
+ message.apiSpecs = [];
+ for (var i = 0; i < object.apiSpecs.length; ++i) {
+ if (typeof object.apiSpecs[i] !== "object")
+ throw TypeError(".google.cloud.apigeeregistry.v1.ListApiSpecsResponse.apiSpecs: object expected");
+ message.apiSpecs[i] = $root.google.cloud.apigeeregistry.v1.ApiSpec.fromObject(object.apiSpecs[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListApiSpecsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecsResponse
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.ListApiSpecsResponse} message ListApiSpecsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListApiSpecsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.apiSpecs = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.apiSpecs && message.apiSpecs.length) {
+ object.apiSpecs = [];
+ for (var j = 0; j < message.apiSpecs.length; ++j)
+ object.apiSpecs[j] = $root.google.cloud.apigeeregistry.v1.ApiSpec.toObject(message.apiSpecs[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListApiSpecsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListApiSpecsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListApiSpecsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListApiSpecsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.apigeeregistry.v1.ListApiSpecsResponse";
+ };
+
+ return ListApiSpecsResponse;
+ })();
+
+ v1.GetApiSpecRequest = (function() {
+
+ /**
+ * Properties of a GetApiSpecRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @interface IGetApiSpecRequest
+ * @property {string|null} [name] GetApiSpecRequest name
+ */
+
+ /**
+ * Constructs a new GetApiSpecRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @classdesc Represents a GetApiSpecRequest.
+ * @implements IGetApiSpecRequest
+ * @constructor
+ * @param {google.cloud.apigeeregistry.v1.IGetApiSpecRequest=} [properties] Properties to set
+ */
+ function GetApiSpecRequest(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]];
+ }
+
+ /**
+ * GetApiSpecRequest name.
+ * @member {string} name
+ * @memberof google.cloud.apigeeregistry.v1.GetApiSpecRequest
+ * @instance
+ */
+ GetApiSpecRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetApiSpecRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.apigeeregistry.v1.GetApiSpecRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IGetApiSpecRequest=} [properties] Properties to set
+ * @returns {google.cloud.apigeeregistry.v1.GetApiSpecRequest} GetApiSpecRequest instance
+ */
+ GetApiSpecRequest.create = function create(properties) {
+ return new GetApiSpecRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetApiSpecRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.GetApiSpecRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.apigeeregistry.v1.GetApiSpecRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IGetApiSpecRequest} message GetApiSpecRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetApiSpecRequest.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 GetApiSpecRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.GetApiSpecRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.GetApiSpecRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IGetApiSpecRequest} message GetApiSpecRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetApiSpecRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetApiSpecRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.apigeeregistry.v1.GetApiSpecRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.apigeeregistry.v1.GetApiSpecRequest} GetApiSpecRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetApiSpecRequest.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.apigeeregistry.v1.GetApiSpecRequest();
+ 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 GetApiSpecRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.GetApiSpecRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.apigeeregistry.v1.GetApiSpecRequest} GetApiSpecRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetApiSpecRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetApiSpecRequest message.
+ * @function verify
+ * @memberof google.cloud.apigeeregistry.v1.GetApiSpecRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetApiSpecRequest.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 GetApiSpecRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.apigeeregistry.v1.GetApiSpecRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.apigeeregistry.v1.GetApiSpecRequest} GetApiSpecRequest
+ */
+ GetApiSpecRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.apigeeregistry.v1.GetApiSpecRequest)
+ return object;
+ var message = new $root.google.cloud.apigeeregistry.v1.GetApiSpecRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetApiSpecRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.apigeeregistry.v1.GetApiSpecRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.GetApiSpecRequest} message GetApiSpecRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetApiSpecRequest.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 GetApiSpecRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.apigeeregistry.v1.GetApiSpecRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetApiSpecRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetApiSpecRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.apigeeregistry.v1.GetApiSpecRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetApiSpecRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.apigeeregistry.v1.GetApiSpecRequest";
+ };
+
+ return GetApiSpecRequest;
+ })();
+
+ v1.GetApiSpecContentsRequest = (function() {
+
+ /**
+ * Properties of a GetApiSpecContentsRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @interface IGetApiSpecContentsRequest
+ * @property {string|null} [name] GetApiSpecContentsRequest name
+ */
+
+ /**
+ * Constructs a new GetApiSpecContentsRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @classdesc Represents a GetApiSpecContentsRequest.
+ * @implements IGetApiSpecContentsRequest
+ * @constructor
+ * @param {google.cloud.apigeeregistry.v1.IGetApiSpecContentsRequest=} [properties] Properties to set
+ */
+ function GetApiSpecContentsRequest(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]];
+ }
+
+ /**
+ * GetApiSpecContentsRequest name.
+ * @member {string} name
+ * @memberof google.cloud.apigeeregistry.v1.GetApiSpecContentsRequest
+ * @instance
+ */
+ GetApiSpecContentsRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetApiSpecContentsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.apigeeregistry.v1.GetApiSpecContentsRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IGetApiSpecContentsRequest=} [properties] Properties to set
+ * @returns {google.cloud.apigeeregistry.v1.GetApiSpecContentsRequest} GetApiSpecContentsRequest instance
+ */
+ GetApiSpecContentsRequest.create = function create(properties) {
+ return new GetApiSpecContentsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetApiSpecContentsRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.GetApiSpecContentsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.apigeeregistry.v1.GetApiSpecContentsRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IGetApiSpecContentsRequest} message GetApiSpecContentsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetApiSpecContentsRequest.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 GetApiSpecContentsRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.GetApiSpecContentsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.GetApiSpecContentsRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IGetApiSpecContentsRequest} message GetApiSpecContentsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetApiSpecContentsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetApiSpecContentsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.apigeeregistry.v1.GetApiSpecContentsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.apigeeregistry.v1.GetApiSpecContentsRequest} GetApiSpecContentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetApiSpecContentsRequest.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.apigeeregistry.v1.GetApiSpecContentsRequest();
+ 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 GetApiSpecContentsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.GetApiSpecContentsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.apigeeregistry.v1.GetApiSpecContentsRequest} GetApiSpecContentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetApiSpecContentsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetApiSpecContentsRequest message.
+ * @function verify
+ * @memberof google.cloud.apigeeregistry.v1.GetApiSpecContentsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetApiSpecContentsRequest.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 GetApiSpecContentsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.apigeeregistry.v1.GetApiSpecContentsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.apigeeregistry.v1.GetApiSpecContentsRequest} GetApiSpecContentsRequest
+ */
+ GetApiSpecContentsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.apigeeregistry.v1.GetApiSpecContentsRequest)
+ return object;
+ var message = new $root.google.cloud.apigeeregistry.v1.GetApiSpecContentsRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetApiSpecContentsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.apigeeregistry.v1.GetApiSpecContentsRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.GetApiSpecContentsRequest} message GetApiSpecContentsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetApiSpecContentsRequest.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 GetApiSpecContentsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.apigeeregistry.v1.GetApiSpecContentsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetApiSpecContentsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetApiSpecContentsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.apigeeregistry.v1.GetApiSpecContentsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetApiSpecContentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.apigeeregistry.v1.GetApiSpecContentsRequest";
+ };
+
+ return GetApiSpecContentsRequest;
+ })();
+
+ v1.CreateApiSpecRequest = (function() {
+
+ /**
+ * Properties of a CreateApiSpecRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @interface ICreateApiSpecRequest
+ * @property {string|null} [parent] CreateApiSpecRequest parent
+ * @property {google.cloud.apigeeregistry.v1.IApiSpec|null} [apiSpec] CreateApiSpecRequest apiSpec
+ * @property {string|null} [apiSpecId] CreateApiSpecRequest apiSpecId
+ */
+
+ /**
+ * Constructs a new CreateApiSpecRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @classdesc Represents a CreateApiSpecRequest.
+ * @implements ICreateApiSpecRequest
+ * @constructor
+ * @param {google.cloud.apigeeregistry.v1.ICreateApiSpecRequest=} [properties] Properties to set
+ */
+ function CreateApiSpecRequest(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]];
+ }
+
+ /**
+ * CreateApiSpecRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.apigeeregistry.v1.CreateApiSpecRequest
+ * @instance
+ */
+ CreateApiSpecRequest.prototype.parent = "";
+
+ /**
+ * CreateApiSpecRequest apiSpec.
+ * @member {google.cloud.apigeeregistry.v1.IApiSpec|null|undefined} apiSpec
+ * @memberof google.cloud.apigeeregistry.v1.CreateApiSpecRequest
+ * @instance
+ */
+ CreateApiSpecRequest.prototype.apiSpec = null;
+
+ /**
+ * CreateApiSpecRequest apiSpecId.
+ * @member {string} apiSpecId
+ * @memberof google.cloud.apigeeregistry.v1.CreateApiSpecRequest
+ * @instance
+ */
+ CreateApiSpecRequest.prototype.apiSpecId = "";
+
+ /**
+ * Creates a new CreateApiSpecRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.apigeeregistry.v1.CreateApiSpecRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.ICreateApiSpecRequest=} [properties] Properties to set
+ * @returns {google.cloud.apigeeregistry.v1.CreateApiSpecRequest} CreateApiSpecRequest instance
+ */
+ CreateApiSpecRequest.create = function create(properties) {
+ return new CreateApiSpecRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateApiSpecRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.CreateApiSpecRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.apigeeregistry.v1.CreateApiSpecRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.ICreateApiSpecRequest} message CreateApiSpecRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateApiSpecRequest.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.apiSpec != null && Object.hasOwnProperty.call(message, "apiSpec"))
+ $root.google.cloud.apigeeregistry.v1.ApiSpec.encode(message.apiSpec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.apiSpecId != null && Object.hasOwnProperty.call(message, "apiSpecId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.apiSpecId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateApiSpecRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.CreateApiSpecRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.CreateApiSpecRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.ICreateApiSpecRequest} message CreateApiSpecRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateApiSpecRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateApiSpecRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.apigeeregistry.v1.CreateApiSpecRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.apigeeregistry.v1.CreateApiSpecRequest} CreateApiSpecRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateApiSpecRequest.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.apigeeregistry.v1.CreateApiSpecRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.apiSpec = $root.google.cloud.apigeeregistry.v1.ApiSpec.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.apiSpecId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateApiSpecRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.CreateApiSpecRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.apigeeregistry.v1.CreateApiSpecRequest} CreateApiSpecRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateApiSpecRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateApiSpecRequest message.
+ * @function verify
+ * @memberof google.cloud.apigeeregistry.v1.CreateApiSpecRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateApiSpecRequest.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.apiSpec != null && message.hasOwnProperty("apiSpec")) {
+ var error = $root.google.cloud.apigeeregistry.v1.ApiSpec.verify(message.apiSpec);
+ if (error)
+ return "apiSpec." + error;
+ }
+ if (message.apiSpecId != null && message.hasOwnProperty("apiSpecId"))
+ if (!$util.isString(message.apiSpecId))
+ return "apiSpecId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a CreateApiSpecRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.apigeeregistry.v1.CreateApiSpecRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.apigeeregistry.v1.CreateApiSpecRequest} CreateApiSpecRequest
+ */
+ CreateApiSpecRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.apigeeregistry.v1.CreateApiSpecRequest)
+ return object;
+ var message = new $root.google.cloud.apigeeregistry.v1.CreateApiSpecRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.apiSpec != null) {
+ if (typeof object.apiSpec !== "object")
+ throw TypeError(".google.cloud.apigeeregistry.v1.CreateApiSpecRequest.apiSpec: object expected");
+ message.apiSpec = $root.google.cloud.apigeeregistry.v1.ApiSpec.fromObject(object.apiSpec);
+ }
+ if (object.apiSpecId != null)
+ message.apiSpecId = String(object.apiSpecId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateApiSpecRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.apigeeregistry.v1.CreateApiSpecRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.CreateApiSpecRequest} message CreateApiSpecRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateApiSpecRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.apiSpec = null;
+ object.apiSpecId = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.apiSpec != null && message.hasOwnProperty("apiSpec"))
+ object.apiSpec = $root.google.cloud.apigeeregistry.v1.ApiSpec.toObject(message.apiSpec, options);
+ if (message.apiSpecId != null && message.hasOwnProperty("apiSpecId"))
+ object.apiSpecId = message.apiSpecId;
+ return object;
+ };
+
+ /**
+ * Converts this CreateApiSpecRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.apigeeregistry.v1.CreateApiSpecRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateApiSpecRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateApiSpecRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.apigeeregistry.v1.CreateApiSpecRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateApiSpecRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.apigeeregistry.v1.CreateApiSpecRequest";
+ };
+
+ return CreateApiSpecRequest;
+ })();
+
+ v1.UpdateApiSpecRequest = (function() {
+
+ /**
+ * Properties of an UpdateApiSpecRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @interface IUpdateApiSpecRequest
+ * @property {google.cloud.apigeeregistry.v1.IApiSpec|null} [apiSpec] UpdateApiSpecRequest apiSpec
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateApiSpecRequest updateMask
+ * @property {boolean|null} [allowMissing] UpdateApiSpecRequest allowMissing
+ */
+
+ /**
+ * Constructs a new UpdateApiSpecRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @classdesc Represents an UpdateApiSpecRequest.
+ * @implements IUpdateApiSpecRequest
+ * @constructor
+ * @param {google.cloud.apigeeregistry.v1.IUpdateApiSpecRequest=} [properties] Properties to set
+ */
+ function UpdateApiSpecRequest(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]];
+ }
+
+ /**
+ * UpdateApiSpecRequest apiSpec.
+ * @member {google.cloud.apigeeregistry.v1.IApiSpec|null|undefined} apiSpec
+ * @memberof google.cloud.apigeeregistry.v1.UpdateApiSpecRequest
+ * @instance
+ */
+ UpdateApiSpecRequest.prototype.apiSpec = null;
+
+ /**
+ * UpdateApiSpecRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.cloud.apigeeregistry.v1.UpdateApiSpecRequest
+ * @instance
+ */
+ UpdateApiSpecRequest.prototype.updateMask = null;
+
+ /**
+ * UpdateApiSpecRequest allowMissing.
+ * @member {boolean} allowMissing
+ * @memberof google.cloud.apigeeregistry.v1.UpdateApiSpecRequest
+ * @instance
+ */
+ UpdateApiSpecRequest.prototype.allowMissing = false;
+
+ /**
+ * Creates a new UpdateApiSpecRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.apigeeregistry.v1.UpdateApiSpecRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IUpdateApiSpecRequest=} [properties] Properties to set
+ * @returns {google.cloud.apigeeregistry.v1.UpdateApiSpecRequest} UpdateApiSpecRequest instance
+ */
+ UpdateApiSpecRequest.create = function create(properties) {
+ return new UpdateApiSpecRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateApiSpecRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.UpdateApiSpecRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.apigeeregistry.v1.UpdateApiSpecRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IUpdateApiSpecRequest} message UpdateApiSpecRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateApiSpecRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.apiSpec != null && Object.hasOwnProperty.call(message, "apiSpec"))
+ $root.google.cloud.apigeeregistry.v1.ApiSpec.encode(message.apiSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
+ $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.allowMissing != null && Object.hasOwnProperty.call(message, "allowMissing"))
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allowMissing);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateApiSpecRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.UpdateApiSpecRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.UpdateApiSpecRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IUpdateApiSpecRequest} message UpdateApiSpecRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateApiSpecRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateApiSpecRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.apigeeregistry.v1.UpdateApiSpecRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.apigeeregistry.v1.UpdateApiSpecRequest} UpdateApiSpecRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateApiSpecRequest.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.apigeeregistry.v1.UpdateApiSpecRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.apiSpec = $root.google.cloud.apigeeregistry.v1.ApiSpec.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.allowMissing = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateApiSpecRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.UpdateApiSpecRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.apigeeregistry.v1.UpdateApiSpecRequest} UpdateApiSpecRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateApiSpecRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateApiSpecRequest message.
+ * @function verify
+ * @memberof google.cloud.apigeeregistry.v1.UpdateApiSpecRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateApiSpecRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.apiSpec != null && message.hasOwnProperty("apiSpec")) {
+ var error = $root.google.cloud.apigeeregistry.v1.ApiSpec.verify(message.apiSpec);
+ if (error)
+ return "apiSpec." + error;
+ }
+ if (message.updateMask != null && message.hasOwnProperty("updateMask")) {
+ var error = $root.google.protobuf.FieldMask.verify(message.updateMask);
+ if (error)
+ return "updateMask." + error;
+ }
+ if (message.allowMissing != null && message.hasOwnProperty("allowMissing"))
+ if (typeof message.allowMissing !== "boolean")
+ return "allowMissing: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates an UpdateApiSpecRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.apigeeregistry.v1.UpdateApiSpecRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.apigeeregistry.v1.UpdateApiSpecRequest} UpdateApiSpecRequest
+ */
+ UpdateApiSpecRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.apigeeregistry.v1.UpdateApiSpecRequest)
+ return object;
+ var message = new $root.google.cloud.apigeeregistry.v1.UpdateApiSpecRequest();
+ if (object.apiSpec != null) {
+ if (typeof object.apiSpec !== "object")
+ throw TypeError(".google.cloud.apigeeregistry.v1.UpdateApiSpecRequest.apiSpec: object expected");
+ message.apiSpec = $root.google.cloud.apigeeregistry.v1.ApiSpec.fromObject(object.apiSpec);
+ }
+ if (object.updateMask != null) {
+ if (typeof object.updateMask !== "object")
+ throw TypeError(".google.cloud.apigeeregistry.v1.UpdateApiSpecRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
+ }
+ if (object.allowMissing != null)
+ message.allowMissing = Boolean(object.allowMissing);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateApiSpecRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.apigeeregistry.v1.UpdateApiSpecRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.UpdateApiSpecRequest} message UpdateApiSpecRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateApiSpecRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.apiSpec = null;
+ object.updateMask = null;
+ object.allowMissing = false;
+ }
+ if (message.apiSpec != null && message.hasOwnProperty("apiSpec"))
+ object.apiSpec = $root.google.cloud.apigeeregistry.v1.ApiSpec.toObject(message.apiSpec, options);
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
+ if (message.allowMissing != null && message.hasOwnProperty("allowMissing"))
+ object.allowMissing = message.allowMissing;
+ return object;
+ };
+
+ /**
+ * Converts this UpdateApiSpecRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.apigeeregistry.v1.UpdateApiSpecRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateApiSpecRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateApiSpecRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.apigeeregistry.v1.UpdateApiSpecRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateApiSpecRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.apigeeregistry.v1.UpdateApiSpecRequest";
+ };
+
+ return UpdateApiSpecRequest;
+ })();
+
+ v1.DeleteApiSpecRequest = (function() {
+
+ /**
+ * Properties of a DeleteApiSpecRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @interface IDeleteApiSpecRequest
+ * @property {string|null} [name] DeleteApiSpecRequest name
+ * @property {boolean|null} [force] DeleteApiSpecRequest force
+ */
+
+ /**
+ * Constructs a new DeleteApiSpecRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @classdesc Represents a DeleteApiSpecRequest.
+ * @implements IDeleteApiSpecRequest
+ * @constructor
+ * @param {google.cloud.apigeeregistry.v1.IDeleteApiSpecRequest=} [properties] Properties to set
+ */
+ function DeleteApiSpecRequest(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]];
+ }
+
+ /**
+ * DeleteApiSpecRequest name.
+ * @member {string} name
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiSpecRequest
+ * @instance
+ */
+ DeleteApiSpecRequest.prototype.name = "";
+
+ /**
+ * DeleteApiSpecRequest force.
+ * @member {boolean} force
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiSpecRequest
+ * @instance
+ */
+ DeleteApiSpecRequest.prototype.force = false;
+
+ /**
+ * Creates a new DeleteApiSpecRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiSpecRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IDeleteApiSpecRequest=} [properties] Properties to set
+ * @returns {google.cloud.apigeeregistry.v1.DeleteApiSpecRequest} DeleteApiSpecRequest instance
+ */
+ DeleteApiSpecRequest.create = function create(properties) {
+ return new DeleteApiSpecRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteApiSpecRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.DeleteApiSpecRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiSpecRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IDeleteApiSpecRequest} message DeleteApiSpecRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteApiSpecRequest.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.force != null && Object.hasOwnProperty.call(message, "force"))
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DeleteApiSpecRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.DeleteApiSpecRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiSpecRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IDeleteApiSpecRequest} message DeleteApiSpecRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteApiSpecRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteApiSpecRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiSpecRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.apigeeregistry.v1.DeleteApiSpecRequest} DeleteApiSpecRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteApiSpecRequest.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.apigeeregistry.v1.DeleteApiSpecRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.force = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DeleteApiSpecRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiSpecRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.apigeeregistry.v1.DeleteApiSpecRequest} DeleteApiSpecRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteApiSpecRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteApiSpecRequest message.
+ * @function verify
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiSpecRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteApiSpecRequest.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.force != null && message.hasOwnProperty("force"))
+ if (typeof message.force !== "boolean")
+ return "force: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a DeleteApiSpecRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiSpecRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.apigeeregistry.v1.DeleteApiSpecRequest} DeleteApiSpecRequest
+ */
+ DeleteApiSpecRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.apigeeregistry.v1.DeleteApiSpecRequest)
+ return object;
+ var message = new $root.google.cloud.apigeeregistry.v1.DeleteApiSpecRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.force != null)
+ message.force = Boolean(object.force);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteApiSpecRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiSpecRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.DeleteApiSpecRequest} message DeleteApiSpecRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteApiSpecRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.force = false;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.force != null && message.hasOwnProperty("force"))
+ object.force = message.force;
+ return object;
+ };
+
+ /**
+ * Converts this DeleteApiSpecRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiSpecRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteApiSpecRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteApiSpecRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiSpecRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteApiSpecRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.apigeeregistry.v1.DeleteApiSpecRequest";
+ };
+
+ return DeleteApiSpecRequest;
+ })();
+
+ v1.TagApiSpecRevisionRequest = (function() {
+
+ /**
+ * Properties of a TagApiSpecRevisionRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @interface ITagApiSpecRevisionRequest
+ * @property {string|null} [name] TagApiSpecRevisionRequest name
+ * @property {string|null} [tag] TagApiSpecRevisionRequest tag
+ */
+
+ /**
+ * Constructs a new TagApiSpecRevisionRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @classdesc Represents a TagApiSpecRevisionRequest.
+ * @implements ITagApiSpecRevisionRequest
+ * @constructor
+ * @param {google.cloud.apigeeregistry.v1.ITagApiSpecRevisionRequest=} [properties] Properties to set
+ */
+ function TagApiSpecRevisionRequest(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]];
+ }
+
+ /**
+ * TagApiSpecRevisionRequest name.
+ * @member {string} name
+ * @memberof google.cloud.apigeeregistry.v1.TagApiSpecRevisionRequest
+ * @instance
+ */
+ TagApiSpecRevisionRequest.prototype.name = "";
+
+ /**
+ * TagApiSpecRevisionRequest tag.
+ * @member {string} tag
+ * @memberof google.cloud.apigeeregistry.v1.TagApiSpecRevisionRequest
+ * @instance
+ */
+ TagApiSpecRevisionRequest.prototype.tag = "";
+
+ /**
+ * Creates a new TagApiSpecRevisionRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.apigeeregistry.v1.TagApiSpecRevisionRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.ITagApiSpecRevisionRequest=} [properties] Properties to set
+ * @returns {google.cloud.apigeeregistry.v1.TagApiSpecRevisionRequest} TagApiSpecRevisionRequest instance
+ */
+ TagApiSpecRevisionRequest.create = function create(properties) {
+ return new TagApiSpecRevisionRequest(properties);
+ };
+
+ /**
+ * Encodes the specified TagApiSpecRevisionRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.TagApiSpecRevisionRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.apigeeregistry.v1.TagApiSpecRevisionRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.ITagApiSpecRevisionRequest} message TagApiSpecRevisionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TagApiSpecRevisionRequest.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.tag != null && Object.hasOwnProperty.call(message, "tag"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.tag);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified TagApiSpecRevisionRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.TagApiSpecRevisionRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.TagApiSpecRevisionRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.ITagApiSpecRevisionRequest} message TagApiSpecRevisionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TagApiSpecRevisionRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a TagApiSpecRevisionRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.apigeeregistry.v1.TagApiSpecRevisionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.apigeeregistry.v1.TagApiSpecRevisionRequest} TagApiSpecRevisionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TagApiSpecRevisionRequest.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.apigeeregistry.v1.TagApiSpecRevisionRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.tag = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a TagApiSpecRevisionRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.TagApiSpecRevisionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.apigeeregistry.v1.TagApiSpecRevisionRequest} TagApiSpecRevisionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TagApiSpecRevisionRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a TagApiSpecRevisionRequest message.
+ * @function verify
+ * @memberof google.cloud.apigeeregistry.v1.TagApiSpecRevisionRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ TagApiSpecRevisionRequest.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.tag != null && message.hasOwnProperty("tag"))
+ if (!$util.isString(message.tag))
+ return "tag: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a TagApiSpecRevisionRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.apigeeregistry.v1.TagApiSpecRevisionRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.apigeeregistry.v1.TagApiSpecRevisionRequest} TagApiSpecRevisionRequest
+ */
+ TagApiSpecRevisionRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.apigeeregistry.v1.TagApiSpecRevisionRequest)
+ return object;
+ var message = new $root.google.cloud.apigeeregistry.v1.TagApiSpecRevisionRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.tag != null)
+ message.tag = String(object.tag);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a TagApiSpecRevisionRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.apigeeregistry.v1.TagApiSpecRevisionRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.TagApiSpecRevisionRequest} message TagApiSpecRevisionRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ TagApiSpecRevisionRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.tag = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.tag != null && message.hasOwnProperty("tag"))
+ object.tag = message.tag;
+ return object;
+ };
+
+ /**
+ * Converts this TagApiSpecRevisionRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.apigeeregistry.v1.TagApiSpecRevisionRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ TagApiSpecRevisionRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for TagApiSpecRevisionRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.apigeeregistry.v1.TagApiSpecRevisionRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ TagApiSpecRevisionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.apigeeregistry.v1.TagApiSpecRevisionRequest";
+ };
+
+ return TagApiSpecRevisionRequest;
+ })();
+
+ v1.ListApiSpecRevisionsRequest = (function() {
+
+ /**
+ * Properties of a ListApiSpecRevisionsRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @interface IListApiSpecRevisionsRequest
+ * @property {string|null} [name] ListApiSpecRevisionsRequest name
+ * @property {number|null} [pageSize] ListApiSpecRevisionsRequest pageSize
+ * @property {string|null} [pageToken] ListApiSpecRevisionsRequest pageToken
+ */
+
+ /**
+ * Constructs a new ListApiSpecRevisionsRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @classdesc Represents a ListApiSpecRevisionsRequest.
+ * @implements IListApiSpecRevisionsRequest
+ * @constructor
+ * @param {google.cloud.apigeeregistry.v1.IListApiSpecRevisionsRequest=} [properties] Properties to set
+ */
+ function ListApiSpecRevisionsRequest(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]];
+ }
+
+ /**
+ * ListApiSpecRevisionsRequest name.
+ * @member {string} name
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecRevisionsRequest
+ * @instance
+ */
+ ListApiSpecRevisionsRequest.prototype.name = "";
+
+ /**
+ * ListApiSpecRevisionsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecRevisionsRequest
+ * @instance
+ */
+ ListApiSpecRevisionsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListApiSpecRevisionsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecRevisionsRequest
+ * @instance
+ */
+ ListApiSpecRevisionsRequest.prototype.pageToken = "";
+
+ /**
+ * Creates a new ListApiSpecRevisionsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecRevisionsRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IListApiSpecRevisionsRequest=} [properties] Properties to set
+ * @returns {google.cloud.apigeeregistry.v1.ListApiSpecRevisionsRequest} ListApiSpecRevisionsRequest instance
+ */
+ ListApiSpecRevisionsRequest.create = function create(properties) {
+ return new ListApiSpecRevisionsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListApiSpecRevisionsRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApiSpecRevisionsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecRevisionsRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IListApiSpecRevisionsRequest} message ListApiSpecRevisionsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListApiSpecRevisionsRequest.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.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 ListApiSpecRevisionsRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApiSpecRevisionsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecRevisionsRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IListApiSpecRevisionsRequest} message ListApiSpecRevisionsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListApiSpecRevisionsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListApiSpecRevisionsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecRevisionsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.apigeeregistry.v1.ListApiSpecRevisionsRequest} ListApiSpecRevisionsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListApiSpecRevisionsRequest.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.apigeeregistry.v1.ListApiSpecRevisionsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = 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 ListApiSpecRevisionsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecRevisionsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.apigeeregistry.v1.ListApiSpecRevisionsRequest} ListApiSpecRevisionsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListApiSpecRevisionsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListApiSpecRevisionsRequest message.
+ * @function verify
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecRevisionsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListApiSpecRevisionsRequest.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.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 ListApiSpecRevisionsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecRevisionsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.apigeeregistry.v1.ListApiSpecRevisionsRequest} ListApiSpecRevisionsRequest
+ */
+ ListApiSpecRevisionsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.apigeeregistry.v1.ListApiSpecRevisionsRequest)
+ return object;
+ var message = new $root.google.cloud.apigeeregistry.v1.ListApiSpecRevisionsRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ 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 ListApiSpecRevisionsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecRevisionsRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.ListApiSpecRevisionsRequest} message ListApiSpecRevisionsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListApiSpecRevisionsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ 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 ListApiSpecRevisionsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecRevisionsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListApiSpecRevisionsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListApiSpecRevisionsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecRevisionsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListApiSpecRevisionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.apigeeregistry.v1.ListApiSpecRevisionsRequest";
+ };
+
+ return ListApiSpecRevisionsRequest;
+ })();
+
+ v1.ListApiSpecRevisionsResponse = (function() {
+
+ /**
+ * Properties of a ListApiSpecRevisionsResponse.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @interface IListApiSpecRevisionsResponse
+ * @property {Array.|null} [apiSpecs] ListApiSpecRevisionsResponse apiSpecs
+ * @property {string|null} [nextPageToken] ListApiSpecRevisionsResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListApiSpecRevisionsResponse.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @classdesc Represents a ListApiSpecRevisionsResponse.
+ * @implements IListApiSpecRevisionsResponse
+ * @constructor
+ * @param {google.cloud.apigeeregistry.v1.IListApiSpecRevisionsResponse=} [properties] Properties to set
+ */
+ function ListApiSpecRevisionsResponse(properties) {
+ this.apiSpecs = [];
+ 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]];
+ }
+
+ /**
+ * ListApiSpecRevisionsResponse apiSpecs.
+ * @member {Array.} apiSpecs
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse
+ * @instance
+ */
+ ListApiSpecRevisionsResponse.prototype.apiSpecs = $util.emptyArray;
+
+ /**
+ * ListApiSpecRevisionsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse
+ * @instance
+ */
+ ListApiSpecRevisionsResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListApiSpecRevisionsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IListApiSpecRevisionsResponse=} [properties] Properties to set
+ * @returns {google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse} ListApiSpecRevisionsResponse instance
+ */
+ ListApiSpecRevisionsResponse.create = function create(properties) {
+ return new ListApiSpecRevisionsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListApiSpecRevisionsResponse message. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IListApiSpecRevisionsResponse} message ListApiSpecRevisionsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListApiSpecRevisionsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.apiSpecs != null && message.apiSpecs.length)
+ for (var i = 0; i < message.apiSpecs.length; ++i)
+ $root.google.cloud.apigeeregistry.v1.ApiSpec.encode(message.apiSpecs[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 ListApiSpecRevisionsResponse message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IListApiSpecRevisionsResponse} message ListApiSpecRevisionsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListApiSpecRevisionsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListApiSpecRevisionsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse} ListApiSpecRevisionsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListApiSpecRevisionsResponse.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.apigeeregistry.v1.ListApiSpecRevisionsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.apiSpecs && message.apiSpecs.length))
+ message.apiSpecs = [];
+ message.apiSpecs.push($root.google.cloud.apigeeregistry.v1.ApiSpec.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListApiSpecRevisionsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse} ListApiSpecRevisionsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListApiSpecRevisionsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListApiSpecRevisionsResponse message.
+ * @function verify
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListApiSpecRevisionsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.apiSpecs != null && message.hasOwnProperty("apiSpecs")) {
+ if (!Array.isArray(message.apiSpecs))
+ return "apiSpecs: array expected";
+ for (var i = 0; i < message.apiSpecs.length; ++i) {
+ var error = $root.google.cloud.apigeeregistry.v1.ApiSpec.verify(message.apiSpecs[i]);
+ if (error)
+ return "apiSpecs." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListApiSpecRevisionsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse} ListApiSpecRevisionsResponse
+ */
+ ListApiSpecRevisionsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse)
+ return object;
+ var message = new $root.google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse();
+ if (object.apiSpecs) {
+ if (!Array.isArray(object.apiSpecs))
+ throw TypeError(".google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse.apiSpecs: array expected");
+ message.apiSpecs = [];
+ for (var i = 0; i < object.apiSpecs.length; ++i) {
+ if (typeof object.apiSpecs[i] !== "object")
+ throw TypeError(".google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse.apiSpecs: object expected");
+ message.apiSpecs[i] = $root.google.cloud.apigeeregistry.v1.ApiSpec.fromObject(object.apiSpecs[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListApiSpecRevisionsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse} message ListApiSpecRevisionsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListApiSpecRevisionsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.apiSpecs = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.apiSpecs && message.apiSpecs.length) {
+ object.apiSpecs = [];
+ for (var j = 0; j < message.apiSpecs.length; ++j)
+ object.apiSpecs[j] = $root.google.cloud.apigeeregistry.v1.ApiSpec.toObject(message.apiSpecs[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListApiSpecRevisionsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListApiSpecRevisionsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListApiSpecRevisionsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListApiSpecRevisionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse";
+ };
+
+ return ListApiSpecRevisionsResponse;
+ })();
+
+ v1.RollbackApiSpecRequest = (function() {
+
+ /**
+ * Properties of a RollbackApiSpecRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @interface IRollbackApiSpecRequest
+ * @property {string|null} [name] RollbackApiSpecRequest name
+ * @property {string|null} [revisionId] RollbackApiSpecRequest revisionId
+ */
+
+ /**
+ * Constructs a new RollbackApiSpecRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @classdesc Represents a RollbackApiSpecRequest.
+ * @implements IRollbackApiSpecRequest
+ * @constructor
+ * @param {google.cloud.apigeeregistry.v1.IRollbackApiSpecRequest=} [properties] Properties to set
+ */
+ function RollbackApiSpecRequest(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]];
+ }
+
+ /**
+ * RollbackApiSpecRequest name.
+ * @member {string} name
+ * @memberof google.cloud.apigeeregistry.v1.RollbackApiSpecRequest
+ * @instance
+ */
+ RollbackApiSpecRequest.prototype.name = "";
+
+ /**
+ * RollbackApiSpecRequest revisionId.
+ * @member {string} revisionId
+ * @memberof google.cloud.apigeeregistry.v1.RollbackApiSpecRequest
+ * @instance
+ */
+ RollbackApiSpecRequest.prototype.revisionId = "";
+
+ /**
+ * Creates a new RollbackApiSpecRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.apigeeregistry.v1.RollbackApiSpecRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IRollbackApiSpecRequest=} [properties] Properties to set
+ * @returns {google.cloud.apigeeregistry.v1.RollbackApiSpecRequest} RollbackApiSpecRequest instance
+ */
+ RollbackApiSpecRequest.create = function create(properties) {
+ return new RollbackApiSpecRequest(properties);
+ };
+
+ /**
+ * Encodes the specified RollbackApiSpecRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.RollbackApiSpecRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.apigeeregistry.v1.RollbackApiSpecRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IRollbackApiSpecRequest} message RollbackApiSpecRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RollbackApiSpecRequest.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.revisionId != null && Object.hasOwnProperty.call(message, "revisionId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.revisionId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified RollbackApiSpecRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.RollbackApiSpecRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.RollbackApiSpecRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IRollbackApiSpecRequest} message RollbackApiSpecRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RollbackApiSpecRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a RollbackApiSpecRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.apigeeregistry.v1.RollbackApiSpecRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.apigeeregistry.v1.RollbackApiSpecRequest} RollbackApiSpecRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RollbackApiSpecRequest.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.apigeeregistry.v1.RollbackApiSpecRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.revisionId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a RollbackApiSpecRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.RollbackApiSpecRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.apigeeregistry.v1.RollbackApiSpecRequest} RollbackApiSpecRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RollbackApiSpecRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a RollbackApiSpecRequest message.
+ * @function verify
+ * @memberof google.cloud.apigeeregistry.v1.RollbackApiSpecRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ RollbackApiSpecRequest.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.revisionId != null && message.hasOwnProperty("revisionId"))
+ if (!$util.isString(message.revisionId))
+ return "revisionId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a RollbackApiSpecRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.apigeeregistry.v1.RollbackApiSpecRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.apigeeregistry.v1.RollbackApiSpecRequest} RollbackApiSpecRequest
+ */
+ RollbackApiSpecRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.apigeeregistry.v1.RollbackApiSpecRequest)
+ return object;
+ var message = new $root.google.cloud.apigeeregistry.v1.RollbackApiSpecRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.revisionId != null)
+ message.revisionId = String(object.revisionId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a RollbackApiSpecRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.apigeeregistry.v1.RollbackApiSpecRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.RollbackApiSpecRequest} message RollbackApiSpecRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ RollbackApiSpecRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.revisionId = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.revisionId != null && message.hasOwnProperty("revisionId"))
+ object.revisionId = message.revisionId;
+ return object;
+ };
+
+ /**
+ * Converts this RollbackApiSpecRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.apigeeregistry.v1.RollbackApiSpecRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ RollbackApiSpecRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for RollbackApiSpecRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.apigeeregistry.v1.RollbackApiSpecRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ RollbackApiSpecRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.apigeeregistry.v1.RollbackApiSpecRequest";
+ };
+
+ return RollbackApiSpecRequest;
+ })();
+
+ v1.DeleteApiSpecRevisionRequest = (function() {
+
+ /**
+ * Properties of a DeleteApiSpecRevisionRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @interface IDeleteApiSpecRevisionRequest
+ * @property {string|null} [name] DeleteApiSpecRevisionRequest name
+ */
+
+ /**
+ * Constructs a new DeleteApiSpecRevisionRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @classdesc Represents a DeleteApiSpecRevisionRequest.
+ * @implements IDeleteApiSpecRevisionRequest
+ * @constructor
+ * @param {google.cloud.apigeeregistry.v1.IDeleteApiSpecRevisionRequest=} [properties] Properties to set
+ */
+ function DeleteApiSpecRevisionRequest(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]];
+ }
+
+ /**
+ * DeleteApiSpecRevisionRequest name.
+ * @member {string} name
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiSpecRevisionRequest
+ * @instance
+ */
+ DeleteApiSpecRevisionRequest.prototype.name = "";
+
+ /**
+ * Creates a new DeleteApiSpecRevisionRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiSpecRevisionRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IDeleteApiSpecRevisionRequest=} [properties] Properties to set
+ * @returns {google.cloud.apigeeregistry.v1.DeleteApiSpecRevisionRequest} DeleteApiSpecRevisionRequest instance
+ */
+ DeleteApiSpecRevisionRequest.create = function create(properties) {
+ return new DeleteApiSpecRevisionRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteApiSpecRevisionRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.DeleteApiSpecRevisionRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiSpecRevisionRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IDeleteApiSpecRevisionRequest} message DeleteApiSpecRevisionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteApiSpecRevisionRequest.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 DeleteApiSpecRevisionRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.DeleteApiSpecRevisionRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiSpecRevisionRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IDeleteApiSpecRevisionRequest} message DeleteApiSpecRevisionRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteApiSpecRevisionRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteApiSpecRevisionRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiSpecRevisionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.apigeeregistry.v1.DeleteApiSpecRevisionRequest} DeleteApiSpecRevisionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteApiSpecRevisionRequest.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.apigeeregistry.v1.DeleteApiSpecRevisionRequest();
+ 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 DeleteApiSpecRevisionRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiSpecRevisionRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.apigeeregistry.v1.DeleteApiSpecRevisionRequest} DeleteApiSpecRevisionRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteApiSpecRevisionRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteApiSpecRevisionRequest message.
+ * @function verify
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiSpecRevisionRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteApiSpecRevisionRequest.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 DeleteApiSpecRevisionRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiSpecRevisionRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.apigeeregistry.v1.DeleteApiSpecRevisionRequest} DeleteApiSpecRevisionRequest
+ */
+ DeleteApiSpecRevisionRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.apigeeregistry.v1.DeleteApiSpecRevisionRequest)
+ return object;
+ var message = new $root.google.cloud.apigeeregistry.v1.DeleteApiSpecRevisionRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteApiSpecRevisionRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiSpecRevisionRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.DeleteApiSpecRevisionRequest} message DeleteApiSpecRevisionRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteApiSpecRevisionRequest.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 DeleteApiSpecRevisionRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiSpecRevisionRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteApiSpecRevisionRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteApiSpecRevisionRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.apigeeregistry.v1.DeleteApiSpecRevisionRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteApiSpecRevisionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.apigeeregistry.v1.DeleteApiSpecRevisionRequest";
+ };
+
+ return DeleteApiSpecRevisionRequest;
+ })();
+
+ v1.ListApiDeploymentsRequest = (function() {
+
+ /**
+ * Properties of a ListApiDeploymentsRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @interface IListApiDeploymentsRequest
+ * @property {string|null} [parent] ListApiDeploymentsRequest parent
+ * @property {number|null} [pageSize] ListApiDeploymentsRequest pageSize
+ * @property {string|null} [pageToken] ListApiDeploymentsRequest pageToken
+ * @property {string|null} [filter] ListApiDeploymentsRequest filter
+ */
+
+ /**
+ * Constructs a new ListApiDeploymentsRequest.
+ * @memberof google.cloud.apigeeregistry.v1
+ * @classdesc Represents a ListApiDeploymentsRequest.
+ * @implements IListApiDeploymentsRequest
+ * @constructor
+ * @param {google.cloud.apigeeregistry.v1.IListApiDeploymentsRequest=} [properties] Properties to set
+ */
+ function ListApiDeploymentsRequest(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]];
+ }
+
+ /**
+ * ListApiDeploymentsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.apigeeregistry.v1.ListApiDeploymentsRequest
+ * @instance
+ */
+ ListApiDeploymentsRequest.prototype.parent = "";
+
+ /**
+ * ListApiDeploymentsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.apigeeregistry.v1.ListApiDeploymentsRequest
+ * @instance
+ */
+ ListApiDeploymentsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListApiDeploymentsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.apigeeregistry.v1.ListApiDeploymentsRequest
+ * @instance
+ */
+ ListApiDeploymentsRequest.prototype.pageToken = "";
+
+ /**
+ * ListApiDeploymentsRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.apigeeregistry.v1.ListApiDeploymentsRequest
+ * @instance
+ */
+ ListApiDeploymentsRequest.prototype.filter = "";
+
+ /**
+ * Creates a new ListApiDeploymentsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.apigeeregistry.v1.ListApiDeploymentsRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IListApiDeploymentsRequest=} [properties] Properties to set
+ * @returns {google.cloud.apigeeregistry.v1.ListApiDeploymentsRequest} ListApiDeploymentsRequest instance
+ */
+ ListApiDeploymentsRequest.create = function create(properties) {
+ return new ListApiDeploymentsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListApiDeploymentsRequest message. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApiDeploymentsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.apigeeregistry.v1.ListApiDeploymentsRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IListApiDeploymentsRequest} message ListApiDeploymentsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListApiDeploymentsRequest.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);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListApiDeploymentsRequest message, length delimited. Does not implicitly {@link google.cloud.apigeeregistry.v1.ListApiDeploymentsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.ListApiDeploymentsRequest
+ * @static
+ * @param {google.cloud.apigeeregistry.v1.IListApiDeploymentsRequest} message ListApiDeploymentsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListApiDeploymentsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListApiDeploymentsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.apigeeregistry.v1.ListApiDeploymentsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.apigeeregistry.v1.ListApiDeploymentsRequest} ListApiDeploymentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListApiDeploymentsRequest.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.apigeeregistry.v1.ListApiDeploymentsRequest();
+ 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;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListApiDeploymentsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.apigeeregistry.v1.ListApiDeploymentsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.apigeeregistry.v1.ListApiDeploymentsRequest} ListApiDeploymentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListApiDeploymentsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListApiDeploymentsRequest message.
+ * @function verify
+ * @memberof google.cloud.apigeeregistry.v1.ListApiDeploymentsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListApiDeploymentsRequest.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";
+ return null;
+ };
+
+ /**
+ * Creates a ListApiDeploymentsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.apigeeregistry.v1.ListApiDeploymentsRequest
+ * @static
+ * @param {Object.