diff --git a/owl-bot-staging/google-storage-control/.OwlBot.yaml b/owl-bot-staging/google-storage-control/.OwlBot.yaml
new file mode 100644
index 00000000000..688844a25c1
--- /dev/null
+++ b/owl-bot-staging/google-storage-control/.OwlBot.yaml
@@ -0,0 +1,19 @@
+# Copyright 2025 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-copy-regex:
+ - source: /google/storage/control/google-storage-control-nodejs
+ dest: /owl-bot-staging/google-storage-control
+
+api-name: control
\ No newline at end of file
diff --git a/owl-bot-staging/google-storage-control/.eslintignore b/owl-bot-staging/google-storage-control/.eslintignore
new file mode 100644
index 00000000000..cfc348ec4d1
--- /dev/null
+++ b/owl-bot-staging/google-storage-control/.eslintignore
@@ -0,0 +1,7 @@
+**/node_modules
+**/.coverage
+build/
+docs/
+protos/
+system-test/
+samples/generated/
diff --git a/owl-bot-staging/google-storage-control/.eslintrc.json b/owl-bot-staging/google-storage-control/.eslintrc.json
new file mode 100644
index 00000000000..3e8d97ccb39
--- /dev/null
+++ b/owl-bot-staging/google-storage-control/.eslintrc.json
@@ -0,0 +1,4 @@
+{
+ "extends": "./node_modules/gts",
+ "root": true
+}
diff --git a/owl-bot-staging/google-storage-control/.gitattributes b/owl-bot-staging/google-storage-control/.gitattributes
new file mode 100644
index 00000000000..33739cb74e4
--- /dev/null
+++ b/owl-bot-staging/google-storage-control/.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/owl-bot-staging/google-storage-control/.gitignore b/owl-bot-staging/google-storage-control/.gitignore
new file mode 100644
index 00000000000..d4f03a0df2e
--- /dev/null
+++ b/owl-bot-staging/google-storage-control/.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/owl-bot-staging/google-storage-control/.mocharc.js b/owl-bot-staging/google-storage-control/.mocharc.js
new file mode 100644
index 00000000000..5eb34e86c87
--- /dev/null
+++ b/owl-bot-staging/google-storage-control/.mocharc.js
@@ -0,0 +1,33 @@
+// Copyright 2026 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. **
+
+const config = {
+ "enable-source-maps": true,
+ "throw-deprecation": true,
+ "timeout": 10000
+}
+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/owl-bot-staging/google-storage-control/.nycrc b/owl-bot-staging/google-storage-control/.nycrc
new file mode 100644
index 00000000000..81a95fc94b0
--- /dev/null
+++ b/owl-bot-staging/google-storage-control/.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
+}
\ No newline at end of file
diff --git a/owl-bot-staging/google-storage-control/.prettierignore b/owl-bot-staging/google-storage-control/.prettierignore
new file mode 100644
index 00000000000..9340ad9b86d
--- /dev/null
+++ b/owl-bot-staging/google-storage-control/.prettierignore
@@ -0,0 +1,6 @@
+**/node_modules
+**/coverage
+test/fixtures
+build/
+docs/
+protos/
diff --git a/owl-bot-staging/google-storage-control/.prettierrc.js b/owl-bot-staging/google-storage-control/.prettierrc.js
new file mode 100644
index 00000000000..7649ee3c254
--- /dev/null
+++ b/owl-bot-staging/google-storage-control/.prettierrc.js
@@ -0,0 +1,22 @@
+// Copyright 2026 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. **
+
+
+module.exports = {
+ ...require('gts/.prettierrc.json')
+}
diff --git a/owl-bot-staging/google-storage-control/CODE_OF_CONDUCT.md b/owl-bot-staging/google-storage-control/CODE_OF_CONDUCT.md
new file mode 100644
index 00000000000..2add2547a81
--- /dev/null
+++ b/owl-bot-staging/google-storage-control/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/owl-bot-staging/google-storage-control/CONTRIBUTING.md b/owl-bot-staging/google-storage-control/CONTRIBUTING.md
new file mode 100644
index 00000000000..09c4066f429
--- /dev/null
+++ b/owl-bot-staging/google-storage-control/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 Control 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=storage.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/getting-started
\ No newline at end of file
diff --git a/owl-bot-staging/google-storage-control/LICENSE b/owl-bot-staging/google-storage-control/LICENSE
new file mode 100644
index 00000000000..d6456956733
--- /dev/null
+++ b/owl-bot-staging/google-storage-control/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/owl-bot-staging/google-storage-control/README.md b/owl-bot-staging/google-storage-control/README.md
new file mode 100644
index 00000000000..dcafdfd910e
--- /dev/null
+++ b/owl-bot-staging/google-storage-control/README.md
@@ -0,0 +1,147 @@
+[//]: # "This README.md file is auto-generated, all changes to this file will be lost."
+[//]: # "The comments you see below are used to generate those parts of the template in later states."
+
+
+# [Storage Control API: Nodejs Client][homepage]
+
+This library is considered to be in **preview**. This means it is still a
+work-in-progress and under active development. Any release is subject to
+backwards-incompatible changes at any time.
+
+[](https://www.npmjs.org/package/@google-cloud/storage-control)
+
+Storage Control API client for Node.js
+
+[//]: # "partials.introduction"
+
+A comprehensive list of changes in each version may be found in
+[the CHANGELOG][homepage_changelog].
+
+* [Storage Control API Nodejs Client API Reference](https://cloud.google.com/nodejs/docs/reference/storage-control/latest)
+* [Storage Control API Documentation](https://cloud.google.com/storage/docs/overview)
+
+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)
+
+* [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 Storage Control API API][enable_api].
+1. [Set up authentication][auth] so you can access the
+ API from your local workstation.
+### Installing the client library
+
+```bash
+npm install @google-cloud/storage-control
+```
+
+[//]: # "partials.body"
+
+## Samples
+
+Samples are in the [`samples/`][homepage_samples] directory. Each sample's `README.md` has instructions for running its sample.
+
+| Sample | Source Code |
+| --------------------------- | --------------------------------- |
+| storage | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/snippet_metadata_google.storage.control.v2.json) |
+| storage | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/snippet_metadata_google.storage.v2.json) |
+| create bucket | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage.create_bucket.js) |
+| delete bucket | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage.delete_bucket.js) |
+| get bucket | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage.get_bucket.js) |
+| list buckets | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage.list_buckets.js) |
+| lock bucket retention policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage.lock_bucket_retention_policy.js) |
+| update bucket | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage.update_bucket.js) |
+| create anywhere cache | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.create_anywhere_cache.js) |
+| create folder | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.create_folder.js) |
+| create managed folder | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.create_managed_folder.js) |
+| delete folder | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.delete_folder.js) |
+| delete folder recursive | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.delete_folder_recursive.js) |
+| delete managed folder | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.delete_managed_folder.js) |
+| disable anywhere cache | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.disable_anywhere_cache.js) |
+| get anywhere cache | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.get_anywhere_cache.js) |
+| get folder | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.get_folder.js) |
+| get folder intelligence config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.get_folder_intelligence_config.js) |
+| get iam policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.get_iam_policy.js) |
+| get managed folder | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.get_managed_folder.js) |
+| get organization intelligence config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.get_organization_intelligence_config.js) |
+| get project intelligence config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.get_project_intelligence_config.js) |
+| get storage layout | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.get_storage_layout.js) |
+| list anywhere caches | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.list_anywhere_caches.js) |
+| list folders | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.list_folders.js) |
+| list managed folders | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.list_managed_folders.js) |
+| pause anywhere cache | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.pause_anywhere_cache.js) |
+| rename folder | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.rename_folder.js) |
+| resume anywhere cache | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.resume_anywhere_cache.js) |
+| set iam policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.set_iam_policy.js) |
+| test iam permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.test_iam_permissions.js) |
+| update anywhere cache | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.update_anywhere_cache.js) |
+| update folder intelligence config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.update_folder_intelligence_config.js) |
+| update organization intelligence config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.update_organization_intelligence_config.js) |
+| update project intelligence config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.update_project_intelligence_config.js) |
+
+
+## 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/storage-control@legacy-8` installs client libraries
+for versions compatible with Node.js 8.
+
+## Versioning
+
+This library follows [Semantic Versioning](http://semver.org/).
+
+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/packages/google-storage-control/CONTRIBUTING.md).
+
+Please note that this `README.md`
+and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`)
+are generated from a central template.
+
+## License
+
+Apache Version 2.0
+
+See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/LICENSE)
+
+[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=storage.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/external/set-up-adc-local
+[homepage_samples]: https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples
+[homepage_changelog]: https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/CHANGELOG.md
+[homepage]: https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control
diff --git a/owl-bot-staging/google-storage-control/protos/google/storage/control/v2/storage_control.proto b/owl-bot-staging/google-storage-control/protos/google/storage/control/v2/storage_control.proto
new file mode 100644
index 00000000000..015ad010b03
--- /dev/null
+++ b/owl-bot-staging/google-storage-control/protos/google/storage/control/v2/storage_control.proto
@@ -0,0 +1,1464 @@
+// Copyright 2026 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.storage.control.v2;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/field_info.proto";
+import "google/api/resource.proto";
+import "google/api/routing.proto";
+import "google/iam/v1/iam_policy.proto";
+import "google/iam/v1/policy.proto";
+import "google/longrunning/operations.proto";
+import "google/protobuf/duration.proto";
+import "google/protobuf/empty.proto";
+import "google/protobuf/field_mask.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.Storage.Control.V2";
+option go_package = "cloud.google.com/go/storage/control/apiv2/controlpb;controlpb";
+option java_multiple_files = true;
+option java_outer_classname = "StorageControlProto";
+option java_package = "com.google.storage.control.v2";
+option php_namespace = "Google\\Cloud\\Storage\\Control\\V2";
+option ruby_package = "Google::Cloud::Storage::Control::V2";
+option (google.api.resource_definition) = {
+ type: "storage.googleapis.com/Bucket"
+ pattern: "projects/{project}/buckets/{bucket}"
+};
+
+// StorageControl service includes selected control plane operations.
+service StorageControl {
+ option (google.api.default_host) = "storage.googleapis.com";
+ option (google.api.oauth_scopes) =
+ "https://www.googleapis.com/auth/cloud-platform,"
+ "https://www.googleapis.com/auth/cloud-platform.read-only,"
+ "https://www.googleapis.com/auth/devstorage.full_control,"
+ "https://www.googleapis.com/auth/devstorage.read_only,"
+ "https://www.googleapis.com/auth/devstorage.read_write";
+
+ // Creates a new folder. This operation is only applicable to a hierarchical
+ // namespace enabled bucket.
+ rpc CreateFolder(CreateFolderRequest) returns (Folder) {
+ option (google.api.routing) = {
+ routing_parameters { field: "parent" path_template: "{bucket=**}" }
+ };
+ option (google.api.method_signature) = "parent,folder,folder_id";
+ }
+
+ // Permanently deletes an empty folder. This operation is only applicable to a
+ // hierarchical namespace enabled bucket.
+ rpc DeleteFolder(DeleteFolderRequest) returns (google.protobuf.Empty) {
+ option (google.api.routing) = {
+ routing_parameters {
+ field: "name"
+ path_template: "{bucket=projects/*/buckets/*}/**"
+ }
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Returns metadata for the specified folder. This operation is only
+ // applicable to a hierarchical namespace enabled bucket.
+ rpc GetFolder(GetFolderRequest) returns (Folder) {
+ option (google.api.routing) = {
+ routing_parameters {
+ field: "name"
+ path_template: "{bucket=projects/*/buckets/*}/**"
+ }
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Retrieves a list of folders. This operation is only applicable to a
+ // hierarchical namespace enabled bucket.
+ rpc ListFolders(ListFoldersRequest) returns (ListFoldersResponse) {
+ option (google.api.routing) = {
+ routing_parameters { field: "parent" path_template: "{bucket=**}" }
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Renames a source folder to a destination folder. This operation is only
+ // applicable to a hierarchical namespace enabled bucket. During a rename, the
+ // source and destination folders are locked until the long running operation
+ // completes.
+ rpc RenameFolder(RenameFolderRequest) returns (google.longrunning.Operation) {
+ option (google.api.routing) = {
+ routing_parameters {
+ field: "name"
+ path_template: "{bucket=projects/*/buckets/*}/**"
+ }
+ };
+ option (google.api.method_signature) = "name,destination_folder_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "Folder"
+ metadata_type: "RenameFolderMetadata"
+ };
+ }
+
+ // Deletes a folder recursively. This operation is only applicable to a
+ // hierarchical namespace enabled bucket.
+ rpc DeleteFolderRecursive(DeleteFolderRecursiveRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.routing) = {
+ routing_parameters {
+ field: "name"
+ path_template: "{bucket=projects/*/buckets/*}/**"
+ }
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "DeleteFolderRecursiveMetadata"
+ };
+ }
+
+ // Returns the storage layout configuration for a given bucket.
+ rpc GetStorageLayout(GetStorageLayoutRequest) returns (StorageLayout) {
+ option (google.api.routing) = {
+ routing_parameters {
+ field: "name"
+ path_template: "{bucket=projects/*/buckets/*}/**"
+ }
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a new managed folder.
+ rpc CreateManagedFolder(CreateManagedFolderRequest) returns (ManagedFolder) {
+ option (google.api.routing) = {
+ routing_parameters { field: "parent" path_template: "{bucket=**}" }
+ };
+ option (google.api.method_signature) =
+ "parent,managed_folder,managed_folder_id";
+ }
+
+ // Permanently deletes an empty managed folder.
+ rpc DeleteManagedFolder(DeleteManagedFolderRequest)
+ returns (google.protobuf.Empty) {
+ option (google.api.routing) = {
+ routing_parameters {
+ field: "name"
+ path_template: "{bucket=projects/*/buckets/*}/**"
+ }
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Returns metadata for the specified managed folder.
+ rpc GetManagedFolder(GetManagedFolderRequest) returns (ManagedFolder) {
+ option (google.api.routing) = {
+ routing_parameters {
+ field: "name"
+ path_template: "{bucket=projects/*/buckets/*}/**"
+ }
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Retrieves a list of managed folders for a given bucket.
+ rpc ListManagedFolders(ListManagedFoldersRequest)
+ returns (ListManagedFoldersResponse) {
+ option (google.api.routing) = {
+ routing_parameters { field: "parent" path_template: "{bucket=**}" }
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Creates an Anywhere Cache instance.
+ rpc CreateAnywhereCache(CreateAnywhereCacheRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.routing) = {
+ routing_parameters { field: "parent" path_template: "{bucket=**}" }
+ };
+ option (google.api.method_signature) = "parent,anywhere_cache";
+ option (google.longrunning.operation_info) = {
+ response_type: "AnywhereCache"
+ metadata_type: "CreateAnywhereCacheMetadata"
+ };
+ }
+
+ // Updates an Anywhere Cache instance. Mutable fields include `ttl` and
+ // `admission_policy`.
+ rpc UpdateAnywhereCache(UpdateAnywhereCacheRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.routing) = {
+ routing_parameters {
+ field: "anywhere_cache.name"
+ path_template: "{bucket=projects/*/buckets/*}/**"
+ }
+ };
+ option (google.api.method_signature) = "anywhere_cache,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "AnywhereCache"
+ metadata_type: "UpdateAnywhereCacheMetadata"
+ };
+ }
+
+ // Disables an Anywhere Cache instance. A disabled instance is read-only. The
+ // disablement could be revoked by calling ResumeAnywhereCache. The cache
+ // instance will be deleted automatically if it remains in the disabled state
+ // for at least one hour.
+ rpc DisableAnywhereCache(DisableAnywhereCacheRequest)
+ returns (AnywhereCache) {
+ option (google.api.routing) = {
+ routing_parameters {
+ field: "name"
+ path_template: "{bucket=projects/*/buckets/*}/**"
+ }
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Pauses an Anywhere Cache instance.
+ rpc PauseAnywhereCache(PauseAnywhereCacheRequest) returns (AnywhereCache) {
+ option (google.api.routing) = {
+ routing_parameters {
+ field: "name"
+ path_template: "{bucket=projects/*/buckets/*}/**"
+ }
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Resumes a disabled or paused Anywhere Cache instance.
+ rpc ResumeAnywhereCache(ResumeAnywhereCacheRequest) returns (AnywhereCache) {
+ option (google.api.routing) = {
+ routing_parameters {
+ field: "name"
+ path_template: "{bucket=projects/*/buckets/*}/**"
+ }
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Gets an Anywhere Cache instance.
+ rpc GetAnywhereCache(GetAnywhereCacheRequest) returns (AnywhereCache) {
+ option (google.api.routing) = {
+ routing_parameters {
+ field: "name"
+ path_template: "{bucket=projects/*/buckets/*}/**"
+ }
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Lists Anywhere Cache instances for a given bucket.
+ rpc ListAnywhereCaches(ListAnywhereCachesRequest)
+ returns (ListAnywhereCachesResponse) {
+ option (google.api.routing) = {
+ routing_parameters { field: "parent" path_template: "{bucket=**}" }
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Returns the Project scoped singleton IntelligenceConfig resource.
+ rpc GetProjectIntelligenceConfig(GetProjectIntelligenceConfigRequest)
+ returns (IntelligenceConfig) {
+ option (google.api.http) = {
+ get: "/v2/{name=projects/*/locations/*/intelligenceConfig}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Updates the Project scoped singleton IntelligenceConfig resource.
+ rpc UpdateProjectIntelligenceConfig(UpdateProjectIntelligenceConfigRequest)
+ returns (IntelligenceConfig) {
+ option (google.api.http) = {
+ patch: "/v2/{intelligence_config.name=projects/*/locations/*/intelligenceConfig}"
+ body: "intelligence_config"
+ };
+ option (google.api.method_signature) = "intelligence_config,update_mask";
+ }
+
+ // Returns the Folder scoped singleton IntelligenceConfig resource.
+ rpc GetFolderIntelligenceConfig(GetFolderIntelligenceConfigRequest)
+ returns (IntelligenceConfig) {
+ option (google.api.http) = {
+ get: "/v2/{name=folders/*/locations/*/intelligenceConfig}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Updates the Folder scoped singleton IntelligenceConfig resource.
+ rpc UpdateFolderIntelligenceConfig(UpdateFolderIntelligenceConfigRequest)
+ returns (IntelligenceConfig) {
+ option (google.api.http) = {
+ patch: "/v2/{intelligence_config.name=folders/*/locations/*/intelligenceConfig}"
+ body: "intelligence_config"
+ };
+ option (google.api.method_signature) = "intelligence_config,update_mask";
+ }
+
+ // Returns the Organization scoped singleton IntelligenceConfig resource.
+ rpc GetOrganizationIntelligenceConfig(
+ GetOrganizationIntelligenceConfigRequest) returns (IntelligenceConfig) {
+ option (google.api.http) = {
+ get: "/v2/{name=organizations/*/locations/*/intelligenceConfig}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Updates the Organization scoped singleton IntelligenceConfig resource.
+ rpc UpdateOrganizationIntelligenceConfig(
+ UpdateOrganizationIntelligenceConfigRequest)
+ returns (IntelligenceConfig) {
+ option (google.api.http) = {
+ patch: "/v2/{intelligence_config.name=organizations/*/locations/*/intelligenceConfig}"
+ body: "intelligence_config"
+ };
+ option (google.api.method_signature) = "intelligence_config,update_mask";
+ }
+
+ // Gets the IAM policy for a specified bucket.
+ // The `resource` field in the request should be
+ // `projects/_/buckets/{bucket}` for a bucket, or
+ // `projects/_/buckets/{bucket}/managedFolders/{managedFolder}`
+ // for a managed folder.
+ rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest)
+ returns (google.iam.v1.Policy) {
+ option (google.api.routing) = {
+ routing_parameters { field: "resource" path_template: "{bucket=**}" }
+ routing_parameters {
+ field: "resource"
+ path_template: "{bucket=projects/*/buckets/*}/**"
+ }
+ };
+ option (google.api.method_signature) = "resource";
+ }
+
+ // Updates an IAM policy for the specified bucket.
+ // The `resource` field in the request should be
+ // `projects/_/buckets/{bucket}` for a bucket, or
+ // `projects/_/buckets/{bucket}/managedFolders/{managedFolder}`
+ // for a managed folder.
+ rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest)
+ returns (google.iam.v1.Policy) {
+ option (google.api.routing) = {
+ routing_parameters { field: "resource" path_template: "{bucket=**}" }
+ routing_parameters {
+ field: "resource"
+ path_template: "{bucket=projects/*/buckets/*}/**"
+ }
+ };
+ option (google.api.method_signature) = "resource,policy";
+ }
+
+ // Tests a set of permissions on the given bucket, object, or managed folder
+ // to see which, if any, are held by the caller.
+ // The `resource` field in the request should be
+ // `projects/_/buckets/{bucket}` for a bucket,
+ // `projects/_/buckets/{bucket}/objects/{object}` for an object, or
+ // `projects/_/buckets/{bucket}/managedFolders/{managedFolder}`
+ // for a managed folder.
+ rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest)
+ returns (google.iam.v1.TestIamPermissionsResponse) {
+ option (google.api.routing) = {
+ routing_parameters { field: "resource" path_template: "{bucket=**}" }
+ routing_parameters {
+ field: "resource"
+ path_template: "{bucket=projects/*/buckets/*}/objects/**"
+ }
+ routing_parameters {
+ field: "resource"
+ path_template: "{bucket=projects/*/buckets/*}/managedFolders/**"
+ }
+ };
+ option (google.api.method_signature) = "resource,permissions";
+ }
+}
+
+// Contains information about a pending rename operation.
+message PendingRenameInfo {
+ // Output only. The name of the rename operation.
+ string operation = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// A folder resource. This resource can only exist in a hierarchical namespace
+// enabled bucket.
+message Folder {
+ option (google.api.resource) = {
+ type: "storage.googleapis.com/Folder"
+ pattern: "projects/{project}/buckets/{bucket}/folders/{folder=**}"
+ plural: "folders"
+ singular: "folder"
+ };
+
+ // Identifier. The name of this folder.
+ // Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
+ string name = 1 [(google.api.field_behavior) = IDENTIFIER];
+
+ // Output only. The version of the metadata for this folder. Used for
+ // preconditions and for detecting changes in metadata.
+ int64 metageneration = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The creation time of the folder.
+ google.protobuf.Timestamp create_time = 4
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The modification time of the folder.
+ google.protobuf.Timestamp update_time = 5
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Only present if the folder is part of an ongoing RenameFolder
+ // operation. Contains information which can be used to query the operation
+ // status. The presence of this field also indicates all write operations are
+ // blocked for this folder, including folder, managed folder, and object
+ // operations.
+ PendingRenameInfo pending_rename_info = 7
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Request message for GetFolder. This operation is only applicable to a
+// hierarchical namespace enabled bucket.
+message GetFolderRequest {
+ // Required. Name of the folder.
+ // Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
+ string name = 6 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = { type: "storage.googleapis.com/Folder" }
+ ];
+
+ // Makes the operation only succeed conditional on whether the folder's
+ // current metageneration matches the given value.
+ optional int64 if_metageneration_match = 3;
+
+ // Makes the operation only succeed conditional on whether the folder's
+ // current metageneration does not match the given value.
+ optional int64 if_metageneration_not_match = 4;
+
+ // Optional. A unique identifier for this request. UUID is the recommended
+ // format, but other formats are still accepted.
+ string request_id = 5 [
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+}
+
+// Request message for CreateFolder. This operation is only applicable to a
+// hierarchical namespace enabled bucket.
+message CreateFolderRequest {
+ // Required. Name of the bucket in which the folder will reside. The bucket
+ // must be a hierarchical namespace enabled bucket.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "storage.googleapis.com/Folder"
+ }
+ ];
+
+ // Required. Properties of the new folder being created.
+ // The bucket and name of the folder are specified in the parent and folder_id
+ // fields, respectively. Populating those fields in `folder` will result in an
+ // error.
+ Folder folder = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The full name of a folder, including all its parent folders.
+ // Folders use single '/' characters as a delimiter.
+ // The folder_id must end with a slash.
+ // For example, the folder_id of "books/biographies/" would create a new
+ // "biographies/" folder under the "books/" folder.
+ string folder_id = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. If true, parent folder doesn't have to be present and all missing
+ // ancestor folders will be created atomically.
+ bool recursive = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A unique identifier for this request. UUID is the recommended
+ // format, but other formats are still accepted.
+ string request_id = 5 [
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+}
+
+// Request message for DeleteFolder. This operation is only applicable to a
+// hierarchical namespace enabled bucket.
+message DeleteFolderRequest {
+ // Required. Name of the folder.
+ // Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
+ string name = 6 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = { type: "storage.googleapis.com/Folder" }
+ ];
+
+ // Makes the operation only succeed conditional on whether the folder's
+ // current metageneration matches the given value.
+ optional int64 if_metageneration_match = 3;
+
+ // Makes the operation only succeed conditional on whether the folder's
+ // current metageneration does not match the given value.
+ optional int64 if_metageneration_not_match = 4;
+
+ // Optional. A unique identifier for this request. UUID is the recommended
+ // format, but other formats are still accepted.
+ string request_id = 5 [
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+}
+
+// Request message for ListFolders. This operation is only applicable to a
+// hierarchical namespace enabled bucket.
+message ListFoldersRequest {
+ // Required. Name of the bucket in which to look for folders. The bucket must
+ // be a hierarchical namespace enabled bucket.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "storage.googleapis.com/Folder"
+ }
+ ];
+
+ // Optional. Maximum number of folders to return in a single response. The
+ // service will use this parameter or 1,000 items, whichever is smaller.
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A previously-returned page token representing part of the larger
+ // set of results to view.
+ string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Filter results to folders whose names begin with this prefix.
+ // If set, the value must either be an empty string or end with a '/'.
+ string prefix = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If set, returns results in a directory-like mode. The results
+ // will only include folders that either exactly match the above prefix, or
+ // are one level below the prefix. The only supported value is '/'.
+ string delimiter = 8 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Filter results to folders whose names are lexicographically equal
+ // to or after lexicographic_start. If lexicographic_end is also set, the
+ // folders listed have names between lexicographic_start (inclusive) and
+ // lexicographic_end (exclusive).
+ string lexicographic_start = 6 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Filter results to folders whose names are lexicographically
+ // before lexicographic_end. If lexicographic_start is also set, the folders
+ // listed have names between lexicographic_start (inclusive) and
+ // lexicographic_end (exclusive).
+ string lexicographic_end = 7 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A unique identifier for this request. UUID is the recommended
+ // format, but other formats are still accepted.
+ string request_id = 9 [
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+}
+
+// Response message for ListFolders.
+message ListFoldersResponse {
+ // The list of child folders
+ repeated Folder folders = 1;
+
+ // The continuation token, used to page through large result sets. Provide
+ // this value in a subsequent request to return the next page of results.
+ string next_page_token = 2;
+}
+
+// Request message for RenameFolder. This operation is only applicable to a
+// hierarchical namespace enabled bucket.
+message RenameFolderRequest {
+ // Required. Name of the source folder being renamed.
+ // Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
+ string name = 7 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = { type: "storage.googleapis.com/Folder" }
+ ];
+
+ // Required. The destination folder ID, e.g. `foo/bar/`.
+ string destination_folder_id = 8 [(google.api.field_behavior) = REQUIRED];
+
+ // Makes the operation only succeed conditional on whether the source
+ // folder's current metageneration matches the given value.
+ optional int64 if_metageneration_match = 4;
+
+ // Makes the operation only succeed conditional on whether the source
+ // folder's current metageneration does not match the given value.
+ optional int64 if_metageneration_not_match = 5;
+
+ // Optional. A unique identifier for this request. UUID is the recommended
+ // format, but other formats are still accepted. This request is only
+ // idempotent if a `request_id` is provided.
+ string request_id = 6 [
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+}
+
+// Request message for DeleteFolderRecursive.
+message DeleteFolderRecursiveRequest {
+ // Required. Name of the folder being deleted, however all of its contents
+ // will be deleted too. Format:
+ // `projects/{project}/buckets/{bucket}/folders/{folder}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = { type: "storage.googleapis.com/Folder" }
+ ];
+
+ // Optional. Makes the operation only succeed conditional on whether the root
+ // folder's current metageneration matches the given value.
+ optional int64 if_metageneration_match = 2
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Makes the operation only succeed conditional on whether the root
+ // folder's current metageneration does not match the given value.
+ optional int64 if_metageneration_not_match = 3
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A unique identifier for this request. UUID is the recommended
+ // format, but other formats are still accepted.
+ string request_id = 4 [
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+}
+
+// The message contains metadata that is common to all Storage Control
+// long-running operations, present in its `google.longrunning.Operation`
+// messages, and accessible via `metadata.common_metadata`.
+message CommonLongRunningOperationMetadata {
+ // Output only. The time the operation was created.
+ google.protobuf.Timestamp create_time = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time the operation finished running.
+ google.protobuf.Timestamp end_time = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time the operation was last modified.
+ google.protobuf.Timestamp update_time = 3
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The type of operation invoked.
+ string type = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Identifies whether the user has requested cancellation.
+ bool requested_cancellation = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The estimated progress of the operation in percentage [0,
+ // 100]. The value -1 means the progress is unknown.
+ int32 progress_percent = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Message returned in the metadata field of the Operation resource for
+// RenameFolder operations.
+message RenameFolderMetadata {
+ // Generic metadata for the long running operation.
+ CommonLongRunningOperationMetadata common_metadata = 1;
+
+ // The path of the source folder.
+ string source_folder_id = 2;
+
+ // The path of the destination folder.
+ string destination_folder_id = 3;
+}
+
+// Message returned in the metadata field of the Operation resource for
+// DeleteFolderRecursive operations.
+message DeleteFolderRecursiveMetadata {
+ // Generic metadata for the long running operation.
+ CommonLongRunningOperationMetadata common_metadata = 1;
+
+ // The path of the folder recursively deleted.
+ string folder_id = 2;
+}
+
+// The storage layout configuration of a bucket.
+message StorageLayout {
+ option (google.api.resource) = {
+ type: "storage.googleapis.com/StorageLayout"
+ pattern: "projects/{project}/buckets/{bucket}/storageLayout"
+ plural: "storageLayouts"
+ singular: "storageLayout"
+ };
+
+ // Configuration for Custom Dual Regions. It should specify precisely two
+ // eligible regions within the same Multiregion. More information on regions
+ // may be found [here](https://cloud.google.com/storage/docs/locations).
+ message CustomPlacementConfig {
+ // List of locations to use for data placement.
+ repeated string data_locations = 1;
+ }
+
+ // Configuration for a bucket's hierarchical namespace feature.
+ message HierarchicalNamespace {
+ // Enables the hierarchical namespace feature.
+ bool enabled = 1;
+ }
+
+ // Output only. The name of the StorageLayout resource.
+ // Format: `projects/{project}/buckets/{bucket}/storageLayout`
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The location of the bucket.
+ string location = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The location type of the bucket (region, dual-region,
+ // multi-region, etc).
+ string location_type = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The data placement configuration for custom dual region. If
+ // there is no configuration, this is not a custom dual region bucket.
+ CustomPlacementConfig custom_placement_config = 4
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The bucket's hierarchical namespace configuration. If there is
+ // no configuration, the hierarchical namespace is disabled.
+ HierarchicalNamespace hierarchical_namespace = 5
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Request message for GetStorageLayout.
+message GetStorageLayoutRequest {
+ // Required. The name of the StorageLayout resource.
+ // Format: `projects/{project}/buckets/{bucket}/storageLayout`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "storage.googleapis.com/StorageLayout"
+ }
+ ];
+
+ // An optional prefix used for permission check. It is useful when the caller
+ // only has limited permissions under a specific prefix.
+ string prefix = 2;
+
+ // Optional. A unique identifier for this request. UUID is the recommended
+ // format, but other formats are still accepted.
+ string request_id = 3 [
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+}
+
+// A managed folder.
+message ManagedFolder {
+ option (google.api.resource) = {
+ type: "storage.googleapis.com/ManagedFolder"
+ pattern: "projects/{project}/buckets/{bucket}/managedFolders/{managed_folder=**}"
+ plural: "managedFolders"
+ singular: "managedFolder"
+ };
+
+ // Identifier. The name of this managed folder.
+ // Format:
+ // `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`
+ string name = 1 [(google.api.field_behavior) = IDENTIFIER];
+
+ // Output only. The metadata version of this managed folder. It increases
+ // whenever the metadata is updated. Used for preconditions and for detecting
+ // changes in metadata. Managed folders don't have a generation number.
+ int64 metageneration = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The creation time of the managed folder.
+ google.protobuf.Timestamp create_time = 4
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The modification time of the managed folder.
+ google.protobuf.Timestamp update_time = 5
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Request message for GetManagedFolder.
+message GetManagedFolderRequest {
+ // Required. Name of the managed folder.
+ // Format:
+ // `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`
+ string name = 6 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "storage.googleapis.com/ManagedFolder"
+ }
+ ];
+
+ // The operation succeeds conditional on the managed folder's current
+ // metageneration matching the value here specified.
+ optional int64 if_metageneration_match = 3;
+
+ // The operation succeeds conditional on the managed folder's current
+ // metageneration NOT matching the value here specified.
+ optional int64 if_metageneration_not_match = 4;
+
+ // Optional. A unique identifier for this request. UUID is the recommended
+ // format, but other formats are still accepted.
+ string request_id = 5 [
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+}
+
+// Request message for CreateManagedFolder.
+message CreateManagedFolderRequest {
+ // Required. Name of the bucket this managed folder belongs to.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "storage.googleapis.com/ManagedFolder"
+ }
+ ];
+
+ // Required. Properties of the managed folder being created.
+ // The bucket and managed folder names are specified in the `parent` and
+ // `managed_folder_id` fields. Populating these fields in `managed_folder`
+ // will result in an error.
+ ManagedFolder managed_folder = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The name of the managed folder. It uses a single `/` as delimiter
+ // and leading and trailing `/` are allowed.
+ string managed_folder_id = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. A unique identifier for this request. UUID is the recommended
+ // format, but other formats are still accepted.
+ string request_id = 4 [
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+}
+
+// DeleteManagedFolder RPC request message.
+message DeleteManagedFolderRequest {
+ // Required. Name of the managed folder.
+ // Format:
+ // `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`
+ string name = 7 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "storage.googleapis.com/ManagedFolder"
+ }
+ ];
+
+ // The operation succeeds conditional on the managed folder's current
+ // metageneration matching the value here specified.
+ optional int64 if_metageneration_match = 3;
+
+ // The operation succeeds conditional on the managed folder's current
+ // metageneration NOT matching the value here specified.
+ optional int64 if_metageneration_not_match = 4;
+
+ // Allows deletion of a managed folder even if it is not empty.
+ // A managed folder is empty if it manages no child managed folders or
+ // objects. Caller must have permission for
+ // storage.managedFolders.setIamPolicy.
+ bool allow_non_empty = 5;
+
+ // Optional. A unique identifier for this request. UUID is the recommended
+ // format, but other formats are still accepted.
+ string request_id = 6 [
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+}
+
+// Request message for ListManagedFolders.
+message ListManagedFoldersRequest {
+ // Required. Name of the bucket this managed folder belongs to.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "storage.googleapis.com/ManagedFolder"
+ }
+ ];
+
+ // Optional. Maximum number of managed folders to return in a single response.
+ // The service will use this parameter or 1,000 items, whichever is smaller.
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A previously-returned page token representing part of the larger
+ // set of results to view.
+ string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Filter results to match managed folders with name starting with
+ // this prefix.
+ string prefix = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A unique identifier for this request. UUID is the recommended
+ // format, but other formats are still accepted.
+ string request_id = 5 [
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+}
+
+// Response message for ListManagedFolders.
+message ListManagedFoldersResponse {
+ // The list of matching managed folders
+ repeated ManagedFolder managed_folders = 1;
+
+ // The continuation token, used to page through large result sets. Provide
+ // this value in a subsequent request to return the next page of results.
+ string next_page_token = 2;
+}
+
+// Message returned in the metadata field of the Operation resource for
+// CreateAnywhereCache operations.
+message CreateAnywhereCacheMetadata {
+ // Generic metadata for the long running operation.
+ CommonLongRunningOperationMetadata common_metadata = 1;
+
+ // Anywhere Cache ID.
+ optional string anywhere_cache_id = 2;
+
+ // The zone in which the cache instance is running. For example,
+ // us-central1-a.
+ optional string zone = 6;
+
+ // Anywhere Cache entry's TTL. A cache-level config that is applied to all new
+ // cache entries on admission. Default ttl value (24hrs) is applied if not
+ // specified in the create request.
+ optional google.protobuf.Duration ttl = 3;
+
+ // Anywhere Cache entry Admission Policy in kebab-case (e.g.,
+ // "admit-on-first-miss"). Default admission policy (admit-on-first-miss) is
+ // applied if not specified in the create request.
+ optional string admission_policy = 5;
+}
+
+// Message returned in the metadata field of the Operation resource for
+// UpdateAnywhereCache operation.
+message UpdateAnywhereCacheMetadata {
+ // Generic metadata for the long running operation.
+ CommonLongRunningOperationMetadata common_metadata = 1;
+
+ // Anywhere Cache ID.
+ optional string anywhere_cache_id = 2;
+
+ // The zone in which the cache instance is running. For example,
+ // us-central1-a.
+ optional string zone = 5;
+
+ // Anywhere Cache entry's TTL between 1h and 7days. A cache-level config that
+ // is applied to all new cache entries on admission. If `ttl` is pending
+ // update, this field equals to the new value specified in the Update request.
+ optional google.protobuf.Duration ttl = 3;
+
+ // L4 Cache entry Admission Policy in kebab-case (e.g.,
+ // "admit-on-first-miss"). If `admission_policy` is pending
+ // update, this field equals to the new value specified in the Update request.
+ optional string admission_policy = 4;
+}
+
+// An Anywhere Cache Instance.
+message AnywhereCache {
+ option (google.api.resource) = {
+ type: "storage.googleapis.com/AnywhereCache"
+ pattern: "projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}"
+ plural: "anywhereCaches"
+ singular: "anywhereCache"
+ };
+
+ // Immutable. The resource name of this AnywhereCache.
+ // Format:
+ // `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}`
+ string name = 1 [(google.api.field_behavior) = IMMUTABLE];
+
+ // Immutable. The zone in which the cache instance is running. For example,
+ // us-central1-a.
+ string zone = 10 [(google.api.field_behavior) = IMMUTABLE];
+
+ // Cache entry TTL (ranges between 1h to 7d). This is a cache-level config
+ // that defines how long a cache entry can live. Default ttl value (24hrs)
+ // is applied if not specified in the create request. TTL must be in whole
+ // seconds.
+ google.protobuf.Duration ttl = 3;
+
+ // Cache admission policy. Valid policies includes:
+ // `admit-on-first-miss` and `admit-on-second-miss`. Defaults to
+ // `admit-on-first-miss`. Default value is applied if not specified in the
+ // create request.
+ string admission_policy = 9;
+
+ // Output only. Cache state including RUNNING, CREATING, DISABLED and PAUSED.
+ string state = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Time when Anywhere cache instance is allocated.
+ google.protobuf.Timestamp create_time = 6
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Time when Anywhere cache instance is last updated, including
+ // creation.
+ google.protobuf.Timestamp update_time = 7
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. True if there is an active update operation against this cache
+ // instance. Subsequential update requests will be rejected if this field is
+ // true. Output only.
+ bool pending_update = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Request message for CreateAnywhereCache.
+message CreateAnywhereCacheRequest {
+ // Required. The bucket to which this cache belongs.
+ // Format: `projects/{project}/buckets/{bucket}`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "storage.googleapis.com/AnywhereCache"
+ }
+ ];
+
+ // Required. Properties of the Anywhere Cache instance being created.
+ // The parent bucket name is specified in the `parent` field. Server uses the
+ // default value of `ttl` or `admission_policy` if not specified in
+ // request.
+ AnywhereCache anywhere_cache = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. A unique identifier for this request. UUID is the recommended
+ // format, but other formats are still accepted. This request is only
+ // idempotent if a `request_id` is provided.
+ string request_id = 4 [
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+}
+
+// Request message for UpdateAnywhereCache.
+message UpdateAnywhereCacheRequest {
+ // Required. The Anywhere Cache instance to be updated.
+ AnywhereCache anywhere_cache = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. List of fields to be updated. Mutable fields of AnywhereCache
+ // include `ttl` and `admission_policy`.
+ //
+ // To specify ALL fields, specify a single field with the value `*`. Note: We
+ // recommend against doing this. If a new field is introduced at a later time,
+ // an older client updating with the `*` may accidentally reset the new
+ // field's value.
+ //
+ // Not specifying any fields is an error.
+ google.protobuf.FieldMask update_mask = 2
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. A unique identifier for this request. UUID is the recommended
+ // format, but other formats are still accepted. This request is only
+ // idempotent if a `request_id` is provided.
+ string request_id = 3 [
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+}
+
+// Request message for DisableAnywhereCache.
+message DisableAnywhereCacheRequest {
+ // Required. The name field in the request should be:
+ // `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "storage.googleapis.com/AnywhereCache"
+ }
+ ];
+
+ // Optional. A unique identifier for this request. UUID is the recommended
+ // format, but other formats are still accepted. This request is only
+ // idempotent if a `request_id` is provided.
+ string request_id = 2 [
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+}
+
+// Request message for PauseAnywhereCache.
+message PauseAnywhereCacheRequest {
+ // Required. The name field in the request should be:
+ // `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "storage.googleapis.com/AnywhereCache"
+ }
+ ];
+
+ // Optional. A unique identifier for this request. UUID is the recommended
+ // format, but other formats are still accepted. This request is only
+ // idempotent if a `request_id` is provided.
+ string request_id = 2 [
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+}
+
+// Request message for ResumeAnywhereCache.
+message ResumeAnywhereCacheRequest {
+ // Required. The name field in the request should be:
+ // `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "storage.googleapis.com/AnywhereCache"
+ }
+ ];
+
+ // Optional. A unique identifier for this request. UUID is the recommended
+ // format, but other formats are still accepted. This request is only
+ // idempotent if a `request_id` is provided.
+ string request_id = 2 [
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+}
+
+// Request message for GetAnywhereCache.
+message GetAnywhereCacheRequest {
+ // Required. The name field in the request should be:
+ // `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "storage.googleapis.com/AnywhereCache"
+ }
+ ];
+
+ // Optional. A unique identifier for this request. UUID is the recommended
+ // format, but other formats are still accepted.
+ string request_id = 2 [
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+}
+
+// Request message for ListAnywhereCaches.
+message ListAnywhereCachesRequest {
+ // Required. The bucket to which this cache belongs.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "storage.googleapis.com/AnywhereCache"
+ }
+ ];
+
+ // Maximum number of caches to return in a single response.
+ // The service will use this parameter or 1,000 items, whichever is smaller.
+ int32 page_size = 2;
+
+ // A previously-returned page token representing part of the larger set of
+ // results to view.
+ string page_token = 3;
+
+ // Optional. A unique identifier for this request. UUID is the recommended
+ // format, but other formats are still accepted.
+ string request_id = 4 [
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+}
+
+// Response message for ListAnywhereCaches.
+message ListAnywhereCachesResponse {
+ // The list of items.
+ repeated AnywhereCache anywhere_caches = 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;
+}
+
+// The `IntelligenceConfig` resource associated with your organization, folder,
+// or project.
+message IntelligenceConfig {
+ option (google.api.resource) = {
+ type: "storage.googleapis.com/IntelligenceConfig"
+ pattern: "folders/{folder}/locations/{location}/intelligenceConfig"
+ pattern: "organizations/{org}/locations/{location}/intelligenceConfig"
+ pattern: "projects/{project}/locations/{location}/intelligenceConfig"
+ plural: "intelligenceConfigs"
+ singular: "intelligenceConfig"
+ };
+
+ // The edition configuration of the `IntelligenceConfig` resource. This
+ // signifies the edition used for configuring the `IntelligenceConfig`
+ // resource and can only take the following values:
+ // `EDITION_CONFIG_UNSPECIFIED`, `INHERIT`, `DISABLED`, `STANDARD` and
+ // `TRIAL`.
+ enum EditionConfig {
+ // This is an unknown edition of the resource.
+ EDITION_CONFIG_UNSPECIFIED = 0;
+
+ // The inherited edition from the parent and filters. This is the default
+ // edition when there is no `IntelligenceConfig` setup for a GCP resource.
+ INHERIT = 1;
+
+ // The edition configuration is disabled for the `IntelligenceConfig`
+ // resource and its children. Filters are not applicable.
+ DISABLED = 2;
+
+ // The `IntelligenceConfig` resource is of STANDARD edition.
+ STANDARD = 3;
+
+ // The `IntelligenceConfig` resource is available in `TRIAL` edition. During
+ // the trial period, Cloud Storage does not charge for Storage Intelligence
+ // usage. You can specify the buckets to include in the trial period by
+ // using filters. At the end of the trial period, the `IntelligenceConfig`
+ // resource is upgraded to `STANDARD` edition.
+ TRIAL = 5;
+ }
+
+ // Filter over location and bucket using include or exclude semantics.
+ // Resources that match the include or exclude filter are exclusively included
+ // or excluded from the Storage Intelligence plan.
+ message Filter {
+ // Collection of bucket locations.
+ message CloudStorageLocations {
+ // Optional. Bucket locations. Location can be any of the Cloud Storage
+ // regions specified in lower case format. For example, `us-east1`,
+ // `us-west1`.
+ repeated string locations = 1 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Collection of buckets.
+ message CloudStorageBuckets {
+ // Optional. A regex pattern for matching bucket names. Regex should
+ // follow the syntax specified in
+ // [google/re2](https://github.com/google/re2). For example,
+ // `^sample_.*` matches all buckets of the form
+ // `gs://sample_bucket-1`, `gs://sample_bucket-2`,
+ // `gs://sample_bucket-n` but not `gs://test_sample_bucket`.
+ // If you want to match a single bucket, say `gs://sample_bucket`,
+ // use `sample_bucket`.
+ repeated string bucket_id_regexes = 1
+ [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Bucket locations to include or exclude.
+ oneof cloud_storage_locations {
+ // Bucket locations to include.
+ CloudStorageLocations included_cloud_storage_locations = 1;
+
+ // Bucket locations to exclude.
+ CloudStorageLocations excluded_cloud_storage_locations = 2;
+ }
+
+ // Buckets to include or exclude.
+ oneof cloud_storage_buckets {
+ // Buckets to include.
+ CloudStorageBuckets included_cloud_storage_buckets = 3;
+
+ // Buckets to exclude.
+ CloudStorageBuckets excluded_cloud_storage_buckets = 4;
+ }
+ }
+
+ // The effective `IntelligenceConfig` for the resource.
+ message EffectiveIntelligenceConfig {
+ // The effective edition of the `IntelligenceConfig` resource.
+ enum EffectiveEdition {
+ // This is an unknown edition of the resource.
+ EFFECTIVE_EDITION_UNSPECIFIED = 0;
+
+ // No edition.
+ NONE = 1;
+
+ // The `IntelligenceConfig` resource is of STANDARD edition.
+ STANDARD = 2;
+ }
+
+ // Output only. The `IntelligenceConfig` edition that is applicable for the
+ // resource.
+ EffectiveEdition effective_edition = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The `IntelligenceConfig` resource that is applied for the
+ // target resource. Format:
+ // `{organizations|folders|projects}/{id}/locations/{location}/intelligenceConfig`
+ string intelligence_config = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+ }
+
+ // The trial configuration of the `IntelligenceConfig` resource.
+ message TrialConfig {
+ // Output only. The time at which the trial expires.
+ google.protobuf.Timestamp expire_time = 3
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+ }
+
+ // Identifier. The name of the `IntelligenceConfig` resource associated with
+ // your organization, folder, or project.
+ //
+ // The name format varies based on the GCP resource hierarchy as follows:
+ //
+ // * For project:
+ // `projects/{project_number}/locations/global/intelligenceConfig`
+ // * For organization:
+ // `organizations/{org_id}/locations/global/intelligenceConfig`
+ // * For folder: `folders/{folder_id}/locations/global/intelligenceConfig`
+ string name = 1 [(google.api.field_behavior) = IDENTIFIER];
+
+ // Optional. The edition configuration of the `IntelligenceConfig` resource.
+ EditionConfig edition_config = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. The time at which the `IntelligenceConfig` resource is last
+ // updated.
+ google.protobuf.Timestamp update_time = 3
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. Filter over location and bucket.
+ Filter filter = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. The `IntelligenceConfig` resource that is applicable for the
+ // resource.
+ EffectiveIntelligenceConfig effective_intelligence_config = 5
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The trial configuration of the `IntelligenceConfig` resource.
+ TrialConfig trial_config = 7;
+}
+
+// Request message to update the `IntelligenceConfig` resource associated with
+// your organization.
+//
+// **IAM Permissions**:
+//
+// Requires `storage.intelligenceConfigs.update`
+// [IAM](https://cloud.google.com/iam/docs/overview#permissions) permission on
+// the organization.
+message UpdateOrganizationIntelligenceConfigRequest {
+ // Required. The `IntelligenceConfig` resource to be updated.
+ IntelligenceConfig intelligence_config = 1
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The `update_mask` that specifies the fields within the
+ // `IntelligenceConfig` resource that should be modified by this update. Only
+ // the listed fields are updated.
+ google.protobuf.FieldMask update_mask = 2
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The ID that uniquely identifies the request, preventing duplicate
+ // processing.
+ string request_id = 3 [
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+}
+
+// Request message to update the `IntelligenceConfig` resource associated with
+// your folder.
+//
+// **IAM Permissions**:
+//
+// Requires `storage.intelligenceConfigs.update`
+// [IAM](https://cloud.google.com/iam/docs/overview#permissions) permission on
+// the folder.
+message UpdateFolderIntelligenceConfigRequest {
+ // Required. The `IntelligenceConfig` resource to be updated.
+ IntelligenceConfig intelligence_config = 1
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The `update_mask` that specifies the fields within the
+ // `IntelligenceConfig` resource that should be modified by this update. Only
+ // the listed fields are updated.
+ google.protobuf.FieldMask update_mask = 2
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The ID that uniquely identifies the request, preventing duplicate
+ // processing.
+ string request_id = 3 [
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+}
+
+// Request message to update the `IntelligenceConfig` resource associated with
+// your project.
+//
+// **IAM Permissions**:
+//
+// Requires `storage.intelligenceConfigs.update`
+// [IAM](https://cloud.google.com/iam/docs/overview#permissions) permission on
+// the folder.
+message UpdateProjectIntelligenceConfigRequest {
+ // Required. The `IntelligenceConfig` resource to be updated.
+ IntelligenceConfig intelligence_config = 1
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The `update_mask` that specifies the fields within the
+ // `IntelligenceConfig` resource that should be modified by this update. Only
+ // the listed fields are updated.
+ google.protobuf.FieldMask update_mask = 2
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The ID that uniquely identifies the request, preventing duplicate
+ // processing.
+ string request_id = 3 [
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+}
+
+// Request message to get the `IntelligenceConfig` resource associated with your
+// organization.
+//
+// **IAM Permissions**
+//
+// Requires `storage.intelligenceConfigs.get`
+// [IAM](https://cloud.google.com/iam/docs/overview#permissions) permission on
+// the organization.
+message GetOrganizationIntelligenceConfigRequest {
+ // Required. The name of the `IntelligenceConfig` resource associated with
+ // your organization.
+ //
+ // Format: `organizations/{org_id}/locations/global/intelligenceConfig`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "storage.googleapis.com/IntelligenceConfig"
+ }
+ ];
+}
+
+// Request message to get the `IntelligenceConfig` resource associated with your
+// folder.
+//
+// **IAM Permissions**
+//
+// Requires `storage.intelligenceConfigs.get`
+// [IAM](https://cloud.google.com/iam/docs/overview#permissions) permission on
+// the folder.
+message GetFolderIntelligenceConfigRequest {
+ // Required. The name of the `IntelligenceConfig` resource associated with
+ // your folder.
+ //
+ // Format: `folders/{id}/locations/global/intelligenceConfig`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "storage.googleapis.com/IntelligenceConfig"
+ }
+ ];
+}
+
+// Request message to get the `IntelligenceConfig` resource associated with your
+// project.
+//
+// **IAM Permissions**:
+//
+// Requires `storage.intelligenceConfigs.get`
+// [IAM](https://cloud.google.com/iam/docs/overview#permissions) permission
+// on the project.
+message GetProjectIntelligenceConfigRequest {
+ // Required. The name of the `IntelligenceConfig` resource associated with
+ // your project.
+ //
+ // Format: `projects/{id}/locations/global/intelligenceConfig`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "storage.googleapis.com/IntelligenceConfig"
+ }
+ ];
+}
diff --git a/owl-bot-staging/google-storage-control/protos/google/storage/v2/storage.proto b/owl-bot-staging/google-storage-control/protos/google/storage/v2/storage.proto
new file mode 100644
index 00000000000..f56e4f3e0a0
--- /dev/null
+++ b/owl-bot-staging/google-storage-control/protos/google/storage/v2/storage.proto
@@ -0,0 +1,3175 @@
+// Copyright 2026 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.storage.v2;
+
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/api/routing.proto";
+import "google/iam/v1/iam_policy.proto";
+import "google/iam/v1/policy.proto";
+import "google/protobuf/duration.proto";
+import "google/protobuf/empty.proto";
+import "google/protobuf/field_mask.proto";
+import "google/protobuf/timestamp.proto";
+import "google/rpc/status.proto";
+import "google/type/date.proto";
+
+option go_package = "cloud.google.com/go/storage/internal/apiv2/storagepb;storagepb";
+option java_multiple_files = true;
+option java_outer_classname = "StorageProto";
+option java_package = "com.google.storage.v2";
+option (google.api.resource_definition) = {
+ type: "cloudkms.googleapis.com/CryptoKey"
+ pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}"
+};
+
+// ## API Overview and Naming Syntax
+//
+// The Cloud Storage gRPC API allows applications to read and write data through
+// the abstractions of buckets and objects. For a description of these
+// abstractions please see [Cloud Storage
+// documentation](https://cloud.google.com/storage/docs).
+//
+// Resources are named as follows:
+//
+// - Projects are referred to as they are defined by the Resource Manager API,
+// using strings like `projects/123456` or `projects/my-string-id`.
+// - Buckets are named using string names of the form:
+// `projects/{project}/buckets/{bucket}`.
+// For globally unique buckets, `_` might be substituted for the project.
+// - Objects are uniquely identified by their name along with the name of the
+// bucket they belong to, as separate strings in this API. For example:
+//
+// ```
+// ReadObjectRequest {
+// bucket: 'projects/_/buckets/my-bucket'
+// object: 'my-object'
+// }
+// ```
+//
+// Note that object names can contain `/` characters, which are treated as
+// any other character (no special directory semantics).
+service Storage {
+ option (google.api.default_host) = "storage.googleapis.com";
+ option (google.api.oauth_scopes) =
+ "https://www.googleapis.com/auth/cloud-platform,"
+ "https://www.googleapis.com/auth/cloud-platform.read-only,"
+ "https://www.googleapis.com/auth/devstorage.full_control,"
+ "https://www.googleapis.com/auth/devstorage.read_only,"
+ "https://www.googleapis.com/auth/devstorage.read_write";
+
+ // Permanently deletes an empty bucket.
+ // The request fails if there are any live or
+ // noncurrent objects in the bucket, but the request succeeds if the
+ // bucket only contains soft-deleted objects or incomplete uploads, such
+ // as ongoing XML API multipart uploads. Does not permanently delete
+ // soft-deleted objects.
+ //
+ // When this API is used to delete a bucket containing an object that has a
+ // soft delete policy
+ // enabled, the object becomes soft deleted, and the
+ // `softDeleteTime` and `hardDeleteTime` properties are set on the
+ // object.
+ //
+ // Objects and multipart uploads that were in the bucket at the time of
+ // deletion are also retained for the specified retention duration. When
+ // a soft-deleted bucket reaches the end of its retention duration, it
+ // is permanently deleted. The `hardDeleteTime` of the bucket always
+ // equals
+ // or exceeds the expiration time of the last soft-deleted object in the
+ // bucket.
+ //
+ // **IAM Permissions**:
+ //
+ // Requires `storage.buckets.delete` IAM permission on the bucket.
+ rpc DeleteBucket(DeleteBucketRequest) returns (google.protobuf.Empty) {
+ option (google.api.routing) = {
+ routing_parameters { field: "name" path_template: "{bucket=**}" }
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Returns metadata for the specified bucket.
+ //
+ // **IAM Permissions**:
+ //
+ // Requires `storage.buckets.get`
+ // IAM permission on
+ // the bucket. Additionally, to return specific bucket metadata, the
+ // authenticated user must have the following permissions:
+ //
+ // - To return the IAM policies: `storage.buckets.getIamPolicy`
+ // - To return the bucket IP filtering rules: `storage.buckets.getIpFilter`
+ rpc GetBucket(GetBucketRequest) returns (Bucket) {
+ option (google.api.routing) = {
+ routing_parameters { field: "name" path_template: "{bucket=**}" }
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a new bucket.
+ //
+ // **IAM Permissions**:
+ //
+ // Requires `storage.buckets.create` IAM permission on the bucket.
+ // Additionally, to enable specific bucket features, the authenticated user
+ // must have the following permissions:
+ //
+ // - To enable object retention using the `enableObjectRetention` query
+ // parameter: `storage.buckets.enableObjectRetention`
+ // - To set the bucket IP filtering rules: `storage.buckets.setIpFilter`
+ rpc CreateBucket(CreateBucketRequest) returns (Bucket) {
+ option (google.api.routing) = {
+ routing_parameters { field: "parent" path_template: "{project=**}" }
+ routing_parameters {
+ field: "bucket.project"
+ path_template: "{project=**}"
+ }
+ };
+ option (google.api.method_signature) = "parent,bucket,bucket_id";
+ }
+
+ // Retrieves a list of buckets for a given project, ordered
+ // lexicographically by name.
+ //
+ // **IAM Permissions**:
+ //
+ // Requires `storage.buckets.list` IAM permission on the bucket.
+ // Additionally, to enable specific bucket features, the authenticated
+ // user must have the following permissions:
+ //
+ // - To list the IAM policies: `storage.buckets.getIamPolicy`
+ // - To list the bucket IP filtering rules: `storage.buckets.getIpFilter`
+ rpc ListBuckets(ListBucketsRequest) returns (ListBucketsResponse) {
+ option (google.api.routing) = {
+ routing_parameters { field: "parent" path_template: "{project=**}" }
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Permanently locks the retention
+ // policy that is
+ // currently applied to the specified bucket.
+ //
+ // Caution: Locking a bucket is an
+ // irreversible action. Once you lock a bucket:
+ //
+ // - You cannot remove the retention policy from the bucket.
+ // - You cannot decrease the retention period for the policy.
+ //
+ // Once locked, you must delete the entire bucket in order to remove the
+ // bucket's retention policy. However, before you can delete the bucket, you
+ // must delete all the objects in the bucket, which is only
+ // possible if all the objects have reached the retention period set by the
+ // retention policy.
+ //
+ // **IAM Permissions**:
+ //
+ // Requires `storage.buckets.update` IAM permission on the bucket.
+ rpc LockBucketRetentionPolicy(LockBucketRetentionPolicyRequest)
+ returns (Bucket) {
+ option (google.api.routing) = {
+ routing_parameters { field: "bucket" path_template: "{bucket=**}" }
+ };
+ option (google.api.method_signature) = "bucket";
+ }
+
+ // Gets the IAM policy for a specified bucket or managed folder.
+ // The `resource` field in the request should be
+ // `projects/_/buckets/{bucket}` for a bucket, or
+ // `projects/_/buckets/{bucket}/managedFolders/{managedFolder}`
+ // for a managed folder.
+ //
+ // **IAM Permissions**:
+ //
+ // Requires `storage.buckets.getIamPolicy` on the bucket or
+ // `storage.managedFolders.getIamPolicy` IAM permission on the
+ // managed folder.
+ rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest)
+ returns (google.iam.v1.Policy) {
+ option (google.api.routing) = {
+ routing_parameters { field: "resource" path_template: "{bucket=**}" }
+ routing_parameters {
+ field: "resource"
+ path_template: "{bucket=projects/*/buckets/*}/**"
+ }
+ };
+ option (google.api.method_signature) = "resource";
+ }
+
+ // Updates an IAM policy for the specified bucket or managed folder.
+ // The `resource` field in the request should be
+ // `projects/_/buckets/{bucket}` for a bucket, or
+ // `projects/_/buckets/{bucket}/managedFolders/{managedFolder}`
+ // for a managed folder.
+ rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest)
+ returns (google.iam.v1.Policy) {
+ option (google.api.routing) = {
+ routing_parameters { field: "resource" path_template: "{bucket=**}" }
+ routing_parameters {
+ field: "resource"
+ path_template: "{bucket=projects/*/buckets/*}/**"
+ }
+ };
+ option (google.api.method_signature) = "resource,policy";
+ }
+
+ // Tests a set of permissions on the given bucket, object, or managed folder
+ // to see which, if any, are held by the caller. The `resource` field in the
+ // request should be `projects/_/buckets/{bucket}` for a bucket,
+ // `projects/_/buckets/{bucket}/objects/{object}` for an object, or
+ // `projects/_/buckets/{bucket}/managedFolders/{managedFolder}`
+ // for a managed folder.
+ rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest)
+ returns (google.iam.v1.TestIamPermissionsResponse) {
+ option (google.api.routing) = {
+ routing_parameters { field: "resource" path_template: "{bucket=**}" }
+ routing_parameters {
+ field: "resource"
+ path_template: "{bucket=projects/*/buckets/*}/objects/**"
+ }
+ routing_parameters {
+ field: "resource"
+ path_template: "{bucket=projects/*/buckets/*}/managedFolders/**"
+ }
+ };
+ option (google.api.method_signature) = "resource,permissions";
+ }
+
+ // Updates a bucket. Changes to the bucket are readable immediately after
+ // writing, but configuration changes might take time to propagate. This
+ // method supports `patch` semantics.
+ //
+ // **IAM Permissions**:
+ //
+ // Requires `storage.buckets.update` IAM permission on the bucket.
+ // Additionally, to enable specific bucket features, the authenticated user
+ // must have the following permissions:
+ //
+ // - To set bucket IP filtering rules: `storage.buckets.setIpFilter`
+ // - To update public access prevention policies or access control lists
+ // (ACLs): `storage.buckets.setIamPolicy`
+ rpc UpdateBucket(UpdateBucketRequest) returns (Bucket) {
+ option (google.api.routing) = {
+ routing_parameters { field: "bucket.name" path_template: "{bucket=**}" }
+ };
+ option (google.api.method_signature) = "bucket,update_mask";
+ }
+
+ // Concatenates a list of existing objects into a new object in the same
+ // bucket. The existing source objects are unaffected by this operation.
+ //
+ // **IAM Permissions**:
+ //
+ // Requires the `storage.objects.create` and `storage.objects.get` IAM
+ // permissions to use this method. If the new composite object
+ // overwrites an existing object, the authenticated user must also have
+ // the `storage.objects.delete` permission. If the request body includes
+ // the retention property, the authenticated user must also have the
+ // `storage.objects.setRetention` IAM permission.
+ rpc ComposeObject(ComposeObjectRequest) returns (Object) {
+ option (google.api.routing) = {
+ routing_parameters {
+ field: "destination.bucket"
+ path_template: "{bucket=**}"
+ }
+ };
+ }
+
+ // Deletes an object and its metadata. Deletions are permanent if versioning
+ // is not enabled for the bucket, or if the generation parameter is used, or
+ // if soft delete is not
+ // enabled for the bucket.
+ // When this API is used to delete an object from a bucket that has soft
+ // delete policy enabled, the object becomes soft deleted, and the
+ // `softDeleteTime` and `hardDeleteTime` properties are set on the object.
+ // This API cannot be used to permanently delete soft-deleted objects.
+ // Soft-deleted objects are permanently deleted according to their
+ // `hardDeleteTime`.
+ //
+ // You can use the [`RestoreObject`][google.storage.v2.Storage.RestoreObject]
+ // API to restore soft-deleted objects until the soft delete retention period
+ // has passed.
+ //
+ // **IAM Permissions**:
+ //
+ // Requires `storage.objects.delete` IAM permission on the bucket.
+ rpc DeleteObject(DeleteObjectRequest) returns (google.protobuf.Empty) {
+ option (google.api.routing) = {
+ routing_parameters { field: "bucket" path_template: "{bucket=**}" }
+ };
+ option (google.api.method_signature) = "bucket,object";
+ option (google.api.method_signature) = "bucket,object,generation";
+ }
+
+ // Restores a
+ // soft-deleted object.
+ // When a soft-deleted object is restored, a new copy of that object is
+ // created in the same bucket and inherits the same metadata as the
+ // soft-deleted object. The inherited metadata is the metadata that existed
+ // when the original object became soft deleted, with the following
+ // exceptions:
+ //
+ // - The `createTime` of the new object is set to the time at which the
+ // soft-deleted object was restored.
+ // - The `softDeleteTime` and `hardDeleteTime` values are cleared.
+ // - A new generation is assigned and the metageneration is reset to 1.
+ // - If the soft-deleted object was in a bucket that had Autoclass enabled,
+ // the new object is
+ // restored to Standard storage.
+ // - The restored object inherits the bucket's default object ACL, unless
+ // `copySourceAcl` is `true`.
+ //
+ // If a live object using the same name already exists in the bucket and
+ // becomes overwritten, the live object becomes a noncurrent object if Object
+ // Versioning is enabled on the bucket. If Object Versioning is not enabled,
+ // the live object becomes soft deleted.
+ //
+ // **IAM Permissions**:
+ //
+ // Requires the following IAM permissions to use this method:
+ //
+ // - `storage.objects.restore`
+ // - `storage.objects.create`
+ // - `storage.objects.delete` (only required if overwriting an existing
+ // object)
+ // - `storage.objects.getIamPolicy` (only required if `projection` is `full`
+ // and the relevant bucket
+ // has uniform bucket-level access disabled)
+ // - `storage.objects.setIamPolicy` (only required if `copySourceAcl` is
+ // `true` and the relevant
+ // bucket has uniform bucket-level access disabled)
+ rpc RestoreObject(RestoreObjectRequest) returns (Object) {
+ option (google.api.routing) = {
+ routing_parameters { field: "bucket" path_template: "{bucket=**}" }
+ };
+ option (google.api.method_signature) = "bucket,object,generation";
+ }
+
+ // Cancels an in-progress resumable upload.
+ //
+ // Any attempts to write to the resumable upload after cancelling the upload
+ // fail.
+ //
+ // The behavior for any in-progress write operations is not guaranteed;
+ // they could either complete before the cancellation or fail if the
+ // cancellation completes first.
+ rpc CancelResumableWrite(CancelResumableWriteRequest)
+ returns (CancelResumableWriteResponse) {
+ option (google.api.routing) = {
+ routing_parameters {
+ field: "upload_id"
+ path_template: "{bucket=projects/*/buckets/*}/**"
+ }
+ };
+ option (google.api.method_signature) = "upload_id";
+ }
+
+ // Retrieves object metadata.
+ //
+ // **IAM Permissions**:
+ //
+ // Requires `storage.objects.get` IAM permission on the bucket.
+ // To return object ACLs, the authenticated user must also have
+ // the `storage.objects.getIamPolicy` permission.
+ rpc GetObject(GetObjectRequest) returns (Object) {
+ option (google.api.routing) = {
+ routing_parameters { field: "bucket" path_template: "{bucket=**}" }
+ };
+ option (google.api.method_signature) = "bucket,object";
+ option (google.api.method_signature) = "bucket,object,generation";
+ }
+
+ // Retrieves object data.
+ //
+ // **IAM Permissions**:
+ //
+ // Requires `storage.objects.get` IAM permission on the bucket.
+ rpc ReadObject(ReadObjectRequest) returns (stream ReadObjectResponse) {
+ option (google.api.routing) = {
+ routing_parameters { field: "bucket" path_template: "{bucket=**}" }
+ };
+ option (google.api.method_signature) = "bucket,object";
+ option (google.api.method_signature) = "bucket,object,generation";
+ }
+
+ // Reads an object's data.
+ //
+ // This bi-directional API reads data from an object, allowing you to request
+ // multiple data ranges within a single stream, even across several messages.
+ // If an error occurs with any request, the stream closes with a relevant
+ // error code. Since you can have multiple outstanding requests, the error
+ // response includes a `BidiReadObjectError` proto in its `details` field,
+ // reporting the specific error, if any, for each pending `read_id`.
+ //
+ // **IAM Permissions**:
+ //
+ // Requires `storage.objects.get` IAM permission on the bucket.
+ //
+ rpc BidiReadObject(stream BidiReadObjectRequest)
+ returns (stream BidiReadObjectResponse) {
+ option (google.api.routing) = {
+ routing_parameters {
+ field: "read_object_spec.bucket"
+ path_template: "{bucket=**}"
+ }
+ };
+ }
+
+ // Updates an object's metadata.
+ // Equivalent to JSON API's `storage.objects.patch` method.
+ //
+ // **IAM Permissions**:
+ //
+ // Requires `storage.objects.update` IAM permission on the bucket.
+ rpc UpdateObject(UpdateObjectRequest) returns (Object) {
+ option (google.api.routing) = {
+ routing_parameters { field: "object.bucket" path_template: "{bucket=**}" }
+ };
+ option (google.api.method_signature) = "object,update_mask";
+ }
+
+ // Stores a new object and metadata.
+ //
+ // An object can be written either in a single message stream or in a
+ // resumable sequence of message streams. To write using a single stream,
+ // the client should include in the first message of the stream an
+ // `WriteObjectSpec` describing the destination bucket, object, and any
+ // preconditions. Additionally, the final message must set 'finish_write' to
+ // true, or else it is an error.
+ //
+ // For a resumable write, the client should instead call
+ // `StartResumableWrite()`, populating a `WriteObjectSpec` into that request.
+ // They should then attach the returned `upload_id` to the first message of
+ // each following call to `WriteObject`. If the stream is closed before
+ // finishing the upload (either explicitly by the client or due to a network
+ // error or an error response from the server), the client should do as
+ // follows:
+ //
+ // - Check the result Status of the stream, to determine if writing can be
+ // resumed on this stream or must be restarted from scratch (by calling
+ // `StartResumableWrite()`). The resumable errors are `DEADLINE_EXCEEDED`,
+ // `INTERNAL`, and `UNAVAILABLE`. For each case, the client should use
+ // binary exponential backoff before retrying. Additionally, writes can
+ // be resumed after `RESOURCE_EXHAUSTED` errors, but only after taking
+ // appropriate measures, which might include reducing aggregate send rate
+ // across clients and/or requesting a quota increase for your project.
+ // - If the call to `WriteObject` returns `ABORTED`, that indicates
+ // concurrent attempts to update the resumable write, caused either by
+ // multiple racing clients or by a single client where the previous
+ // request was timed out on the client side but nonetheless reached the
+ // server. In this case the client should take steps to prevent further
+ // concurrent writes. For example, increase the timeouts and stop using
+ // more than one process to perform the upload. Follow the steps below for
+ // resuming the upload.
+ // - For resumable errors, the client should call `QueryWriteStatus()` and
+ // then continue writing from the returned `persisted_size`. This might be
+ // less than the amount of data the client previously sent. Note also that
+ // it is acceptable to send data starting at an offset earlier than the
+ // returned `persisted_size`; in this case, the service skips data at
+ // offsets that were already persisted (without checking that it matches
+ // the previously written data), and write only the data starting from the
+ // persisted offset. Even though the data isn't written, it might still
+ // incur a performance cost over resuming at the correct write offset.
+ // This behavior can make client-side handling simpler in some cases.
+ // - Clients must only send data that is a multiple of 256 KiB per message,
+ // unless the object is being finished with `finish_write` set to `true`.
+ //
+ // The service does not view the object as complete until the client has
+ // sent a `WriteObjectRequest` with `finish_write` set to `true`. Sending any
+ // requests on a stream after sending a request with `finish_write` set to
+ // `true` causes an error. The client must check the response it
+ // receives to determine how much data the service is able to commit and
+ // whether the service views the object as complete.
+ //
+ // Attempting to resume an already finalized object results in an `OK`
+ // status, with a `WriteObjectResponse` containing the finalized object's
+ // metadata.
+ //
+ // Alternatively, you can use the `BidiWriteObject` operation to write an
+ // object with controls over flushing and the ability to fetch the ability to
+ // determine the current persisted size.
+ //
+ // **IAM Permissions**:
+ //
+ // Requires `storage.objects.create`
+ // IAM permission on
+ // the bucket.
+ rpc WriteObject(stream WriteObjectRequest) returns (WriteObjectResponse) {}
+
+ // Stores a new object and metadata.
+ //
+ // This is similar to the `WriteObject` call with the added support for
+ // manual flushing of persisted state, and the ability to determine current
+ // persisted size without closing the stream.
+ //
+ // The client might specify one or both of the `state_lookup` and `flush`
+ // fields in each `BidiWriteObjectRequest`. If `flush` is specified, the data
+ // written so far is persisted to storage. If `state_lookup` is specified, the
+ // service responds with a `BidiWriteObjectResponse` that contains the
+ // persisted size. If both `flush` and `state_lookup` are specified, the flush
+ // always occurs before a `state_lookup`, so that both might be set in the
+ // same request and the returned state is the state of the object
+ // post-flush. When the stream is closed, a `BidiWriteObjectResponse`
+ // is always sent to the client, regardless of the value of `state_lookup`.
+ rpc BidiWriteObject(stream BidiWriteObjectRequest)
+ returns (stream BidiWriteObjectResponse) {}
+
+ // Retrieves a list of objects matching the criteria.
+ //
+ // **IAM Permissions**:
+ //
+ // The authenticated user requires `storage.objects.list`
+ // IAM permission to use this method. To return object ACLs, the
+ // authenticated user must also
+ // have the `storage.objects.getIamPolicy` permission.
+ rpc ListObjects(ListObjectsRequest) returns (ListObjectsResponse) {
+ option (google.api.routing) = {
+ routing_parameters { field: "parent" path_template: "{bucket=**}" }
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Rewrites a source object to a destination object. Optionally overrides
+ // metadata.
+ rpc RewriteObject(RewriteObjectRequest) returns (RewriteResponse) {
+ option (google.api.routing) = {
+ routing_parameters { field: "source_bucket" }
+ routing_parameters {
+ field: "destination_bucket"
+ path_template: "{bucket=**}"
+ }
+ };
+ }
+
+ // Starts a resumable write operation. This
+ // method is part of the Resumable
+ // upload feature.
+ // This allows you to upload large objects in multiple chunks, which is more
+ // resilient to network interruptions than a single upload. The validity
+ // duration of the write operation, and the consequences of it becoming
+ // invalid, are service-dependent.
+ //
+ // **IAM Permissions**:
+ //
+ // Requires `storage.objects.create` IAM permission on the bucket.
+ rpc StartResumableWrite(StartResumableWriteRequest)
+ returns (StartResumableWriteResponse) {
+ option (google.api.routing) = {
+ routing_parameters {
+ field: "write_object_spec.resource.bucket"
+ path_template: "{bucket=**}"
+ }
+ };
+ }
+
+ // Determines the `persisted_size` of an object that is being written. This
+ // method is part of the resumable
+ // upload feature.
+ // The returned value is the size of the object that has been persisted so
+ // far. The value can be used as the `write_offset` for the next `Write()`
+ // call.
+ //
+ // If the object does not exist, meaning if it was deleted, or the
+ // first `Write()` has not yet reached the service, this method returns the
+ // error `NOT_FOUND`.
+ //
+ // This method is useful for clients that buffer data and need to know which
+ // data can be safely evicted. The client can call `QueryWriteStatus()` at any
+ // time to determine how much data has been logged for this object.
+ // For any sequence of `QueryWriteStatus()` calls for a given
+ // object name, the sequence of returned `persisted_size` values are
+ // non-decreasing.
+ rpc QueryWriteStatus(QueryWriteStatusRequest)
+ returns (QueryWriteStatusResponse) {
+ option (google.api.routing) = {
+ routing_parameters {
+ field: "upload_id"
+ path_template: "{bucket=projects/*/buckets/*}/**"
+ }
+ };
+ option (google.api.method_signature) = "upload_id";
+ }
+
+ // Moves the source object to the destination object in the same bucket.
+ // This operation moves a source object to a destination object in the
+ // same bucket by renaming the object. The move itself is an atomic
+ // transaction, ensuring all steps either complete successfully or no
+ // changes are made.
+ //
+ // **IAM Permissions**:
+ //
+ // Requires the following IAM permissions to use this method:
+ //
+ // - `storage.objects.move`
+ // - `storage.objects.create`
+ // - `storage.objects.delete` (only required if overwriting an existing
+ // object)
+ rpc MoveObject(MoveObjectRequest) returns (Object) {
+ option (google.api.routing) = {
+ routing_parameters { field: "bucket" path_template: "{bucket=**}" }
+ };
+ option (google.api.method_signature) =
+ "bucket,source_object,destination_object";
+ }
+}
+
+// Request message for [DeleteBucket][google.storage.v2.Storage.DeleteBucket].
+message DeleteBucketRequest {
+ // Required. Name of a bucket to delete.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = { type: "storage.googleapis.com/Bucket" }
+ ];
+
+ // If set, only deletes the bucket if its metageneration matches this value.
+ optional int64 if_metageneration_match = 2;
+
+ // If set, only deletes the bucket if its metageneration does not match this
+ // value.
+ optional int64 if_metageneration_not_match = 3;
+}
+
+// Request message for [GetBucket][google.storage.v2.Storage.GetBucket].
+message GetBucketRequest {
+ // Required. Name of a bucket.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = { type: "storage.googleapis.com/Bucket" }
+ ];
+
+ // If set, only gets the bucket metadata if its metageneration matches this
+ // value.
+ optional int64 if_metageneration_match = 2;
+
+ // If set, and if the bucket's current metageneration matches the specified
+ // value, the request returns an error.
+ optional int64 if_metageneration_not_match = 3;
+
+ // Mask specifying which fields to read.
+ // A `*` field might be used to indicate all fields.
+ // If no mask is specified, it defaults to all fields.
+ optional google.protobuf.FieldMask read_mask = 5;
+}
+
+// Request message for [CreateBucket][google.storage.v2.Storage.CreateBucket].
+message CreateBucketRequest {
+ // Required. The project to which this bucket belongs. This field must either
+ // be empty or `projects/_`. The project ID that owns this bucket should be
+ // specified in the `bucket.project` field.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "storage.googleapis.com/Bucket"
+ }
+ ];
+
+ // Optional. Properties of the new bucket being inserted.
+ // The name of the bucket is specified in the `bucket_id` field. Populating
+ // `bucket.name` field results in an error.
+ // The project of the bucket must be specified in the `bucket.project` field.
+ // This field must be in `projects/{projectIdentifier}` format,
+ // {projectIdentifier} can be the project ID or project number. The `parent`
+ // field must be either empty or `projects/_`.
+ Bucket bucket = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Required. The ID to use for this bucket, which becomes the final component
+ // of the bucket's resource name. For example, the value `foo` might result in
+ // a bucket with the name `projects/123456/buckets/foo`.
+ string bucket_id = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Apply a predefined set of access controls to this bucket.
+ // Valid values are `authenticatedRead`, `private`, `projectPrivate`,
+ // `publicRead`, or `publicReadWrite`.
+ string predefined_acl = 6 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Apply a predefined set of default object access controls to this
+ // bucket. Valid values are `authenticatedRead`, `bucketOwnerFullControl`,
+ // `bucketOwnerRead`, `private`, `projectPrivate`, or `publicRead`.
+ string predefined_default_object_acl = 7
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If true, enable object retention on the bucket.
+ bool enable_object_retention = 9 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for [ListBuckets][google.storage.v2.Storage.ListBuckets].
+message ListBucketsRequest {
+ // Required. The project whose buckets we are listing.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "storage.googleapis.com/Bucket"
+ }
+ ];
+
+ // Optional. Maximum number of buckets to return in a single response. The
+ // service uses this parameter or `1,000` items, whichever is smaller. If
+ // `acl` is present in the `read_mask`, the service uses this parameter of
+ // `200` items, whichever is smaller.
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A previously-returned page token representing part of the larger
+ // set of results to view.
+ string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Filter results to buckets whose names begin with this prefix.
+ string prefix = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Mask specifying which fields to read from each result.
+ // If no mask is specified, it defaults to all fields except `items.
+ // owner`, `items.acl`, and `items.default_object_acl`.
+ // `*` might be used to mean "all fields".
+ optional google.protobuf.FieldMask read_mask = 5;
+
+ // Optional. Allows listing of buckets, even if there are buckets that are
+ // unreachable.
+ bool return_partial_success = 9 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response message for [ListBuckets][google.storage.v2.Storage.ListBuckets].
+message ListBucketsResponse {
+ // The list of items.
+ repeated Bucket buckets = 1;
+
+ // The continuation token, used to page through large result sets. Provide
+ // this value in a subsequent request to return the next page of results.
+ string next_page_token = 2;
+
+ // Unreachable resources.
+ // This field can only be present if the caller specified
+ // return_partial_success to be true in the request to receive indications
+ // of temporarily missing resources.
+ // unreachable might be:
+ // unreachable = [
+ // "projects/_/buckets/bucket1",
+ // "projects/_/buckets/bucket2",
+ // "projects/_/buckets/bucket3",
+ // ]
+ repeated string unreachable = 3;
+}
+
+// Request message for
+// [LockBucketRetentionPolicy][google.storage.v2.Storage.LockBucketRetentionPolicy].
+message LockBucketRetentionPolicyRequest {
+ // Required. Name of a bucket.
+ string bucket = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = { type: "storage.googleapis.com/Bucket" }
+ ];
+
+ // Required. Makes the operation conditional on whether bucket's current
+ // metageneration matches the given value. Must be positive.
+ int64 if_metageneration_match = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request for [UpdateBucket][google.storage.v2.Storage.UpdateBucket] method.
+message UpdateBucketRequest {
+ // Required. The bucket to update.
+ // The bucket's `name` field is used to identify the bucket.
+ Bucket bucket = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // If set, the request modifies the bucket if its metageneration matches this
+ // value.
+ optional int64 if_metageneration_match = 2;
+
+ // If set, the request modifies the bucket if its metageneration doesn't
+ // match this value.
+ optional int64 if_metageneration_not_match = 3;
+
+ // Optional. Apply a predefined set of access controls to this bucket.
+ // Valid values are `authenticatedRead`, `private`, `projectPrivate`,
+ // `publicRead`, or `publicReadWrite`.
+ string predefined_acl = 8 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Apply a predefined set of default object access controls to this
+ // bucket. Valid values are `authenticatedRead`, `bucketOwnerFullControl`,
+ // `bucketOwnerRead`, `private`, `projectPrivate`, or `publicRead`.
+ string predefined_default_object_acl = 9
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Required. List of fields to be updated.
+ //
+ // To specify ALL fields, equivalent to the JSON API's "update" function,
+ // specify a single field with the value `*`. Note: not recommended. If a new
+ // field is introduced at a later time, an older client updating with the `*`
+ // might accidentally reset the new field's value.
+ //
+ // Not specifying any fields is an error.
+ google.protobuf.FieldMask update_mask = 6
+ [(google.api.field_behavior) = REQUIRED];
+}
+
+// Request message for [ComposeObject][google.storage.v2.Storage.ComposeObject].
+message ComposeObjectRequest {
+ // Description of a source object for a composition request.
+ message SourceObject {
+ // Preconditions for a source object of a composition request.
+ message ObjectPreconditions {
+ // Only perform the composition if the generation of the source object
+ // that would be used matches this value. If this value and a generation
+ // are both specified, they must be the same value or the call fails.
+ optional int64 if_generation_match = 1;
+ }
+
+ // Required. The source object's name. All source objects must reside in the
+ // same bucket.
+ string name = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The generation of this object to use as the source.
+ int64 generation = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Conditions that must be met for this operation to execute.
+ ObjectPreconditions object_preconditions = 3
+ [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Required. Properties of the resulting object.
+ Object destination = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The list of source objects that is concatenated into a single
+ // object.
+ repeated SourceObject source_objects = 2
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Apply a predefined set of access controls to the destination
+ // object. Valid values are `authenticatedRead`, `bucketOwnerFullControl`,
+ // `bucketOwnerRead`, `private`, `projectPrivate`, or `publicRead`.
+ string destination_predefined_acl = 9
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Makes the operation conditional on whether the object's current generation
+ // matches the given value. Setting to 0 makes the operation succeed only if
+ // there are no live versions of the object.
+ optional int64 if_generation_match = 4;
+
+ // Makes the operation conditional on whether the object's current
+ // metageneration matches the given value.
+ optional int64 if_metageneration_match = 5;
+
+ // Optional. Resource name of the Cloud KMS key, of the form
+ // `projects/my-project/locations/my-location/keyRings/my-kr/cryptoKeys/my-key`,
+ // that is used to encrypt the object. Overrides the object
+ // metadata's `kms_key_name` value, if any.
+ string kms_key = 6 [
+ (google.api.field_behavior) = OPTIONAL,
+ (google.api.resource_reference) = {
+ type: "cloudkms.googleapis.com/CryptoKey"
+ }
+ ];
+
+ // Optional. A set of parameters common to Storage API requests concerning an
+ // object.
+ CommonObjectRequestParams common_object_request_params = 7
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The checksums of the complete object. This is validated against
+ // the combined checksums of the component objects.
+ ObjectChecksums object_checksums = 10
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Whether the source objects should be deleted in the compose request.
+ optional bool delete_source_objects = 11;
+}
+
+// Request message for deleting an object.
+message DeleteObjectRequest {
+ // Required. Name of the bucket in which the object resides.
+ string bucket = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = { type: "storage.googleapis.com/Bucket" }
+ ];
+
+ // Required. The name of the finalized object to delete.
+ // Note: If you want to delete an unfinalized resumable upload please use
+ // `CancelResumableWrite`.
+ string object = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. If present, permanently deletes a specific revision of this
+ // object (as opposed to the latest version, the default).
+ int64 generation = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Makes the operation conditional on whether the object's current generation
+ // matches the given value. Setting to 0 makes the operation succeed only if
+ // there are no live versions of the object.
+ optional int64 if_generation_match = 5;
+
+ // Makes the operation conditional on whether the object's live generation
+ // does not match the given value. If no live object exists, the precondition
+ // fails. Setting to 0 makes the operation succeed only if there is a live
+ // version of the object.
+ optional int64 if_generation_not_match = 6;
+
+ // Makes the operation conditional on whether the object's current
+ // metageneration matches the given value.
+ optional int64 if_metageneration_match = 7;
+
+ // Makes the operation conditional on whether the object's current
+ // metageneration does not match the given value.
+ optional int64 if_metageneration_not_match = 8;
+
+ // Optional. A set of parameters common to Storage API requests concerning an
+ // object.
+ CommonObjectRequestParams common_object_request_params = 10
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for
+// [RestoreObject][google.storage.v2.Storage.RestoreObject].
+// `bucket`, `object`, and `generation` **must** be set.
+message RestoreObjectRequest {
+ // Required. Name of the bucket in which the object resides.
+ string bucket = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = { type: "storage.googleapis.com/Bucket" }
+ ];
+
+ // Required. The name of the object to restore.
+ string object = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The specific revision of the object to restore.
+ int64 generation = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Restore token used to differentiate soft-deleted objects with the
+ // same name and generation. Only applicable for hierarchical namespace
+ // buckets. This parameter is optional, and is only required in the rare case
+ // when there are multiple soft-deleted objects with the same name and
+ // generation.
+ string restore_token = 11 [(google.api.field_behavior) = OPTIONAL];
+
+ // Makes the operation conditional on whether the object's current generation
+ // matches the given value. Setting to 0 makes the operation succeed only if
+ // there are no live versions of the object.
+ optional int64 if_generation_match = 4;
+
+ // Makes the operation conditional on whether the object's live generation
+ // does not match the given value. If no live object exists, the precondition
+ // fails. Setting to 0 makes the operation succeed only if there is a live
+ // version of the object.
+ optional int64 if_generation_not_match = 5;
+
+ // Makes the operation conditional on whether the object's current
+ // metageneration matches the given value.
+ optional int64 if_metageneration_match = 6;
+
+ // Makes the operation conditional on whether the object's current
+ // metageneration does not match the given value.
+ optional int64 if_metageneration_not_match = 7;
+
+ // If false or unset, the bucket's default object ACL is used.
+ // If true, copy the source object's access controls.
+ // Return an error if bucket has UBLA enabled.
+ optional bool copy_source_acl = 9;
+
+ // Optional. A set of parameters common to Storage API requests concerning an
+ // object.
+ CommonObjectRequestParams common_object_request_params = 8
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for
+// [CancelResumableWrite][google.storage.v2.Storage.CancelResumableWrite].
+message CancelResumableWriteRequest {
+ // Required. The upload_id of the resumable upload to cancel. This should be
+ // copied from the `upload_id` field of `StartResumableWriteResponse`.
+ string upload_id = 1 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Empty response message for canceling an in-progress resumable upload, is
+// extended as needed.
+message CancelResumableWriteResponse {}
+
+// Request message for [ReadObject][google.storage.v2.Storage.ReadObject].
+message ReadObjectRequest {
+ // Required. The name of the bucket containing the object to read.
+ string bucket = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = { type: "storage.googleapis.com/Bucket" }
+ ];
+
+ // Required. The name of the object to read.
+ string object = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. If present, selects a specific revision of this object (as
+ // opposed to the latest version, the default).
+ int64 generation = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The offset for the first byte to return in the read, relative to
+ // the start of the object.
+ //
+ // A negative `read_offset` value is interpreted as the number of bytes
+ // back from the end of the object to be returned. For example, if an object's
+ // length is `15` bytes, a `ReadObjectRequest` with `read_offset` = `-5` and
+ // `read_limit` = `3` would return bytes `10` through `12` of the object.
+ // Requesting a negative offset with magnitude larger than the size of the
+ // object returns the entire object.
+ int64 read_offset = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The maximum number of `data` bytes the server is allowed to
+ // return in the sum of all `Object` messages. A `read_limit` of zero
+ // indicates that there is no limit, and a negative `read_limit` causes an
+ // error.
+ //
+ // If the stream returns fewer bytes than allowed by the `read_limit` and no
+ // error occurred, the stream includes all data from the `read_offset` to the
+ // end of the resource.
+ int64 read_limit = 5 [(google.api.field_behavior) = OPTIONAL];
+
+ // Makes the operation conditional on whether the object's current generation
+ // matches the given value. Setting to 0 makes the operation succeed only if
+ // there are no live versions of the object.
+ optional int64 if_generation_match = 6;
+
+ // Makes the operation conditional on whether the object's live generation
+ // does not match the given value. If no live object exists, the precondition
+ // fails. Setting to 0 makes the operation succeed only if there is a live
+ // version of the object.
+ optional int64 if_generation_not_match = 7;
+
+ // Makes the operation conditional on whether the object's current
+ // metageneration matches the given value.
+ optional int64 if_metageneration_match = 8;
+
+ // Makes the operation conditional on whether the object's current
+ // metageneration does not match the given value.
+ optional int64 if_metageneration_not_match = 9;
+
+ // Optional. A set of parameters common to Storage API requests concerning an
+ // object.
+ CommonObjectRequestParams common_object_request_params = 10
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Mask specifying which fields to read.
+ // The `checksummed_data` field and its children are always present.
+ // If no mask is specified, it defaults to all fields except `metadata.
+ // owner` and `metadata.acl`.
+ // `*` might be used to mean "all fields".
+ optional google.protobuf.FieldMask read_mask = 12;
+}
+
+// Request message for [GetObject][google.storage.v2.Storage.GetObject].
+message GetObjectRequest {
+ // Required. Name of the bucket in which the object resides.
+ string bucket = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = { type: "storage.googleapis.com/Bucket" }
+ ];
+
+ // Required. Name of the object.
+ string object = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. If present, selects a specific revision of this object (as
+ // opposed to the latest version, the default).
+ int64 generation = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // If true, return the soft-deleted version of this object.
+ optional bool soft_deleted = 11;
+
+ // Makes the operation conditional on whether the object's current generation
+ // matches the given value. Setting to 0 makes the operation succeed only if
+ // there are no live versions of the object.
+ optional int64 if_generation_match = 4;
+
+ // Makes the operation conditional on whether the object's live generation
+ // does not match the given value. If no live object exists, the precondition
+ // fails. Setting to 0 makes the operation succeed only if there is a live
+ // version of the object.
+ optional int64 if_generation_not_match = 5;
+
+ // Makes the operation conditional on whether the object's current
+ // metageneration matches the given value.
+ optional int64 if_metageneration_match = 6;
+
+ // Makes the operation conditional on whether the object's current
+ // metageneration does not match the given value.
+ optional int64 if_metageneration_not_match = 7;
+
+ // Optional. A set of parameters common to Storage API requests concerning an
+ // object.
+ CommonObjectRequestParams common_object_request_params = 8
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Mask specifying which fields to read.
+ // If no mask is specified, it defaults to all fields except `metadata.
+ // acl` and `metadata.owner`.
+ // `*` might be used to mean "all fields".
+ optional google.protobuf.FieldMask read_mask = 10;
+
+ // Optional. Restore token used to differentiate soft-deleted objects with the
+ // same name and generation. Only applicable for hierarchical namespace
+ // buckets and if `soft_deleted` is set to `true`. This parameter is optional,
+ // and is only required in the rare case when there are multiple soft-deleted
+ // objects with the same `name` and `generation`.
+ string restore_token = 12 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response message for [ReadObject][google.storage.v2.Storage.ReadObject].
+message ReadObjectResponse {
+ // A portion of the data for the object. The service might leave `data`
+ // empty for any given `ReadResponse`. This enables the service to inform the
+ // client that the request is still live while it is running an operation to
+ // generate more data.
+ ChecksummedData checksummed_data = 1;
+
+ // The checksums of the complete object. If the object is downloaded in full,
+ // the client should compute one of these checksums over the downloaded object
+ // and compare it against the value provided here.
+ ObjectChecksums object_checksums = 2;
+
+ // If `read_offset` and or `read_limit` is specified on the
+ // `ReadObjectRequest`, `ContentRange` is populated on the first
+ // `ReadObjectResponse` message of the read stream.
+ ContentRange content_range = 3;
+
+ // Metadata of the object whose media is being returned.
+ // Only populated in the first response in the stream.
+ Object metadata = 4;
+}
+
+// Describes the object to read in a BidiReadObject request.
+message BidiReadObjectSpec {
+ // Required. The name of the bucket containing the object to read.
+ string bucket = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = { type: "storage.googleapis.com/Bucket" }
+ ];
+
+ // Required. The name of the object to read.
+ string object = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. If present, selects a specific revision of this object (as
+ // opposed to the latest version, the default).
+ int64 generation = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Makes the operation conditional on whether the object's current generation
+ // matches the given value. Setting to 0 makes the operation succeed only if
+ // there are no live versions of the object.
+ optional int64 if_generation_match = 4;
+
+ // Makes the operation conditional on whether the object's live generation
+ // does not match the given value. If no live object exists, the precondition
+ // fails. Setting to 0 makes the operation succeed only if there is a live
+ // version of the object.
+ optional int64 if_generation_not_match = 5;
+
+ // Makes the operation conditional on whether the object's current
+ // metageneration matches the given value.
+ optional int64 if_metageneration_match = 6;
+
+ // Makes the operation conditional on whether the object's current
+ // metageneration does not match the given value.
+ optional int64 if_metageneration_not_match = 7;
+
+ // Optional. A set of parameters common to Storage API requests concerning an
+ // object.
+ CommonObjectRequestParams common_object_request_params = 8
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Mask specifying which fields to read.
+ // The `checksummed_data` field and its children are always present.
+ // If no mask is specified, it defaults to all fields except `metadata.
+ // owner` and `metadata.acl`.
+ // `*` might be used to mean "all fields".
+ // As per https://google.aip.dev/161, this field is deprecated.
+ // As an alternative, `grpc metadata` can be used:
+ optional google.protobuf.FieldMask read_mask = 12 [deprecated = true];
+
+ // The client can optionally set this field. The read handle is an optimized
+ // way of creating new streams. Read handles are generated and periodically
+ // refreshed from prior reads.
+ optional BidiReadHandle read_handle = 13;
+
+ // The routing token that influences request routing for the stream. Must be
+ // provided if a BidiReadObjectRedirectedError is returned.
+ optional string routing_token = 14;
+}
+
+// Request message for
+// [BidiReadObject][google.storage.v2.Storage.BidiReadObject].
+message BidiReadObjectRequest {
+ // Optional. The first message of each stream should set this field. If this
+ // is not the first message, an error is returned. Describes the object to
+ // read.
+ BidiReadObjectSpec read_object_spec = 1
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Provides a list of 0 or more (up to 100) ranges to read. If a
+ // single range is large enough to require multiple responses, they are
+ // delivered in increasing offset order. There are no ordering guarantees
+ // across ranges. When no ranges are provided, the response message
+ // doesn't include `ObjectRangeData`. For full object downloads, the
+ // offset and size can be set to `0`.
+ repeated ReadRange read_ranges = 8 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response message for
+// [BidiReadObject][google.storage.v2.Storage.BidiReadObject].
+message BidiReadObjectResponse {
+ // A portion of the object's data. The service might leave data
+ // empty for any given `ReadResponse`. This enables the service to inform the
+ // client that the request is still live while it is running an operation to
+ // generate more data.
+ // The service might pipeline multiple responses belonging to different read
+ // requests. Each `ObjectRangeData` entry has a `read_id` that is set
+ // to the same value as the corresponding source read request.
+ repeated ObjectRangeData object_data_ranges = 6;
+
+ // Metadata of the object whose media is being returned.
+ // Only populated in the first response in the stream and not populated when
+ // the stream is opened with a read handle.
+ Object metadata = 4;
+
+ // This field is periodically refreshed, however it might not be set in
+ // every response. It allows the client to more efficiently open subsequent
+ // bidirectional streams to the same object.
+ BidiReadHandle read_handle = 7;
+}
+
+// Error proto containing details for a redirected read. This error might be
+// attached as details for an ABORTED response to BidiReadObject.
+message BidiReadObjectRedirectedError {
+ // The read handle for the redirected read. If set, the client might use this
+ // in the BidiReadObjectSpec when retrying the read stream.
+ BidiReadHandle read_handle = 1;
+
+ // The routing token the client must use when retrying the read stream.
+ // This value must be provided in the header `x-goog-request-params`, with key
+ // `routing_token` and this string verbatim as the value.
+ optional string routing_token = 2;
+}
+
+// Error proto containing details for a redirected write. This error might be
+// attached as details for an ABORTED response to BidiWriteObject.
+message BidiWriteObjectRedirectedError {
+ // The routing token the client must use when retrying the write stream.
+ // This value must be provided in the header `x-goog-request-params`, with key
+ // `routing_token` and this string verbatim as the value.
+ optional string routing_token = 1;
+
+ // Opaque value describing a previous write. If set, the client must use this
+ // in an AppendObjectSpec first_message when retrying the write stream. If not
+ // set, clients might retry the original request.
+ optional BidiWriteHandle write_handle = 2;
+
+ // The generation of the object that triggered the redirect. This is set
+ // iff `write_handle` is set. If set, the client must use this in an
+ // `AppendObjectSpec` first_message when retrying the write stream.
+ optional int64 generation = 3;
+}
+
+// Error extension proto containing details for all outstanding reads on the
+// failed stream
+message BidiReadObjectError {
+ // The error code for each outstanding read_range
+ repeated ReadRangeError read_range_errors = 1;
+}
+
+// Error extension proto containing details for a single range read
+message ReadRangeError {
+ // The id of the corresponding read_range
+ int64 read_id = 1;
+
+ // The status which should be an enum value of [google.rpc.Code].
+ google.rpc.Status status = 2;
+}
+
+// Describes a range of bytes to read in a `BidiReadObjectRanges` request.
+message ReadRange {
+ // Required. The offset for the first byte to return in the read, relative to
+ // the start of the object.
+ //
+ // A negative read_offset value is interpreted as the number of bytes
+ // back from the end of the object to be returned. For example, if an object's
+ // length is 15 bytes, a `ReadObjectRequest` with `read_offset` = -5 and
+ // `read_length` = 3 would return bytes 10 through 12 of the object.
+ // Requesting a negative offset with magnitude larger than the size of the
+ // object is equivalent to `read_offset` = 0. A `read_offset` larger than the
+ // size of the object results in an `OutOfRange` error.
+ int64 read_offset = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The maximum number of data bytes the server is allowed to return
+ // across all response messages with the same `read_id`. A `read_length` of
+ // zero indicates to read until the resource end, and a negative `read_length`
+ // causes an `OutOfRange` error. If the stream returns fewer bytes than
+ // allowed by the `read_length` and no error occurred, the stream includes all
+ // data from the `read_offset` to the resource end.
+ int64 read_length = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Required. Read identifier provided by the client. When the client issues
+ // more than one outstanding `ReadRange` on the same stream, responses can be
+ // mapped back to their corresponding requests using this value. Clients must
+ // ensure that all outstanding requests have different read_id values. The
+ // server might close the stream with an error if this condition is not met.
+ int64 read_id = 3 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Contains data and metadata for a range of an object.
+message ObjectRangeData {
+ // A portion of the data for the object.
+ ChecksummedData checksummed_data = 1;
+
+ // The `ReadRange` describes the content being returned with `read_id` set to
+ // the corresponding `ReadObjectRequest` in the stream. Multiple
+ // `ObjectRangeData` messages might have the same read_id but increasing
+ // offsets. `ReadObjectResponse` messages with the same `read_id` are
+ // guaranteed to be delivered in increasing offset order.
+ ReadRange read_range = 2;
+
+ // If set, indicates there are no more bytes to read for the given ReadRange.
+ bool range_end = 3;
+}
+
+// `BidiReadHandle` contains a handle from a previous `BiDiReadObject`
+// invocation. The client can use this instead of `BidiReadObjectSpec` as an
+// optimized way of opening subsequent bidirectional streams to the same object.
+message BidiReadHandle {
+ // Required. Opaque value describing a previous read.
+ bytes handle = 1 [(google.api.field_behavior) = REQUIRED];
+}
+
+// `BidiWriteHandle` contains a handle from a previous `BidiWriteObject`
+// invocation. The client can use this instead of `BidiReadObjectSpec` as an
+// optimized way of opening subsequent bidirectional streams to the same object.
+message BidiWriteHandle {
+ // Required. Opaque value describing a previous write.
+ bytes handle = 1 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Describes an attempt to insert an object, possibly over multiple requests.
+message WriteObjectSpec {
+ // Required. Destination object, including its name and its metadata.
+ Object resource = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Apply a predefined set of access controls to this object.
+ // Valid values are `authenticatedRead`, `bucketOwnerFullControl`,
+ // `bucketOwnerRead`, `private`, `projectPrivate`, or `publicRead`.
+ string predefined_acl = 7 [(google.api.field_behavior) = OPTIONAL];
+
+ // Makes the operation conditional on whether the object's current
+ // generation matches the given value. Setting to `0` makes the operation
+ // succeed only if there are no live versions of the object.
+ optional int64 if_generation_match = 3;
+
+ // Makes the operation conditional on whether the object's live
+ // generation does not match the given value. If no live object exists, the
+ // precondition fails. Setting to `0` makes the operation succeed only if
+ // there is a live version of the object.
+ optional int64 if_generation_not_match = 4;
+
+ // Makes the operation conditional on whether the object's current
+ // metageneration matches the given value.
+ optional int64 if_metageneration_match = 5;
+
+ // Makes the operation conditional on whether the object's current
+ // metageneration does not match the given value.
+ optional int64 if_metageneration_not_match = 6;
+
+ // The expected final object size being uploaded.
+ // If this value is set, closing the stream after writing fewer or more than
+ // `object_size` bytes results in an `OUT_OF_RANGE` error.
+ //
+ // This situation is considered a client error, and if such an error occurs
+ // you must start the upload over from scratch, this time sending the correct
+ // number of bytes.
+ optional int64 object_size = 8;
+
+ // If `true`, the object is created in appendable mode.
+ // This field might only be set when using `BidiWriteObject`.
+ optional bool appendable = 9;
+}
+
+// Request message for [WriteObject][google.storage.v2.Storage.WriteObject].
+message WriteObjectRequest {
+ // The first message of each stream should set one of the following.
+ oneof first_message {
+ // For resumable uploads. This should be the `upload_id` returned from a
+ // call to `StartResumableWriteResponse`.
+ string upload_id = 1;
+
+ // For non-resumable uploads. Describes the overall upload, including the
+ // destination bucket and object name, preconditions, etc.
+ WriteObjectSpec write_object_spec = 2;
+ }
+
+ // Required. The offset from the beginning of the object at which the data
+ // should be written.
+ //
+ // In the first `WriteObjectRequest` of a `WriteObject()` action, it
+ // indicates the initial offset for the `Write()` call. The value **must** be
+ // equal to the `persisted_size` that a call to `QueryWriteStatus()` would
+ // return (0 if this is the first write to the object).
+ //
+ // On subsequent calls, this value **must** be no larger than the sum of the
+ // first `write_offset` and the sizes of all `data` chunks sent previously on
+ // this stream.
+ //
+ // An incorrect value causes an error.
+ int64 write_offset = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // A portion of the data for the object.
+ oneof data {
+ // The data to insert. If a crc32c checksum is provided that doesn't match
+ // the checksum computed by the service, the request fails.
+ ChecksummedData checksummed_data = 4;
+ }
+
+ // Optional. Checksums for the complete object. If the checksums computed by
+ // the service don't match the specified checksums the call fails. This field
+ // might only be provided in the first or last request (either with
+ // `first_message`, or `finish_write` set).
+ ObjectChecksums object_checksums = 6 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If `true`, this indicates that the write is complete. Sending any
+ // `WriteObjectRequest`s subsequent to one in which `finish_write` is `true`
+ // causes an error.
+ // For a non-resumable write (where the `upload_id` was not set in the first
+ // message), it is an error not to set this field in the final message of the
+ // stream.
+ bool finish_write = 7 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A set of parameters common to Cloud Storage API requests
+ // concerning an object.
+ CommonObjectRequestParams common_object_request_params = 8
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response message for
+// [WriteObject][google.storage.v2.Storage.WriteObject].
+message WriteObjectResponse {
+ // The response sets one of the following.
+ oneof write_status {
+ // The total number of bytes that have been processed for the given object
+ // from all `WriteObject` calls. Only set if the upload has not finalized.
+ int64 persisted_size = 1;
+
+ // A resource containing the metadata for the uploaded object. Only set if
+ // the upload has finalized.
+ Object resource = 2;
+ }
+
+ // If persisted_size is set, contains checksums of persisted data.
+ ObjectChecksums persisted_data_checksums = 3;
+}
+
+// Describes an attempt to append to an object, possibly over multiple requests.
+message AppendObjectSpec {
+ // Required. The name of the bucket containing the object to write.
+ string bucket = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = { type: "storage.googleapis.com/Bucket" }
+ ];
+
+ // Required. The name of the object to open for writing.
+ string object = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The generation number of the object to open for writing.
+ int64 generation = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Makes the operation conditional on whether the object's current
+ // metageneration matches the given value.
+ //
+ // Note that metageneration preconditions are only checked if `write_handle`
+ // is empty.
+ optional int64 if_metageneration_match = 4;
+
+ // Makes the operation conditional on whether the object's current
+ // metageneration does not match the given value.
+ //
+ // Note that metageneration preconditions are only checked if `write_handle`
+ // is empty.
+ optional int64 if_metageneration_not_match = 5;
+
+ // An optional routing token that influences request routing for the stream.
+ // Must be provided if a `BidiWriteObjectRedirectedError` is returned.
+ optional string routing_token = 6;
+
+ // An optional write handle returned from a previous BidiWriteObjectResponse
+ // message or a BidiWriteObjectRedirectedError error.
+ //
+ // Note that metageneration preconditions are only checked if `write_handle`
+ // is empty.
+ optional BidiWriteHandle write_handle = 7;
+}
+
+// Request message for
+// [BidiWriteObject][google.storage.v2.Storage.BidiWriteObject].
+message BidiWriteObjectRequest {
+ // The first message of each stream should set one of the following.
+ oneof first_message {
+ // For resumable uploads. This should be the `upload_id` returned from a
+ // call to `StartResumableWriteResponse`.
+ string upload_id = 1;
+
+ // For non-resumable uploads. Describes the overall upload, including the
+ // destination bucket and object name, preconditions, etc.
+ WriteObjectSpec write_object_spec = 2;
+
+ // For appendable uploads. Describes the object to append to.
+ AppendObjectSpec append_object_spec = 11;
+ }
+
+ // Required. The offset from the beginning of the object at which the data
+ // should be written.
+ //
+ // In the first `WriteObjectRequest` of a `WriteObject()` action, it
+ // indicates the initial offset for the `Write()` call. The value must be
+ // equal to the `persisted_size` that a call to `QueryWriteStatus()` would
+ // return (0 if this is the first write to the object).
+ //
+ // On subsequent calls, this value must be no larger than the sum of the
+ // first `write_offset` and the sizes of all `data` chunks sent previously on
+ // this stream.
+ //
+ // An invalid value causes an error.
+ int64 write_offset = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // A portion of the data for the object.
+ oneof data {
+ // The data to insert. If a crc32c checksum is provided that doesn't match
+ // the checksum computed by the service, the request fails.
+ ChecksummedData checksummed_data = 4;
+ }
+
+ // Optional. Checksums for the complete object. If the checksums computed by
+ // the service don't match the specified checksums the call fails. May be
+ // provided in the last request (with finish_write set). For non-appendable
+ // objects only, may also be provided in the first request.
+ ObjectChecksums object_checksums = 6 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. For each `BidiWriteObjectRequest` where `state_lookup` is `true`
+ // or the client closes the stream, the service sends a
+ // `BidiWriteObjectResponse` containing the current persisted size. The
+ // persisted size sent in responses covers all the bytes the server has
+ // persisted thus far and can be used to decide what data is safe for the
+ // client to drop. Note that the object's current size reported by the
+ // `BidiWriteObjectResponse` might lag behind the number of bytes written by
+ // the client. This field is ignored if `finish_write` is set to true.
+ bool state_lookup = 7 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Persists data written on the stream, up to and including the
+ // current message, to permanent storage. This option should be used sparingly
+ // as it might reduce performance. Ongoing writes are periodically persisted
+ // on the server even when `flush` is not set. This field is ignored if
+ // `finish_write` is set to true since there's no need to checkpoint or flush
+ // if this message completes the write.
+ bool flush = 8 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If `true`, this indicates that the write is complete. Sending any
+ // `WriteObjectRequest`s subsequent to one in which `finish_write` is `true`
+ // causes an error.
+ // For a non-resumable write (where the `upload_id` was not set in the first
+ // message), it is an error not to set this field in the final message of the
+ // stream.
+ bool finish_write = 9 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A set of parameters common to Storage API requests concerning an
+ // object.
+ CommonObjectRequestParams common_object_request_params = 10
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response message for BidiWriteObject.
+message BidiWriteObjectResponse {
+ // The response sets one of the following.
+ oneof write_status {
+ // The total number of bytes that have been processed for the given object
+ // from all `WriteObject` calls. Only set if the upload has not finalized.
+ int64 persisted_size = 1;
+
+ // A resource containing the metadata for the uploaded object. Only set if
+ // the upload has finalized.
+ Object resource = 2;
+ }
+
+ // If persisted_size is set, contains checksums of persisted data.
+ ObjectChecksums persisted_data_checksums = 4;
+
+ // An optional write handle that is returned periodically in response
+ // messages. Clients should save it for later use in establishing a new stream
+ // if a connection is interrupted.
+ optional BidiWriteHandle write_handle = 3;
+}
+
+// Request message for [ListObjects][google.storage.v2.Storage.ListObjects].
+message ListObjectsRequest {
+ // Required. Name of the bucket in which to look for objects.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = { type: "storage.googleapis.com/Bucket" }
+ ];
+
+ // Optional. Maximum number of `items` plus `prefixes` to return
+ // in a single page of responses. As duplicate `prefixes` are
+ // omitted, fewer total results might be returned than requested. The service
+ // uses this parameter or 1,000 items, whichever is smaller.
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A previously-returned page token representing part of the larger
+ // set of results to view.
+ string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If set, returns results in a directory-like mode. `items`
+ // contains only objects whose names, aside from the `prefix`, do not contain
+ // `delimiter`. Objects whose names, aside from the `prefix`, contain
+ // `delimiter` has their name, truncated after the `delimiter`, returned in
+ // `prefixes`. Duplicate `prefixes` are omitted.
+ string delimiter = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If true, objects that end in exactly one instance of `delimiter`
+ // has their metadata included in `items` in addition to
+ // `prefixes`.
+ bool include_trailing_delimiter = 5 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Filter results to objects whose names begin with this prefix.
+ string prefix = 6 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If `true`, lists all versions of an object as distinct results.
+ bool versions = 7 [(google.api.field_behavior) = OPTIONAL];
+
+ // Mask specifying which fields to read from each result.
+ // If no mask is specified, defaults to all fields except `items.acl` and
+ // `items.owner`.
+ // `*` might be used to mean all fields.
+ optional google.protobuf.FieldMask read_mask = 8;
+
+ // Optional. Filter results to objects whose names are lexicographically equal
+ // to or after `lexicographic_start`. If `lexicographic_end` is also set, the
+ // objects listed have names between `lexicographic_start` (inclusive) and
+ // `lexicographic_end` (exclusive).
+ string lexicographic_start = 10 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Filter results to objects whose names are lexicographically
+ // before `lexicographic_end`. If `lexicographic_start` is also set, the
+ // objects listed have names between `lexicographic_start` (inclusive) and
+ // `lexicographic_end` (exclusive).
+ string lexicographic_end = 11 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If true, only list all soft-deleted versions of the object.
+ // Soft delete policy is required to set this option.
+ bool soft_deleted = 12 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If true, includes folders and managed folders (besides objects)
+ // in the returned `prefixes`. Requires `delimiter` to be set to '/'.
+ bool include_folders_as_prefixes = 13
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Filter results to objects and prefixes that match this glob
+ // pattern. See [List objects using
+ // glob](https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-prefixes-using-glob)
+ // for the full syntax.
+ string match_glob = 14 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. An expression used to filter the returned objects by the
+ // `context` field. For the full syntax, see [Filter objects by contexts
+ // syntax](https://cloud.google.com/storage/docs/listing-objects#filter-by-object-contexts-syntax).
+ // If a `delimiter` is set, the returned `prefixes` are exempt from this
+ // filter.
+ string filter = 15 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request object for
+// [QueryWriteStatus][google.storage.v2.Storage.QueryWriteStatus].
+message QueryWriteStatusRequest {
+ // Required. The name of the resume token for the object whose write status is
+ // being requested.
+ string upload_id = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. A set of parameters common to Storage API requests concerning an
+ // object.
+ CommonObjectRequestParams common_object_request_params = 2
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response object for
+// [QueryWriteStatus][google.storage.v2.Storage.QueryWriteStatus].
+message QueryWriteStatusResponse {
+ // The response sets one of the following.
+ oneof write_status {
+ // The total number of bytes that have been processed for the given object
+ // from all `WriteObject` calls. This is the correct value for the
+ // 'write_offset' field to use when resuming the `WriteObject` operation.
+ // Only set if the upload has not finalized.
+ int64 persisted_size = 1;
+
+ // A resource containing the metadata for the uploaded object. Only set if
+ // the upload has finalized.
+ Object resource = 2;
+ }
+
+ // If persisted_size is set, contains checksums of persisted data.
+ ObjectChecksums persisted_data_checksums = 3;
+}
+
+// Request message for [RewriteObject][google.storage.v2.Storage.RewriteObject].
+// If the source object is encrypted using a Customer-Supplied Encryption Key
+// the key information must be provided in the
+// `copy_source_encryption_algorithm`, `copy_source_encryption_key_bytes`, and
+// `copy_source_encryption_key_sha256_bytes` fields. If the destination object
+// should be encrypted the keying information should be provided in the
+// `encryption_algorithm`, `encryption_key_bytes`, and
+// `encryption_key_sha256_bytes` fields of the
+// `common_object_request_params.customer_encryption` field.
+message RewriteObjectRequest {
+ // Required. Immutable. The name of the destination object.
+ // See the
+ // [Naming Guidelines](https://cloud.google.com/storage/docs/objects#naming).
+ // Example: `test.txt`
+ // The `name` field by itself does not uniquely identify a Cloud Storage
+ // object. A Cloud Storage object is uniquely identified by the tuple of
+ // (bucket, object, generation).
+ string destination_name = 24 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.field_behavior) = IMMUTABLE
+ ];
+
+ // Required. Immutable. The name of the bucket containing the destination
+ // object.
+ string destination_bucket = 25 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.field_behavior) = IMMUTABLE,
+ (google.api.resource_reference) = { type: "storage.googleapis.com/Bucket" }
+ ];
+
+ // Optional. The name of the Cloud KMS key that is used to encrypt the
+ // destination object. The Cloud KMS key must be located in same location as
+ // the object. If the parameter is not specified, the request uses the
+ // destination bucket's default encryption key, if any, or else the
+ // Google-managed encryption key.
+ string destination_kms_key = 27 [
+ (google.api.field_behavior) = OPTIONAL,
+ (google.api.resource_reference) = {
+ type: "cloudkms.googleapis.com/CryptoKey"
+ }
+ ];
+
+ // Optional. Properties of the destination, post-rewrite object.
+ // The `name`, `bucket` and `kms_key` fields must not be populated (these
+ // values are specified in the `destination_name`, `destination_bucket`, and
+ // `destination_kms_key` fields).
+ // If `destination` is present it is used to construct the destination
+ // object's metadata; otherwise the destination object's metadata is
+ // copied from the source object.
+ Object destination = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Required. Name of the bucket in which to find the source object.
+ string source_bucket = 2 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = { type: "storage.googleapis.com/Bucket" }
+ ];
+
+ // Required. Name of the source object.
+ string source_object = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. If present, selects a specific revision of the source object (as
+ // opposed to the latest version, the default).
+ int64 source_generation = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Include this field (from the previous rewrite response) on each
+ // rewrite request after the first one, until the rewrite response 'done' flag
+ // is true. Calls that provide a rewriteToken can omit all other request
+ // fields, but if included those fields must match the values provided in the
+ // first rewrite request.
+ string rewrite_token = 5 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Apply a predefined set of access controls to the destination
+ // object. Valid values are `authenticatedRead`, `bucketOwnerFullControl`,
+ // `bucketOwnerRead`, `private`, `projectPrivate`, or `publicRead`.
+ string destination_predefined_acl = 28
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Makes the operation conditional on whether the object's current generation
+ // matches the given value. Setting to 0 makes the operation succeed only if
+ // there are no live versions of the object.
+ optional int64 if_generation_match = 7;
+
+ // Makes the operation conditional on whether the object's live generation
+ // does not match the given value. If no live object exists, the precondition
+ // fails. Setting to 0 makes the operation succeed only if there is a live
+ // version of the object.
+ optional int64 if_generation_not_match = 8;
+
+ // Makes the operation conditional on whether the destination object's current
+ // metageneration matches the given value.
+ optional int64 if_metageneration_match = 9;
+
+ // Makes the operation conditional on whether the destination object's current
+ // metageneration does not match the given value.
+ optional int64 if_metageneration_not_match = 10;
+
+ // Makes the operation conditional on whether the source object's live
+ // generation matches the given value.
+ optional int64 if_source_generation_match = 11;
+
+ // Makes the operation conditional on whether the source object's live
+ // generation does not match the given value.
+ optional int64 if_source_generation_not_match = 12;
+
+ // Makes the operation conditional on whether the source object's current
+ // metageneration matches the given value.
+ optional int64 if_source_metageneration_match = 13;
+
+ // Makes the operation conditional on whether the source object's current
+ // metageneration does not match the given value.
+ optional int64 if_source_metageneration_not_match = 14;
+
+ // Optional. The maximum number of bytes that are rewritten per rewrite
+ // request. Most callers shouldn't need to specify this parameter - it is
+ // primarily in place to support testing. If specified the value must be an
+ // integral multiple of 1 MiB (1048576). Also, this only applies to requests
+ // where the source and destination span locations and/or storage classes.
+ // Finally, this value must not change across rewrite calls else you'll get an
+ // error that the `rewriteToken` is invalid.
+ int64 max_bytes_rewritten_per_call = 15
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The algorithm used to encrypt the source object, if any. Used if
+ // the source object was encrypted with a Customer-Supplied Encryption Key.
+ string copy_source_encryption_algorithm = 16
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The raw bytes (not base64-encoded) AES-256 encryption key used to
+ // encrypt the source object, if it was encrypted with a Customer-Supplied
+ // Encryption Key.
+ bytes copy_source_encryption_key_bytes = 21
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The raw bytes (not base64-encoded) SHA256 hash of the encryption
+ // key used to encrypt the source object, if it was encrypted with a
+ // Customer-Supplied Encryption Key.
+ bytes copy_source_encryption_key_sha256_bytes = 22
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A set of parameters common to Storage API requests concerning an
+ // object.
+ CommonObjectRequestParams common_object_request_params = 19
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The checksums of the complete object. This is used to validate
+ // the destination object after rewriting.
+ ObjectChecksums object_checksums = 29
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// A rewrite response.
+message RewriteResponse {
+ // The total bytes written so far, which can be used to provide a waiting user
+ // with a progress indicator. This property is always present in the response.
+ int64 total_bytes_rewritten = 1;
+
+ // The total size of the object being copied in bytes. This property is always
+ // present in the response.
+ int64 object_size = 2;
+
+ // `true` if the copy is finished; otherwise, `false` if
+ // the copy is in progress. This property is always present in the response.
+ bool done = 3;
+
+ // A token to use in subsequent requests to continue copying data. This token
+ // is present in the response only when there is more data to copy.
+ string rewrite_token = 4;
+
+ // A resource containing the metadata for the copied-to object. This property
+ // is present in the response only when copying completes.
+ Object resource = 5;
+}
+
+// Request message for [MoveObject][google.storage.v2.Storage.MoveObject].
+message MoveObjectRequest {
+ // Required. Name of the bucket in which the object resides.
+ string bucket = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = { type: "storage.googleapis.com/Bucket" }
+ ];
+
+ // Required. Name of the source object.
+ string source_object = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. Name of the destination object.
+ string destination_object = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Makes the operation conditional on whether the source object's
+ // current generation matches the given value. `if_source_generation_match`
+ // and `if_source_generation_not_match` conditions are mutually exclusive:
+ // it's an error for both of them to be set in the request.
+ optional int64 if_source_generation_match = 4
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Makes the operation conditional on whether the source object's
+ // current generation does not match the given value.
+ // `if_source_generation_match` and `if_source_generation_not_match`
+ // conditions are mutually exclusive: it's an error for both of them to be set
+ // in the request.
+ optional int64 if_source_generation_not_match = 5
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Makes the operation conditional on whether the source object's
+ // current metageneration matches the given value.
+ // `if_source_metageneration_match` and `if_source_metageneration_not_match`
+ // conditions are mutually exclusive: it's an error for both of them to be set
+ // in the request.
+ optional int64 if_source_metageneration_match = 6
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Makes the operation conditional on whether the source object's
+ // current metageneration does not match the given value.
+ // `if_source_metageneration_match` and `if_source_metageneration_not_match`
+ // conditions are mutually exclusive: it's an error for both of them to be set
+ // in the request.
+ optional int64 if_source_metageneration_not_match = 7
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Makes the operation conditional on whether the destination
+ // object's current generation matches the given value. Setting to 0 makes the
+ // operation succeed only if there are no live versions of the object.
+ // `if_generation_match` and `if_generation_not_match` conditions are mutually
+ // exclusive: it's an error for both of them to be set in the request.
+ optional int64 if_generation_match = 8
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Makes the operation conditional on whether the destination
+ // object's current generation does not match the given value. If no live
+ // object exists, the precondition fails. Setting to 0 makes the operation
+ // succeed only if there is a live version of the object.
+ // `if_generation_match` and `if_generation_not_match` conditions are mutually
+ // exclusive: it's an error for both of them to be set in the request.
+ optional int64 if_generation_not_match = 9
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Makes the operation conditional on whether the destination
+ // object's current metageneration matches the given value.
+ // `if_metageneration_match` and `if_metageneration_not_match` conditions are
+ // mutually exclusive: it's an error for both of them to be set in the
+ // request.
+ optional int64 if_metageneration_match = 10
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Makes the operation conditional on whether the destination
+ // object's current metageneration does not match the given value.
+ // `if_metageneration_match` and `if_metageneration_not_match` conditions are
+ // mutually exclusive: it's an error for both of them to be set in the
+ // request.
+ optional int64 if_metageneration_not_match = 11
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for
+// [StartResumableWrite][google.storage.v2.Storage.StartResumableWrite].
+message StartResumableWriteRequest {
+ // Required. Contains the information necessary to start a resumable write.
+ WriteObjectSpec write_object_spec = 1
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. A set of parameters common to Storage API requests related to an
+ // object.
+ CommonObjectRequestParams common_object_request_params = 3
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The checksums of the complete object. This is used to validate
+ // the uploaded object. For each upload, `object_checksums` can be provided
+ // when initiating a resumable upload with`StartResumableWriteRequest` or when
+ // completing a write with `WriteObjectRequest` with
+ // `finish_write` set to `true`.
+ ObjectChecksums object_checksums = 5 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response object for
+// [StartResumableWrite][google.storage.v2.Storage.StartResumableWrite].
+message StartResumableWriteResponse {
+ // A unique identifier for the initiated resumable write operation.
+ // As the ID grants write access, you should keep it confidential during
+ // the upload to prevent unauthorized access and data tampering during your
+ // upload. This ID should be included in subsequent `WriteObject` requests to
+ // upload the object data.
+ string upload_id = 1;
+}
+
+// Request message for [UpdateObject][google.storage.v2.Storage.UpdateObject].
+message UpdateObjectRequest {
+ // Required. The object to update.
+ // The object's bucket and name fields are used to identify the object to
+ // update. If present, the object's generation field selects a specific
+ // revision of this object whose metadata should be updated. Otherwise,
+ // assumes the live version of the object.
+ Object object = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Makes the operation conditional on whether the object's current generation
+ // matches the given value. Setting to 0 makes the operation succeed only if
+ // there are no live versions of the object.
+ optional int64 if_generation_match = 2;
+
+ // Makes the operation conditional on whether the object's live generation
+ // does not match the given value. If no live object exists, the precondition
+ // fails. Setting to 0 makes the operation succeed only if there is a live
+ // version of the object.
+ optional int64 if_generation_not_match = 3;
+
+ // Makes the operation conditional on whether the object's current
+ // metageneration matches the given value.
+ optional int64 if_metageneration_match = 4;
+
+ // Makes the operation conditional on whether the object's current
+ // metageneration does not match the given value.
+ optional int64 if_metageneration_not_match = 5;
+
+ // Optional. Apply a predefined set of access controls to this object.
+ // Valid values are "authenticatedRead", "bucketOwnerFullControl",
+ // "bucketOwnerRead", "private", "projectPrivate", or "publicRead".
+ string predefined_acl = 10 [(google.api.field_behavior) = OPTIONAL];
+
+ // Required. List of fields to be updated.
+ //
+ // To specify ALL fields, equivalent to the JSON API's "update" function,
+ // specify a single field with the value `*`. Note: not recommended. If a new
+ // field is introduced at a later time, an older client updating with the `*`
+ // might accidentally reset the new field's value.
+ //
+ // Not specifying any fields is an error.
+ google.protobuf.FieldMask update_mask = 7
+ [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. A set of parameters common to Storage API requests concerning an
+ // object.
+ CommonObjectRequestParams common_object_request_params = 8
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Overrides the unlocked retention config on the object.
+ bool override_unlocked_retention = 11
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Parameters that can be passed to any object request.
+message CommonObjectRequestParams {
+ // Optional. Encryption algorithm used with the Customer-Supplied Encryption
+ // Keys feature.
+ string encryption_algorithm = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Encryption key used with the Customer-Supplied Encryption Keys
+ // feature. In raw bytes format (not base64-encoded).
+ bytes encryption_key_bytes = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. SHA256 hash of encryption key used with the Customer-supplied
+ // encryption keys feature.
+ bytes encryption_key_sha256_bytes = 5
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Shared constants.
+message ServiceConstants {
+ // A collection of constant values meaningful to the Storage API.
+ enum Values {
+ option allow_alias = true;
+
+ // Unused. Proto3 requires first enum to be 0.
+ VALUES_UNSPECIFIED = 0;
+
+ // The maximum size chunk that can be returned in a single
+ // `ReadRequest`.
+ // 2 MiB.
+ MAX_READ_CHUNK_BYTES = 2097152;
+
+ // The maximum size chunk that can be sent in a single WriteObjectRequest.
+ // 2 MiB.
+ MAX_WRITE_CHUNK_BYTES = 2097152;
+
+ // The maximum size of an object in MB - whether written in a single stream
+ // or composed from multiple other objects.
+ // 5 TiB.
+ MAX_OBJECT_SIZE_MB = 5242880;
+
+ // The maximum length field name that can be sent in a single
+ // custom metadata field.
+ // 1 KiB.
+ MAX_CUSTOM_METADATA_FIELD_NAME_BYTES = 1024;
+
+ // The maximum length field value that can be sent in a single
+ // custom_metadata field.
+ // 4 KiB.
+ MAX_CUSTOM_METADATA_FIELD_VALUE_BYTES = 4096;
+
+ // The maximum total bytes that can be populated into all field names and
+ // values of the custom_metadata for one object.
+ // 8 KiB.
+ MAX_CUSTOM_METADATA_TOTAL_SIZE_BYTES = 8192;
+
+ // The maximum total bytes that can be populated into all bucket metadata
+ // fields.
+ // 20 KiB.
+ MAX_BUCKET_METADATA_TOTAL_SIZE_BYTES = 20480;
+
+ // The maximum number of NotificationConfigs that can be registered
+ // for a given bucket.
+ MAX_NOTIFICATION_CONFIGS_PER_BUCKET = 100;
+
+ // The maximum number of LifecycleRules that can be registered for a given
+ // bucket.
+ MAX_LIFECYCLE_RULES_PER_BUCKET = 100;
+
+ // The maximum number of custom attributes per NotificationConfigs.
+ MAX_NOTIFICATION_CUSTOM_ATTRIBUTES = 5;
+
+ // The maximum length of a custom attribute key included in
+ // NotificationConfig.
+ MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_KEY_LENGTH = 256;
+
+ // The maximum length of a custom attribute value included in a
+ // NotificationConfig.
+ MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_VALUE_LENGTH = 1024;
+
+ // The maximum number of key/value entries per bucket label.
+ MAX_LABELS_ENTRIES_COUNT = 64;
+
+ // The maximum character length of the key or value in a bucket
+ // label map.
+ MAX_LABELS_KEY_VALUE_LENGTH = 63;
+
+ // The maximum byte size of the key or value in a bucket label
+ // map.
+ MAX_LABELS_KEY_VALUE_BYTES = 128;
+
+ // The maximum number of object IDs that can be included in a
+ // DeleteObjectsRequest.
+ MAX_OBJECT_IDS_PER_DELETE_OBJECTS_REQUEST = 1000;
+
+ // The maximum number of days for which a token returned by the
+ // GetListObjectsSplitPoints RPC is valid.
+ SPLIT_TOKEN_MAX_VALID_DAYS = 14;
+ }
+}
+
+// A bucket.
+message Bucket {
+ option (google.api.resource) = {
+ type: "storage.googleapis.com/Bucket"
+ pattern: "projects/{project}/buckets/{bucket}"
+ plural: "buckets"
+ singular: "bucket"
+ };
+
+ // Billing properties of a bucket.
+ message Billing {
+ // Optional. When set to true, Requester Pays is enabled for this bucket.
+ bool requester_pays = 1 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Cross-Origin Response sharing (CORS) properties for a bucket.
+ // For more on Cloud Storage and CORS, see
+ // https://cloud.google.com/storage/docs/cross-origin.
+ // For more on CORS in general, see https://tools.ietf.org/html/rfc6454.
+ message Cors {
+ // Optional. The list of origins eligible to receive CORS response headers.
+ // For more information about origins, see [RFC
+ // 6454](https://tools.ietf.org/html/rfc6454). Note: `*` is permitted in the
+ // list of origins, and means `any origin`.
+ repeated string origin = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The list of HTTP methods on which to include CORS response
+ // headers,
+ // (`GET`, `OPTIONS`, `POST`, etc) Note: `*` is permitted in the list of
+ // methods, and means "any method".
+ repeated string method = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The list of HTTP headers other than the [simple response
+ // headers](https://www.w3.org/TR/cors/#simple-response-headers) to give
+ // permission for the user-agent to share across domains.
+ repeated string response_header = 3
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The value, in seconds, to return in the [Access-Control-Max-Age
+ // header](https://www.w3.org/TR/cors/#access-control-max-age-response-header)
+ // used in preflight responses.
+ int32 max_age_seconds = 4 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Encryption properties of a bucket.
+ message Encryption {
+ // Google Managed Encryption (GMEK) enforcement config of a bucket.
+ message GoogleManagedEncryptionEnforcementConfig {
+ // Restriction mode for google-managed encryption for new objects within
+ // the bucket. Valid values are: `NotRestricted` and `FullyRestricted`.
+ // If `NotRestricted` or unset, creation of new objects with
+ // google-managed encryption is allowed.
+ // If `FullyRestricted`, new objects can't be created using google-managed
+ // encryption.
+ optional string restriction_mode = 3;
+
+ // Time from which the config was effective. This is service-provided.
+ optional google.protobuf.Timestamp effective_time = 2;
+ }
+
+ // Customer Managed Encryption (CMEK) enforcement config of a bucket.
+ message CustomerManagedEncryptionEnforcementConfig {
+ // Restriction mode for customer-managed encryption for new objects within
+ // the bucket. Valid values are: `NotRestricted` and `FullyRestricted`.
+ // If `NotRestricted` or unset, creation of new objects with
+ // customer-managed encryption is allowed.
+ // If `FullyRestricted`, new objects can't be created using
+ // customer-managed encryption.
+ optional string restriction_mode = 3;
+
+ // Time from which the config was effective. This is service-provided.
+ optional google.protobuf.Timestamp effective_time = 2;
+ }
+
+ // Customer Supplied Encryption (CSEK) enforcement config of a bucket.
+ message CustomerSuppliedEncryptionEnforcementConfig {
+ // Restriction mode for customer-supplied encryption for new objects
+ // within the bucket. Valid values are: `NotRestricted` and
+ // `FullyRestricted`.
+ // If `NotRestricted` or unset, creation of new objects with
+ // customer-supplied encryption is allowed.
+ // If `FullyRestricted`, new objects can't be created using
+ // customer-supplied encryption.
+ optional string restriction_mode = 3;
+
+ // Time from which the config was effective. This is service-provided.
+ optional google.protobuf.Timestamp effective_time = 2;
+ }
+
+ // Optional. The name of the Cloud KMS key that is used to encrypt objects
+ // inserted into this bucket, if no encryption method is specified.
+ string default_kms_key = 1 [
+ (google.api.field_behavior) = OPTIONAL,
+ (google.api.resource_reference) = {
+ type: "cloudkms.googleapis.com/CryptoKey"
+ }
+ ];
+
+ // Optional. If omitted, then new objects with GMEK encryption-type is
+ // allowed. If set, then new objects created in this bucket must comply with
+ // enforcement config. Changing this has no effect on existing objects; it
+ // applies to new objects only.
+ optional GoogleManagedEncryptionEnforcementConfig
+ google_managed_encryption_enforcement_config = 2
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If omitted, then new objects with CMEK encryption-type is
+ // allowed. If set, then new objects created in this bucket must comply with
+ // enforcement config. Changing this has no effect on existing objects; it
+ // applies to new objects only.
+ optional CustomerManagedEncryptionEnforcementConfig
+ customer_managed_encryption_enforcement_config = 3
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If omitted, then new objects with CSEK encryption-type is
+ // allowed. If set, then new objects created in this bucket must comply with
+ // enforcement config. Changing this has no effect on existing objects; it
+ // applies to new objects only.
+ optional CustomerSuppliedEncryptionEnforcementConfig
+ customer_supplied_encryption_enforcement_config = 4
+ [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Bucket restriction options.
+ message IamConfig {
+ // Settings for Uniform Bucket level access.
+ // See https://cloud.google.com/storage/docs/uniform-bucket-level-access.
+ message UniformBucketLevelAccess {
+ // Optional. If set, access checks only use bucket-level IAM policies or
+ // above.
+ bool enabled = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The deadline time for changing
+ // `iam_config.uniform_bucket_level_access.enabled` from `true` to
+ // `false`. Mutable until the specified deadline is reached, but not
+ // afterward.
+ google.protobuf.Timestamp lock_time = 2
+ [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Optional. Bucket restriction options currently enforced on the bucket.
+ UniformBucketLevelAccess uniform_bucket_level_access = 1
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Whether IAM enforces public access prevention. Valid values are
+ // `enforced` or `inherited`.
+ string public_access_prevention = 3
+ [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Lifecycle properties of a bucket.
+ // For more information, see [Object Lifecycle
+ // Management](https://cloud.google.com/storage/docs/lifecycle).
+ message Lifecycle {
+ // A lifecycle Rule, combining an action to take on an object and a
+ // condition which triggers that action.
+ message Rule {
+ // An action to take on an object.
+ message Action {
+ // Optional. Type of the action. Currently, only `Delete`,
+ // `SetStorageClass`, and `AbortIncompleteMultipartUpload` are
+ // supported.
+ string type = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Target storage class. Required iff the type of the action
+ // is SetStorageClass.
+ string storage_class = 2 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // A condition of an object which triggers some action.
+ message Condition {
+ // Age of an object (in days). This condition is satisfied when an
+ // object reaches the specified age.
+ // A value of 0 indicates that all objects immediately match this
+ // condition.
+ optional int32 age_days = 1;
+
+ // Optional. This condition is satisfied when an object is created
+ // before midnight of the specified date in UTC.
+ google.type.Date created_before = 2
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Relevant only for versioned objects. If the value is
+ // `true`, this condition matches live objects; if the value
+ // is `false`, it matches archived objects.
+ optional bool is_live = 3;
+
+ // Relevant only for versioned objects. If the value is N, this
+ // condition is satisfied when there are at least N versions (including
+ // the live version) newer than this version of the object.
+ optional int32 num_newer_versions = 4;
+
+ // Optional. Objects having any of the storage classes specified by this
+ // condition are matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
+ // `NEARLINE`, `COLDLINE`, `STANDARD`, and
+ // `DURABLE_REDUCED_AVAILABILITY`.
+ repeated string matches_storage_class = 5
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Number of days that have elapsed since the custom timestamp set on an
+ // object.
+ // The value of the field must be a nonnegative integer.
+ optional int32 days_since_custom_time = 7;
+
+ // Optional. An object matches this condition if the custom timestamp
+ // set on the object is before the specified date in UTC.
+ google.type.Date custom_time_before = 8
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // This condition is relevant only for versioned objects. An object
+ // version satisfies this condition only if these many days have been
+ // passed since it became noncurrent. The value of the field must be a
+ // nonnegative integer. If it's zero, the object version becomes
+ // eligible for Lifecycle action as soon as it becomes noncurrent.
+ optional int32 days_since_noncurrent_time = 9;
+
+ // Optional. This condition is relevant only for versioned objects. An
+ // object version satisfies this condition only if it became noncurrent
+ // before the specified date in UTC.
+ google.type.Date noncurrent_time_before = 10
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. List of object name prefixes. If any prefix exactly matches
+ // the beginning of the object name, the condition evaluates to true.
+ repeated string matches_prefix = 11
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. List of object name suffixes. If any suffix exactly matches
+ // the end of the object name, the condition evaluates to true.
+ repeated string matches_suffix = 12
+ [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Optional. The action to take.
+ Action action = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The condition under which the action is taken.
+ Condition condition = 2 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Optional. A lifecycle management rule, which is made of an action to take
+ // and the condition under which the action is taken.
+ repeated Rule rule = 1 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Logging-related properties of a bucket.
+ message Logging {
+ // Optional. The destination bucket where the current bucket's logs should
+ // be placed, using path format (like `projects/123456/buckets/foo`).
+ string log_bucket = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A prefix for log object names.
+ string log_object_prefix = 2 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Object Retention related properties of a bucket.
+ message ObjectRetention {
+ // Optional. Output only. If true, object retention is enabled for the
+ // bucket.
+ bool enabled = 1 [
+ (google.api.field_behavior) = OPTIONAL,
+ (google.api.field_behavior) = OUTPUT_ONLY
+ ];
+ }
+
+ // Retention policy properties of a bucket.
+ message RetentionPolicy {
+ // Optional. Server-determined value that indicates the time from which
+ // policy was enforced and effective.
+ google.protobuf.Timestamp effective_time = 1
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Once locked, an object retention policy cannot be modified.
+ bool is_locked = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The duration that objects need to be retained. Retention
+ // duration must be greater than zero and less than 100 years. Note that
+ // enforcement of retention periods less than a day is not guaranteed. Such
+ // periods should only be used for testing purposes. Any `nanos` value
+ // specified is rounded down to the nearest second.
+ google.protobuf.Duration retention_duration = 4
+ [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Soft delete policy properties of a bucket.
+ message SoftDeletePolicy {
+ // The period of time that soft-deleted objects in the bucket must be
+ // retained and cannot be permanently deleted. The duration must be greater
+ // than or equal to 7 days and less than 1 year.
+ optional google.protobuf.Duration retention_duration = 1;
+
+ // Time from which the policy was effective. This is service-provided.
+ optional google.protobuf.Timestamp effective_time = 2;
+ }
+
+ // Properties of a bucket related to versioning.
+ // For more information about Cloud Storage versioning, see [Object
+ // versioning](https://cloud.google.com/storage/docs/object-versioning).
+ message Versioning {
+ // Optional. While set to true, versioning is fully enabled for this bucket.
+ bool enabled = 1 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Properties of a bucket related to accessing the contents as a static
+ // website. For details, see [hosting a static website using Cloud
+ // Storage](https://cloud.google.com/storage/docs/hosting-static-website).
+ message Website {
+ // Optional. If the requested object path is missing, the service ensures
+ // the path has a trailing '/', append this suffix, and attempt to retrieve
+ // the resulting object. This allows the creation of `index.html` objects to
+ // represent directory pages.
+ string main_page_suffix = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If the requested object path is missing, and any
+ // `mainPageSuffix` object is missing, if applicable, the service
+ // returns the named object from this bucket as the content for a
+ // [404 Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4)
+ // result.
+ string not_found_page = 2 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Configuration for [configurable dual-
+ // regions](https://cloud.google.com/storage/docs/locations#configurable). It
+ // should specify precisely two eligible regions within the same multi-region.
+ // For details, see
+ // [locations](https://cloud.google.com/storage/docs/locations).
+ message CustomPlacementConfig {
+ // Optional. List of locations to use for data placement.
+ repeated string data_locations = 1 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Configuration for a bucket's Autoclass feature.
+ message Autoclass {
+ // Optional. Enables Autoclass.
+ bool enabled = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. Latest instant at which the `enabled` field was set to true
+ // after being disabled/unconfigured or set to false after being enabled. If
+ // Autoclass is enabled when the bucket is created, the value of the
+ // `toggle_time` field is set to the bucket `create_time`.
+ google.protobuf.Timestamp toggle_time = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // An object in an Autoclass bucket eventually cools down to the
+ // terminal storage class if there is no access to the object.
+ // The only valid values are NEARLINE and ARCHIVE.
+ optional string terminal_storage_class = 3;
+
+ // Output only. Latest instant at which the autoclass terminal storage class
+ // was updated.
+ optional google.protobuf.Timestamp terminal_storage_class_update_time = 4
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+ }
+
+ // The [bucket IP
+ // filtering](https://cloud.google.com/storage/docs/ip-filtering-overview)
+ // configuration. Specifies the network sources that can access the bucket, as
+ // well as its underlying objects.
+ message IpFilter {
+ // The public network IP address ranges that can access the bucket and its
+ // data.
+ message PublicNetworkSource {
+ // Optional. The list of IPv4 and IPv6 cidr blocks that are allowed to
+ // operate or access the bucket and its underlying objects.
+ repeated string allowed_ip_cidr_ranges = 1
+ [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // The list of VPC networks that can access the bucket.
+ message VpcNetworkSource {
+ // Name of the network.
+ //
+ // Format: `projects/PROJECT_ID/global/networks/NETWORK_NAME`
+ optional string network = 1;
+
+ // Optional. The list of public or private IPv4 and IPv6 CIDR ranges that
+ // can access the bucket. In the CIDR IP address block, the specified IP
+ // address must be properly truncated, meaning all the host bits must be
+ // zero or else the input is considered malformed. For example,
+ // `192.0.2.0/24` is accepted but `192.0.2.1/24` is not. Similarly, for
+ // IPv6, `2001:db8::/32` is accepted whereas `2001:db8::1/32` is not.
+ repeated string allowed_ip_cidr_ranges = 2
+ [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // The state of the IP filter configuration. Valid values are `Enabled` and
+ // `Disabled`. When set to `Enabled`, IP filtering rules are applied to a
+ // bucket and all incoming requests to the bucket are evaluated against
+ // these rules. When set to `Disabled`, IP filtering rules are not applied
+ // to a bucket.
+ optional string mode = 1;
+
+ // Public IPs allowed to operate or access the bucket.
+ optional PublicNetworkSource public_network_source = 2;
+
+ // Optional. The list of network sources that are allowed to access
+ // operations on the bucket or the underlying objects.
+ repeated VpcNetworkSource vpc_network_sources = 3
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Whether or not to allow VPCs from orgs different than the
+ // bucket's parent org to access the bucket. When set to true, validations
+ // on the existence of the VPCs won't be performed. If set to false, each
+ // VPC network source is checked to belong to the same org as the bucket as
+ // well as validated for existence.
+ bool allow_cross_org_vpcs = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Whether or not to allow all P4SA access to the bucket. When set to true,
+ // IP filter config validation doesn't apply.
+ optional bool allow_all_service_agent_access = 5;
+ }
+
+ // Configuration for a bucket's hierarchical namespace feature.
+ message HierarchicalNamespace {
+ // Optional. Enables the hierarchical namespace feature.
+ bool enabled = 1 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Identifier. The name of the bucket.
+ // Format: `projects/{project}/buckets/{bucket}`
+ string name = 1 [(google.api.field_behavior) = IDENTIFIER];
+
+ // Output only. The user-chosen part of the bucket name. The `{bucket}`
+ // portion of the `name` field. For globally unique buckets, this is equal to
+ // the `bucket name` of other Cloud Storage APIs. Example: `pub`.
+ string bucket_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The etag of the bucket.
+ // If included in the metadata of an `UpdateBucketRequest`, the operation is
+ // only performed if the `etag` matches that of the bucket.
+ string etag = 29;
+
+ // Immutable. The project which owns this bucket, in the format of
+ // `projects/{projectIdentifier}`.
+ // `{projectIdentifier}` can be the project ID or project number.
+ // Output values are always in the project number format.
+ string project = 3 [
+ (google.api.field_behavior) = IMMUTABLE,
+ (google.api.resource_reference) = {
+ type: "cloudresourcemanager.googleapis.com/Project"
+ }
+ ];
+
+ // Output only. The metadata generation of this bucket.
+ int64 metageneration = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Immutable. The location of the bucket. Object data for objects in the
+ // bucket resides in physical storage within this region. Defaults to `US`.
+ // Attempting to update this field after the bucket is created results in an
+ // error.
+ string location = 5 [(google.api.field_behavior) = IMMUTABLE];
+
+ // Output only. The location type of the bucket (region, dual-region,
+ // multi-region, etc).
+ string location_type = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. The bucket's default storage class, used whenever no storageClass
+ // is specified for a newly-created object. This defines how objects in the
+ // bucket are stored and determines the SLA and the cost of storage.
+ // If this value is not specified when the bucket is created, it defaults
+ // to `STANDARD`. For more information, see [Storage
+ // classes](https://developers.google.com/storage/docs/storage-classes).
+ string storage_class = 7 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The recovery point objective for cross-region replication of the
+ // bucket. Applicable only for dual- and multi-region buckets. `DEFAULT` uses
+ // default replication. `ASYNC_TURBO` enables turbo replication, valid for
+ // dual-region buckets only. If rpo is not specified when the bucket is
+ // created, it defaults to `DEFAULT`. For more information, see [Turbo
+ // replication](https://cloud.google.com/storage/docs/availability-durability#turbo-replication).
+ string rpo = 27 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Access controls on the bucket.
+ // If `iam_config.uniform_bucket_level_access` is enabled on this bucket,
+ // requests to set, read, or modify acl is an error.
+ repeated BucketAccessControl acl = 8 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Default access controls to apply to new objects when no ACL is
+ // provided. If `iam_config.uniform_bucket_level_access` is enabled on this
+ // bucket, requests to set, read, or modify acl is an error.
+ repeated ObjectAccessControl default_object_acl = 9
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The bucket's lifecycle configuration. See [Lifecycle
+ // Management](https://developers.google.com/storage/docs/lifecycle) for more
+ // information.
+ Lifecycle lifecycle = 10 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. The creation time of the bucket.
+ google.protobuf.Timestamp create_time = 11
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. The bucket's [CORS](https://www.w3.org/TR/cors/)
+ // configuration.
+ repeated Cors cors = 12 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. The modification time of the bucket.
+ google.protobuf.Timestamp update_time = 13
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. The default value for event-based hold on newly created objects
+ // in this bucket. Event-based hold is a way to retain objects indefinitely
+ // until an event occurs, signified by the hold's release. After being
+ // released, such objects are subject to bucket-level retention (if any). One
+ // sample use case of this flag is for banks to hold loan documents for at
+ // least 3 years after loan is paid in full. Here, bucket-level retention is 3
+ // years and the event is loan being paid in full. In this example, these
+ // objects are held intact for any number of years until the event has
+ // occurred (event-based hold on the object is released) and then 3 more years
+ // after that. That means retention duration of the objects begins from the
+ // moment event-based hold transitioned from true to false. Objects under
+ // event-based hold cannot be deleted, overwritten or archived until the hold
+ // is removed.
+ bool default_event_based_hold = 14 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. User-provided labels, in key/value pairs.
+ map labels = 15 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The bucket's website config, controlling how the service behaves
+ // when accessing bucket contents as a web site. See the [Static website
+ // examples](https://cloud.google.com/storage/docs/static-website) for more
+ // information.
+ Website website = 16 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The bucket's versioning configuration.
+ Versioning versioning = 17 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The bucket's logging config, which defines the destination bucket
+ // and name prefix (if any) for the current bucket's logs.
+ Logging logging = 18 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. The owner of the bucket. This is always the project team's
+ // owner group.
+ Owner owner = 19 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. Encryption config for a bucket.
+ Encryption encryption = 20 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The bucket's billing configuration.
+ Billing billing = 21 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The bucket's retention policy. The retention policy enforces a
+ // minimum retention time for all objects contained in the bucket, based on
+ // their creation time. Any attempt to overwrite or delete objects younger
+ // than the retention period results in a `PERMISSION_DENIED` error. An
+ // unlocked retention policy can be modified or removed from the bucket via a
+ // storage.buckets.update operation. A locked retention policy cannot be
+ // removed or shortened in duration for the lifetime of the bucket.
+ // Attempting to remove or decrease period of a locked retention policy
+ // results in a `PERMISSION_DENIED` error.
+ RetentionPolicy retention_policy = 22
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The bucket's IAM configuration.
+ IamConfig iam_config = 23 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Reserved for future use.
+ bool satisfies_pzs = 25 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Configuration that, if present, specifies the data placement for
+ // a [configurable
+ // dual-region](https://cloud.google.com/storage/docs/locations#location-dr).
+ CustomPlacementConfig custom_placement_config = 26
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The bucket's Autoclass configuration. If there is no
+ // configuration, the Autoclass feature is disabled and has no effect on the
+ // bucket.
+ Autoclass autoclass = 28 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The bucket's hierarchical namespace configuration. If there is no
+ // configuration, the hierarchical namespace feature is disabled and has
+ // no effect on the bucket.
+ HierarchicalNamespace hierarchical_namespace = 32
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The bucket's soft delete policy. The soft delete policy prevents
+ // soft-deleted objects from being permanently deleted.
+ SoftDeletePolicy soft_delete_policy = 31
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The bucket's object retention configuration. Must be enabled
+ // before objects in the bucket might have retention configured.
+ ObjectRetention object_retention = 33
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The bucket's IP filter configuration.
+ optional IpFilter ip_filter = 38 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// An access-control entry.
+message BucketAccessControl {
+ // Optional. The access permission for the entity.
+ string role = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The ID of the access-control entry.
+ string id = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The entity holding the permission, in one of the following forms:
+ // * `user-{userid}`
+ // * `user-{email}`
+ // * `group-{groupid}`
+ // * `group-{email}`
+ // * `domain-{domain}`
+ // * `project-{team}-{projectnumber}`
+ // * `project-{team}-{projectid}`
+ // * `allUsers`
+ // * `allAuthenticatedUsers`
+ // Examples:
+ // * The user `liz@example.com` would be `user-liz@example.com`.
+ // * The group `example@googlegroups.com` would be
+ // `group-example@googlegroups.com`
+ // * All members of the Google Apps for Business domain `example.com` would be
+ // `domain-example.com`
+ // For project entities, `project-{team}-{projectnumber}` format is
+ // returned on response.
+ string entity = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. The alternative entity format, if exists. For project
+ // entities, `project-{team}-{projectid}` format is returned in the response.
+ string entity_alt = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. The ID for the entity, if any.
+ string entity_id = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The `etag` of the `BucketAccessControl`.
+ // If included in the metadata of an update or delete request message, the
+ // operation operation is only performed if the etag matches that of the
+ // bucket's `BucketAccessControl`.
+ string etag = 8 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The email address associated with the entity, if any.
+ string email = 5 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The domain associated with the entity, if any.
+ string domain = 6 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The project team associated with the entity, if any.
+ ProjectTeam project_team = 7 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Message used to convey content being read or written, along with an optional
+// checksum.
+message ChecksummedData {
+ // Optional. The data.
+ bytes content = 1 [ctype = CORD, (google.api.field_behavior) = OPTIONAL];
+
+ // If set, the CRC32C digest of the content field.
+ optional fixed32 crc32c = 2;
+}
+
+// Message used for storing full (not subrange) object checksums.
+message ObjectChecksums {
+ // CRC32C digest of the object data. Computed by the Cloud Storage service for
+ // all written objects.
+ // If set in a WriteObjectRequest, service validates that the stored
+ // object matches this checksum.
+ optional fixed32 crc32c = 1;
+
+ // Optional. 128 bit MD5 hash of the object data. For more information about
+ // using the MD5 hash, see [Data validation and change
+ // detection](https://cloud.google.com/storage/docs/data-validation). Not all
+ // objects provide an MD5 hash. For example, composite objects provide only
+ // crc32c hashes. This value is equivalent to running `cat object.txt |
+ // openssl md5 -binary`
+ bytes md5_hash = 2 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// The payload of a single user-defined object context.
+message ObjectCustomContextPayload {
+ // Required. The value of the object context.
+ string value = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Output only. The time at which the object context was created.
+ google.protobuf.Timestamp create_time = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time at which the object context was last updated.
+ google.protobuf.Timestamp update_time = 3
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// All contexts of an object grouped by type.
+message ObjectContexts {
+ // Optional. User-defined object contexts.
+ // The maximum key or value size is `256` characters.
+ // The maximum number of entries is `50`.
+ // The maximum total serialized size of all entries is `25KiB`.
+ map custom = 1
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Describes the customer-supplied encryption key mechanism used to store an
+// object's data at rest.
+message CustomerEncryption {
+ // Optional. The encryption algorithm.
+ string encryption_algorithm = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. SHA256 hash value of the encryption key.
+ // In raw bytes format (not base64-encoded).
+ bytes key_sha256_bytes = 3 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// An object.
+message Object {
+ // Specifies retention parameters of the object. Objects under retention
+ // cannot be deleted or overwritten until their retention expires.
+ message Retention {
+ // Retention mode values.
+ enum Mode {
+ // No specified mode. Object is not under retention.
+ MODE_UNSPECIFIED = 0;
+
+ // Retention period might be decreased or increased.
+ // The Retention configuration might be removed.
+ // The mode might be changed to locked.
+ UNLOCKED = 1;
+
+ // Retention period might be increased.
+ // The Retention configuration cannot be removed.
+ // The mode cannot be changed.
+ LOCKED = 2;
+ }
+
+ // Optional. The mode of the Retention.
+ Mode mode = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The timestamp that the object needs to be retained until.
+ // Value cannot be set in the past or more than 100 years in the future.
+ google.protobuf.Timestamp retain_until_time = 2
+ [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Immutable. The name of this object. Nearly any sequence of unicode
+ // characters is valid. See
+ // [Guidelines](https://cloud.google.com/storage/docs/objects#naming).
+ // Example: `test.txt`
+ // The `name` field by itself does not uniquely identify a Cloud Storage
+ // object. A Cloud Storage object is uniquely identified by the tuple of
+ // (bucket, object, generation).
+ string name = 1 [(google.api.field_behavior) = IMMUTABLE];
+
+ // Immutable. The name of the bucket containing this object.
+ string bucket = 2 [
+ (google.api.field_behavior) = IMMUTABLE,
+ (google.api.resource_reference) = { type: "storage.googleapis.com/Bucket" }
+ ];
+
+ // Optional. The `etag` of an object.
+ // If included in the metadata of an update or delete request message, the
+ // operation is only performed if the etag matches that of the live
+ // object.
+ string etag = 27 [(google.api.field_behavior) = OPTIONAL];
+
+ // Immutable. The content generation of this object. Used for object
+ // versioning.
+ int64 generation = 3 [(google.api.field_behavior) = IMMUTABLE];
+
+ // Output only. Restore token used to differentiate deleted objects with the
+ // same name and generation. This field is output only, and only set for
+ // deleted objects in HNS buckets.
+ optional string restore_token = 35
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The version of the metadata for this generation of this
+ // object. Used for preconditions and for detecting changes in metadata. A
+ // metageneration number is only meaningful in the context of a particular
+ // generation of a particular object.
+ int64 metageneration = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. Storage class of the object.
+ string storage_class = 5 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. Content-Length of the object data in bytes, matching
+ // [RFC 7230 §3.3.2](https://tools.ietf.org/html/rfc7230#section-3.3.2]).
+ int64 size = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. Content-Encoding of the object data, matching
+ // [RFC 7231 §3.1.2.2](https://tools.ietf.org/html/rfc7231#section-3.1.2.2)
+ string content_encoding = 7 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Content-Disposition of the object data, matching
+ // [RFC 6266](https://tools.ietf.org/html/rfc6266).
+ string content_disposition = 8 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Cache-Control directive for the object data, matching
+ // [RFC 7234 §5.2](https://tools.ietf.org/html/rfc7234#section-5.2).
+ // If omitted, and the object is accessible to all anonymous users, the
+ // default is `public, max-age=3600`.
+ string cache_control = 9 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Access controls on the object.
+ // If `iam_config.uniform_bucket_level_access` is enabled on the parent
+ // bucket, requests to set, read, or modify acl is an error.
+ repeated ObjectAccessControl acl = 10
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Content-Language of the object data, matching
+ // [RFC 7231 §3.1.3.2](https://tools.ietf.org/html/rfc7231#section-3.1.3.2).
+ string content_language = 11 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. If this object is noncurrent, this is the time when the object
+ // became noncurrent.
+ google.protobuf.Timestamp delete_time = 12
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when the object was finalized.
+ google.protobuf.Timestamp finalize_time = 36
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. Content-Type of the object data, matching
+ // [RFC 7231 §3.1.1.5](https://tools.ietf.org/html/rfc7231#section-3.1.1.5).
+ // If an object is stored without a Content-Type, it is served as
+ // `application/octet-stream`.
+ string content_type = 13 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. The creation time of the object.
+ google.protobuf.Timestamp create_time = 14
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Number of underlying components that make up this object.
+ // Components are accumulated by compose operations.
+ int32 component_count = 15 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Hashes for the data part of this object. This field is used
+ // for output only and is silently ignored if provided in requests. The
+ // checksums of the complete object regardless of data range. If the object is
+ // downloaded in full, the client should compute one of these checksums over
+ // the downloaded object and compare it against the value provided here.
+ ObjectChecksums checksums = 16 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The modification time of the object metadata.
+ // Set initially to object creation time and then updated whenever any
+ // metadata of the object changes. This includes changes made by a requester,
+ // such as modifying custom metadata, as well as changes made by Cloud Storage
+ // on behalf of a requester, such as changing the storage class based on an
+ // Object Lifecycle Configuration.
+ google.protobuf.Timestamp update_time = 17
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. Cloud KMS Key used to encrypt this object, if the object is
+ // encrypted by such a key.
+ string kms_key = 18 [
+ (google.api.field_behavior) = OPTIONAL,
+ (google.api.resource_reference) = {
+ type: "cloudkms.googleapis.com/CryptoKey"
+ }
+ ];
+
+ // Output only. The time at which the object's storage class was last changed.
+ // When the object is initially created, it is set to `time_created`.
+ google.protobuf.Timestamp update_storage_class_time = 19
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. Whether an object is under temporary hold. While this flag is set
+ // to true, the object is protected against deletion and overwrites. A common
+ // use case of this flag is regulatory investigations where objects need to be
+ // retained while the investigation is ongoing. Note that unlike event-based
+ // hold, temporary hold does not impact retention expiration time of an
+ // object.
+ bool temporary_hold = 20 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A server-determined value that specifies the earliest time that
+ // the object's retention period expires. Note 1: This field is not provided
+ // for objects with an active event-based hold, since retention expiration is
+ // unknown until the hold is removed. Note 2: This value can be provided even
+ // when temporary hold is set (so that the user can reason about policy
+ // without having to first unset the temporary hold).
+ google.protobuf.Timestamp retention_expire_time = 21
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. User-provided metadata, in key/value pairs.
+ map metadata = 22 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. User-defined or system-defined object contexts. Each object
+ // context is a key-payload pair, where the key provides the identification
+ // and the payload holds the associated value and additional metadata.
+ ObjectContexts contexts = 38 [(google.api.field_behavior) = OPTIONAL];
+
+ // Whether an object is under event-based hold.
+ // An event-based hold is a way to force the retention of an object until
+ // after some event occurs. Once the hold is released by explicitly setting
+ // this field to `false`, the object becomes subject to any bucket-level
+ // retention policy, except that the retention duration is calculated
+ // from the time the event based hold was lifted, rather than the time the
+ // object was created.
+ //
+ // In a `WriteObject` request, not setting this field implies that the value
+ // should be taken from the parent bucket's `default_event_based_hold` field.
+ // In a response, this field is always set to `true` or `false`.
+ optional bool event_based_hold = 23;
+
+ // Output only. The owner of the object. This is always the uploader of the
+ // object.
+ Owner owner = 24 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. Metadata of customer-supplied encryption key, if the object is
+ // encrypted by such a key.
+ CustomerEncryption customer_encryption = 25
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A user-specified timestamp set on an object.
+ google.protobuf.Timestamp custom_time = 26
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. This is the time when the object became soft-deleted.
+ //
+ // Soft-deleted objects are only accessible if a soft_delete_policy is
+ // enabled. Also see `hard_delete_time`.
+ optional google.protobuf.Timestamp soft_delete_time = 28
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when the object is permanently deleted.
+ //
+ // Only set when an object becomes soft-deleted with a `soft_delete_policy`.
+ // Otherwise, the object is not accessible.
+ optional google.protobuf.Timestamp hard_delete_time = 29
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. Retention configuration of this object.
+ // Might only be configured if the bucket has object retention enabled.
+ Retention retention = 30 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// An access-control entry.
+message ObjectAccessControl {
+ // Optional. The access permission for the entity. One of the following
+ // values:
+ // * `READER`
+ // * `WRITER`
+ // * `OWNER`
+ string role = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The ID of the access-control entry.
+ string id = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The entity holding the permission, in one of the following forms:
+ // * `user-{userid}`
+ // * `user-{email}`
+ // * `group-{groupid}`
+ // * `group-{email}`
+ // * `domain-{domain}`
+ // * `project-{team}-{projectnumber}`
+ // * `project-{team}-{projectid}`
+ // * `allUsers`
+ // * `allAuthenticatedUsers`
+ // Examples:
+ // * The user `liz@example.com` would be `user-liz@example.com`.
+ // * The group `example@googlegroups.com` would be
+ // `group-example@googlegroups.com`.
+ // * All members of the Google Apps for Business domain `example.com` would be
+ // `domain-example.com`.
+ // For project entities, `project-{team}-{projectnumber}` format is
+ // returned in the response.
+ string entity = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. The alternative entity format, if exists. For project
+ // entities, `project-{team}-{projectid}` format is returned in the response.
+ string entity_alt = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. The ID for the entity, if any.
+ string entity_id = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The etag of the ObjectAccessControl.
+ // If included in the metadata of an update or delete request message, the
+ // operation is only performed if the etag matches that of the live
+ // object's ObjectAccessControl.
+ string etag = 8 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The email address associated with the entity, if any.
+ string email = 5 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The domain associated with the entity, if any.
+ string domain = 6 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The project team associated with the entity, if any.
+ ProjectTeam project_team = 7 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// The result of a call to Objects.ListObjects
+message ListObjectsResponse {
+ // The list of items.
+ repeated Object objects = 1;
+
+ // The list of prefixes of objects matching-but-not-listed up to and including
+ // the requested delimiter.
+ repeated string prefixes = 2;
+
+ // The continuation token, used to page through large result sets. Provide
+ // this value in a subsequent request to return the next page of results.
+ string next_page_token = 3;
+}
+
+// Represents the Viewers, Editors, or Owners of a given project.
+message ProjectTeam {
+ // Optional. The project number.
+ string project_number = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The team.
+ string team = 2 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// The owner of a specific resource.
+message Owner {
+ // Optional. The entity, in the form `user-`*userId*.
+ string entity = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The ID for the entity.
+ string entity_id = 2 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Specifies a requested range of bytes to download.
+message ContentRange {
+ // The starting offset of the object data. This value is inclusive.
+ int64 start = 1;
+
+ // The ending offset of the object data. This value is exclusive.
+ int64 end = 2;
+
+ // The complete length of the object data.
+ int64 complete_length = 3;
+}
diff --git a/owl-bot-staging/google-storage-control/protos/protos.d.ts b/owl-bot-staging/google-storage-control/protos/protos.d.ts
new file mode 100644
index 00000000000..96eb0898c23
--- /dev/null
+++ b/owl-bot-staging/google-storage-control/protos/protos.d.ts
@@ -0,0 +1,25952 @@
+// Copyright 2026 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 storage. */
+ namespace storage {
+
+ /** Namespace control. */
+ namespace control {
+
+ /** Namespace v2. */
+ namespace v2 {
+
+ /** Represents a StorageControl */
+ class StorageControl extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new StorageControl 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 StorageControl 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): StorageControl;
+
+ /**
+ * Calls CreateFolder.
+ * @param request CreateFolderRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Folder
+ */
+ public createFolder(request: google.storage.control.v2.ICreateFolderRequest, callback: google.storage.control.v2.StorageControl.CreateFolderCallback): void;
+
+ /**
+ * Calls CreateFolder.
+ * @param request CreateFolderRequest message or plain object
+ * @returns Promise
+ */
+ public createFolder(request: google.storage.control.v2.ICreateFolderRequest): Promise;
+
+ /**
+ * Calls DeleteFolder.
+ * @param request DeleteFolderRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteFolder(request: google.storage.control.v2.IDeleteFolderRequest, callback: google.storage.control.v2.StorageControl.DeleteFolderCallback): void;
+
+ /**
+ * Calls DeleteFolder.
+ * @param request DeleteFolderRequest message or plain object
+ * @returns Promise
+ */
+ public deleteFolder(request: google.storage.control.v2.IDeleteFolderRequest): Promise;
+
+ /**
+ * Calls GetFolder.
+ * @param request GetFolderRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Folder
+ */
+ public getFolder(request: google.storage.control.v2.IGetFolderRequest, callback: google.storage.control.v2.StorageControl.GetFolderCallback): void;
+
+ /**
+ * Calls GetFolder.
+ * @param request GetFolderRequest message or plain object
+ * @returns Promise
+ */
+ public getFolder(request: google.storage.control.v2.IGetFolderRequest): Promise;
+
+ /**
+ * Calls ListFolders.
+ * @param request ListFoldersRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListFoldersResponse
+ */
+ public listFolders(request: google.storage.control.v2.IListFoldersRequest, callback: google.storage.control.v2.StorageControl.ListFoldersCallback): void;
+
+ /**
+ * Calls ListFolders.
+ * @param request ListFoldersRequest message or plain object
+ * @returns Promise
+ */
+ public listFolders(request: google.storage.control.v2.IListFoldersRequest): Promise;
+
+ /**
+ * Calls RenameFolder.
+ * @param request RenameFolderRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public renameFolder(request: google.storage.control.v2.IRenameFolderRequest, callback: google.storage.control.v2.StorageControl.RenameFolderCallback): void;
+
+ /**
+ * Calls RenameFolder.
+ * @param request RenameFolderRequest message or plain object
+ * @returns Promise
+ */
+ public renameFolder(request: google.storage.control.v2.IRenameFolderRequest): Promise;
+
+ /**
+ * Calls DeleteFolderRecursive.
+ * @param request DeleteFolderRecursiveRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteFolderRecursive(request: google.storage.control.v2.IDeleteFolderRecursiveRequest, callback: google.storage.control.v2.StorageControl.DeleteFolderRecursiveCallback): void;
+
+ /**
+ * Calls DeleteFolderRecursive.
+ * @param request DeleteFolderRecursiveRequest message or plain object
+ * @returns Promise
+ */
+ public deleteFolderRecursive(request: google.storage.control.v2.IDeleteFolderRecursiveRequest): Promise;
+
+ /**
+ * Calls GetStorageLayout.
+ * @param request GetStorageLayoutRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and StorageLayout
+ */
+ public getStorageLayout(request: google.storage.control.v2.IGetStorageLayoutRequest, callback: google.storage.control.v2.StorageControl.GetStorageLayoutCallback): void;
+
+ /**
+ * Calls GetStorageLayout.
+ * @param request GetStorageLayoutRequest message or plain object
+ * @returns Promise
+ */
+ public getStorageLayout(request: google.storage.control.v2.IGetStorageLayoutRequest): Promise;
+
+ /**
+ * Calls CreateManagedFolder.
+ * @param request CreateManagedFolderRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ManagedFolder
+ */
+ public createManagedFolder(request: google.storage.control.v2.ICreateManagedFolderRequest, callback: google.storage.control.v2.StorageControl.CreateManagedFolderCallback): void;
+
+ /**
+ * Calls CreateManagedFolder.
+ * @param request CreateManagedFolderRequest message or plain object
+ * @returns Promise
+ */
+ public createManagedFolder(request: google.storage.control.v2.ICreateManagedFolderRequest): Promise;
+
+ /**
+ * Calls DeleteManagedFolder.
+ * @param request DeleteManagedFolderRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteManagedFolder(request: google.storage.control.v2.IDeleteManagedFolderRequest, callback: google.storage.control.v2.StorageControl.DeleteManagedFolderCallback): void;
+
+ /**
+ * Calls DeleteManagedFolder.
+ * @param request DeleteManagedFolderRequest message or plain object
+ * @returns Promise
+ */
+ public deleteManagedFolder(request: google.storage.control.v2.IDeleteManagedFolderRequest): Promise;
+
+ /**
+ * Calls GetManagedFolder.
+ * @param request GetManagedFolderRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ManagedFolder
+ */
+ public getManagedFolder(request: google.storage.control.v2.IGetManagedFolderRequest, callback: google.storage.control.v2.StorageControl.GetManagedFolderCallback): void;
+
+ /**
+ * Calls GetManagedFolder.
+ * @param request GetManagedFolderRequest message or plain object
+ * @returns Promise
+ */
+ public getManagedFolder(request: google.storage.control.v2.IGetManagedFolderRequest): Promise;
+
+ /**
+ * Calls ListManagedFolders.
+ * @param request ListManagedFoldersRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListManagedFoldersResponse
+ */
+ public listManagedFolders(request: google.storage.control.v2.IListManagedFoldersRequest, callback: google.storage.control.v2.StorageControl.ListManagedFoldersCallback): void;
+
+ /**
+ * Calls ListManagedFolders.
+ * @param request ListManagedFoldersRequest message or plain object
+ * @returns Promise
+ */
+ public listManagedFolders(request: google.storage.control.v2.IListManagedFoldersRequest): Promise;
+
+ /**
+ * Calls CreateAnywhereCache.
+ * @param request CreateAnywhereCacheRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createAnywhereCache(request: google.storage.control.v2.ICreateAnywhereCacheRequest, callback: google.storage.control.v2.StorageControl.CreateAnywhereCacheCallback): void;
+
+ /**
+ * Calls CreateAnywhereCache.
+ * @param request CreateAnywhereCacheRequest message or plain object
+ * @returns Promise
+ */
+ public createAnywhereCache(request: google.storage.control.v2.ICreateAnywhereCacheRequest): Promise;
+
+ /**
+ * Calls UpdateAnywhereCache.
+ * @param request UpdateAnywhereCacheRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateAnywhereCache(request: google.storage.control.v2.IUpdateAnywhereCacheRequest, callback: google.storage.control.v2.StorageControl.UpdateAnywhereCacheCallback): void;
+
+ /**
+ * Calls UpdateAnywhereCache.
+ * @param request UpdateAnywhereCacheRequest message or plain object
+ * @returns Promise
+ */
+ public updateAnywhereCache(request: google.storage.control.v2.IUpdateAnywhereCacheRequest): Promise;
+
+ /**
+ * Calls DisableAnywhereCache.
+ * @param request DisableAnywhereCacheRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and AnywhereCache
+ */
+ public disableAnywhereCache(request: google.storage.control.v2.IDisableAnywhereCacheRequest, callback: google.storage.control.v2.StorageControl.DisableAnywhereCacheCallback): void;
+
+ /**
+ * Calls DisableAnywhereCache.
+ * @param request DisableAnywhereCacheRequest message or plain object
+ * @returns Promise
+ */
+ public disableAnywhereCache(request: google.storage.control.v2.IDisableAnywhereCacheRequest): Promise;
+
+ /**
+ * Calls PauseAnywhereCache.
+ * @param request PauseAnywhereCacheRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and AnywhereCache
+ */
+ public pauseAnywhereCache(request: google.storage.control.v2.IPauseAnywhereCacheRequest, callback: google.storage.control.v2.StorageControl.PauseAnywhereCacheCallback): void;
+
+ /**
+ * Calls PauseAnywhereCache.
+ * @param request PauseAnywhereCacheRequest message or plain object
+ * @returns Promise
+ */
+ public pauseAnywhereCache(request: google.storage.control.v2.IPauseAnywhereCacheRequest): Promise;
+
+ /**
+ * Calls ResumeAnywhereCache.
+ * @param request ResumeAnywhereCacheRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and AnywhereCache
+ */
+ public resumeAnywhereCache(request: google.storage.control.v2.IResumeAnywhereCacheRequest, callback: google.storage.control.v2.StorageControl.ResumeAnywhereCacheCallback): void;
+
+ /**
+ * Calls ResumeAnywhereCache.
+ * @param request ResumeAnywhereCacheRequest message or plain object
+ * @returns Promise
+ */
+ public resumeAnywhereCache(request: google.storage.control.v2.IResumeAnywhereCacheRequest): Promise;
+
+ /**
+ * Calls GetAnywhereCache.
+ * @param request GetAnywhereCacheRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and AnywhereCache
+ */
+ public getAnywhereCache(request: google.storage.control.v2.IGetAnywhereCacheRequest, callback: google.storage.control.v2.StorageControl.GetAnywhereCacheCallback): void;
+
+ /**
+ * Calls GetAnywhereCache.
+ * @param request GetAnywhereCacheRequest message or plain object
+ * @returns Promise
+ */
+ public getAnywhereCache(request: google.storage.control.v2.IGetAnywhereCacheRequest): Promise;
+
+ /**
+ * Calls ListAnywhereCaches.
+ * @param request ListAnywhereCachesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListAnywhereCachesResponse
+ */
+ public listAnywhereCaches(request: google.storage.control.v2.IListAnywhereCachesRequest, callback: google.storage.control.v2.StorageControl.ListAnywhereCachesCallback): void;
+
+ /**
+ * Calls ListAnywhereCaches.
+ * @param request ListAnywhereCachesRequest message or plain object
+ * @returns Promise
+ */
+ public listAnywhereCaches(request: google.storage.control.v2.IListAnywhereCachesRequest): Promise;
+
+ /**
+ * Calls GetProjectIntelligenceConfig.
+ * @param request GetProjectIntelligenceConfigRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and IntelligenceConfig
+ */
+ public getProjectIntelligenceConfig(request: google.storage.control.v2.IGetProjectIntelligenceConfigRequest, callback: google.storage.control.v2.StorageControl.GetProjectIntelligenceConfigCallback): void;
+
+ /**
+ * Calls GetProjectIntelligenceConfig.
+ * @param request GetProjectIntelligenceConfigRequest message or plain object
+ * @returns Promise
+ */
+ public getProjectIntelligenceConfig(request: google.storage.control.v2.IGetProjectIntelligenceConfigRequest): Promise;
+
+ /**
+ * Calls UpdateProjectIntelligenceConfig.
+ * @param request UpdateProjectIntelligenceConfigRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and IntelligenceConfig
+ */
+ public updateProjectIntelligenceConfig(request: google.storage.control.v2.IUpdateProjectIntelligenceConfigRequest, callback: google.storage.control.v2.StorageControl.UpdateProjectIntelligenceConfigCallback): void;
+
+ /**
+ * Calls UpdateProjectIntelligenceConfig.
+ * @param request UpdateProjectIntelligenceConfigRequest message or plain object
+ * @returns Promise
+ */
+ public updateProjectIntelligenceConfig(request: google.storage.control.v2.IUpdateProjectIntelligenceConfigRequest): Promise;
+
+ /**
+ * Calls GetFolderIntelligenceConfig.
+ * @param request GetFolderIntelligenceConfigRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and IntelligenceConfig
+ */
+ public getFolderIntelligenceConfig(request: google.storage.control.v2.IGetFolderIntelligenceConfigRequest, callback: google.storage.control.v2.StorageControl.GetFolderIntelligenceConfigCallback): void;
+
+ /**
+ * Calls GetFolderIntelligenceConfig.
+ * @param request GetFolderIntelligenceConfigRequest message or plain object
+ * @returns Promise
+ */
+ public getFolderIntelligenceConfig(request: google.storage.control.v2.IGetFolderIntelligenceConfigRequest): Promise;
+
+ /**
+ * Calls UpdateFolderIntelligenceConfig.
+ * @param request UpdateFolderIntelligenceConfigRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and IntelligenceConfig
+ */
+ public updateFolderIntelligenceConfig(request: google.storage.control.v2.IUpdateFolderIntelligenceConfigRequest, callback: google.storage.control.v2.StorageControl.UpdateFolderIntelligenceConfigCallback): void;
+
+ /**
+ * Calls UpdateFolderIntelligenceConfig.
+ * @param request UpdateFolderIntelligenceConfigRequest message or plain object
+ * @returns Promise
+ */
+ public updateFolderIntelligenceConfig(request: google.storage.control.v2.IUpdateFolderIntelligenceConfigRequest): Promise;
+
+ /**
+ * Calls GetOrganizationIntelligenceConfig.
+ * @param request GetOrganizationIntelligenceConfigRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and IntelligenceConfig
+ */
+ public getOrganizationIntelligenceConfig(request: google.storage.control.v2.IGetOrganizationIntelligenceConfigRequest, callback: google.storage.control.v2.StorageControl.GetOrganizationIntelligenceConfigCallback): void;
+
+ /**
+ * Calls GetOrganizationIntelligenceConfig.
+ * @param request GetOrganizationIntelligenceConfigRequest message or plain object
+ * @returns Promise
+ */
+ public getOrganizationIntelligenceConfig(request: google.storage.control.v2.IGetOrganizationIntelligenceConfigRequest): Promise;
+
+ /**
+ * Calls UpdateOrganizationIntelligenceConfig.
+ * @param request UpdateOrganizationIntelligenceConfigRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and IntelligenceConfig
+ */
+ public updateOrganizationIntelligenceConfig(request: google.storage.control.v2.IUpdateOrganizationIntelligenceConfigRequest, callback: google.storage.control.v2.StorageControl.UpdateOrganizationIntelligenceConfigCallback): void;
+
+ /**
+ * Calls UpdateOrganizationIntelligenceConfig.
+ * @param request UpdateOrganizationIntelligenceConfigRequest message or plain object
+ * @returns Promise
+ */
+ public updateOrganizationIntelligenceConfig(request: google.storage.control.v2.IUpdateOrganizationIntelligenceConfigRequest): Promise;
+
+ /**
+ * Calls GetIamPolicy.
+ * @param request GetIamPolicyRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Policy
+ */
+ public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest, callback: google.storage.control.v2.StorageControl.GetIamPolicyCallback): void;
+
+ /**
+ * Calls GetIamPolicy.
+ * @param request GetIamPolicyRequest message or plain object
+ * @returns Promise
+ */
+ public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest): Promise;
+
+ /**
+ * Calls SetIamPolicy.
+ * @param request SetIamPolicyRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Policy
+ */
+ public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest, callback: google.storage.control.v2.StorageControl.SetIamPolicyCallback): void;
+
+ /**
+ * Calls SetIamPolicy.
+ * @param request SetIamPolicyRequest message or plain object
+ * @returns Promise
+ */
+ public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest): Promise;
+
+ /**
+ * Calls TestIamPermissions.
+ * @param request TestIamPermissionsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and TestIamPermissionsResponse
+ */
+ public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest, callback: google.storage.control.v2.StorageControl.TestIamPermissionsCallback): void;
+
+ /**
+ * Calls TestIamPermissions.
+ * @param request TestIamPermissionsRequest message or plain object
+ * @returns Promise
+ */
+ public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest): Promise;
+ }
+
+ namespace StorageControl {
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|createFolder}.
+ * @param error Error, if any
+ * @param [response] Folder
+ */
+ type CreateFolderCallback = (error: (Error|null), response?: google.storage.control.v2.Folder) => void;
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|deleteFolder}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteFolderCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|getFolder}.
+ * @param error Error, if any
+ * @param [response] Folder
+ */
+ type GetFolderCallback = (error: (Error|null), response?: google.storage.control.v2.Folder) => void;
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|listFolders}.
+ * @param error Error, if any
+ * @param [response] ListFoldersResponse
+ */
+ type ListFoldersCallback = (error: (Error|null), response?: google.storage.control.v2.ListFoldersResponse) => void;
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|renameFolder}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type RenameFolderCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|deleteFolderRecursive}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteFolderRecursiveCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|getStorageLayout}.
+ * @param error Error, if any
+ * @param [response] StorageLayout
+ */
+ type GetStorageLayoutCallback = (error: (Error|null), response?: google.storage.control.v2.StorageLayout) => void;
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|createManagedFolder}.
+ * @param error Error, if any
+ * @param [response] ManagedFolder
+ */
+ type CreateManagedFolderCallback = (error: (Error|null), response?: google.storage.control.v2.ManagedFolder) => void;
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|deleteManagedFolder}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteManagedFolderCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|getManagedFolder}.
+ * @param error Error, if any
+ * @param [response] ManagedFolder
+ */
+ type GetManagedFolderCallback = (error: (Error|null), response?: google.storage.control.v2.ManagedFolder) => void;
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|listManagedFolders}.
+ * @param error Error, if any
+ * @param [response] ListManagedFoldersResponse
+ */
+ type ListManagedFoldersCallback = (error: (Error|null), response?: google.storage.control.v2.ListManagedFoldersResponse) => void;
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|createAnywhereCache}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateAnywhereCacheCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|updateAnywhereCache}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateAnywhereCacheCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|disableAnywhereCache}.
+ * @param error Error, if any
+ * @param [response] AnywhereCache
+ */
+ type DisableAnywhereCacheCallback = (error: (Error|null), response?: google.storage.control.v2.AnywhereCache) => void;
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|pauseAnywhereCache}.
+ * @param error Error, if any
+ * @param [response] AnywhereCache
+ */
+ type PauseAnywhereCacheCallback = (error: (Error|null), response?: google.storage.control.v2.AnywhereCache) => void;
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|resumeAnywhereCache}.
+ * @param error Error, if any
+ * @param [response] AnywhereCache
+ */
+ type ResumeAnywhereCacheCallback = (error: (Error|null), response?: google.storage.control.v2.AnywhereCache) => void;
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|getAnywhereCache}.
+ * @param error Error, if any
+ * @param [response] AnywhereCache
+ */
+ type GetAnywhereCacheCallback = (error: (Error|null), response?: google.storage.control.v2.AnywhereCache) => void;
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|listAnywhereCaches}.
+ * @param error Error, if any
+ * @param [response] ListAnywhereCachesResponse
+ */
+ type ListAnywhereCachesCallback = (error: (Error|null), response?: google.storage.control.v2.ListAnywhereCachesResponse) => void;
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|getProjectIntelligenceConfig}.
+ * @param error Error, if any
+ * @param [response] IntelligenceConfig
+ */
+ type GetProjectIntelligenceConfigCallback = (error: (Error|null), response?: google.storage.control.v2.IntelligenceConfig) => void;
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|updateProjectIntelligenceConfig}.
+ * @param error Error, if any
+ * @param [response] IntelligenceConfig
+ */
+ type UpdateProjectIntelligenceConfigCallback = (error: (Error|null), response?: google.storage.control.v2.IntelligenceConfig) => void;
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|getFolderIntelligenceConfig}.
+ * @param error Error, if any
+ * @param [response] IntelligenceConfig
+ */
+ type GetFolderIntelligenceConfigCallback = (error: (Error|null), response?: google.storage.control.v2.IntelligenceConfig) => void;
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|updateFolderIntelligenceConfig}.
+ * @param error Error, if any
+ * @param [response] IntelligenceConfig
+ */
+ type UpdateFolderIntelligenceConfigCallback = (error: (Error|null), response?: google.storage.control.v2.IntelligenceConfig) => void;
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|getOrganizationIntelligenceConfig}.
+ * @param error Error, if any
+ * @param [response] IntelligenceConfig
+ */
+ type GetOrganizationIntelligenceConfigCallback = (error: (Error|null), response?: google.storage.control.v2.IntelligenceConfig) => void;
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|updateOrganizationIntelligenceConfig}.
+ * @param error Error, if any
+ * @param [response] IntelligenceConfig
+ */
+ type UpdateOrganizationIntelligenceConfigCallback = (error: (Error|null), response?: google.storage.control.v2.IntelligenceConfig) => void;
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|getIamPolicy}.
+ * @param error Error, if any
+ * @param [response] Policy
+ */
+ type GetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void;
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|setIamPolicy}.
+ * @param error Error, if any
+ * @param [response] Policy
+ */
+ type SetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void;
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|testIamPermissions}.
+ * @param error Error, if any
+ * @param [response] TestIamPermissionsResponse
+ */
+ type TestIamPermissionsCallback = (error: (Error|null), response?: google.iam.v1.TestIamPermissionsResponse) => void;
+ }
+
+ /** Properties of a PendingRenameInfo. */
+ interface IPendingRenameInfo {
+
+ /** PendingRenameInfo operation */
+ operation?: (string|null);
+ }
+
+ /** Represents a PendingRenameInfo. */
+ class PendingRenameInfo implements IPendingRenameInfo {
+
+ /**
+ * Constructs a new PendingRenameInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.IPendingRenameInfo);
+
+ /** PendingRenameInfo operation. */
+ public operation: string;
+
+ /**
+ * Creates a new PendingRenameInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PendingRenameInfo instance
+ */
+ public static create(properties?: google.storage.control.v2.IPendingRenameInfo): google.storage.control.v2.PendingRenameInfo;
+
+ /**
+ * Encodes the specified PendingRenameInfo message. Does not implicitly {@link google.storage.control.v2.PendingRenameInfo.verify|verify} messages.
+ * @param message PendingRenameInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.IPendingRenameInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PendingRenameInfo message, length delimited. Does not implicitly {@link google.storage.control.v2.PendingRenameInfo.verify|verify} messages.
+ * @param message PendingRenameInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.IPendingRenameInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PendingRenameInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PendingRenameInfo
+ * @throws {Error} If the payload is 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.storage.control.v2.PendingRenameInfo;
+
+ /**
+ * Decodes a PendingRenameInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PendingRenameInfo
+ * @throws {Error} If the 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.storage.control.v2.PendingRenameInfo;
+
+ /**
+ * Verifies a PendingRenameInfo message.
+ * @param message Plain 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 PendingRenameInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PendingRenameInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.PendingRenameInfo;
+
+ /**
+ * Creates a plain object from a PendingRenameInfo message. Also converts values to other types if specified.
+ * @param message PendingRenameInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.PendingRenameInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PendingRenameInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PendingRenameInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Folder. */
+ interface IFolder {
+
+ /** Folder name */
+ name?: (string|null);
+
+ /** Folder metageneration */
+ metageneration?: (number|Long|string|null);
+
+ /** Folder createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Folder updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Folder pendingRenameInfo */
+ pendingRenameInfo?: (google.storage.control.v2.IPendingRenameInfo|null);
+ }
+
+ /** Represents a Folder. */
+ class Folder implements IFolder {
+
+ /**
+ * Constructs a new Folder.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.IFolder);
+
+ /** Folder name. */
+ public name: string;
+
+ /** Folder metageneration. */
+ public metageneration: (number|Long|string);
+
+ /** Folder createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Folder updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Folder pendingRenameInfo. */
+ public pendingRenameInfo?: (google.storage.control.v2.IPendingRenameInfo|null);
+
+ /**
+ * Creates a new Folder instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Folder instance
+ */
+ public static create(properties?: google.storage.control.v2.IFolder): google.storage.control.v2.Folder;
+
+ /**
+ * Encodes the specified Folder message. Does not implicitly {@link google.storage.control.v2.Folder.verify|verify} messages.
+ * @param message Folder message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.IFolder, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Folder message, length delimited. Does not implicitly {@link google.storage.control.v2.Folder.verify|verify} messages.
+ * @param message Folder message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.IFolder, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Folder message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Folder
+ * @throws {Error} If the payload is 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.storage.control.v2.Folder;
+
+ /**
+ * Decodes a Folder message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Folder
+ * @throws {Error} If the 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.storage.control.v2.Folder;
+
+ /**
+ * Verifies a Folder message.
+ * @param message Plain 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 Folder message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Folder
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.Folder;
+
+ /**
+ * Creates a plain object from a Folder message. Also converts values to other types if specified.
+ * @param message Folder
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.Folder, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Folder to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Folder
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetFolderRequest. */
+ interface IGetFolderRequest {
+
+ /** GetFolderRequest name */
+ name?: (string|null);
+
+ /** GetFolderRequest ifMetagenerationMatch */
+ ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** GetFolderRequest ifMetagenerationNotMatch */
+ ifMetagenerationNotMatch?: (number|Long|string|null);
+
+ /** GetFolderRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a GetFolderRequest. */
+ class GetFolderRequest implements IGetFolderRequest {
+
+ /**
+ * Constructs a new GetFolderRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.IGetFolderRequest);
+
+ /** GetFolderRequest name. */
+ public name: string;
+
+ /** GetFolderRequest ifMetagenerationMatch. */
+ public ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** GetFolderRequest ifMetagenerationNotMatch. */
+ public ifMetagenerationNotMatch?: (number|Long|string|null);
+
+ /** GetFolderRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new GetFolderRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetFolderRequest instance
+ */
+ public static create(properties?: google.storage.control.v2.IGetFolderRequest): google.storage.control.v2.GetFolderRequest;
+
+ /**
+ * Encodes the specified GetFolderRequest message. Does not implicitly {@link google.storage.control.v2.GetFolderRequest.verify|verify} messages.
+ * @param message GetFolderRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.IGetFolderRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetFolderRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.GetFolderRequest.verify|verify} messages.
+ * @param message GetFolderRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.IGetFolderRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetFolderRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetFolderRequest
+ * @throws {Error} If the payload is 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.storage.control.v2.GetFolderRequest;
+
+ /**
+ * Decodes a GetFolderRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetFolderRequest
+ * @throws {Error} If the 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.storage.control.v2.GetFolderRequest;
+
+ /**
+ * Verifies a GetFolderRequest message.
+ * @param message Plain 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 GetFolderRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetFolderRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.GetFolderRequest;
+
+ /**
+ * Creates a plain object from a GetFolderRequest message. Also converts values to other types if specified.
+ * @param message GetFolderRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.GetFolderRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetFolderRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetFolderRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateFolderRequest. */
+ interface ICreateFolderRequest {
+
+ /** CreateFolderRequest parent */
+ parent?: (string|null);
+
+ /** CreateFolderRequest folder */
+ folder?: (google.storage.control.v2.IFolder|null);
+
+ /** CreateFolderRequest folderId */
+ folderId?: (string|null);
+
+ /** CreateFolderRequest recursive */
+ recursive?: (boolean|null);
+
+ /** CreateFolderRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a CreateFolderRequest. */
+ class CreateFolderRequest implements ICreateFolderRequest {
+
+ /**
+ * Constructs a new CreateFolderRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.ICreateFolderRequest);
+
+ /** CreateFolderRequest parent. */
+ public parent: string;
+
+ /** CreateFolderRequest folder. */
+ public folder?: (google.storage.control.v2.IFolder|null);
+
+ /** CreateFolderRequest folderId. */
+ public folderId: string;
+
+ /** CreateFolderRequest recursive. */
+ public recursive: boolean;
+
+ /** CreateFolderRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new CreateFolderRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateFolderRequest instance
+ */
+ public static create(properties?: google.storage.control.v2.ICreateFolderRequest): google.storage.control.v2.CreateFolderRequest;
+
+ /**
+ * Encodes the specified CreateFolderRequest message. Does not implicitly {@link google.storage.control.v2.CreateFolderRequest.verify|verify} messages.
+ * @param message CreateFolderRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.ICreateFolderRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateFolderRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.CreateFolderRequest.verify|verify} messages.
+ * @param message CreateFolderRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.ICreateFolderRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateFolderRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateFolderRequest
+ * @throws {Error} If the payload is 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.storage.control.v2.CreateFolderRequest;
+
+ /**
+ * Decodes a CreateFolderRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateFolderRequest
+ * @throws {Error} If the 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.storage.control.v2.CreateFolderRequest;
+
+ /**
+ * Verifies a CreateFolderRequest message.
+ * @param message Plain 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 CreateFolderRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateFolderRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.CreateFolderRequest;
+
+ /**
+ * Creates a plain object from a CreateFolderRequest message. Also converts values to other types if specified.
+ * @param message CreateFolderRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.CreateFolderRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateFolderRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateFolderRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteFolderRequest. */
+ interface IDeleteFolderRequest {
+
+ /** DeleteFolderRequest name */
+ name?: (string|null);
+
+ /** DeleteFolderRequest ifMetagenerationMatch */
+ ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** DeleteFolderRequest ifMetagenerationNotMatch */
+ ifMetagenerationNotMatch?: (number|Long|string|null);
+
+ /** DeleteFolderRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a DeleteFolderRequest. */
+ class DeleteFolderRequest implements IDeleteFolderRequest {
+
+ /**
+ * Constructs a new DeleteFolderRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.IDeleteFolderRequest);
+
+ /** DeleteFolderRequest name. */
+ public name: string;
+
+ /** DeleteFolderRequest ifMetagenerationMatch. */
+ public ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** DeleteFolderRequest ifMetagenerationNotMatch. */
+ public ifMetagenerationNotMatch?: (number|Long|string|null);
+
+ /** DeleteFolderRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new DeleteFolderRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteFolderRequest instance
+ */
+ public static create(properties?: google.storage.control.v2.IDeleteFolderRequest): google.storage.control.v2.DeleteFolderRequest;
+
+ /**
+ * Encodes the specified DeleteFolderRequest message. Does not implicitly {@link google.storage.control.v2.DeleteFolderRequest.verify|verify} messages.
+ * @param message DeleteFolderRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.IDeleteFolderRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteFolderRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.DeleteFolderRequest.verify|verify} messages.
+ * @param message DeleteFolderRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.IDeleteFolderRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteFolderRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteFolderRequest
+ * @throws {Error} If the payload is 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.storage.control.v2.DeleteFolderRequest;
+
+ /**
+ * Decodes a DeleteFolderRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteFolderRequest
+ * @throws {Error} If the 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.storage.control.v2.DeleteFolderRequest;
+
+ /**
+ * Verifies a DeleteFolderRequest message.
+ * @param message Plain 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 DeleteFolderRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteFolderRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.DeleteFolderRequest;
+
+ /**
+ * Creates a plain object from a DeleteFolderRequest message. Also converts values to other types if specified.
+ * @param message DeleteFolderRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.DeleteFolderRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteFolderRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteFolderRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListFoldersRequest. */
+ interface IListFoldersRequest {
+
+ /** ListFoldersRequest parent */
+ parent?: (string|null);
+
+ /** ListFoldersRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListFoldersRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListFoldersRequest prefix */
+ prefix?: (string|null);
+
+ /** ListFoldersRequest delimiter */
+ delimiter?: (string|null);
+
+ /** ListFoldersRequest lexicographicStart */
+ lexicographicStart?: (string|null);
+
+ /** ListFoldersRequest lexicographicEnd */
+ lexicographicEnd?: (string|null);
+
+ /** ListFoldersRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a ListFoldersRequest. */
+ class ListFoldersRequest implements IListFoldersRequest {
+
+ /**
+ * Constructs a new ListFoldersRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.IListFoldersRequest);
+
+ /** ListFoldersRequest parent. */
+ public parent: string;
+
+ /** ListFoldersRequest pageSize. */
+ public pageSize: number;
+
+ /** ListFoldersRequest pageToken. */
+ public pageToken: string;
+
+ /** ListFoldersRequest prefix. */
+ public prefix: string;
+
+ /** ListFoldersRequest delimiter. */
+ public delimiter: string;
+
+ /** ListFoldersRequest lexicographicStart. */
+ public lexicographicStart: string;
+
+ /** ListFoldersRequest lexicographicEnd. */
+ public lexicographicEnd: string;
+
+ /** ListFoldersRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new ListFoldersRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListFoldersRequest instance
+ */
+ public static create(properties?: google.storage.control.v2.IListFoldersRequest): google.storage.control.v2.ListFoldersRequest;
+
+ /**
+ * Encodes the specified ListFoldersRequest message. Does not implicitly {@link google.storage.control.v2.ListFoldersRequest.verify|verify} messages.
+ * @param message ListFoldersRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.IListFoldersRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListFoldersRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.ListFoldersRequest.verify|verify} messages.
+ * @param message ListFoldersRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.IListFoldersRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListFoldersRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListFoldersRequest
+ * @throws {Error} If the payload is 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.storage.control.v2.ListFoldersRequest;
+
+ /**
+ * Decodes a ListFoldersRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListFoldersRequest
+ * @throws {Error} If the 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.storage.control.v2.ListFoldersRequest;
+
+ /**
+ * Verifies a ListFoldersRequest message.
+ * @param message Plain 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 ListFoldersRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListFoldersRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.ListFoldersRequest;
+
+ /**
+ * Creates a plain object from a ListFoldersRequest message. Also converts values to other types if specified.
+ * @param message ListFoldersRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.ListFoldersRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListFoldersRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListFoldersRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListFoldersResponse. */
+ interface IListFoldersResponse {
+
+ /** ListFoldersResponse folders */
+ folders?: (google.storage.control.v2.IFolder[]|null);
+
+ /** ListFoldersResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListFoldersResponse. */
+ class ListFoldersResponse implements IListFoldersResponse {
+
+ /**
+ * Constructs a new ListFoldersResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.IListFoldersResponse);
+
+ /** ListFoldersResponse folders. */
+ public folders: google.storage.control.v2.IFolder[];
+
+ /** ListFoldersResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListFoldersResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListFoldersResponse instance
+ */
+ public static create(properties?: google.storage.control.v2.IListFoldersResponse): google.storage.control.v2.ListFoldersResponse;
+
+ /**
+ * Encodes the specified ListFoldersResponse message. Does not implicitly {@link google.storage.control.v2.ListFoldersResponse.verify|verify} messages.
+ * @param message ListFoldersResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.IListFoldersResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListFoldersResponse message, length delimited. Does not implicitly {@link google.storage.control.v2.ListFoldersResponse.verify|verify} messages.
+ * @param message ListFoldersResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.IListFoldersResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListFoldersResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListFoldersResponse
+ * @throws {Error} If the payload is 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.storage.control.v2.ListFoldersResponse;
+
+ /**
+ * Decodes a ListFoldersResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListFoldersResponse
+ * @throws {Error} If the 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.storage.control.v2.ListFoldersResponse;
+
+ /**
+ * Verifies a ListFoldersResponse message.
+ * @param message Plain 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 ListFoldersResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListFoldersResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.ListFoldersResponse;
+
+ /**
+ * Creates a plain object from a ListFoldersResponse message. Also converts values to other types if specified.
+ * @param message ListFoldersResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.ListFoldersResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListFoldersResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListFoldersResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RenameFolderRequest. */
+ interface IRenameFolderRequest {
+
+ /** RenameFolderRequest name */
+ name?: (string|null);
+
+ /** RenameFolderRequest destinationFolderId */
+ destinationFolderId?: (string|null);
+
+ /** RenameFolderRequest ifMetagenerationMatch */
+ ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** RenameFolderRequest ifMetagenerationNotMatch */
+ ifMetagenerationNotMatch?: (number|Long|string|null);
+
+ /** RenameFolderRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a RenameFolderRequest. */
+ class RenameFolderRequest implements IRenameFolderRequest {
+
+ /**
+ * Constructs a new RenameFolderRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.IRenameFolderRequest);
+
+ /** RenameFolderRequest name. */
+ public name: string;
+
+ /** RenameFolderRequest destinationFolderId. */
+ public destinationFolderId: string;
+
+ /** RenameFolderRequest ifMetagenerationMatch. */
+ public ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** RenameFolderRequest ifMetagenerationNotMatch. */
+ public ifMetagenerationNotMatch?: (number|Long|string|null);
+
+ /** RenameFolderRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new RenameFolderRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RenameFolderRequest instance
+ */
+ public static create(properties?: google.storage.control.v2.IRenameFolderRequest): google.storage.control.v2.RenameFolderRequest;
+
+ /**
+ * Encodes the specified RenameFolderRequest message. Does not implicitly {@link google.storage.control.v2.RenameFolderRequest.verify|verify} messages.
+ * @param message RenameFolderRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.IRenameFolderRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RenameFolderRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.RenameFolderRequest.verify|verify} messages.
+ * @param message RenameFolderRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.IRenameFolderRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RenameFolderRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RenameFolderRequest
+ * @throws {Error} If the payload is 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.storage.control.v2.RenameFolderRequest;
+
+ /**
+ * Decodes a RenameFolderRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RenameFolderRequest
+ * @throws {Error} If the 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.storage.control.v2.RenameFolderRequest;
+
+ /**
+ * Verifies a RenameFolderRequest message.
+ * @param message Plain 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 RenameFolderRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RenameFolderRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.RenameFolderRequest;
+
+ /**
+ * Creates a plain object from a RenameFolderRequest message. Also converts values to other types if specified.
+ * @param message RenameFolderRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.RenameFolderRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RenameFolderRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RenameFolderRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteFolderRecursiveRequest. */
+ interface IDeleteFolderRecursiveRequest {
+
+ /** DeleteFolderRecursiveRequest name */
+ name?: (string|null);
+
+ /** DeleteFolderRecursiveRequest ifMetagenerationMatch */
+ ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** DeleteFolderRecursiveRequest ifMetagenerationNotMatch */
+ ifMetagenerationNotMatch?: (number|Long|string|null);
+
+ /** DeleteFolderRecursiveRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a DeleteFolderRecursiveRequest. */
+ class DeleteFolderRecursiveRequest implements IDeleteFolderRecursiveRequest {
+
+ /**
+ * Constructs a new DeleteFolderRecursiveRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.IDeleteFolderRecursiveRequest);
+
+ /** DeleteFolderRecursiveRequest name. */
+ public name: string;
+
+ /** DeleteFolderRecursiveRequest ifMetagenerationMatch. */
+ public ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** DeleteFolderRecursiveRequest ifMetagenerationNotMatch. */
+ public ifMetagenerationNotMatch?: (number|Long|string|null);
+
+ /** DeleteFolderRecursiveRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new DeleteFolderRecursiveRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteFolderRecursiveRequest instance
+ */
+ public static create(properties?: google.storage.control.v2.IDeleteFolderRecursiveRequest): google.storage.control.v2.DeleteFolderRecursiveRequest;
+
+ /**
+ * Encodes the specified DeleteFolderRecursiveRequest message. Does not implicitly {@link google.storage.control.v2.DeleteFolderRecursiveRequest.verify|verify} messages.
+ * @param message DeleteFolderRecursiveRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.IDeleteFolderRecursiveRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteFolderRecursiveRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.DeleteFolderRecursiveRequest.verify|verify} messages.
+ * @param message DeleteFolderRecursiveRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.IDeleteFolderRecursiveRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteFolderRecursiveRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteFolderRecursiveRequest
+ * @throws {Error} If the payload is 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.storage.control.v2.DeleteFolderRecursiveRequest;
+
+ /**
+ * Decodes a DeleteFolderRecursiveRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteFolderRecursiveRequest
+ * @throws {Error} If the 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.storage.control.v2.DeleteFolderRecursiveRequest;
+
+ /**
+ * Verifies a DeleteFolderRecursiveRequest message.
+ * @param message Plain 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 DeleteFolderRecursiveRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteFolderRecursiveRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.DeleteFolderRecursiveRequest;
+
+ /**
+ * Creates a plain object from a DeleteFolderRecursiveRequest message. Also converts values to other types if specified.
+ * @param message DeleteFolderRecursiveRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.DeleteFolderRecursiveRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteFolderRecursiveRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteFolderRecursiveRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CommonLongRunningOperationMetadata. */
+ interface ICommonLongRunningOperationMetadata {
+
+ /** CommonLongRunningOperationMetadata createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** CommonLongRunningOperationMetadata endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+
+ /** CommonLongRunningOperationMetadata updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** CommonLongRunningOperationMetadata type */
+ type?: (string|null);
+
+ /** CommonLongRunningOperationMetadata requestedCancellation */
+ requestedCancellation?: (boolean|null);
+
+ /** CommonLongRunningOperationMetadata progressPercent */
+ progressPercent?: (number|null);
+ }
+
+ /** Represents a CommonLongRunningOperationMetadata. */
+ class CommonLongRunningOperationMetadata implements ICommonLongRunningOperationMetadata {
+
+ /**
+ * Constructs a new CommonLongRunningOperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.ICommonLongRunningOperationMetadata);
+
+ /** CommonLongRunningOperationMetadata createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** CommonLongRunningOperationMetadata endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /** CommonLongRunningOperationMetadata updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** CommonLongRunningOperationMetadata type. */
+ public type: string;
+
+ /** CommonLongRunningOperationMetadata requestedCancellation. */
+ public requestedCancellation: boolean;
+
+ /** CommonLongRunningOperationMetadata progressPercent. */
+ public progressPercent: number;
+
+ /**
+ * Creates a new CommonLongRunningOperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CommonLongRunningOperationMetadata instance
+ */
+ public static create(properties?: google.storage.control.v2.ICommonLongRunningOperationMetadata): google.storage.control.v2.CommonLongRunningOperationMetadata;
+
+ /**
+ * Encodes the specified CommonLongRunningOperationMetadata message. Does not implicitly {@link google.storage.control.v2.CommonLongRunningOperationMetadata.verify|verify} messages.
+ * @param message CommonLongRunningOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.ICommonLongRunningOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CommonLongRunningOperationMetadata message, length delimited. Does not implicitly {@link google.storage.control.v2.CommonLongRunningOperationMetadata.verify|verify} messages.
+ * @param message CommonLongRunningOperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.ICommonLongRunningOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CommonLongRunningOperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CommonLongRunningOperationMetadata
+ * @throws {Error} If the payload is 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.storage.control.v2.CommonLongRunningOperationMetadata;
+
+ /**
+ * Decodes a CommonLongRunningOperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CommonLongRunningOperationMetadata
+ * @throws {Error} If the 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.storage.control.v2.CommonLongRunningOperationMetadata;
+
+ /**
+ * Verifies a CommonLongRunningOperationMetadata message.
+ * @param message Plain 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 CommonLongRunningOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CommonLongRunningOperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.CommonLongRunningOperationMetadata;
+
+ /**
+ * Creates a plain object from a CommonLongRunningOperationMetadata message. Also converts values to other types if specified.
+ * @param message CommonLongRunningOperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.CommonLongRunningOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CommonLongRunningOperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CommonLongRunningOperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RenameFolderMetadata. */
+ interface IRenameFolderMetadata {
+
+ /** RenameFolderMetadata commonMetadata */
+ commonMetadata?: (google.storage.control.v2.ICommonLongRunningOperationMetadata|null);
+
+ /** RenameFolderMetadata sourceFolderId */
+ sourceFolderId?: (string|null);
+
+ /** RenameFolderMetadata destinationFolderId */
+ destinationFolderId?: (string|null);
+ }
+
+ /** Represents a RenameFolderMetadata. */
+ class RenameFolderMetadata implements IRenameFolderMetadata {
+
+ /**
+ * Constructs a new RenameFolderMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.IRenameFolderMetadata);
+
+ /** RenameFolderMetadata commonMetadata. */
+ public commonMetadata?: (google.storage.control.v2.ICommonLongRunningOperationMetadata|null);
+
+ /** RenameFolderMetadata sourceFolderId. */
+ public sourceFolderId: string;
+
+ /** RenameFolderMetadata destinationFolderId. */
+ public destinationFolderId: string;
+
+ /**
+ * Creates a new RenameFolderMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RenameFolderMetadata instance
+ */
+ public static create(properties?: google.storage.control.v2.IRenameFolderMetadata): google.storage.control.v2.RenameFolderMetadata;
+
+ /**
+ * Encodes the specified RenameFolderMetadata message. Does not implicitly {@link google.storage.control.v2.RenameFolderMetadata.verify|verify} messages.
+ * @param message RenameFolderMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.IRenameFolderMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RenameFolderMetadata message, length delimited. Does not implicitly {@link google.storage.control.v2.RenameFolderMetadata.verify|verify} messages.
+ * @param message RenameFolderMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.IRenameFolderMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RenameFolderMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RenameFolderMetadata
+ * @throws {Error} If the payload is 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.storage.control.v2.RenameFolderMetadata;
+
+ /**
+ * Decodes a RenameFolderMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RenameFolderMetadata
+ * @throws {Error} If the 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.storage.control.v2.RenameFolderMetadata;
+
+ /**
+ * Verifies a RenameFolderMetadata message.
+ * @param message Plain 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 RenameFolderMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RenameFolderMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.RenameFolderMetadata;
+
+ /**
+ * Creates a plain object from a RenameFolderMetadata message. Also converts values to other types if specified.
+ * @param message RenameFolderMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.RenameFolderMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RenameFolderMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RenameFolderMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteFolderRecursiveMetadata. */
+ interface IDeleteFolderRecursiveMetadata {
+
+ /** DeleteFolderRecursiveMetadata commonMetadata */
+ commonMetadata?: (google.storage.control.v2.ICommonLongRunningOperationMetadata|null);
+
+ /** DeleteFolderRecursiveMetadata folderId */
+ folderId?: (string|null);
+ }
+
+ /** Represents a DeleteFolderRecursiveMetadata. */
+ class DeleteFolderRecursiveMetadata implements IDeleteFolderRecursiveMetadata {
+
+ /**
+ * Constructs a new DeleteFolderRecursiveMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.IDeleteFolderRecursiveMetadata);
+
+ /** DeleteFolderRecursiveMetadata commonMetadata. */
+ public commonMetadata?: (google.storage.control.v2.ICommonLongRunningOperationMetadata|null);
+
+ /** DeleteFolderRecursiveMetadata folderId. */
+ public folderId: string;
+
+ /**
+ * Creates a new DeleteFolderRecursiveMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteFolderRecursiveMetadata instance
+ */
+ public static create(properties?: google.storage.control.v2.IDeleteFolderRecursiveMetadata): google.storage.control.v2.DeleteFolderRecursiveMetadata;
+
+ /**
+ * Encodes the specified DeleteFolderRecursiveMetadata message. Does not implicitly {@link google.storage.control.v2.DeleteFolderRecursiveMetadata.verify|verify} messages.
+ * @param message DeleteFolderRecursiveMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.IDeleteFolderRecursiveMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteFolderRecursiveMetadata message, length delimited. Does not implicitly {@link google.storage.control.v2.DeleteFolderRecursiveMetadata.verify|verify} messages.
+ * @param message DeleteFolderRecursiveMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.IDeleteFolderRecursiveMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteFolderRecursiveMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteFolderRecursiveMetadata
+ * @throws {Error} If the payload is 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.storage.control.v2.DeleteFolderRecursiveMetadata;
+
+ /**
+ * Decodes a DeleteFolderRecursiveMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteFolderRecursiveMetadata
+ * @throws {Error} If the 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.storage.control.v2.DeleteFolderRecursiveMetadata;
+
+ /**
+ * Verifies a DeleteFolderRecursiveMetadata message.
+ * @param message Plain 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 DeleteFolderRecursiveMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteFolderRecursiveMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.DeleteFolderRecursiveMetadata;
+
+ /**
+ * Creates a plain object from a DeleteFolderRecursiveMetadata message. Also converts values to other types if specified.
+ * @param message DeleteFolderRecursiveMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.DeleteFolderRecursiveMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteFolderRecursiveMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteFolderRecursiveMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a StorageLayout. */
+ interface IStorageLayout {
+
+ /** StorageLayout name */
+ name?: (string|null);
+
+ /** StorageLayout location */
+ location?: (string|null);
+
+ /** StorageLayout locationType */
+ locationType?: (string|null);
+
+ /** StorageLayout customPlacementConfig */
+ customPlacementConfig?: (google.storage.control.v2.StorageLayout.ICustomPlacementConfig|null);
+
+ /** StorageLayout hierarchicalNamespace */
+ hierarchicalNamespace?: (google.storage.control.v2.StorageLayout.IHierarchicalNamespace|null);
+ }
+
+ /** Represents a StorageLayout. */
+ class StorageLayout implements IStorageLayout {
+
+ /**
+ * Constructs a new StorageLayout.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.IStorageLayout);
+
+ /** StorageLayout name. */
+ public name: string;
+
+ /** StorageLayout location. */
+ public location: string;
+
+ /** StorageLayout locationType. */
+ public locationType: string;
+
+ /** StorageLayout customPlacementConfig. */
+ public customPlacementConfig?: (google.storage.control.v2.StorageLayout.ICustomPlacementConfig|null);
+
+ /** StorageLayout hierarchicalNamespace. */
+ public hierarchicalNamespace?: (google.storage.control.v2.StorageLayout.IHierarchicalNamespace|null);
+
+ /**
+ * Creates a new StorageLayout instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StorageLayout instance
+ */
+ public static create(properties?: google.storage.control.v2.IStorageLayout): google.storage.control.v2.StorageLayout;
+
+ /**
+ * Encodes the specified StorageLayout message. Does not implicitly {@link google.storage.control.v2.StorageLayout.verify|verify} messages.
+ * @param message StorageLayout message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.IStorageLayout, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StorageLayout message, length delimited. Does not implicitly {@link google.storage.control.v2.StorageLayout.verify|verify} messages.
+ * @param message StorageLayout message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.IStorageLayout, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StorageLayout message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StorageLayout
+ * @throws {Error} If the payload is 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.storage.control.v2.StorageLayout;
+
+ /**
+ * Decodes a StorageLayout message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StorageLayout
+ * @throws {Error} If the 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.storage.control.v2.StorageLayout;
+
+ /**
+ * Verifies a StorageLayout message.
+ * @param message Plain 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 StorageLayout message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StorageLayout
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.StorageLayout;
+
+ /**
+ * Creates a plain object from a StorageLayout message. Also converts values to other types if specified.
+ * @param message StorageLayout
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.StorageLayout, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StorageLayout to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StorageLayout
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace StorageLayout {
+
+ /** Properties of a CustomPlacementConfig. */
+ interface ICustomPlacementConfig {
+
+ /** CustomPlacementConfig dataLocations */
+ dataLocations?: (string[]|null);
+ }
+
+ /** Represents a CustomPlacementConfig. */
+ class CustomPlacementConfig implements ICustomPlacementConfig {
+
+ /**
+ * Constructs a new CustomPlacementConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.StorageLayout.ICustomPlacementConfig);
+
+ /** CustomPlacementConfig dataLocations. */
+ public dataLocations: string[];
+
+ /**
+ * Creates a new CustomPlacementConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CustomPlacementConfig instance
+ */
+ public static create(properties?: google.storage.control.v2.StorageLayout.ICustomPlacementConfig): google.storage.control.v2.StorageLayout.CustomPlacementConfig;
+
+ /**
+ * Encodes the specified CustomPlacementConfig message. Does not implicitly {@link google.storage.control.v2.StorageLayout.CustomPlacementConfig.verify|verify} messages.
+ * @param message CustomPlacementConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.StorageLayout.ICustomPlacementConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CustomPlacementConfig message, length delimited. Does not implicitly {@link google.storage.control.v2.StorageLayout.CustomPlacementConfig.verify|verify} messages.
+ * @param message CustomPlacementConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.StorageLayout.ICustomPlacementConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CustomPlacementConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CustomPlacementConfig
+ * @throws {Error} If the payload is 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.storage.control.v2.StorageLayout.CustomPlacementConfig;
+
+ /**
+ * Decodes a CustomPlacementConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CustomPlacementConfig
+ * @throws {Error} If the 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.storage.control.v2.StorageLayout.CustomPlacementConfig;
+
+ /**
+ * Verifies a CustomPlacementConfig message.
+ * @param message Plain 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 CustomPlacementConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CustomPlacementConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.StorageLayout.CustomPlacementConfig;
+
+ /**
+ * Creates a plain object from a CustomPlacementConfig message. Also converts values to other types if specified.
+ * @param message CustomPlacementConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.StorageLayout.CustomPlacementConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CustomPlacementConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CustomPlacementConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a HierarchicalNamespace. */
+ interface IHierarchicalNamespace {
+
+ /** HierarchicalNamespace enabled */
+ enabled?: (boolean|null);
+ }
+
+ /** Represents a HierarchicalNamespace. */
+ class HierarchicalNamespace implements IHierarchicalNamespace {
+
+ /**
+ * Constructs a new HierarchicalNamespace.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.StorageLayout.IHierarchicalNamespace);
+
+ /** HierarchicalNamespace enabled. */
+ public enabled: boolean;
+
+ /**
+ * Creates a new HierarchicalNamespace instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HierarchicalNamespace instance
+ */
+ public static create(properties?: google.storage.control.v2.StorageLayout.IHierarchicalNamespace): google.storage.control.v2.StorageLayout.HierarchicalNamespace;
+
+ /**
+ * Encodes the specified HierarchicalNamespace message. Does not implicitly {@link google.storage.control.v2.StorageLayout.HierarchicalNamespace.verify|verify} messages.
+ * @param message HierarchicalNamespace message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.StorageLayout.IHierarchicalNamespace, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HierarchicalNamespace message, length delimited. Does not implicitly {@link google.storage.control.v2.StorageLayout.HierarchicalNamespace.verify|verify} messages.
+ * @param message HierarchicalNamespace message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.StorageLayout.IHierarchicalNamespace, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HierarchicalNamespace message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HierarchicalNamespace
+ * @throws {Error} If the payload is 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.storage.control.v2.StorageLayout.HierarchicalNamespace;
+
+ /**
+ * Decodes a HierarchicalNamespace message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HierarchicalNamespace
+ * @throws {Error} If the 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.storage.control.v2.StorageLayout.HierarchicalNamespace;
+
+ /**
+ * Verifies a HierarchicalNamespace message.
+ * @param message Plain 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 HierarchicalNamespace message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HierarchicalNamespace
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.StorageLayout.HierarchicalNamespace;
+
+ /**
+ * Creates a plain object from a HierarchicalNamespace message. Also converts values to other types if specified.
+ * @param message HierarchicalNamespace
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.StorageLayout.HierarchicalNamespace, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HierarchicalNamespace to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HierarchicalNamespace
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a GetStorageLayoutRequest. */
+ interface IGetStorageLayoutRequest {
+
+ /** GetStorageLayoutRequest name */
+ name?: (string|null);
+
+ /** GetStorageLayoutRequest prefix */
+ prefix?: (string|null);
+
+ /** GetStorageLayoutRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a GetStorageLayoutRequest. */
+ class GetStorageLayoutRequest implements IGetStorageLayoutRequest {
+
+ /**
+ * Constructs a new GetStorageLayoutRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.IGetStorageLayoutRequest);
+
+ /** GetStorageLayoutRequest name. */
+ public name: string;
+
+ /** GetStorageLayoutRequest prefix. */
+ public prefix: string;
+
+ /** GetStorageLayoutRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new GetStorageLayoutRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetStorageLayoutRequest instance
+ */
+ public static create(properties?: google.storage.control.v2.IGetStorageLayoutRequest): google.storage.control.v2.GetStorageLayoutRequest;
+
+ /**
+ * Encodes the specified GetStorageLayoutRequest message. Does not implicitly {@link google.storage.control.v2.GetStorageLayoutRequest.verify|verify} messages.
+ * @param message GetStorageLayoutRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.IGetStorageLayoutRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetStorageLayoutRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.GetStorageLayoutRequest.verify|verify} messages.
+ * @param message GetStorageLayoutRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.IGetStorageLayoutRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetStorageLayoutRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetStorageLayoutRequest
+ * @throws {Error} If the payload is 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.storage.control.v2.GetStorageLayoutRequest;
+
+ /**
+ * Decodes a GetStorageLayoutRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetStorageLayoutRequest
+ * @throws {Error} If the 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.storage.control.v2.GetStorageLayoutRequest;
+
+ /**
+ * Verifies a GetStorageLayoutRequest message.
+ * @param message Plain 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 GetStorageLayoutRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetStorageLayoutRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.GetStorageLayoutRequest;
+
+ /**
+ * Creates a plain object from a GetStorageLayoutRequest message. Also converts values to other types if specified.
+ * @param message GetStorageLayoutRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.GetStorageLayoutRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetStorageLayoutRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetStorageLayoutRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ManagedFolder. */
+ interface IManagedFolder {
+
+ /** ManagedFolder name */
+ name?: (string|null);
+
+ /** ManagedFolder metageneration */
+ metageneration?: (number|Long|string|null);
+
+ /** ManagedFolder createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** ManagedFolder updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a ManagedFolder. */
+ class ManagedFolder implements IManagedFolder {
+
+ /**
+ * Constructs a new ManagedFolder.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.IManagedFolder);
+
+ /** ManagedFolder name. */
+ public name: string;
+
+ /** ManagedFolder metageneration. */
+ public metageneration: (number|Long|string);
+
+ /** ManagedFolder createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** ManagedFolder updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new ManagedFolder instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ManagedFolder instance
+ */
+ public static create(properties?: google.storage.control.v2.IManagedFolder): google.storage.control.v2.ManagedFolder;
+
+ /**
+ * Encodes the specified ManagedFolder message. Does not implicitly {@link google.storage.control.v2.ManagedFolder.verify|verify} messages.
+ * @param message ManagedFolder message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.IManagedFolder, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ManagedFolder message, length delimited. Does not implicitly {@link google.storage.control.v2.ManagedFolder.verify|verify} messages.
+ * @param message ManagedFolder message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.IManagedFolder, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ManagedFolder message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ManagedFolder
+ * @throws {Error} If the payload is 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.storage.control.v2.ManagedFolder;
+
+ /**
+ * Decodes a ManagedFolder message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ManagedFolder
+ * @throws {Error} If the 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.storage.control.v2.ManagedFolder;
+
+ /**
+ * Verifies a ManagedFolder message.
+ * @param message Plain 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 ManagedFolder message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ManagedFolder
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.ManagedFolder;
+
+ /**
+ * Creates a plain object from a ManagedFolder message. Also converts values to other types if specified.
+ * @param message ManagedFolder
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.ManagedFolder, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ManagedFolder to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ManagedFolder
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetManagedFolderRequest. */
+ interface IGetManagedFolderRequest {
+
+ /** GetManagedFolderRequest name */
+ name?: (string|null);
+
+ /** GetManagedFolderRequest ifMetagenerationMatch */
+ ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** GetManagedFolderRequest ifMetagenerationNotMatch */
+ ifMetagenerationNotMatch?: (number|Long|string|null);
+
+ /** GetManagedFolderRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a GetManagedFolderRequest. */
+ class GetManagedFolderRequest implements IGetManagedFolderRequest {
+
+ /**
+ * Constructs a new GetManagedFolderRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.IGetManagedFolderRequest);
+
+ /** GetManagedFolderRequest name. */
+ public name: string;
+
+ /** GetManagedFolderRequest ifMetagenerationMatch. */
+ public ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** GetManagedFolderRequest ifMetagenerationNotMatch. */
+ public ifMetagenerationNotMatch?: (number|Long|string|null);
+
+ /** GetManagedFolderRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new GetManagedFolderRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetManagedFolderRequest instance
+ */
+ public static create(properties?: google.storage.control.v2.IGetManagedFolderRequest): google.storage.control.v2.GetManagedFolderRequest;
+
+ /**
+ * Encodes the specified GetManagedFolderRequest message. Does not implicitly {@link google.storage.control.v2.GetManagedFolderRequest.verify|verify} messages.
+ * @param message GetManagedFolderRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.IGetManagedFolderRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetManagedFolderRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.GetManagedFolderRequest.verify|verify} messages.
+ * @param message GetManagedFolderRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.IGetManagedFolderRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetManagedFolderRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetManagedFolderRequest
+ * @throws {Error} If the payload is 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.storage.control.v2.GetManagedFolderRequest;
+
+ /**
+ * Decodes a GetManagedFolderRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetManagedFolderRequest
+ * @throws {Error} If the 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.storage.control.v2.GetManagedFolderRequest;
+
+ /**
+ * Verifies a GetManagedFolderRequest message.
+ * @param message Plain 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 GetManagedFolderRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetManagedFolderRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.GetManagedFolderRequest;
+
+ /**
+ * Creates a plain object from a GetManagedFolderRequest message. Also converts values to other types if specified.
+ * @param message GetManagedFolderRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.GetManagedFolderRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetManagedFolderRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetManagedFolderRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateManagedFolderRequest. */
+ interface ICreateManagedFolderRequest {
+
+ /** CreateManagedFolderRequest parent */
+ parent?: (string|null);
+
+ /** CreateManagedFolderRequest managedFolder */
+ managedFolder?: (google.storage.control.v2.IManagedFolder|null);
+
+ /** CreateManagedFolderRequest managedFolderId */
+ managedFolderId?: (string|null);
+
+ /** CreateManagedFolderRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a CreateManagedFolderRequest. */
+ class CreateManagedFolderRequest implements ICreateManagedFolderRequest {
+
+ /**
+ * Constructs a new CreateManagedFolderRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.ICreateManagedFolderRequest);
+
+ /** CreateManagedFolderRequest parent. */
+ public parent: string;
+
+ /** CreateManagedFolderRequest managedFolder. */
+ public managedFolder?: (google.storage.control.v2.IManagedFolder|null);
+
+ /** CreateManagedFolderRequest managedFolderId. */
+ public managedFolderId: string;
+
+ /** CreateManagedFolderRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new CreateManagedFolderRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateManagedFolderRequest instance
+ */
+ public static create(properties?: google.storage.control.v2.ICreateManagedFolderRequest): google.storage.control.v2.CreateManagedFolderRequest;
+
+ /**
+ * Encodes the specified CreateManagedFolderRequest message. Does not implicitly {@link google.storage.control.v2.CreateManagedFolderRequest.verify|verify} messages.
+ * @param message CreateManagedFolderRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.ICreateManagedFolderRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateManagedFolderRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.CreateManagedFolderRequest.verify|verify} messages.
+ * @param message CreateManagedFolderRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.ICreateManagedFolderRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateManagedFolderRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateManagedFolderRequest
+ * @throws {Error} If the payload is 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.storage.control.v2.CreateManagedFolderRequest;
+
+ /**
+ * Decodes a CreateManagedFolderRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateManagedFolderRequest
+ * @throws {Error} If the 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.storage.control.v2.CreateManagedFolderRequest;
+
+ /**
+ * Verifies a CreateManagedFolderRequest message.
+ * @param message Plain 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 CreateManagedFolderRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateManagedFolderRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.CreateManagedFolderRequest;
+
+ /**
+ * Creates a plain object from a CreateManagedFolderRequest message. Also converts values to other types if specified.
+ * @param message CreateManagedFolderRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.CreateManagedFolderRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateManagedFolderRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateManagedFolderRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteManagedFolderRequest. */
+ interface IDeleteManagedFolderRequest {
+
+ /** DeleteManagedFolderRequest name */
+ name?: (string|null);
+
+ /** DeleteManagedFolderRequest ifMetagenerationMatch */
+ ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** DeleteManagedFolderRequest ifMetagenerationNotMatch */
+ ifMetagenerationNotMatch?: (number|Long|string|null);
+
+ /** DeleteManagedFolderRequest allowNonEmpty */
+ allowNonEmpty?: (boolean|null);
+
+ /** DeleteManagedFolderRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a DeleteManagedFolderRequest. */
+ class DeleteManagedFolderRequest implements IDeleteManagedFolderRequest {
+
+ /**
+ * Constructs a new DeleteManagedFolderRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.IDeleteManagedFolderRequest);
+
+ /** DeleteManagedFolderRequest name. */
+ public name: string;
+
+ /** DeleteManagedFolderRequest ifMetagenerationMatch. */
+ public ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** DeleteManagedFolderRequest ifMetagenerationNotMatch. */
+ public ifMetagenerationNotMatch?: (number|Long|string|null);
+
+ /** DeleteManagedFolderRequest allowNonEmpty. */
+ public allowNonEmpty: boolean;
+
+ /** DeleteManagedFolderRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new DeleteManagedFolderRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteManagedFolderRequest instance
+ */
+ public static create(properties?: google.storage.control.v2.IDeleteManagedFolderRequest): google.storage.control.v2.DeleteManagedFolderRequest;
+
+ /**
+ * Encodes the specified DeleteManagedFolderRequest message. Does not implicitly {@link google.storage.control.v2.DeleteManagedFolderRequest.verify|verify} messages.
+ * @param message DeleteManagedFolderRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.IDeleteManagedFolderRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteManagedFolderRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.DeleteManagedFolderRequest.verify|verify} messages.
+ * @param message DeleteManagedFolderRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.IDeleteManagedFolderRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteManagedFolderRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteManagedFolderRequest
+ * @throws {Error} If the payload is 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.storage.control.v2.DeleteManagedFolderRequest;
+
+ /**
+ * Decodes a DeleteManagedFolderRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteManagedFolderRequest
+ * @throws {Error} If the 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.storage.control.v2.DeleteManagedFolderRequest;
+
+ /**
+ * Verifies a DeleteManagedFolderRequest message.
+ * @param message Plain 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 DeleteManagedFolderRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteManagedFolderRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.DeleteManagedFolderRequest;
+
+ /**
+ * Creates a plain object from a DeleteManagedFolderRequest message. Also converts values to other types if specified.
+ * @param message DeleteManagedFolderRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.DeleteManagedFolderRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteManagedFolderRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteManagedFolderRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListManagedFoldersRequest. */
+ interface IListManagedFoldersRequest {
+
+ /** ListManagedFoldersRequest parent */
+ parent?: (string|null);
+
+ /** ListManagedFoldersRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListManagedFoldersRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListManagedFoldersRequest prefix */
+ prefix?: (string|null);
+
+ /** ListManagedFoldersRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a ListManagedFoldersRequest. */
+ class ListManagedFoldersRequest implements IListManagedFoldersRequest {
+
+ /**
+ * Constructs a new ListManagedFoldersRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.IListManagedFoldersRequest);
+
+ /** ListManagedFoldersRequest parent. */
+ public parent: string;
+
+ /** ListManagedFoldersRequest pageSize. */
+ public pageSize: number;
+
+ /** ListManagedFoldersRequest pageToken. */
+ public pageToken: string;
+
+ /** ListManagedFoldersRequest prefix. */
+ public prefix: string;
+
+ /** ListManagedFoldersRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new ListManagedFoldersRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListManagedFoldersRequest instance
+ */
+ public static create(properties?: google.storage.control.v2.IListManagedFoldersRequest): google.storage.control.v2.ListManagedFoldersRequest;
+
+ /**
+ * Encodes the specified ListManagedFoldersRequest message. Does not implicitly {@link google.storage.control.v2.ListManagedFoldersRequest.verify|verify} messages.
+ * @param message ListManagedFoldersRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.IListManagedFoldersRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListManagedFoldersRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.ListManagedFoldersRequest.verify|verify} messages.
+ * @param message ListManagedFoldersRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.IListManagedFoldersRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListManagedFoldersRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListManagedFoldersRequest
+ * @throws {Error} If the payload is 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.storage.control.v2.ListManagedFoldersRequest;
+
+ /**
+ * Decodes a ListManagedFoldersRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListManagedFoldersRequest
+ * @throws {Error} If the 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.storage.control.v2.ListManagedFoldersRequest;
+
+ /**
+ * Verifies a ListManagedFoldersRequest message.
+ * @param message Plain 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 ListManagedFoldersRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListManagedFoldersRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.ListManagedFoldersRequest;
+
+ /**
+ * Creates a plain object from a ListManagedFoldersRequest message. Also converts values to other types if specified.
+ * @param message ListManagedFoldersRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.ListManagedFoldersRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListManagedFoldersRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListManagedFoldersRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListManagedFoldersResponse. */
+ interface IListManagedFoldersResponse {
+
+ /** ListManagedFoldersResponse managedFolders */
+ managedFolders?: (google.storage.control.v2.IManagedFolder[]|null);
+
+ /** ListManagedFoldersResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListManagedFoldersResponse. */
+ class ListManagedFoldersResponse implements IListManagedFoldersResponse {
+
+ /**
+ * Constructs a new ListManagedFoldersResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.IListManagedFoldersResponse);
+
+ /** ListManagedFoldersResponse managedFolders. */
+ public managedFolders: google.storage.control.v2.IManagedFolder[];
+
+ /** ListManagedFoldersResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListManagedFoldersResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListManagedFoldersResponse instance
+ */
+ public static create(properties?: google.storage.control.v2.IListManagedFoldersResponse): google.storage.control.v2.ListManagedFoldersResponse;
+
+ /**
+ * Encodes the specified ListManagedFoldersResponse message. Does not implicitly {@link google.storage.control.v2.ListManagedFoldersResponse.verify|verify} messages.
+ * @param message ListManagedFoldersResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.IListManagedFoldersResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListManagedFoldersResponse message, length delimited. Does not implicitly {@link google.storage.control.v2.ListManagedFoldersResponse.verify|verify} messages.
+ * @param message ListManagedFoldersResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.IListManagedFoldersResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListManagedFoldersResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListManagedFoldersResponse
+ * @throws {Error} If the payload is 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.storage.control.v2.ListManagedFoldersResponse;
+
+ /**
+ * Decodes a ListManagedFoldersResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListManagedFoldersResponse
+ * @throws {Error} If the 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.storage.control.v2.ListManagedFoldersResponse;
+
+ /**
+ * Verifies a ListManagedFoldersResponse message.
+ * @param message Plain 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 ListManagedFoldersResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListManagedFoldersResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.ListManagedFoldersResponse;
+
+ /**
+ * Creates a plain object from a ListManagedFoldersResponse message. Also converts values to other types if specified.
+ * @param message ListManagedFoldersResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.ListManagedFoldersResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListManagedFoldersResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListManagedFoldersResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateAnywhereCacheMetadata. */
+ interface ICreateAnywhereCacheMetadata {
+
+ /** CreateAnywhereCacheMetadata commonMetadata */
+ commonMetadata?: (google.storage.control.v2.ICommonLongRunningOperationMetadata|null);
+
+ /** CreateAnywhereCacheMetadata anywhereCacheId */
+ anywhereCacheId?: (string|null);
+
+ /** CreateAnywhereCacheMetadata zone */
+ zone?: (string|null);
+
+ /** CreateAnywhereCacheMetadata ttl */
+ ttl?: (google.protobuf.IDuration|null);
+
+ /** CreateAnywhereCacheMetadata admissionPolicy */
+ admissionPolicy?: (string|null);
+ }
+
+ /** Represents a CreateAnywhereCacheMetadata. */
+ class CreateAnywhereCacheMetadata implements ICreateAnywhereCacheMetadata {
+
+ /**
+ * Constructs a new CreateAnywhereCacheMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.ICreateAnywhereCacheMetadata);
+
+ /** CreateAnywhereCacheMetadata commonMetadata. */
+ public commonMetadata?: (google.storage.control.v2.ICommonLongRunningOperationMetadata|null);
+
+ /** CreateAnywhereCacheMetadata anywhereCacheId. */
+ public anywhereCacheId?: (string|null);
+
+ /** CreateAnywhereCacheMetadata zone. */
+ public zone?: (string|null);
+
+ /** CreateAnywhereCacheMetadata ttl. */
+ public ttl?: (google.protobuf.IDuration|null);
+
+ /** CreateAnywhereCacheMetadata admissionPolicy. */
+ public admissionPolicy?: (string|null);
+
+ /**
+ * Creates a new CreateAnywhereCacheMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateAnywhereCacheMetadata instance
+ */
+ public static create(properties?: google.storage.control.v2.ICreateAnywhereCacheMetadata): google.storage.control.v2.CreateAnywhereCacheMetadata;
+
+ /**
+ * Encodes the specified CreateAnywhereCacheMetadata message. Does not implicitly {@link google.storage.control.v2.CreateAnywhereCacheMetadata.verify|verify} messages.
+ * @param message CreateAnywhereCacheMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.ICreateAnywhereCacheMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateAnywhereCacheMetadata message, length delimited. Does not implicitly {@link google.storage.control.v2.CreateAnywhereCacheMetadata.verify|verify} messages.
+ * @param message CreateAnywhereCacheMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.ICreateAnywhereCacheMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateAnywhereCacheMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateAnywhereCacheMetadata
+ * @throws {Error} If the payload is 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.storage.control.v2.CreateAnywhereCacheMetadata;
+
+ /**
+ * Decodes a CreateAnywhereCacheMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateAnywhereCacheMetadata
+ * @throws {Error} If the 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.storage.control.v2.CreateAnywhereCacheMetadata;
+
+ /**
+ * Verifies a CreateAnywhereCacheMetadata message.
+ * @param message Plain 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 CreateAnywhereCacheMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateAnywhereCacheMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.CreateAnywhereCacheMetadata;
+
+ /**
+ * Creates a plain object from a CreateAnywhereCacheMetadata message. Also converts values to other types if specified.
+ * @param message CreateAnywhereCacheMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.CreateAnywhereCacheMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateAnywhereCacheMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateAnywhereCacheMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateAnywhereCacheMetadata. */
+ interface IUpdateAnywhereCacheMetadata {
+
+ /** UpdateAnywhereCacheMetadata commonMetadata */
+ commonMetadata?: (google.storage.control.v2.ICommonLongRunningOperationMetadata|null);
+
+ /** UpdateAnywhereCacheMetadata anywhereCacheId */
+ anywhereCacheId?: (string|null);
+
+ /** UpdateAnywhereCacheMetadata zone */
+ zone?: (string|null);
+
+ /** UpdateAnywhereCacheMetadata ttl */
+ ttl?: (google.protobuf.IDuration|null);
+
+ /** UpdateAnywhereCacheMetadata admissionPolicy */
+ admissionPolicy?: (string|null);
+ }
+
+ /** Represents an UpdateAnywhereCacheMetadata. */
+ class UpdateAnywhereCacheMetadata implements IUpdateAnywhereCacheMetadata {
+
+ /**
+ * Constructs a new UpdateAnywhereCacheMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.IUpdateAnywhereCacheMetadata);
+
+ /** UpdateAnywhereCacheMetadata commonMetadata. */
+ public commonMetadata?: (google.storage.control.v2.ICommonLongRunningOperationMetadata|null);
+
+ /** UpdateAnywhereCacheMetadata anywhereCacheId. */
+ public anywhereCacheId?: (string|null);
+
+ /** UpdateAnywhereCacheMetadata zone. */
+ public zone?: (string|null);
+
+ /** UpdateAnywhereCacheMetadata ttl. */
+ public ttl?: (google.protobuf.IDuration|null);
+
+ /** UpdateAnywhereCacheMetadata admissionPolicy. */
+ public admissionPolicy?: (string|null);
+
+ /**
+ * Creates a new UpdateAnywhereCacheMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateAnywhereCacheMetadata instance
+ */
+ public static create(properties?: google.storage.control.v2.IUpdateAnywhereCacheMetadata): google.storage.control.v2.UpdateAnywhereCacheMetadata;
+
+ /**
+ * Encodes the specified UpdateAnywhereCacheMetadata message. Does not implicitly {@link google.storage.control.v2.UpdateAnywhereCacheMetadata.verify|verify} messages.
+ * @param message UpdateAnywhereCacheMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.IUpdateAnywhereCacheMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateAnywhereCacheMetadata message, length delimited. Does not implicitly {@link google.storage.control.v2.UpdateAnywhereCacheMetadata.verify|verify} messages.
+ * @param message UpdateAnywhereCacheMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.IUpdateAnywhereCacheMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateAnywhereCacheMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateAnywhereCacheMetadata
+ * @throws {Error} If the payload is 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.storage.control.v2.UpdateAnywhereCacheMetadata;
+
+ /**
+ * Decodes an UpdateAnywhereCacheMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateAnywhereCacheMetadata
+ * @throws {Error} If the 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.storage.control.v2.UpdateAnywhereCacheMetadata;
+
+ /**
+ * Verifies an UpdateAnywhereCacheMetadata message.
+ * @param message Plain 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 UpdateAnywhereCacheMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateAnywhereCacheMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.UpdateAnywhereCacheMetadata;
+
+ /**
+ * Creates a plain object from an UpdateAnywhereCacheMetadata message. Also converts values to other types if specified.
+ * @param message UpdateAnywhereCacheMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.UpdateAnywhereCacheMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateAnywhereCacheMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateAnywhereCacheMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an AnywhereCache. */
+ interface IAnywhereCache {
+
+ /** AnywhereCache name */
+ name?: (string|null);
+
+ /** AnywhereCache zone */
+ zone?: (string|null);
+
+ /** AnywhereCache ttl */
+ ttl?: (google.protobuf.IDuration|null);
+
+ /** AnywhereCache admissionPolicy */
+ admissionPolicy?: (string|null);
+
+ /** AnywhereCache state */
+ state?: (string|null);
+
+ /** AnywhereCache createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** AnywhereCache updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** AnywhereCache pendingUpdate */
+ pendingUpdate?: (boolean|null);
+ }
+
+ /** Represents an AnywhereCache. */
+ class AnywhereCache implements IAnywhereCache {
+
+ /**
+ * Constructs a new AnywhereCache.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.IAnywhereCache);
+
+ /** AnywhereCache name. */
+ public name: string;
+
+ /** AnywhereCache zone. */
+ public zone: string;
+
+ /** AnywhereCache ttl. */
+ public ttl?: (google.protobuf.IDuration|null);
+
+ /** AnywhereCache admissionPolicy. */
+ public admissionPolicy: string;
+
+ /** AnywhereCache state. */
+ public state: string;
+
+ /** AnywhereCache createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** AnywhereCache updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** AnywhereCache pendingUpdate. */
+ public pendingUpdate: boolean;
+
+ /**
+ * Creates a new AnywhereCache instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AnywhereCache instance
+ */
+ public static create(properties?: google.storage.control.v2.IAnywhereCache): google.storage.control.v2.AnywhereCache;
+
+ /**
+ * Encodes the specified AnywhereCache message. Does not implicitly {@link google.storage.control.v2.AnywhereCache.verify|verify} messages.
+ * @param message AnywhereCache message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.IAnywhereCache, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AnywhereCache message, length delimited. Does not implicitly {@link google.storage.control.v2.AnywhereCache.verify|verify} messages.
+ * @param message AnywhereCache message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.IAnywhereCache, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AnywhereCache message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AnywhereCache
+ * @throws {Error} If the payload is 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.storage.control.v2.AnywhereCache;
+
+ /**
+ * Decodes an AnywhereCache message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AnywhereCache
+ * @throws {Error} If the 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.storage.control.v2.AnywhereCache;
+
+ /**
+ * Verifies an AnywhereCache message.
+ * @param message Plain 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 AnywhereCache message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AnywhereCache
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.AnywhereCache;
+
+ /**
+ * Creates a plain object from an AnywhereCache message. Also converts values to other types if specified.
+ * @param message AnywhereCache
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.AnywhereCache, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AnywhereCache to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AnywhereCache
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateAnywhereCacheRequest. */
+ interface ICreateAnywhereCacheRequest {
+
+ /** CreateAnywhereCacheRequest parent */
+ parent?: (string|null);
+
+ /** CreateAnywhereCacheRequest anywhereCache */
+ anywhereCache?: (google.storage.control.v2.IAnywhereCache|null);
+
+ /** CreateAnywhereCacheRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a CreateAnywhereCacheRequest. */
+ class CreateAnywhereCacheRequest implements ICreateAnywhereCacheRequest {
+
+ /**
+ * Constructs a new CreateAnywhereCacheRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.ICreateAnywhereCacheRequest);
+
+ /** CreateAnywhereCacheRequest parent. */
+ public parent: string;
+
+ /** CreateAnywhereCacheRequest anywhereCache. */
+ public anywhereCache?: (google.storage.control.v2.IAnywhereCache|null);
+
+ /** CreateAnywhereCacheRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new CreateAnywhereCacheRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateAnywhereCacheRequest instance
+ */
+ public static create(properties?: google.storage.control.v2.ICreateAnywhereCacheRequest): google.storage.control.v2.CreateAnywhereCacheRequest;
+
+ /**
+ * Encodes the specified CreateAnywhereCacheRequest message. Does not implicitly {@link google.storage.control.v2.CreateAnywhereCacheRequest.verify|verify} messages.
+ * @param message CreateAnywhereCacheRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.ICreateAnywhereCacheRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateAnywhereCacheRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.CreateAnywhereCacheRequest.verify|verify} messages.
+ * @param message CreateAnywhereCacheRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.ICreateAnywhereCacheRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateAnywhereCacheRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateAnywhereCacheRequest
+ * @throws {Error} If the payload is 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.storage.control.v2.CreateAnywhereCacheRequest;
+
+ /**
+ * Decodes a CreateAnywhereCacheRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateAnywhereCacheRequest
+ * @throws {Error} If the 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.storage.control.v2.CreateAnywhereCacheRequest;
+
+ /**
+ * Verifies a CreateAnywhereCacheRequest message.
+ * @param message Plain 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 CreateAnywhereCacheRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateAnywhereCacheRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.CreateAnywhereCacheRequest;
+
+ /**
+ * Creates a plain object from a CreateAnywhereCacheRequest message. Also converts values to other types if specified.
+ * @param message CreateAnywhereCacheRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.CreateAnywhereCacheRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateAnywhereCacheRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateAnywhereCacheRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateAnywhereCacheRequest. */
+ interface IUpdateAnywhereCacheRequest {
+
+ /** UpdateAnywhereCacheRequest anywhereCache */
+ anywhereCache?: (google.storage.control.v2.IAnywhereCache|null);
+
+ /** UpdateAnywhereCacheRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateAnywhereCacheRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents an UpdateAnywhereCacheRequest. */
+ class UpdateAnywhereCacheRequest implements IUpdateAnywhereCacheRequest {
+
+ /**
+ * Constructs a new UpdateAnywhereCacheRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.IUpdateAnywhereCacheRequest);
+
+ /** UpdateAnywhereCacheRequest anywhereCache. */
+ public anywhereCache?: (google.storage.control.v2.IAnywhereCache|null);
+
+ /** UpdateAnywhereCacheRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateAnywhereCacheRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new UpdateAnywhereCacheRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateAnywhereCacheRequest instance
+ */
+ public static create(properties?: google.storage.control.v2.IUpdateAnywhereCacheRequest): google.storage.control.v2.UpdateAnywhereCacheRequest;
+
+ /**
+ * Encodes the specified UpdateAnywhereCacheRequest message. Does not implicitly {@link google.storage.control.v2.UpdateAnywhereCacheRequest.verify|verify} messages.
+ * @param message UpdateAnywhereCacheRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.IUpdateAnywhereCacheRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateAnywhereCacheRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.UpdateAnywhereCacheRequest.verify|verify} messages.
+ * @param message UpdateAnywhereCacheRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.IUpdateAnywhereCacheRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateAnywhereCacheRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateAnywhereCacheRequest
+ * @throws {Error} If the payload is 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.storage.control.v2.UpdateAnywhereCacheRequest;
+
+ /**
+ * Decodes an UpdateAnywhereCacheRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateAnywhereCacheRequest
+ * @throws {Error} If the 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.storage.control.v2.UpdateAnywhereCacheRequest;
+
+ /**
+ * Verifies an UpdateAnywhereCacheRequest message.
+ * @param message Plain 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 UpdateAnywhereCacheRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateAnywhereCacheRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.UpdateAnywhereCacheRequest;
+
+ /**
+ * Creates a plain object from an UpdateAnywhereCacheRequest message. Also converts values to other types if specified.
+ * @param message UpdateAnywhereCacheRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.UpdateAnywhereCacheRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateAnywhereCacheRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateAnywhereCacheRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DisableAnywhereCacheRequest. */
+ interface IDisableAnywhereCacheRequest {
+
+ /** DisableAnywhereCacheRequest name */
+ name?: (string|null);
+
+ /** DisableAnywhereCacheRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a DisableAnywhereCacheRequest. */
+ class DisableAnywhereCacheRequest implements IDisableAnywhereCacheRequest {
+
+ /**
+ * Constructs a new DisableAnywhereCacheRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.IDisableAnywhereCacheRequest);
+
+ /** DisableAnywhereCacheRequest name. */
+ public name: string;
+
+ /** DisableAnywhereCacheRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new DisableAnywhereCacheRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DisableAnywhereCacheRequest instance
+ */
+ public static create(properties?: google.storage.control.v2.IDisableAnywhereCacheRequest): google.storage.control.v2.DisableAnywhereCacheRequest;
+
+ /**
+ * Encodes the specified DisableAnywhereCacheRequest message. Does not implicitly {@link google.storage.control.v2.DisableAnywhereCacheRequest.verify|verify} messages.
+ * @param message DisableAnywhereCacheRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.IDisableAnywhereCacheRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DisableAnywhereCacheRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.DisableAnywhereCacheRequest.verify|verify} messages.
+ * @param message DisableAnywhereCacheRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.IDisableAnywhereCacheRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DisableAnywhereCacheRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DisableAnywhereCacheRequest
+ * @throws {Error} If the payload is 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.storage.control.v2.DisableAnywhereCacheRequest;
+
+ /**
+ * Decodes a DisableAnywhereCacheRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DisableAnywhereCacheRequest
+ * @throws {Error} If the 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.storage.control.v2.DisableAnywhereCacheRequest;
+
+ /**
+ * Verifies a DisableAnywhereCacheRequest message.
+ * @param message Plain 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 DisableAnywhereCacheRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DisableAnywhereCacheRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.DisableAnywhereCacheRequest;
+
+ /**
+ * Creates a plain object from a DisableAnywhereCacheRequest message. Also converts values to other types if specified.
+ * @param message DisableAnywhereCacheRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.DisableAnywhereCacheRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DisableAnywhereCacheRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DisableAnywhereCacheRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PauseAnywhereCacheRequest. */
+ interface IPauseAnywhereCacheRequest {
+
+ /** PauseAnywhereCacheRequest name */
+ name?: (string|null);
+
+ /** PauseAnywhereCacheRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a PauseAnywhereCacheRequest. */
+ class PauseAnywhereCacheRequest implements IPauseAnywhereCacheRequest {
+
+ /**
+ * Constructs a new PauseAnywhereCacheRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.IPauseAnywhereCacheRequest);
+
+ /** PauseAnywhereCacheRequest name. */
+ public name: string;
+
+ /** PauseAnywhereCacheRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new PauseAnywhereCacheRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PauseAnywhereCacheRequest instance
+ */
+ public static create(properties?: google.storage.control.v2.IPauseAnywhereCacheRequest): google.storage.control.v2.PauseAnywhereCacheRequest;
+
+ /**
+ * Encodes the specified PauseAnywhereCacheRequest message. Does not implicitly {@link google.storage.control.v2.PauseAnywhereCacheRequest.verify|verify} messages.
+ * @param message PauseAnywhereCacheRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.IPauseAnywhereCacheRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PauseAnywhereCacheRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.PauseAnywhereCacheRequest.verify|verify} messages.
+ * @param message PauseAnywhereCacheRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.IPauseAnywhereCacheRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PauseAnywhereCacheRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PauseAnywhereCacheRequest
+ * @throws {Error} If the payload is 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.storage.control.v2.PauseAnywhereCacheRequest;
+
+ /**
+ * Decodes a PauseAnywhereCacheRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PauseAnywhereCacheRequest
+ * @throws {Error} If the 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.storage.control.v2.PauseAnywhereCacheRequest;
+
+ /**
+ * Verifies a PauseAnywhereCacheRequest message.
+ * @param message Plain 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 PauseAnywhereCacheRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PauseAnywhereCacheRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.PauseAnywhereCacheRequest;
+
+ /**
+ * Creates a plain object from a PauseAnywhereCacheRequest message. Also converts values to other types if specified.
+ * @param message PauseAnywhereCacheRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.PauseAnywhereCacheRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PauseAnywhereCacheRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PauseAnywhereCacheRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ResumeAnywhereCacheRequest. */
+ interface IResumeAnywhereCacheRequest {
+
+ /** ResumeAnywhereCacheRequest name */
+ name?: (string|null);
+
+ /** ResumeAnywhereCacheRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a ResumeAnywhereCacheRequest. */
+ class ResumeAnywhereCacheRequest implements IResumeAnywhereCacheRequest {
+
+ /**
+ * Constructs a new ResumeAnywhereCacheRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.IResumeAnywhereCacheRequest);
+
+ /** ResumeAnywhereCacheRequest name. */
+ public name: string;
+
+ /** ResumeAnywhereCacheRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new ResumeAnywhereCacheRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResumeAnywhereCacheRequest instance
+ */
+ public static create(properties?: google.storage.control.v2.IResumeAnywhereCacheRequest): google.storage.control.v2.ResumeAnywhereCacheRequest;
+
+ /**
+ * Encodes the specified ResumeAnywhereCacheRequest message. Does not implicitly {@link google.storage.control.v2.ResumeAnywhereCacheRequest.verify|verify} messages.
+ * @param message ResumeAnywhereCacheRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.IResumeAnywhereCacheRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResumeAnywhereCacheRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.ResumeAnywhereCacheRequest.verify|verify} messages.
+ * @param message ResumeAnywhereCacheRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.IResumeAnywhereCacheRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResumeAnywhereCacheRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResumeAnywhereCacheRequest
+ * @throws {Error} If the payload is 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.storage.control.v2.ResumeAnywhereCacheRequest;
+
+ /**
+ * Decodes a ResumeAnywhereCacheRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResumeAnywhereCacheRequest
+ * @throws {Error} If the 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.storage.control.v2.ResumeAnywhereCacheRequest;
+
+ /**
+ * Verifies a ResumeAnywhereCacheRequest message.
+ * @param message Plain 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 ResumeAnywhereCacheRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResumeAnywhereCacheRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.ResumeAnywhereCacheRequest;
+
+ /**
+ * Creates a plain object from a ResumeAnywhereCacheRequest message. Also converts values to other types if specified.
+ * @param message ResumeAnywhereCacheRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.ResumeAnywhereCacheRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResumeAnywhereCacheRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResumeAnywhereCacheRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetAnywhereCacheRequest. */
+ interface IGetAnywhereCacheRequest {
+
+ /** GetAnywhereCacheRequest name */
+ name?: (string|null);
+
+ /** GetAnywhereCacheRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a GetAnywhereCacheRequest. */
+ class GetAnywhereCacheRequest implements IGetAnywhereCacheRequest {
+
+ /**
+ * Constructs a new GetAnywhereCacheRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.IGetAnywhereCacheRequest);
+
+ /** GetAnywhereCacheRequest name. */
+ public name: string;
+
+ /** GetAnywhereCacheRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new GetAnywhereCacheRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetAnywhereCacheRequest instance
+ */
+ public static create(properties?: google.storage.control.v2.IGetAnywhereCacheRequest): google.storage.control.v2.GetAnywhereCacheRequest;
+
+ /**
+ * Encodes the specified GetAnywhereCacheRequest message. Does not implicitly {@link google.storage.control.v2.GetAnywhereCacheRequest.verify|verify} messages.
+ * @param message GetAnywhereCacheRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.IGetAnywhereCacheRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetAnywhereCacheRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.GetAnywhereCacheRequest.verify|verify} messages.
+ * @param message GetAnywhereCacheRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.IGetAnywhereCacheRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetAnywhereCacheRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetAnywhereCacheRequest
+ * @throws {Error} If the payload is 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.storage.control.v2.GetAnywhereCacheRequest;
+
+ /**
+ * Decodes a GetAnywhereCacheRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetAnywhereCacheRequest
+ * @throws {Error} If the 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.storage.control.v2.GetAnywhereCacheRequest;
+
+ /**
+ * Verifies a GetAnywhereCacheRequest message.
+ * @param message Plain 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 GetAnywhereCacheRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetAnywhereCacheRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.GetAnywhereCacheRequest;
+
+ /**
+ * Creates a plain object from a GetAnywhereCacheRequest message. Also converts values to other types if specified.
+ * @param message GetAnywhereCacheRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.GetAnywhereCacheRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetAnywhereCacheRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetAnywhereCacheRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListAnywhereCachesRequest. */
+ interface IListAnywhereCachesRequest {
+
+ /** ListAnywhereCachesRequest parent */
+ parent?: (string|null);
+
+ /** ListAnywhereCachesRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListAnywhereCachesRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListAnywhereCachesRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a ListAnywhereCachesRequest. */
+ class ListAnywhereCachesRequest implements IListAnywhereCachesRequest {
+
+ /**
+ * Constructs a new ListAnywhereCachesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.IListAnywhereCachesRequest);
+
+ /** ListAnywhereCachesRequest parent. */
+ public parent: string;
+
+ /** ListAnywhereCachesRequest pageSize. */
+ public pageSize: number;
+
+ /** ListAnywhereCachesRequest pageToken. */
+ public pageToken: string;
+
+ /** ListAnywhereCachesRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new ListAnywhereCachesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListAnywhereCachesRequest instance
+ */
+ public static create(properties?: google.storage.control.v2.IListAnywhereCachesRequest): google.storage.control.v2.ListAnywhereCachesRequest;
+
+ /**
+ * Encodes the specified ListAnywhereCachesRequest message. Does not implicitly {@link google.storage.control.v2.ListAnywhereCachesRequest.verify|verify} messages.
+ * @param message ListAnywhereCachesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.IListAnywhereCachesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListAnywhereCachesRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.ListAnywhereCachesRequest.verify|verify} messages.
+ * @param message ListAnywhereCachesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.IListAnywhereCachesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListAnywhereCachesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListAnywhereCachesRequest
+ * @throws {Error} If the payload is 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.storage.control.v2.ListAnywhereCachesRequest;
+
+ /**
+ * Decodes a ListAnywhereCachesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListAnywhereCachesRequest
+ * @throws {Error} If the 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.storage.control.v2.ListAnywhereCachesRequest;
+
+ /**
+ * Verifies a ListAnywhereCachesRequest message.
+ * @param message Plain 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 ListAnywhereCachesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListAnywhereCachesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.ListAnywhereCachesRequest;
+
+ /**
+ * Creates a plain object from a ListAnywhereCachesRequest message. Also converts values to other types if specified.
+ * @param message ListAnywhereCachesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.ListAnywhereCachesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListAnywhereCachesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListAnywhereCachesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListAnywhereCachesResponse. */
+ interface IListAnywhereCachesResponse {
+
+ /** ListAnywhereCachesResponse anywhereCaches */
+ anywhereCaches?: (google.storage.control.v2.IAnywhereCache[]|null);
+
+ /** ListAnywhereCachesResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListAnywhereCachesResponse. */
+ class ListAnywhereCachesResponse implements IListAnywhereCachesResponse {
+
+ /**
+ * Constructs a new ListAnywhereCachesResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.IListAnywhereCachesResponse);
+
+ /** ListAnywhereCachesResponse anywhereCaches. */
+ public anywhereCaches: google.storage.control.v2.IAnywhereCache[];
+
+ /** ListAnywhereCachesResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListAnywhereCachesResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListAnywhereCachesResponse instance
+ */
+ public static create(properties?: google.storage.control.v2.IListAnywhereCachesResponse): google.storage.control.v2.ListAnywhereCachesResponse;
+
+ /**
+ * Encodes the specified ListAnywhereCachesResponse message. Does not implicitly {@link google.storage.control.v2.ListAnywhereCachesResponse.verify|verify} messages.
+ * @param message ListAnywhereCachesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.IListAnywhereCachesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListAnywhereCachesResponse message, length delimited. Does not implicitly {@link google.storage.control.v2.ListAnywhereCachesResponse.verify|verify} messages.
+ * @param message ListAnywhereCachesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.IListAnywhereCachesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListAnywhereCachesResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListAnywhereCachesResponse
+ * @throws {Error} If the payload is 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.storage.control.v2.ListAnywhereCachesResponse;
+
+ /**
+ * Decodes a ListAnywhereCachesResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListAnywhereCachesResponse
+ * @throws {Error} If the 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.storage.control.v2.ListAnywhereCachesResponse;
+
+ /**
+ * Verifies a ListAnywhereCachesResponse message.
+ * @param message Plain 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 ListAnywhereCachesResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListAnywhereCachesResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.ListAnywhereCachesResponse;
+
+ /**
+ * Creates a plain object from a ListAnywhereCachesResponse message. Also converts values to other types if specified.
+ * @param message ListAnywhereCachesResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.ListAnywhereCachesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListAnywhereCachesResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListAnywhereCachesResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an IntelligenceConfig. */
+ interface IIntelligenceConfig {
+
+ /** IntelligenceConfig name */
+ name?: (string|null);
+
+ /** IntelligenceConfig editionConfig */
+ editionConfig?: (google.storage.control.v2.IntelligenceConfig.EditionConfig|keyof typeof google.storage.control.v2.IntelligenceConfig.EditionConfig|null);
+
+ /** IntelligenceConfig updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** IntelligenceConfig filter */
+ filter?: (google.storage.control.v2.IntelligenceConfig.IFilter|null);
+
+ /** IntelligenceConfig effectiveIntelligenceConfig */
+ effectiveIntelligenceConfig?: (google.storage.control.v2.IntelligenceConfig.IEffectiveIntelligenceConfig|null);
+
+ /** IntelligenceConfig trialConfig */
+ trialConfig?: (google.storage.control.v2.IntelligenceConfig.ITrialConfig|null);
+ }
+
+ /** Represents an IntelligenceConfig. */
+ class IntelligenceConfig implements IIntelligenceConfig {
+
+ /**
+ * Constructs a new IntelligenceConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.IIntelligenceConfig);
+
+ /** IntelligenceConfig name. */
+ public name: string;
+
+ /** IntelligenceConfig editionConfig. */
+ public editionConfig: (google.storage.control.v2.IntelligenceConfig.EditionConfig|keyof typeof google.storage.control.v2.IntelligenceConfig.EditionConfig);
+
+ /** IntelligenceConfig updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** IntelligenceConfig filter. */
+ public filter?: (google.storage.control.v2.IntelligenceConfig.IFilter|null);
+
+ /** IntelligenceConfig effectiveIntelligenceConfig. */
+ public effectiveIntelligenceConfig?: (google.storage.control.v2.IntelligenceConfig.IEffectiveIntelligenceConfig|null);
+
+ /** IntelligenceConfig trialConfig. */
+ public trialConfig?: (google.storage.control.v2.IntelligenceConfig.ITrialConfig|null);
+
+ /**
+ * Creates a new IntelligenceConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns IntelligenceConfig instance
+ */
+ public static create(properties?: google.storage.control.v2.IIntelligenceConfig): google.storage.control.v2.IntelligenceConfig;
+
+ /**
+ * Encodes the specified IntelligenceConfig message. Does not implicitly {@link google.storage.control.v2.IntelligenceConfig.verify|verify} messages.
+ * @param message IntelligenceConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.IIntelligenceConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified IntelligenceConfig message, length delimited. Does not implicitly {@link google.storage.control.v2.IntelligenceConfig.verify|verify} messages.
+ * @param message IntelligenceConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.IIntelligenceConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an IntelligenceConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns IntelligenceConfig
+ * @throws {Error} If the payload is 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.storage.control.v2.IntelligenceConfig;
+
+ /**
+ * Decodes an IntelligenceConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns IntelligenceConfig
+ * @throws {Error} If the 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.storage.control.v2.IntelligenceConfig;
+
+ /**
+ * Verifies an IntelligenceConfig message.
+ * @param message Plain 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 IntelligenceConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns IntelligenceConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.IntelligenceConfig;
+
+ /**
+ * Creates a plain object from an IntelligenceConfig message. Also converts values to other types if specified.
+ * @param message IntelligenceConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.IntelligenceConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this IntelligenceConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for IntelligenceConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace IntelligenceConfig {
+
+ /** EditionConfig enum. */
+ enum EditionConfig {
+ EDITION_CONFIG_UNSPECIFIED = 0,
+ INHERIT = 1,
+ DISABLED = 2,
+ STANDARD = 3,
+ TRIAL = 5
+ }
+
+ /** Properties of a Filter. */
+ interface IFilter {
+
+ /** Filter includedCloudStorageLocations */
+ includedCloudStorageLocations?: (google.storage.control.v2.IntelligenceConfig.Filter.ICloudStorageLocations|null);
+
+ /** Filter excludedCloudStorageLocations */
+ excludedCloudStorageLocations?: (google.storage.control.v2.IntelligenceConfig.Filter.ICloudStorageLocations|null);
+
+ /** Filter includedCloudStorageBuckets */
+ includedCloudStorageBuckets?: (google.storage.control.v2.IntelligenceConfig.Filter.ICloudStorageBuckets|null);
+
+ /** Filter excludedCloudStorageBuckets */
+ excludedCloudStorageBuckets?: (google.storage.control.v2.IntelligenceConfig.Filter.ICloudStorageBuckets|null);
+ }
+
+ /** Represents a Filter. */
+ class Filter implements IFilter {
+
+ /**
+ * Constructs a new Filter.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.IntelligenceConfig.IFilter);
+
+ /** Filter includedCloudStorageLocations. */
+ public includedCloudStorageLocations?: (google.storage.control.v2.IntelligenceConfig.Filter.ICloudStorageLocations|null);
+
+ /** Filter excludedCloudStorageLocations. */
+ public excludedCloudStorageLocations?: (google.storage.control.v2.IntelligenceConfig.Filter.ICloudStorageLocations|null);
+
+ /** Filter includedCloudStorageBuckets. */
+ public includedCloudStorageBuckets?: (google.storage.control.v2.IntelligenceConfig.Filter.ICloudStorageBuckets|null);
+
+ /** Filter excludedCloudStorageBuckets. */
+ public excludedCloudStorageBuckets?: (google.storage.control.v2.IntelligenceConfig.Filter.ICloudStorageBuckets|null);
+
+ /** Filter cloudStorageLocations. */
+ public cloudStorageLocations?: ("includedCloudStorageLocations"|"excludedCloudStorageLocations");
+
+ /** Filter cloudStorageBuckets. */
+ public cloudStorageBuckets?: ("includedCloudStorageBuckets"|"excludedCloudStorageBuckets");
+
+ /**
+ * Creates a new Filter instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Filter instance
+ */
+ public static create(properties?: google.storage.control.v2.IntelligenceConfig.IFilter): google.storage.control.v2.IntelligenceConfig.Filter;
+
+ /**
+ * Encodes the specified Filter message. Does not implicitly {@link google.storage.control.v2.IntelligenceConfig.Filter.verify|verify} messages.
+ * @param message Filter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.IntelligenceConfig.IFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Filter message, length delimited. Does not implicitly {@link google.storage.control.v2.IntelligenceConfig.Filter.verify|verify} messages.
+ * @param message Filter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.IntelligenceConfig.IFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Filter message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Filter
+ * @throws {Error} If the payload is 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.storage.control.v2.IntelligenceConfig.Filter;
+
+ /**
+ * Decodes a Filter message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Filter
+ * @throws {Error} If the 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.storage.control.v2.IntelligenceConfig.Filter;
+
+ /**
+ * Verifies a Filter message.
+ * @param message Plain 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 Filter message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Filter
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.IntelligenceConfig.Filter;
+
+ /**
+ * Creates a plain object from a Filter message. Also converts values to other types if specified.
+ * @param message Filter
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.IntelligenceConfig.Filter, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Filter to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Filter
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Filter {
+
+ /** Properties of a CloudStorageLocations. */
+ interface ICloudStorageLocations {
+
+ /** CloudStorageLocations locations */
+ locations?: (string[]|null);
+ }
+
+ /** Represents a CloudStorageLocations. */
+ class CloudStorageLocations implements ICloudStorageLocations {
+
+ /**
+ * Constructs a new CloudStorageLocations.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.IntelligenceConfig.Filter.ICloudStorageLocations);
+
+ /** CloudStorageLocations locations. */
+ public locations: string[];
+
+ /**
+ * Creates a new CloudStorageLocations instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CloudStorageLocations instance
+ */
+ public static create(properties?: google.storage.control.v2.IntelligenceConfig.Filter.ICloudStorageLocations): google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations;
+
+ /**
+ * Encodes the specified CloudStorageLocations message. Does not implicitly {@link google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations.verify|verify} messages.
+ * @param message CloudStorageLocations message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.IntelligenceConfig.Filter.ICloudStorageLocations, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CloudStorageLocations message, length delimited. Does not implicitly {@link google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations.verify|verify} messages.
+ * @param message CloudStorageLocations message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.IntelligenceConfig.Filter.ICloudStorageLocations, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CloudStorageLocations message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CloudStorageLocations
+ * @throws {Error} If the payload is 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.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations;
+
+ /**
+ * Decodes a CloudStorageLocations message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CloudStorageLocations
+ * @throws {Error} If the 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.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations;
+
+ /**
+ * Verifies a CloudStorageLocations message.
+ * @param message Plain 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 CloudStorageLocations message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CloudStorageLocations
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations;
+
+ /**
+ * Creates a plain object from a CloudStorageLocations message. Also converts values to other types if specified.
+ * @param message CloudStorageLocations
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CloudStorageLocations to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CloudStorageLocations
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CloudStorageBuckets. */
+ interface ICloudStorageBuckets {
+
+ /** CloudStorageBuckets bucketIdRegexes */
+ bucketIdRegexes?: (string[]|null);
+ }
+
+ /** Represents a CloudStorageBuckets. */
+ class CloudStorageBuckets implements ICloudStorageBuckets {
+
+ /**
+ * Constructs a new CloudStorageBuckets.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.IntelligenceConfig.Filter.ICloudStorageBuckets);
+
+ /** CloudStorageBuckets bucketIdRegexes. */
+ public bucketIdRegexes: string[];
+
+ /**
+ * Creates a new CloudStorageBuckets instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CloudStorageBuckets instance
+ */
+ public static create(properties?: google.storage.control.v2.IntelligenceConfig.Filter.ICloudStorageBuckets): google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets;
+
+ /**
+ * Encodes the specified CloudStorageBuckets message. Does not implicitly {@link google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets.verify|verify} messages.
+ * @param message CloudStorageBuckets message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.IntelligenceConfig.Filter.ICloudStorageBuckets, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CloudStorageBuckets message, length delimited. Does not implicitly {@link google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets.verify|verify} messages.
+ * @param message CloudStorageBuckets message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.IntelligenceConfig.Filter.ICloudStorageBuckets, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CloudStorageBuckets message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CloudStorageBuckets
+ * @throws {Error} If the payload is 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.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets;
+
+ /**
+ * Decodes a CloudStorageBuckets message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CloudStorageBuckets
+ * @throws {Error} If the 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.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets;
+
+ /**
+ * Verifies a CloudStorageBuckets message.
+ * @param message Plain 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 CloudStorageBuckets message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CloudStorageBuckets
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets;
+
+ /**
+ * Creates a plain object from a CloudStorageBuckets message. Also converts values to other types if specified.
+ * @param message CloudStorageBuckets
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CloudStorageBuckets to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CloudStorageBuckets
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an EffectiveIntelligenceConfig. */
+ interface IEffectiveIntelligenceConfig {
+
+ /** EffectiveIntelligenceConfig effectiveEdition */
+ effectiveEdition?: (google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig.EffectiveEdition|keyof typeof google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig.EffectiveEdition|null);
+
+ /** EffectiveIntelligenceConfig intelligenceConfig */
+ intelligenceConfig?: (string|null);
+ }
+
+ /** Represents an EffectiveIntelligenceConfig. */
+ class EffectiveIntelligenceConfig implements IEffectiveIntelligenceConfig {
+
+ /**
+ * Constructs a new EffectiveIntelligenceConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.IntelligenceConfig.IEffectiveIntelligenceConfig);
+
+ /** EffectiveIntelligenceConfig effectiveEdition. */
+ public effectiveEdition: (google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig.EffectiveEdition|keyof typeof google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig.EffectiveEdition);
+
+ /** EffectiveIntelligenceConfig intelligenceConfig. */
+ public intelligenceConfig: string;
+
+ /**
+ * Creates a new EffectiveIntelligenceConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EffectiveIntelligenceConfig instance
+ */
+ public static create(properties?: google.storage.control.v2.IntelligenceConfig.IEffectiveIntelligenceConfig): google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig;
+
+ /**
+ * Encodes the specified EffectiveIntelligenceConfig message. Does not implicitly {@link google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig.verify|verify} messages.
+ * @param message EffectiveIntelligenceConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.IntelligenceConfig.IEffectiveIntelligenceConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EffectiveIntelligenceConfig message, length delimited. Does not implicitly {@link google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig.verify|verify} messages.
+ * @param message EffectiveIntelligenceConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.IntelligenceConfig.IEffectiveIntelligenceConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EffectiveIntelligenceConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EffectiveIntelligenceConfig
+ * @throws {Error} If the payload is 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.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig;
+
+ /**
+ * Decodes an EffectiveIntelligenceConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EffectiveIntelligenceConfig
+ * @throws {Error} If the 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.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig;
+
+ /**
+ * Verifies an EffectiveIntelligenceConfig message.
+ * @param message Plain 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 EffectiveIntelligenceConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EffectiveIntelligenceConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig;
+
+ /**
+ * Creates a plain object from an EffectiveIntelligenceConfig message. Also converts values to other types if specified.
+ * @param message EffectiveIntelligenceConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EffectiveIntelligenceConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EffectiveIntelligenceConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace EffectiveIntelligenceConfig {
+
+ /** EffectiveEdition enum. */
+ enum EffectiveEdition {
+ EFFECTIVE_EDITION_UNSPECIFIED = 0,
+ NONE = 1,
+ STANDARD = 2
+ }
+ }
+
+ /** Properties of a TrialConfig. */
+ interface ITrialConfig {
+
+ /** TrialConfig expireTime */
+ expireTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a TrialConfig. */
+ class TrialConfig implements ITrialConfig {
+
+ /**
+ * Constructs a new TrialConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.IntelligenceConfig.ITrialConfig);
+
+ /** TrialConfig expireTime. */
+ public expireTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new TrialConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TrialConfig instance
+ */
+ public static create(properties?: google.storage.control.v2.IntelligenceConfig.ITrialConfig): google.storage.control.v2.IntelligenceConfig.TrialConfig;
+
+ /**
+ * Encodes the specified TrialConfig message. Does not implicitly {@link google.storage.control.v2.IntelligenceConfig.TrialConfig.verify|verify} messages.
+ * @param message TrialConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.IntelligenceConfig.ITrialConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TrialConfig message, length delimited. Does not implicitly {@link google.storage.control.v2.IntelligenceConfig.TrialConfig.verify|verify} messages.
+ * @param message TrialConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.IntelligenceConfig.ITrialConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TrialConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TrialConfig
+ * @throws {Error} If the payload is 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.storage.control.v2.IntelligenceConfig.TrialConfig;
+
+ /**
+ * Decodes a TrialConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TrialConfig
+ * @throws {Error} If the 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.storage.control.v2.IntelligenceConfig.TrialConfig;
+
+ /**
+ * Verifies a TrialConfig message.
+ * @param message Plain 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 TrialConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TrialConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.IntelligenceConfig.TrialConfig;
+
+ /**
+ * Creates a plain object from a TrialConfig message. Also converts values to other types if specified.
+ * @param message TrialConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.IntelligenceConfig.TrialConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TrialConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TrialConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an UpdateOrganizationIntelligenceConfigRequest. */
+ interface IUpdateOrganizationIntelligenceConfigRequest {
+
+ /** UpdateOrganizationIntelligenceConfigRequest intelligenceConfig */
+ intelligenceConfig?: (google.storage.control.v2.IIntelligenceConfig|null);
+
+ /** UpdateOrganizationIntelligenceConfigRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateOrganizationIntelligenceConfigRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents an UpdateOrganizationIntelligenceConfigRequest. */
+ class UpdateOrganizationIntelligenceConfigRequest implements IUpdateOrganizationIntelligenceConfigRequest {
+
+ /**
+ * Constructs a new UpdateOrganizationIntelligenceConfigRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.IUpdateOrganizationIntelligenceConfigRequest);
+
+ /** UpdateOrganizationIntelligenceConfigRequest intelligenceConfig. */
+ public intelligenceConfig?: (google.storage.control.v2.IIntelligenceConfig|null);
+
+ /** UpdateOrganizationIntelligenceConfigRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateOrganizationIntelligenceConfigRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new UpdateOrganizationIntelligenceConfigRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateOrganizationIntelligenceConfigRequest instance
+ */
+ public static create(properties?: google.storage.control.v2.IUpdateOrganizationIntelligenceConfigRequest): google.storage.control.v2.UpdateOrganizationIntelligenceConfigRequest;
+
+ /**
+ * Encodes the specified UpdateOrganizationIntelligenceConfigRequest message. Does not implicitly {@link google.storage.control.v2.UpdateOrganizationIntelligenceConfigRequest.verify|verify} messages.
+ * @param message UpdateOrganizationIntelligenceConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.IUpdateOrganizationIntelligenceConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateOrganizationIntelligenceConfigRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.UpdateOrganizationIntelligenceConfigRequest.verify|verify} messages.
+ * @param message UpdateOrganizationIntelligenceConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.IUpdateOrganizationIntelligenceConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateOrganizationIntelligenceConfigRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateOrganizationIntelligenceConfigRequest
+ * @throws {Error} If the payload is 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.storage.control.v2.UpdateOrganizationIntelligenceConfigRequest;
+
+ /**
+ * Decodes an UpdateOrganizationIntelligenceConfigRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateOrganizationIntelligenceConfigRequest
+ * @throws {Error} If the 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.storage.control.v2.UpdateOrganizationIntelligenceConfigRequest;
+
+ /**
+ * Verifies an UpdateOrganizationIntelligenceConfigRequest message.
+ * @param message Plain 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 UpdateOrganizationIntelligenceConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateOrganizationIntelligenceConfigRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.UpdateOrganizationIntelligenceConfigRequest;
+
+ /**
+ * Creates a plain object from an UpdateOrganizationIntelligenceConfigRequest message. Also converts values to other types if specified.
+ * @param message UpdateOrganizationIntelligenceConfigRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.UpdateOrganizationIntelligenceConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateOrganizationIntelligenceConfigRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateOrganizationIntelligenceConfigRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateFolderIntelligenceConfigRequest. */
+ interface IUpdateFolderIntelligenceConfigRequest {
+
+ /** UpdateFolderIntelligenceConfigRequest intelligenceConfig */
+ intelligenceConfig?: (google.storage.control.v2.IIntelligenceConfig|null);
+
+ /** UpdateFolderIntelligenceConfigRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateFolderIntelligenceConfigRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents an UpdateFolderIntelligenceConfigRequest. */
+ class UpdateFolderIntelligenceConfigRequest implements IUpdateFolderIntelligenceConfigRequest {
+
+ /**
+ * Constructs a new UpdateFolderIntelligenceConfigRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.IUpdateFolderIntelligenceConfigRequest);
+
+ /** UpdateFolderIntelligenceConfigRequest intelligenceConfig. */
+ public intelligenceConfig?: (google.storage.control.v2.IIntelligenceConfig|null);
+
+ /** UpdateFolderIntelligenceConfigRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateFolderIntelligenceConfigRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new UpdateFolderIntelligenceConfigRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateFolderIntelligenceConfigRequest instance
+ */
+ public static create(properties?: google.storage.control.v2.IUpdateFolderIntelligenceConfigRequest): google.storage.control.v2.UpdateFolderIntelligenceConfigRequest;
+
+ /**
+ * Encodes the specified UpdateFolderIntelligenceConfigRequest message. Does not implicitly {@link google.storage.control.v2.UpdateFolderIntelligenceConfigRequest.verify|verify} messages.
+ * @param message UpdateFolderIntelligenceConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.IUpdateFolderIntelligenceConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateFolderIntelligenceConfigRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.UpdateFolderIntelligenceConfigRequest.verify|verify} messages.
+ * @param message UpdateFolderIntelligenceConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.IUpdateFolderIntelligenceConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateFolderIntelligenceConfigRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateFolderIntelligenceConfigRequest
+ * @throws {Error} If the payload is 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.storage.control.v2.UpdateFolderIntelligenceConfigRequest;
+
+ /**
+ * Decodes an UpdateFolderIntelligenceConfigRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateFolderIntelligenceConfigRequest
+ * @throws {Error} If the 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.storage.control.v2.UpdateFolderIntelligenceConfigRequest;
+
+ /**
+ * Verifies an UpdateFolderIntelligenceConfigRequest message.
+ * @param message Plain 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 UpdateFolderIntelligenceConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateFolderIntelligenceConfigRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.UpdateFolderIntelligenceConfigRequest;
+
+ /**
+ * Creates a plain object from an UpdateFolderIntelligenceConfigRequest message. Also converts values to other types if specified.
+ * @param message UpdateFolderIntelligenceConfigRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.UpdateFolderIntelligenceConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateFolderIntelligenceConfigRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateFolderIntelligenceConfigRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateProjectIntelligenceConfigRequest. */
+ interface IUpdateProjectIntelligenceConfigRequest {
+
+ /** UpdateProjectIntelligenceConfigRequest intelligenceConfig */
+ intelligenceConfig?: (google.storage.control.v2.IIntelligenceConfig|null);
+
+ /** UpdateProjectIntelligenceConfigRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateProjectIntelligenceConfigRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents an UpdateProjectIntelligenceConfigRequest. */
+ class UpdateProjectIntelligenceConfigRequest implements IUpdateProjectIntelligenceConfigRequest {
+
+ /**
+ * Constructs a new UpdateProjectIntelligenceConfigRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.IUpdateProjectIntelligenceConfigRequest);
+
+ /** UpdateProjectIntelligenceConfigRequest intelligenceConfig. */
+ public intelligenceConfig?: (google.storage.control.v2.IIntelligenceConfig|null);
+
+ /** UpdateProjectIntelligenceConfigRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateProjectIntelligenceConfigRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new UpdateProjectIntelligenceConfigRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateProjectIntelligenceConfigRequest instance
+ */
+ public static create(properties?: google.storage.control.v2.IUpdateProjectIntelligenceConfigRequest): google.storage.control.v2.UpdateProjectIntelligenceConfigRequest;
+
+ /**
+ * Encodes the specified UpdateProjectIntelligenceConfigRequest message. Does not implicitly {@link google.storage.control.v2.UpdateProjectIntelligenceConfigRequest.verify|verify} messages.
+ * @param message UpdateProjectIntelligenceConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.IUpdateProjectIntelligenceConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateProjectIntelligenceConfigRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.UpdateProjectIntelligenceConfigRequest.verify|verify} messages.
+ * @param message UpdateProjectIntelligenceConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.IUpdateProjectIntelligenceConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateProjectIntelligenceConfigRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateProjectIntelligenceConfigRequest
+ * @throws {Error} If the payload is 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.storage.control.v2.UpdateProjectIntelligenceConfigRequest;
+
+ /**
+ * Decodes an UpdateProjectIntelligenceConfigRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateProjectIntelligenceConfigRequest
+ * @throws {Error} If the 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.storage.control.v2.UpdateProjectIntelligenceConfigRequest;
+
+ /**
+ * Verifies an UpdateProjectIntelligenceConfigRequest message.
+ * @param message Plain 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 UpdateProjectIntelligenceConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateProjectIntelligenceConfigRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.UpdateProjectIntelligenceConfigRequest;
+
+ /**
+ * Creates a plain object from an UpdateProjectIntelligenceConfigRequest message. Also converts values to other types if specified.
+ * @param message UpdateProjectIntelligenceConfigRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.UpdateProjectIntelligenceConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateProjectIntelligenceConfigRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateProjectIntelligenceConfigRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetOrganizationIntelligenceConfigRequest. */
+ interface IGetOrganizationIntelligenceConfigRequest {
+
+ /** GetOrganizationIntelligenceConfigRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetOrganizationIntelligenceConfigRequest. */
+ class GetOrganizationIntelligenceConfigRequest implements IGetOrganizationIntelligenceConfigRequest {
+
+ /**
+ * Constructs a new GetOrganizationIntelligenceConfigRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.IGetOrganizationIntelligenceConfigRequest);
+
+ /** GetOrganizationIntelligenceConfigRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetOrganizationIntelligenceConfigRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetOrganizationIntelligenceConfigRequest instance
+ */
+ public static create(properties?: google.storage.control.v2.IGetOrganizationIntelligenceConfigRequest): google.storage.control.v2.GetOrganizationIntelligenceConfigRequest;
+
+ /**
+ * Encodes the specified GetOrganizationIntelligenceConfigRequest message. Does not implicitly {@link google.storage.control.v2.GetOrganizationIntelligenceConfigRequest.verify|verify} messages.
+ * @param message GetOrganizationIntelligenceConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.IGetOrganizationIntelligenceConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetOrganizationIntelligenceConfigRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.GetOrganizationIntelligenceConfigRequest.verify|verify} messages.
+ * @param message GetOrganizationIntelligenceConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.IGetOrganizationIntelligenceConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetOrganizationIntelligenceConfigRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetOrganizationIntelligenceConfigRequest
+ * @throws {Error} If the payload is 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.storage.control.v2.GetOrganizationIntelligenceConfigRequest;
+
+ /**
+ * Decodes a GetOrganizationIntelligenceConfigRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetOrganizationIntelligenceConfigRequest
+ * @throws {Error} If the 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.storage.control.v2.GetOrganizationIntelligenceConfigRequest;
+
+ /**
+ * Verifies a GetOrganizationIntelligenceConfigRequest message.
+ * @param message Plain 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 GetOrganizationIntelligenceConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetOrganizationIntelligenceConfigRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.GetOrganizationIntelligenceConfigRequest;
+
+ /**
+ * Creates a plain object from a GetOrganizationIntelligenceConfigRequest message. Also converts values to other types if specified.
+ * @param message GetOrganizationIntelligenceConfigRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.GetOrganizationIntelligenceConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetOrganizationIntelligenceConfigRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetOrganizationIntelligenceConfigRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetFolderIntelligenceConfigRequest. */
+ interface IGetFolderIntelligenceConfigRequest {
+
+ /** GetFolderIntelligenceConfigRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetFolderIntelligenceConfigRequest. */
+ class GetFolderIntelligenceConfigRequest implements IGetFolderIntelligenceConfigRequest {
+
+ /**
+ * Constructs a new GetFolderIntelligenceConfigRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.IGetFolderIntelligenceConfigRequest);
+
+ /** GetFolderIntelligenceConfigRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetFolderIntelligenceConfigRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetFolderIntelligenceConfigRequest instance
+ */
+ public static create(properties?: google.storage.control.v2.IGetFolderIntelligenceConfigRequest): google.storage.control.v2.GetFolderIntelligenceConfigRequest;
+
+ /**
+ * Encodes the specified GetFolderIntelligenceConfigRequest message. Does not implicitly {@link google.storage.control.v2.GetFolderIntelligenceConfigRequest.verify|verify} messages.
+ * @param message GetFolderIntelligenceConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.IGetFolderIntelligenceConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetFolderIntelligenceConfigRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.GetFolderIntelligenceConfigRequest.verify|verify} messages.
+ * @param message GetFolderIntelligenceConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.IGetFolderIntelligenceConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetFolderIntelligenceConfigRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetFolderIntelligenceConfigRequest
+ * @throws {Error} If the payload is 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.storage.control.v2.GetFolderIntelligenceConfigRequest;
+
+ /**
+ * Decodes a GetFolderIntelligenceConfigRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetFolderIntelligenceConfigRequest
+ * @throws {Error} If the 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.storage.control.v2.GetFolderIntelligenceConfigRequest;
+
+ /**
+ * Verifies a GetFolderIntelligenceConfigRequest message.
+ * @param message Plain 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 GetFolderIntelligenceConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetFolderIntelligenceConfigRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.GetFolderIntelligenceConfigRequest;
+
+ /**
+ * Creates a plain object from a GetFolderIntelligenceConfigRequest message. Also converts values to other types if specified.
+ * @param message GetFolderIntelligenceConfigRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.GetFolderIntelligenceConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetFolderIntelligenceConfigRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetFolderIntelligenceConfigRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetProjectIntelligenceConfigRequest. */
+ interface IGetProjectIntelligenceConfigRequest {
+
+ /** GetProjectIntelligenceConfigRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetProjectIntelligenceConfigRequest. */
+ class GetProjectIntelligenceConfigRequest implements IGetProjectIntelligenceConfigRequest {
+
+ /**
+ * Constructs a new GetProjectIntelligenceConfigRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.control.v2.IGetProjectIntelligenceConfigRequest);
+
+ /** GetProjectIntelligenceConfigRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetProjectIntelligenceConfigRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetProjectIntelligenceConfigRequest instance
+ */
+ public static create(properties?: google.storage.control.v2.IGetProjectIntelligenceConfigRequest): google.storage.control.v2.GetProjectIntelligenceConfigRequest;
+
+ /**
+ * Encodes the specified GetProjectIntelligenceConfigRequest message. Does not implicitly {@link google.storage.control.v2.GetProjectIntelligenceConfigRequest.verify|verify} messages.
+ * @param message GetProjectIntelligenceConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.control.v2.IGetProjectIntelligenceConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetProjectIntelligenceConfigRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.GetProjectIntelligenceConfigRequest.verify|verify} messages.
+ * @param message GetProjectIntelligenceConfigRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.control.v2.IGetProjectIntelligenceConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetProjectIntelligenceConfigRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetProjectIntelligenceConfigRequest
+ * @throws {Error} If the payload is 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.storage.control.v2.GetProjectIntelligenceConfigRequest;
+
+ /**
+ * Decodes a GetProjectIntelligenceConfigRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetProjectIntelligenceConfigRequest
+ * @throws {Error} If the 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.storage.control.v2.GetProjectIntelligenceConfigRequest;
+
+ /**
+ * Verifies a GetProjectIntelligenceConfigRequest message.
+ * @param message Plain 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 GetProjectIntelligenceConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetProjectIntelligenceConfigRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.control.v2.GetProjectIntelligenceConfigRequest;
+
+ /**
+ * Creates a plain object from a GetProjectIntelligenceConfigRequest message. Also converts values to other types if specified.
+ * @param message GetProjectIntelligenceConfigRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.control.v2.GetProjectIntelligenceConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetProjectIntelligenceConfigRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetProjectIntelligenceConfigRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+ }
+
+ /** Namespace v2. */
+ namespace v2 {
+
+ /** Represents a Storage */
+ class Storage extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new Storage 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 Storage 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): Storage;
+
+ /**
+ * Calls DeleteBucket.
+ * @param request DeleteBucketRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteBucket(request: google.storage.v2.IDeleteBucketRequest, callback: google.storage.v2.Storage.DeleteBucketCallback): void;
+
+ /**
+ * Calls DeleteBucket.
+ * @param request DeleteBucketRequest message or plain object
+ * @returns Promise
+ */
+ public deleteBucket(request: google.storage.v2.IDeleteBucketRequest): Promise;
+
+ /**
+ * Calls GetBucket.
+ * @param request GetBucketRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Bucket
+ */
+ public getBucket(request: google.storage.v2.IGetBucketRequest, callback: google.storage.v2.Storage.GetBucketCallback): void;
+
+ /**
+ * Calls GetBucket.
+ * @param request GetBucketRequest message or plain object
+ * @returns Promise
+ */
+ public getBucket(request: google.storage.v2.IGetBucketRequest): Promise;
+
+ /**
+ * Calls CreateBucket.
+ * @param request CreateBucketRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Bucket
+ */
+ public createBucket(request: google.storage.v2.ICreateBucketRequest, callback: google.storage.v2.Storage.CreateBucketCallback): void;
+
+ /**
+ * Calls CreateBucket.
+ * @param request CreateBucketRequest message or plain object
+ * @returns Promise
+ */
+ public createBucket(request: google.storage.v2.ICreateBucketRequest): Promise;
+
+ /**
+ * Calls ListBuckets.
+ * @param request ListBucketsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListBucketsResponse
+ */
+ public listBuckets(request: google.storage.v2.IListBucketsRequest, callback: google.storage.v2.Storage.ListBucketsCallback): void;
+
+ /**
+ * Calls ListBuckets.
+ * @param request ListBucketsRequest message or plain object
+ * @returns Promise
+ */
+ public listBuckets(request: google.storage.v2.IListBucketsRequest): Promise;
+
+ /**
+ * Calls LockBucketRetentionPolicy.
+ * @param request LockBucketRetentionPolicyRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Bucket
+ */
+ public lockBucketRetentionPolicy(request: google.storage.v2.ILockBucketRetentionPolicyRequest, callback: google.storage.v2.Storage.LockBucketRetentionPolicyCallback): void;
+
+ /**
+ * Calls LockBucketRetentionPolicy.
+ * @param request LockBucketRetentionPolicyRequest message or plain object
+ * @returns Promise
+ */
+ public lockBucketRetentionPolicy(request: google.storage.v2.ILockBucketRetentionPolicyRequest): Promise;
+
+ /**
+ * Calls GetIamPolicy.
+ * @param request GetIamPolicyRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Policy
+ */
+ public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest, callback: google.storage.v2.Storage.GetIamPolicyCallback): void;
+
+ /**
+ * Calls GetIamPolicy.
+ * @param request GetIamPolicyRequest message or plain object
+ * @returns Promise
+ */
+ public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest): Promise;
+
+ /**
+ * Calls SetIamPolicy.
+ * @param request SetIamPolicyRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Policy
+ */
+ public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest, callback: google.storage.v2.Storage.SetIamPolicyCallback): void;
+
+ /**
+ * Calls SetIamPolicy.
+ * @param request SetIamPolicyRequest message or plain object
+ * @returns Promise
+ */
+ public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest): Promise;
+
+ /**
+ * Calls TestIamPermissions.
+ * @param request TestIamPermissionsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and TestIamPermissionsResponse
+ */
+ public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest, callback: google.storage.v2.Storage.TestIamPermissionsCallback): void;
+
+ /**
+ * Calls TestIamPermissions.
+ * @param request TestIamPermissionsRequest message or plain object
+ * @returns Promise
+ */
+ public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest): Promise;
+
+ /**
+ * Calls UpdateBucket.
+ * @param request UpdateBucketRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Bucket
+ */
+ public updateBucket(request: google.storage.v2.IUpdateBucketRequest, callback: google.storage.v2.Storage.UpdateBucketCallback): void;
+
+ /**
+ * Calls UpdateBucket.
+ * @param request UpdateBucketRequest message or plain object
+ * @returns Promise
+ */
+ public updateBucket(request: google.storage.v2.IUpdateBucketRequest): Promise;
+
+ /**
+ * Calls ComposeObject.
+ * @param request ComposeObjectRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Object
+ */
+ public composeObject(request: google.storage.v2.IComposeObjectRequest, callback: google.storage.v2.Storage.ComposeObjectCallback): void;
+
+ /**
+ * Calls ComposeObject.
+ * @param request ComposeObjectRequest message or plain object
+ * @returns Promise
+ */
+ public composeObject(request: google.storage.v2.IComposeObjectRequest): Promise;
+
+ /**
+ * Calls DeleteObject.
+ * @param request DeleteObjectRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteObject(request: google.storage.v2.IDeleteObjectRequest, callback: google.storage.v2.Storage.DeleteObjectCallback): void;
+
+ /**
+ * Calls DeleteObject.
+ * @param request DeleteObjectRequest message or plain object
+ * @returns Promise
+ */
+ public deleteObject(request: google.storage.v2.IDeleteObjectRequest): Promise;
+
+ /**
+ * Calls RestoreObject.
+ * @param request RestoreObjectRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Object
+ */
+ public restoreObject(request: google.storage.v2.IRestoreObjectRequest, callback: google.storage.v2.Storage.RestoreObjectCallback): void;
+
+ /**
+ * Calls RestoreObject.
+ * @param request RestoreObjectRequest message or plain object
+ * @returns Promise
+ */
+ public restoreObject(request: google.storage.v2.IRestoreObjectRequest): Promise;
+
+ /**
+ * Calls CancelResumableWrite.
+ * @param request CancelResumableWriteRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and CancelResumableWriteResponse
+ */
+ public cancelResumableWrite(request: google.storage.v2.ICancelResumableWriteRequest, callback: google.storage.v2.Storage.CancelResumableWriteCallback): void;
+
+ /**
+ * Calls CancelResumableWrite.
+ * @param request CancelResumableWriteRequest message or plain object
+ * @returns Promise
+ */
+ public cancelResumableWrite(request: google.storage.v2.ICancelResumableWriteRequest): Promise;
+
+ /**
+ * Calls GetObject.
+ * @param request GetObjectRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Object
+ */
+ public getObject(request: google.storage.v2.IGetObjectRequest, callback: google.storage.v2.Storage.GetObjectCallback): void;
+
+ /**
+ * Calls GetObject.
+ * @param request GetObjectRequest message or plain object
+ * @returns Promise
+ */
+ public getObject(request: google.storage.v2.IGetObjectRequest): Promise;
+
+ /**
+ * Calls ReadObject.
+ * @param request ReadObjectRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ReadObjectResponse
+ */
+ public readObject(request: google.storage.v2.IReadObjectRequest, callback: google.storage.v2.Storage.ReadObjectCallback): void;
+
+ /**
+ * Calls ReadObject.
+ * @param request ReadObjectRequest message or plain object
+ * @returns Promise
+ */
+ public readObject(request: google.storage.v2.IReadObjectRequest): Promise;
+
+ /**
+ * Calls BidiReadObject.
+ * @param request BidiReadObjectRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and BidiReadObjectResponse
+ */
+ public bidiReadObject(request: google.storage.v2.IBidiReadObjectRequest, callback: google.storage.v2.Storage.BidiReadObjectCallback): void;
+
+ /**
+ * Calls BidiReadObject.
+ * @param request BidiReadObjectRequest message or plain object
+ * @returns Promise
+ */
+ public bidiReadObject(request: google.storage.v2.IBidiReadObjectRequest): Promise;
+
+ /**
+ * Calls UpdateObject.
+ * @param request UpdateObjectRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Object
+ */
+ public updateObject(request: google.storage.v2.IUpdateObjectRequest, callback: google.storage.v2.Storage.UpdateObjectCallback): void;
+
+ /**
+ * Calls UpdateObject.
+ * @param request UpdateObjectRequest message or plain object
+ * @returns Promise
+ */
+ public updateObject(request: google.storage.v2.IUpdateObjectRequest): Promise;
+
+ /**
+ * Calls WriteObject.
+ * @param request WriteObjectRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and WriteObjectResponse
+ */
+ public writeObject(request: google.storage.v2.IWriteObjectRequest, callback: google.storage.v2.Storage.WriteObjectCallback): void;
+
+ /**
+ * Calls WriteObject.
+ * @param request WriteObjectRequest message or plain object
+ * @returns Promise
+ */
+ public writeObject(request: google.storage.v2.IWriteObjectRequest): Promise;
+
+ /**
+ * Calls BidiWriteObject.
+ * @param request BidiWriteObjectRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and BidiWriteObjectResponse
+ */
+ public bidiWriteObject(request: google.storage.v2.IBidiWriteObjectRequest, callback: google.storage.v2.Storage.BidiWriteObjectCallback): void;
+
+ /**
+ * Calls BidiWriteObject.
+ * @param request BidiWriteObjectRequest message or plain object
+ * @returns Promise
+ */
+ public bidiWriteObject(request: google.storage.v2.IBidiWriteObjectRequest): Promise;
+
+ /**
+ * Calls ListObjects.
+ * @param request ListObjectsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListObjectsResponse
+ */
+ public listObjects(request: google.storage.v2.IListObjectsRequest, callback: google.storage.v2.Storage.ListObjectsCallback): void;
+
+ /**
+ * Calls ListObjects.
+ * @param request ListObjectsRequest message or plain object
+ * @returns Promise
+ */
+ public listObjects(request: google.storage.v2.IListObjectsRequest): Promise;
+
+ /**
+ * Calls RewriteObject.
+ * @param request RewriteObjectRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and RewriteResponse
+ */
+ public rewriteObject(request: google.storage.v2.IRewriteObjectRequest, callback: google.storage.v2.Storage.RewriteObjectCallback): void;
+
+ /**
+ * Calls RewriteObject.
+ * @param request RewriteObjectRequest message or plain object
+ * @returns Promise
+ */
+ public rewriteObject(request: google.storage.v2.IRewriteObjectRequest): Promise;
+
+ /**
+ * Calls StartResumableWrite.
+ * @param request StartResumableWriteRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and StartResumableWriteResponse
+ */
+ public startResumableWrite(request: google.storage.v2.IStartResumableWriteRequest, callback: google.storage.v2.Storage.StartResumableWriteCallback): void;
+
+ /**
+ * Calls StartResumableWrite.
+ * @param request StartResumableWriteRequest message or plain object
+ * @returns Promise
+ */
+ public startResumableWrite(request: google.storage.v2.IStartResumableWriteRequest): Promise;
+
+ /**
+ * Calls QueryWriteStatus.
+ * @param request QueryWriteStatusRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and QueryWriteStatusResponse
+ */
+ public queryWriteStatus(request: google.storage.v2.IQueryWriteStatusRequest, callback: google.storage.v2.Storage.QueryWriteStatusCallback): void;
+
+ /**
+ * Calls QueryWriteStatus.
+ * @param request QueryWriteStatusRequest message or plain object
+ * @returns Promise
+ */
+ public queryWriteStatus(request: google.storage.v2.IQueryWriteStatusRequest): Promise;
+
+ /**
+ * Calls MoveObject.
+ * @param request MoveObjectRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Object
+ */
+ public moveObject(request: google.storage.v2.IMoveObjectRequest, callback: google.storage.v2.Storage.MoveObjectCallback): void;
+
+ /**
+ * Calls MoveObject.
+ * @param request MoveObjectRequest message or plain object
+ * @returns Promise
+ */
+ public moveObject(request: google.storage.v2.IMoveObjectRequest): Promise;
+ }
+
+ namespace Storage {
+
+ /**
+ * Callback as used by {@link google.storage.v2.Storage|deleteBucket}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteBucketCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.storage.v2.Storage|getBucket}.
+ * @param error Error, if any
+ * @param [response] Bucket
+ */
+ type GetBucketCallback = (error: (Error|null), response?: google.storage.v2.Bucket) => void;
+
+ /**
+ * Callback as used by {@link google.storage.v2.Storage|createBucket}.
+ * @param error Error, if any
+ * @param [response] Bucket
+ */
+ type CreateBucketCallback = (error: (Error|null), response?: google.storage.v2.Bucket) => void;
+
+ /**
+ * Callback as used by {@link google.storage.v2.Storage|listBuckets}.
+ * @param error Error, if any
+ * @param [response] ListBucketsResponse
+ */
+ type ListBucketsCallback = (error: (Error|null), response?: google.storage.v2.ListBucketsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.storage.v2.Storage|lockBucketRetentionPolicy}.
+ * @param error Error, if any
+ * @param [response] Bucket
+ */
+ type LockBucketRetentionPolicyCallback = (error: (Error|null), response?: google.storage.v2.Bucket) => void;
+
+ /**
+ * Callback as used by {@link google.storage.v2.Storage|getIamPolicy}.
+ * @param error Error, if any
+ * @param [response] Policy
+ */
+ type GetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void;
+
+ /**
+ * Callback as used by {@link google.storage.v2.Storage|setIamPolicy}.
+ * @param error Error, if any
+ * @param [response] Policy
+ */
+ type SetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void;
+
+ /**
+ * Callback as used by {@link google.storage.v2.Storage|testIamPermissions}.
+ * @param error Error, if any
+ * @param [response] TestIamPermissionsResponse
+ */
+ type TestIamPermissionsCallback = (error: (Error|null), response?: google.iam.v1.TestIamPermissionsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.storage.v2.Storage|updateBucket}.
+ * @param error Error, if any
+ * @param [response] Bucket
+ */
+ type UpdateBucketCallback = (error: (Error|null), response?: google.storage.v2.Bucket) => void;
+
+ /**
+ * Callback as used by {@link google.storage.v2.Storage|composeObject}.
+ * @param error Error, if any
+ * @param [response] Object
+ */
+ type ComposeObjectCallback = (error: (Error|null), response?: google.storage.v2.object) => void;
+
+ /**
+ * Callback as used by {@link google.storage.v2.Storage|deleteObject}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteObjectCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.storage.v2.Storage|restoreObject}.
+ * @param error Error, if any
+ * @param [response] Object
+ */
+ type RestoreObjectCallback = (error: (Error|null), response?: google.storage.v2.object) => void;
+
+ /**
+ * Callback as used by {@link google.storage.v2.Storage|cancelResumableWrite}.
+ * @param error Error, if any
+ * @param [response] CancelResumableWriteResponse
+ */
+ type CancelResumableWriteCallback = (error: (Error|null), response?: google.storage.v2.CancelResumableWriteResponse) => void;
+
+ /**
+ * Callback as used by {@link google.storage.v2.Storage|getObject}.
+ * @param error Error, if any
+ * @param [response] Object
+ */
+ type GetObjectCallback = (error: (Error|null), response?: google.storage.v2.object) => void;
+
+ /**
+ * Callback as used by {@link google.storage.v2.Storage|readObject}.
+ * @param error Error, if any
+ * @param [response] ReadObjectResponse
+ */
+ type ReadObjectCallback = (error: (Error|null), response?: google.storage.v2.ReadObjectResponse) => void;
+
+ /**
+ * Callback as used by {@link google.storage.v2.Storage|bidiReadObject}.
+ * @param error Error, if any
+ * @param [response] BidiReadObjectResponse
+ */
+ type BidiReadObjectCallback = (error: (Error|null), response?: google.storage.v2.BidiReadObjectResponse) => void;
+
+ /**
+ * Callback as used by {@link google.storage.v2.Storage|updateObject}.
+ * @param error Error, if any
+ * @param [response] Object
+ */
+ type UpdateObjectCallback = (error: (Error|null), response?: google.storage.v2.object) => void;
+
+ /**
+ * Callback as used by {@link google.storage.v2.Storage|writeObject}.
+ * @param error Error, if any
+ * @param [response] WriteObjectResponse
+ */
+ type WriteObjectCallback = (error: (Error|null), response?: google.storage.v2.WriteObjectResponse) => void;
+
+ /**
+ * Callback as used by {@link google.storage.v2.Storage|bidiWriteObject}.
+ * @param error Error, if any
+ * @param [response] BidiWriteObjectResponse
+ */
+ type BidiWriteObjectCallback = (error: (Error|null), response?: google.storage.v2.BidiWriteObjectResponse) => void;
+
+ /**
+ * Callback as used by {@link google.storage.v2.Storage|listObjects}.
+ * @param error Error, if any
+ * @param [response] ListObjectsResponse
+ */
+ type ListObjectsCallback = (error: (Error|null), response?: google.storage.v2.ListObjectsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.storage.v2.Storage|rewriteObject}.
+ * @param error Error, if any
+ * @param [response] RewriteResponse
+ */
+ type RewriteObjectCallback = (error: (Error|null), response?: google.storage.v2.RewriteResponse) => void;
+
+ /**
+ * Callback as used by {@link google.storage.v2.Storage|startResumableWrite}.
+ * @param error Error, if any
+ * @param [response] StartResumableWriteResponse
+ */
+ type StartResumableWriteCallback = (error: (Error|null), response?: google.storage.v2.StartResumableWriteResponse) => void;
+
+ /**
+ * Callback as used by {@link google.storage.v2.Storage|queryWriteStatus}.
+ * @param error Error, if any
+ * @param [response] QueryWriteStatusResponse
+ */
+ type QueryWriteStatusCallback = (error: (Error|null), response?: google.storage.v2.QueryWriteStatusResponse) => void;
+
+ /**
+ * Callback as used by {@link google.storage.v2.Storage|moveObject}.
+ * @param error Error, if any
+ * @param [response] Object
+ */
+ type MoveObjectCallback = (error: (Error|null), response?: google.storage.v2.object) => void;
+ }
+
+ /** Properties of a DeleteBucketRequest. */
+ interface IDeleteBucketRequest {
+
+ /** DeleteBucketRequest name */
+ name?: (string|null);
+
+ /** DeleteBucketRequest ifMetagenerationMatch */
+ ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** DeleteBucketRequest ifMetagenerationNotMatch */
+ ifMetagenerationNotMatch?: (number|Long|string|null);
+ }
+
+ /** Represents a DeleteBucketRequest. */
+ class DeleteBucketRequest implements IDeleteBucketRequest {
+
+ /**
+ * Constructs a new DeleteBucketRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IDeleteBucketRequest);
+
+ /** DeleteBucketRequest name. */
+ public name: string;
+
+ /** DeleteBucketRequest ifMetagenerationMatch. */
+ public ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** DeleteBucketRequest ifMetagenerationNotMatch. */
+ public ifMetagenerationNotMatch?: (number|Long|string|null);
+
+ /**
+ * Creates a new DeleteBucketRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteBucketRequest instance
+ */
+ public static create(properties?: google.storage.v2.IDeleteBucketRequest): google.storage.v2.DeleteBucketRequest;
+
+ /**
+ * Encodes the specified DeleteBucketRequest message. Does not implicitly {@link google.storage.v2.DeleteBucketRequest.verify|verify} messages.
+ * @param message DeleteBucketRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IDeleteBucketRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteBucketRequest message, length delimited. Does not implicitly {@link google.storage.v2.DeleteBucketRequest.verify|verify} messages.
+ * @param message DeleteBucketRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IDeleteBucketRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteBucketRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteBucketRequest
+ * @throws {Error} If the payload is 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.storage.v2.DeleteBucketRequest;
+
+ /**
+ * Decodes a DeleteBucketRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteBucketRequest
+ * @throws {Error} If the 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.storage.v2.DeleteBucketRequest;
+
+ /**
+ * Verifies a DeleteBucketRequest message.
+ * @param message Plain 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 DeleteBucketRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteBucketRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.DeleteBucketRequest;
+
+ /**
+ * Creates a plain object from a DeleteBucketRequest message. Also converts values to other types if specified.
+ * @param message DeleteBucketRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.DeleteBucketRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteBucketRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteBucketRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetBucketRequest. */
+ interface IGetBucketRequest {
+
+ /** GetBucketRequest name */
+ name?: (string|null);
+
+ /** GetBucketRequest ifMetagenerationMatch */
+ ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** GetBucketRequest ifMetagenerationNotMatch */
+ ifMetagenerationNotMatch?: (number|Long|string|null);
+
+ /** GetBucketRequest readMask */
+ readMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents a GetBucketRequest. */
+ class GetBucketRequest implements IGetBucketRequest {
+
+ /**
+ * Constructs a new GetBucketRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IGetBucketRequest);
+
+ /** GetBucketRequest name. */
+ public name: string;
+
+ /** GetBucketRequest ifMetagenerationMatch. */
+ public ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** GetBucketRequest ifMetagenerationNotMatch. */
+ public ifMetagenerationNotMatch?: (number|Long|string|null);
+
+ /** GetBucketRequest readMask. */
+ public readMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new GetBucketRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetBucketRequest instance
+ */
+ public static create(properties?: google.storage.v2.IGetBucketRequest): google.storage.v2.GetBucketRequest;
+
+ /**
+ * Encodes the specified GetBucketRequest message. Does not implicitly {@link google.storage.v2.GetBucketRequest.verify|verify} messages.
+ * @param message GetBucketRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IGetBucketRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetBucketRequest message, length delimited. Does not implicitly {@link google.storage.v2.GetBucketRequest.verify|verify} messages.
+ * @param message GetBucketRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IGetBucketRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetBucketRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetBucketRequest
+ * @throws {Error} If the payload is 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.storage.v2.GetBucketRequest;
+
+ /**
+ * Decodes a GetBucketRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetBucketRequest
+ * @throws {Error} If the 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.storage.v2.GetBucketRequest;
+
+ /**
+ * Verifies a GetBucketRequest message.
+ * @param message Plain 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 GetBucketRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetBucketRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.GetBucketRequest;
+
+ /**
+ * Creates a plain object from a GetBucketRequest message. Also converts values to other types if specified.
+ * @param message GetBucketRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.GetBucketRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetBucketRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetBucketRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateBucketRequest. */
+ interface ICreateBucketRequest {
+
+ /** CreateBucketRequest parent */
+ parent?: (string|null);
+
+ /** CreateBucketRequest bucket */
+ bucket?: (google.storage.v2.IBucket|null);
+
+ /** CreateBucketRequest bucketId */
+ bucketId?: (string|null);
+
+ /** CreateBucketRequest predefinedAcl */
+ predefinedAcl?: (string|null);
+
+ /** CreateBucketRequest predefinedDefaultObjectAcl */
+ predefinedDefaultObjectAcl?: (string|null);
+
+ /** CreateBucketRequest enableObjectRetention */
+ enableObjectRetention?: (boolean|null);
+ }
+
+ /** Represents a CreateBucketRequest. */
+ class CreateBucketRequest implements ICreateBucketRequest {
+
+ /**
+ * Constructs a new CreateBucketRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.ICreateBucketRequest);
+
+ /** CreateBucketRequest parent. */
+ public parent: string;
+
+ /** CreateBucketRequest bucket. */
+ public bucket?: (google.storage.v2.IBucket|null);
+
+ /** CreateBucketRequest bucketId. */
+ public bucketId: string;
+
+ /** CreateBucketRequest predefinedAcl. */
+ public predefinedAcl: string;
+
+ /** CreateBucketRequest predefinedDefaultObjectAcl. */
+ public predefinedDefaultObjectAcl: string;
+
+ /** CreateBucketRequest enableObjectRetention. */
+ public enableObjectRetention: boolean;
+
+ /**
+ * Creates a new CreateBucketRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateBucketRequest instance
+ */
+ public static create(properties?: google.storage.v2.ICreateBucketRequest): google.storage.v2.CreateBucketRequest;
+
+ /**
+ * Encodes the specified CreateBucketRequest message. Does not implicitly {@link google.storage.v2.CreateBucketRequest.verify|verify} messages.
+ * @param message CreateBucketRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.ICreateBucketRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateBucketRequest message, length delimited. Does not implicitly {@link google.storage.v2.CreateBucketRequest.verify|verify} messages.
+ * @param message CreateBucketRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.ICreateBucketRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateBucketRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateBucketRequest
+ * @throws {Error} If the payload is 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.storage.v2.CreateBucketRequest;
+
+ /**
+ * Decodes a CreateBucketRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateBucketRequest
+ * @throws {Error} If the 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.storage.v2.CreateBucketRequest;
+
+ /**
+ * Verifies a CreateBucketRequest message.
+ * @param message Plain 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 CreateBucketRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateBucketRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.CreateBucketRequest;
+
+ /**
+ * Creates a plain object from a CreateBucketRequest message. Also converts values to other types if specified.
+ * @param message CreateBucketRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.CreateBucketRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateBucketRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateBucketRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListBucketsRequest. */
+ interface IListBucketsRequest {
+
+ /** ListBucketsRequest parent */
+ parent?: (string|null);
+
+ /** ListBucketsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListBucketsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListBucketsRequest prefix */
+ prefix?: (string|null);
+
+ /** ListBucketsRequest readMask */
+ readMask?: (google.protobuf.IFieldMask|null);
+
+ /** ListBucketsRequest returnPartialSuccess */
+ returnPartialSuccess?: (boolean|null);
+ }
+
+ /** Represents a ListBucketsRequest. */
+ class ListBucketsRequest implements IListBucketsRequest {
+
+ /**
+ * Constructs a new ListBucketsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IListBucketsRequest);
+
+ /** ListBucketsRequest parent. */
+ public parent: string;
+
+ /** ListBucketsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListBucketsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListBucketsRequest prefix. */
+ public prefix: string;
+
+ /** ListBucketsRequest readMask. */
+ public readMask?: (google.protobuf.IFieldMask|null);
+
+ /** ListBucketsRequest returnPartialSuccess. */
+ public returnPartialSuccess: boolean;
+
+ /**
+ * Creates a new ListBucketsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListBucketsRequest instance
+ */
+ public static create(properties?: google.storage.v2.IListBucketsRequest): google.storage.v2.ListBucketsRequest;
+
+ /**
+ * Encodes the specified ListBucketsRequest message. Does not implicitly {@link google.storage.v2.ListBucketsRequest.verify|verify} messages.
+ * @param message ListBucketsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IListBucketsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListBucketsRequest message, length delimited. Does not implicitly {@link google.storage.v2.ListBucketsRequest.verify|verify} messages.
+ * @param message ListBucketsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IListBucketsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListBucketsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListBucketsRequest
+ * @throws {Error} If the payload is 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.storage.v2.ListBucketsRequest;
+
+ /**
+ * Decodes a ListBucketsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListBucketsRequest
+ * @throws {Error} If the 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.storage.v2.ListBucketsRequest;
+
+ /**
+ * Verifies a ListBucketsRequest message.
+ * @param message Plain 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 ListBucketsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListBucketsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.ListBucketsRequest;
+
+ /**
+ * Creates a plain object from a ListBucketsRequest message. Also converts values to other types if specified.
+ * @param message ListBucketsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.ListBucketsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListBucketsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListBucketsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListBucketsResponse. */
+ interface IListBucketsResponse {
+
+ /** ListBucketsResponse buckets */
+ buckets?: (google.storage.v2.IBucket[]|null);
+
+ /** ListBucketsResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListBucketsResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListBucketsResponse. */
+ class ListBucketsResponse implements IListBucketsResponse {
+
+ /**
+ * Constructs a new ListBucketsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IListBucketsResponse);
+
+ /** ListBucketsResponse buckets. */
+ public buckets: google.storage.v2.IBucket[];
+
+ /** ListBucketsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListBucketsResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListBucketsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListBucketsResponse instance
+ */
+ public static create(properties?: google.storage.v2.IListBucketsResponse): google.storage.v2.ListBucketsResponse;
+
+ /**
+ * Encodes the specified ListBucketsResponse message. Does not implicitly {@link google.storage.v2.ListBucketsResponse.verify|verify} messages.
+ * @param message ListBucketsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IListBucketsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListBucketsResponse message, length delimited. Does not implicitly {@link google.storage.v2.ListBucketsResponse.verify|verify} messages.
+ * @param message ListBucketsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IListBucketsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListBucketsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListBucketsResponse
+ * @throws {Error} If the payload is 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.storage.v2.ListBucketsResponse;
+
+ /**
+ * Decodes a ListBucketsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListBucketsResponse
+ * @throws {Error} If the 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.storage.v2.ListBucketsResponse;
+
+ /**
+ * Verifies a ListBucketsResponse message.
+ * @param message Plain 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 ListBucketsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListBucketsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.ListBucketsResponse;
+
+ /**
+ * Creates a plain object from a ListBucketsResponse message. Also converts values to other types if specified.
+ * @param message ListBucketsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.ListBucketsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListBucketsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListBucketsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a LockBucketRetentionPolicyRequest. */
+ interface ILockBucketRetentionPolicyRequest {
+
+ /** LockBucketRetentionPolicyRequest bucket */
+ bucket?: (string|null);
+
+ /** LockBucketRetentionPolicyRequest ifMetagenerationMatch */
+ ifMetagenerationMatch?: (number|Long|string|null);
+ }
+
+ /** Represents a LockBucketRetentionPolicyRequest. */
+ class LockBucketRetentionPolicyRequest implements ILockBucketRetentionPolicyRequest {
+
+ /**
+ * Constructs a new LockBucketRetentionPolicyRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.ILockBucketRetentionPolicyRequest);
+
+ /** LockBucketRetentionPolicyRequest bucket. */
+ public bucket: string;
+
+ /** LockBucketRetentionPolicyRequest ifMetagenerationMatch. */
+ public ifMetagenerationMatch: (number|Long|string);
+
+ /**
+ * Creates a new LockBucketRetentionPolicyRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LockBucketRetentionPolicyRequest instance
+ */
+ public static create(properties?: google.storage.v2.ILockBucketRetentionPolicyRequest): google.storage.v2.LockBucketRetentionPolicyRequest;
+
+ /**
+ * Encodes the specified LockBucketRetentionPolicyRequest message. Does not implicitly {@link google.storage.v2.LockBucketRetentionPolicyRequest.verify|verify} messages.
+ * @param message LockBucketRetentionPolicyRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.ILockBucketRetentionPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LockBucketRetentionPolicyRequest message, length delimited. Does not implicitly {@link google.storage.v2.LockBucketRetentionPolicyRequest.verify|verify} messages.
+ * @param message LockBucketRetentionPolicyRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.ILockBucketRetentionPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LockBucketRetentionPolicyRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LockBucketRetentionPolicyRequest
+ * @throws {Error} If the payload is 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.storage.v2.LockBucketRetentionPolicyRequest;
+
+ /**
+ * Decodes a LockBucketRetentionPolicyRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LockBucketRetentionPolicyRequest
+ * @throws {Error} If the 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.storage.v2.LockBucketRetentionPolicyRequest;
+
+ /**
+ * Verifies a LockBucketRetentionPolicyRequest message.
+ * @param message Plain 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 LockBucketRetentionPolicyRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LockBucketRetentionPolicyRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.LockBucketRetentionPolicyRequest;
+
+ /**
+ * Creates a plain object from a LockBucketRetentionPolicyRequest message. Also converts values to other types if specified.
+ * @param message LockBucketRetentionPolicyRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.LockBucketRetentionPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LockBucketRetentionPolicyRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LockBucketRetentionPolicyRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateBucketRequest. */
+ interface IUpdateBucketRequest {
+
+ /** UpdateBucketRequest bucket */
+ bucket?: (google.storage.v2.IBucket|null);
+
+ /** UpdateBucketRequest ifMetagenerationMatch */
+ ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** UpdateBucketRequest ifMetagenerationNotMatch */
+ ifMetagenerationNotMatch?: (number|Long|string|null);
+
+ /** UpdateBucketRequest predefinedAcl */
+ predefinedAcl?: (string|null);
+
+ /** UpdateBucketRequest predefinedDefaultObjectAcl */
+ predefinedDefaultObjectAcl?: (string|null);
+
+ /** UpdateBucketRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents an UpdateBucketRequest. */
+ class UpdateBucketRequest implements IUpdateBucketRequest {
+
+ /**
+ * Constructs a new UpdateBucketRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IUpdateBucketRequest);
+
+ /** UpdateBucketRequest bucket. */
+ public bucket?: (google.storage.v2.IBucket|null);
+
+ /** UpdateBucketRequest ifMetagenerationMatch. */
+ public ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** UpdateBucketRequest ifMetagenerationNotMatch. */
+ public ifMetagenerationNotMatch?: (number|Long|string|null);
+
+ /** UpdateBucketRequest predefinedAcl. */
+ public predefinedAcl: string;
+
+ /** UpdateBucketRequest predefinedDefaultObjectAcl. */
+ public predefinedDefaultObjectAcl: string;
+
+ /** UpdateBucketRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new UpdateBucketRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateBucketRequest instance
+ */
+ public static create(properties?: google.storage.v2.IUpdateBucketRequest): google.storage.v2.UpdateBucketRequest;
+
+ /**
+ * Encodes the specified UpdateBucketRequest message. Does not implicitly {@link google.storage.v2.UpdateBucketRequest.verify|verify} messages.
+ * @param message UpdateBucketRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IUpdateBucketRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateBucketRequest message, length delimited. Does not implicitly {@link google.storage.v2.UpdateBucketRequest.verify|verify} messages.
+ * @param message UpdateBucketRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IUpdateBucketRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateBucketRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateBucketRequest
+ * @throws {Error} If the payload is 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.storage.v2.UpdateBucketRequest;
+
+ /**
+ * Decodes an UpdateBucketRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateBucketRequest
+ * @throws {Error} If the 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.storage.v2.UpdateBucketRequest;
+
+ /**
+ * Verifies an UpdateBucketRequest message.
+ * @param message Plain 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 UpdateBucketRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateBucketRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.UpdateBucketRequest;
+
+ /**
+ * Creates a plain object from an UpdateBucketRequest message. Also converts values to other types if specified.
+ * @param message UpdateBucketRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.UpdateBucketRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateBucketRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateBucketRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ComposeObjectRequest. */
+ interface IComposeObjectRequest {
+
+ /** ComposeObjectRequest destination */
+ destination?: (google.storage.v2.IObject|null);
+
+ /** ComposeObjectRequest sourceObjects */
+ sourceObjects?: (google.storage.v2.ComposeObjectRequest.ISourceObject[]|null);
+
+ /** ComposeObjectRequest destinationPredefinedAcl */
+ destinationPredefinedAcl?: (string|null);
+
+ /** ComposeObjectRequest ifGenerationMatch */
+ ifGenerationMatch?: (number|Long|string|null);
+
+ /** ComposeObjectRequest ifMetagenerationMatch */
+ ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** ComposeObjectRequest kmsKey */
+ kmsKey?: (string|null);
+
+ /** ComposeObjectRequest commonObjectRequestParams */
+ commonObjectRequestParams?: (google.storage.v2.ICommonObjectRequestParams|null);
+
+ /** ComposeObjectRequest objectChecksums */
+ objectChecksums?: (google.storage.v2.IObjectChecksums|null);
+
+ /** ComposeObjectRequest deleteSourceObjects */
+ deleteSourceObjects?: (boolean|null);
+ }
+
+ /** Represents a ComposeObjectRequest. */
+ class ComposeObjectRequest implements IComposeObjectRequest {
+
+ /**
+ * Constructs a new ComposeObjectRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IComposeObjectRequest);
+
+ /** ComposeObjectRequest destination. */
+ public destination?: (google.storage.v2.IObject|null);
+
+ /** ComposeObjectRequest sourceObjects. */
+ public sourceObjects: google.storage.v2.ComposeObjectRequest.ISourceObject[];
+
+ /** ComposeObjectRequest destinationPredefinedAcl. */
+ public destinationPredefinedAcl: string;
+
+ /** ComposeObjectRequest ifGenerationMatch. */
+ public ifGenerationMatch?: (number|Long|string|null);
+
+ /** ComposeObjectRequest ifMetagenerationMatch. */
+ public ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** ComposeObjectRequest kmsKey. */
+ public kmsKey: string;
+
+ /** ComposeObjectRequest commonObjectRequestParams. */
+ public commonObjectRequestParams?: (google.storage.v2.ICommonObjectRequestParams|null);
+
+ /** ComposeObjectRequest objectChecksums. */
+ public objectChecksums?: (google.storage.v2.IObjectChecksums|null);
+
+ /** ComposeObjectRequest deleteSourceObjects. */
+ public deleteSourceObjects?: (boolean|null);
+
+ /**
+ * Creates a new ComposeObjectRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ComposeObjectRequest instance
+ */
+ public static create(properties?: google.storage.v2.IComposeObjectRequest): google.storage.v2.ComposeObjectRequest;
+
+ /**
+ * Encodes the specified ComposeObjectRequest message. Does not implicitly {@link google.storage.v2.ComposeObjectRequest.verify|verify} messages.
+ * @param message ComposeObjectRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IComposeObjectRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ComposeObjectRequest message, length delimited. Does not implicitly {@link google.storage.v2.ComposeObjectRequest.verify|verify} messages.
+ * @param message ComposeObjectRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IComposeObjectRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ComposeObjectRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ComposeObjectRequest
+ * @throws {Error} If the payload is 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.storage.v2.ComposeObjectRequest;
+
+ /**
+ * Decodes a ComposeObjectRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ComposeObjectRequest
+ * @throws {Error} If the 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.storage.v2.ComposeObjectRequest;
+
+ /**
+ * Verifies a ComposeObjectRequest message.
+ * @param message Plain 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 ComposeObjectRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ComposeObjectRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.ComposeObjectRequest;
+
+ /**
+ * Creates a plain object from a ComposeObjectRequest message. Also converts values to other types if specified.
+ * @param message ComposeObjectRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.ComposeObjectRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ComposeObjectRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ComposeObjectRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ComposeObjectRequest {
+
+ /** Properties of a SourceObject. */
+ interface ISourceObject {
+
+ /** SourceObject name */
+ name?: (string|null);
+
+ /** SourceObject generation */
+ generation?: (number|Long|string|null);
+
+ /** SourceObject objectPreconditions */
+ objectPreconditions?: (google.storage.v2.ComposeObjectRequest.SourceObject.IObjectPreconditions|null);
+ }
+
+ /** Represents a SourceObject. */
+ class SourceObject implements ISourceObject {
+
+ /**
+ * Constructs a new SourceObject.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.ComposeObjectRequest.ISourceObject);
+
+ /** SourceObject name. */
+ public name: string;
+
+ /** SourceObject generation. */
+ public generation: (number|Long|string);
+
+ /** SourceObject objectPreconditions. */
+ public objectPreconditions?: (google.storage.v2.ComposeObjectRequest.SourceObject.IObjectPreconditions|null);
+
+ /**
+ * Creates a new SourceObject instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SourceObject instance
+ */
+ public static create(properties?: google.storage.v2.ComposeObjectRequest.ISourceObject): google.storage.v2.ComposeObjectRequest.SourceObject;
+
+ /**
+ * Encodes the specified SourceObject message. Does not implicitly {@link google.storage.v2.ComposeObjectRequest.SourceObject.verify|verify} messages.
+ * @param message SourceObject message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.ComposeObjectRequest.ISourceObject, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SourceObject message, length delimited. Does not implicitly {@link google.storage.v2.ComposeObjectRequest.SourceObject.verify|verify} messages.
+ * @param message SourceObject message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.ComposeObjectRequest.ISourceObject, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SourceObject message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SourceObject
+ * @throws {Error} If the payload is 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.storage.v2.ComposeObjectRequest.SourceObject;
+
+ /**
+ * Decodes a SourceObject message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SourceObject
+ * @throws {Error} If the 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.storage.v2.ComposeObjectRequest.SourceObject;
+
+ /**
+ * Verifies a SourceObject message.
+ * @param message Plain 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 SourceObject message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SourceObject
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.ComposeObjectRequest.SourceObject;
+
+ /**
+ * Creates a plain object from a SourceObject message. Also converts values to other types if specified.
+ * @param message SourceObject
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.ComposeObjectRequest.SourceObject, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SourceObject to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SourceObject
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace SourceObject {
+
+ /** Properties of an ObjectPreconditions. */
+ interface IObjectPreconditions {
+
+ /** ObjectPreconditions ifGenerationMatch */
+ ifGenerationMatch?: (number|Long|string|null);
+ }
+
+ /** Represents an ObjectPreconditions. */
+ class ObjectPreconditions implements IObjectPreconditions {
+
+ /**
+ * Constructs a new ObjectPreconditions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.ComposeObjectRequest.SourceObject.IObjectPreconditions);
+
+ /** ObjectPreconditions ifGenerationMatch. */
+ public ifGenerationMatch?: (number|Long|string|null);
+
+ /**
+ * Creates a new ObjectPreconditions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ObjectPreconditions instance
+ */
+ public static create(properties?: google.storage.v2.ComposeObjectRequest.SourceObject.IObjectPreconditions): google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions;
+
+ /**
+ * Encodes the specified ObjectPreconditions message. Does not implicitly {@link google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.verify|verify} messages.
+ * @param message ObjectPreconditions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.ComposeObjectRequest.SourceObject.IObjectPreconditions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ObjectPreconditions message, length delimited. Does not implicitly {@link google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.verify|verify} messages.
+ * @param message ObjectPreconditions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.ComposeObjectRequest.SourceObject.IObjectPreconditions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ObjectPreconditions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ObjectPreconditions
+ * @throws {Error} If the payload is 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.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions;
+
+ /**
+ * Decodes an ObjectPreconditions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ObjectPreconditions
+ * @throws {Error} If the 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.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions;
+
+ /**
+ * Verifies an ObjectPreconditions message.
+ * @param message Plain 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 ObjectPreconditions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ObjectPreconditions
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions;
+
+ /**
+ * Creates a plain object from an ObjectPreconditions message. Also converts values to other types if specified.
+ * @param message ObjectPreconditions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ObjectPreconditions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ObjectPreconditions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+ }
+
+ /** Properties of a DeleteObjectRequest. */
+ interface IDeleteObjectRequest {
+
+ /** DeleteObjectRequest bucket */
+ bucket?: (string|null);
+
+ /** DeleteObjectRequest object */
+ object?: (string|null);
+
+ /** DeleteObjectRequest generation */
+ generation?: (number|Long|string|null);
+
+ /** DeleteObjectRequest ifGenerationMatch */
+ ifGenerationMatch?: (number|Long|string|null);
+
+ /** DeleteObjectRequest ifGenerationNotMatch */
+ ifGenerationNotMatch?: (number|Long|string|null);
+
+ /** DeleteObjectRequest ifMetagenerationMatch */
+ ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** DeleteObjectRequest ifMetagenerationNotMatch */
+ ifMetagenerationNotMatch?: (number|Long|string|null);
+
+ /** DeleteObjectRequest commonObjectRequestParams */
+ commonObjectRequestParams?: (google.storage.v2.ICommonObjectRequestParams|null);
+ }
+
+ /** Represents a DeleteObjectRequest. */
+ class DeleteObjectRequest implements IDeleteObjectRequest {
+
+ /**
+ * Constructs a new DeleteObjectRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IDeleteObjectRequest);
+
+ /** DeleteObjectRequest bucket. */
+ public bucket: string;
+
+ /** DeleteObjectRequest object. */
+ public object: string;
+
+ /** DeleteObjectRequest generation. */
+ public generation: (number|Long|string);
+
+ /** DeleteObjectRequest ifGenerationMatch. */
+ public ifGenerationMatch?: (number|Long|string|null);
+
+ /** DeleteObjectRequest ifGenerationNotMatch. */
+ public ifGenerationNotMatch?: (number|Long|string|null);
+
+ /** DeleteObjectRequest ifMetagenerationMatch. */
+ public ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** DeleteObjectRequest ifMetagenerationNotMatch. */
+ public ifMetagenerationNotMatch?: (number|Long|string|null);
+
+ /** DeleteObjectRequest commonObjectRequestParams. */
+ public commonObjectRequestParams?: (google.storage.v2.ICommonObjectRequestParams|null);
+
+ /**
+ * Creates a new DeleteObjectRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteObjectRequest instance
+ */
+ public static create(properties?: google.storage.v2.IDeleteObjectRequest): google.storage.v2.DeleteObjectRequest;
+
+ /**
+ * Encodes the specified DeleteObjectRequest message. Does not implicitly {@link google.storage.v2.DeleteObjectRequest.verify|verify} messages.
+ * @param message DeleteObjectRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IDeleteObjectRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteObjectRequest message, length delimited. Does not implicitly {@link google.storage.v2.DeleteObjectRequest.verify|verify} messages.
+ * @param message DeleteObjectRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IDeleteObjectRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteObjectRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteObjectRequest
+ * @throws {Error} If the payload is 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.storage.v2.DeleteObjectRequest;
+
+ /**
+ * Decodes a DeleteObjectRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteObjectRequest
+ * @throws {Error} If the 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.storage.v2.DeleteObjectRequest;
+
+ /**
+ * Verifies a DeleteObjectRequest message.
+ * @param message Plain 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 DeleteObjectRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteObjectRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.DeleteObjectRequest;
+
+ /**
+ * Creates a plain object from a DeleteObjectRequest message. Also converts values to other types if specified.
+ * @param message DeleteObjectRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.DeleteObjectRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteObjectRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteObjectRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RestoreObjectRequest. */
+ interface IRestoreObjectRequest {
+
+ /** RestoreObjectRequest bucket */
+ bucket?: (string|null);
+
+ /** RestoreObjectRequest object */
+ object?: (string|null);
+
+ /** RestoreObjectRequest generation */
+ generation?: (number|Long|string|null);
+
+ /** RestoreObjectRequest restoreToken */
+ restoreToken?: (string|null);
+
+ /** RestoreObjectRequest ifGenerationMatch */
+ ifGenerationMatch?: (number|Long|string|null);
+
+ /** RestoreObjectRequest ifGenerationNotMatch */
+ ifGenerationNotMatch?: (number|Long|string|null);
+
+ /** RestoreObjectRequest ifMetagenerationMatch */
+ ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** RestoreObjectRequest ifMetagenerationNotMatch */
+ ifMetagenerationNotMatch?: (number|Long|string|null);
+
+ /** RestoreObjectRequest copySourceAcl */
+ copySourceAcl?: (boolean|null);
+
+ /** RestoreObjectRequest commonObjectRequestParams */
+ commonObjectRequestParams?: (google.storage.v2.ICommonObjectRequestParams|null);
+ }
+
+ /** Represents a RestoreObjectRequest. */
+ class RestoreObjectRequest implements IRestoreObjectRequest {
+
+ /**
+ * Constructs a new RestoreObjectRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IRestoreObjectRequest);
+
+ /** RestoreObjectRequest bucket. */
+ public bucket: string;
+
+ /** RestoreObjectRequest object. */
+ public object: string;
+
+ /** RestoreObjectRequest generation. */
+ public generation: (number|Long|string);
+
+ /** RestoreObjectRequest restoreToken. */
+ public restoreToken: string;
+
+ /** RestoreObjectRequest ifGenerationMatch. */
+ public ifGenerationMatch?: (number|Long|string|null);
+
+ /** RestoreObjectRequest ifGenerationNotMatch. */
+ public ifGenerationNotMatch?: (number|Long|string|null);
+
+ /** RestoreObjectRequest ifMetagenerationMatch. */
+ public ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** RestoreObjectRequest ifMetagenerationNotMatch. */
+ public ifMetagenerationNotMatch?: (number|Long|string|null);
+
+ /** RestoreObjectRequest copySourceAcl. */
+ public copySourceAcl?: (boolean|null);
+
+ /** RestoreObjectRequest commonObjectRequestParams. */
+ public commonObjectRequestParams?: (google.storage.v2.ICommonObjectRequestParams|null);
+
+ /**
+ * Creates a new RestoreObjectRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RestoreObjectRequest instance
+ */
+ public static create(properties?: google.storage.v2.IRestoreObjectRequest): google.storage.v2.RestoreObjectRequest;
+
+ /**
+ * Encodes the specified RestoreObjectRequest message. Does not implicitly {@link google.storage.v2.RestoreObjectRequest.verify|verify} messages.
+ * @param message RestoreObjectRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IRestoreObjectRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RestoreObjectRequest message, length delimited. Does not implicitly {@link google.storage.v2.RestoreObjectRequest.verify|verify} messages.
+ * @param message RestoreObjectRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IRestoreObjectRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RestoreObjectRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RestoreObjectRequest
+ * @throws {Error} If the payload is 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.storage.v2.RestoreObjectRequest;
+
+ /**
+ * Decodes a RestoreObjectRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RestoreObjectRequest
+ * @throws {Error} If the 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.storage.v2.RestoreObjectRequest;
+
+ /**
+ * Verifies a RestoreObjectRequest message.
+ * @param message Plain 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 RestoreObjectRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RestoreObjectRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.RestoreObjectRequest;
+
+ /**
+ * Creates a plain object from a RestoreObjectRequest message. Also converts values to other types if specified.
+ * @param message RestoreObjectRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.RestoreObjectRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RestoreObjectRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RestoreObjectRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CancelResumableWriteRequest. */
+ interface ICancelResumableWriteRequest {
+
+ /** CancelResumableWriteRequest uploadId */
+ uploadId?: (string|null);
+ }
+
+ /** Represents a CancelResumableWriteRequest. */
+ class CancelResumableWriteRequest implements ICancelResumableWriteRequest {
+
+ /**
+ * Constructs a new CancelResumableWriteRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.ICancelResumableWriteRequest);
+
+ /** CancelResumableWriteRequest uploadId. */
+ public uploadId: string;
+
+ /**
+ * Creates a new CancelResumableWriteRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CancelResumableWriteRequest instance
+ */
+ public static create(properties?: google.storage.v2.ICancelResumableWriteRequest): google.storage.v2.CancelResumableWriteRequest;
+
+ /**
+ * Encodes the specified CancelResumableWriteRequest message. Does not implicitly {@link google.storage.v2.CancelResumableWriteRequest.verify|verify} messages.
+ * @param message CancelResumableWriteRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.ICancelResumableWriteRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CancelResumableWriteRequest message, length delimited. Does not implicitly {@link google.storage.v2.CancelResumableWriteRequest.verify|verify} messages.
+ * @param message CancelResumableWriteRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.ICancelResumableWriteRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CancelResumableWriteRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CancelResumableWriteRequest
+ * @throws {Error} If the payload is 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.storage.v2.CancelResumableWriteRequest;
+
+ /**
+ * Decodes a CancelResumableWriteRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CancelResumableWriteRequest
+ * @throws {Error} If the 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.storage.v2.CancelResumableWriteRequest;
+
+ /**
+ * Verifies a CancelResumableWriteRequest message.
+ * @param message Plain 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 CancelResumableWriteRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CancelResumableWriteRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.CancelResumableWriteRequest;
+
+ /**
+ * Creates a plain object from a CancelResumableWriteRequest message. Also converts values to other types if specified.
+ * @param message CancelResumableWriteRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.CancelResumableWriteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CancelResumableWriteRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CancelResumableWriteRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CancelResumableWriteResponse. */
+ interface ICancelResumableWriteResponse {
+ }
+
+ /** Represents a CancelResumableWriteResponse. */
+ class CancelResumableWriteResponse implements ICancelResumableWriteResponse {
+
+ /**
+ * Constructs a new CancelResumableWriteResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.ICancelResumableWriteResponse);
+
+ /**
+ * Creates a new CancelResumableWriteResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CancelResumableWriteResponse instance
+ */
+ public static create(properties?: google.storage.v2.ICancelResumableWriteResponse): google.storage.v2.CancelResumableWriteResponse;
+
+ /**
+ * Encodes the specified CancelResumableWriteResponse message. Does not implicitly {@link google.storage.v2.CancelResumableWriteResponse.verify|verify} messages.
+ * @param message CancelResumableWriteResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.ICancelResumableWriteResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CancelResumableWriteResponse message, length delimited. Does not implicitly {@link google.storage.v2.CancelResumableWriteResponse.verify|verify} messages.
+ * @param message CancelResumableWriteResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.ICancelResumableWriteResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CancelResumableWriteResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CancelResumableWriteResponse
+ * @throws {Error} If the payload is 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.storage.v2.CancelResumableWriteResponse;
+
+ /**
+ * Decodes a CancelResumableWriteResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CancelResumableWriteResponse
+ * @throws {Error} If the 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.storage.v2.CancelResumableWriteResponse;
+
+ /**
+ * Verifies a CancelResumableWriteResponse message.
+ * @param message Plain 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 CancelResumableWriteResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CancelResumableWriteResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.CancelResumableWriteResponse;
+
+ /**
+ * Creates a plain object from a CancelResumableWriteResponse message. Also converts values to other types if specified.
+ * @param message CancelResumableWriteResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.CancelResumableWriteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CancelResumableWriteResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CancelResumableWriteResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ReadObjectRequest. */
+ interface IReadObjectRequest {
+
+ /** ReadObjectRequest bucket */
+ bucket?: (string|null);
+
+ /** ReadObjectRequest object */
+ object?: (string|null);
+
+ /** ReadObjectRequest generation */
+ generation?: (number|Long|string|null);
+
+ /** ReadObjectRequest readOffset */
+ readOffset?: (number|Long|string|null);
+
+ /** ReadObjectRequest readLimit */
+ readLimit?: (number|Long|string|null);
+
+ /** ReadObjectRequest ifGenerationMatch */
+ ifGenerationMatch?: (number|Long|string|null);
+
+ /** ReadObjectRequest ifGenerationNotMatch */
+ ifGenerationNotMatch?: (number|Long|string|null);
+
+ /** ReadObjectRequest ifMetagenerationMatch */
+ ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** ReadObjectRequest ifMetagenerationNotMatch */
+ ifMetagenerationNotMatch?: (number|Long|string|null);
+
+ /** ReadObjectRequest commonObjectRequestParams */
+ commonObjectRequestParams?: (google.storage.v2.ICommonObjectRequestParams|null);
+
+ /** ReadObjectRequest readMask */
+ readMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents a ReadObjectRequest. */
+ class ReadObjectRequest implements IReadObjectRequest {
+
+ /**
+ * Constructs a new ReadObjectRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IReadObjectRequest);
+
+ /** ReadObjectRequest bucket. */
+ public bucket: string;
+
+ /** ReadObjectRequest object. */
+ public object: string;
+
+ /** ReadObjectRequest generation. */
+ public generation: (number|Long|string);
+
+ /** ReadObjectRequest readOffset. */
+ public readOffset: (number|Long|string);
+
+ /** ReadObjectRequest readLimit. */
+ public readLimit: (number|Long|string);
+
+ /** ReadObjectRequest ifGenerationMatch. */
+ public ifGenerationMatch?: (number|Long|string|null);
+
+ /** ReadObjectRequest ifGenerationNotMatch. */
+ public ifGenerationNotMatch?: (number|Long|string|null);
+
+ /** ReadObjectRequest ifMetagenerationMatch. */
+ public ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** ReadObjectRequest ifMetagenerationNotMatch. */
+ public ifMetagenerationNotMatch?: (number|Long|string|null);
+
+ /** ReadObjectRequest commonObjectRequestParams. */
+ public commonObjectRequestParams?: (google.storage.v2.ICommonObjectRequestParams|null);
+
+ /** ReadObjectRequest readMask. */
+ public readMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new ReadObjectRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReadObjectRequest instance
+ */
+ public static create(properties?: google.storage.v2.IReadObjectRequest): google.storage.v2.ReadObjectRequest;
+
+ /**
+ * Encodes the specified ReadObjectRequest message. Does not implicitly {@link google.storage.v2.ReadObjectRequest.verify|verify} messages.
+ * @param message ReadObjectRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IReadObjectRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReadObjectRequest message, length delimited. Does not implicitly {@link google.storage.v2.ReadObjectRequest.verify|verify} messages.
+ * @param message ReadObjectRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IReadObjectRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReadObjectRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReadObjectRequest
+ * @throws {Error} If the payload is 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.storage.v2.ReadObjectRequest;
+
+ /**
+ * Decodes a ReadObjectRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReadObjectRequest
+ * @throws {Error} If the 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.storage.v2.ReadObjectRequest;
+
+ /**
+ * Verifies a ReadObjectRequest message.
+ * @param message Plain 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 ReadObjectRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReadObjectRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.ReadObjectRequest;
+
+ /**
+ * Creates a plain object from a ReadObjectRequest message. Also converts values to other types if specified.
+ * @param message ReadObjectRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.ReadObjectRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReadObjectRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReadObjectRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetObjectRequest. */
+ interface IGetObjectRequest {
+
+ /** GetObjectRequest bucket */
+ bucket?: (string|null);
+
+ /** GetObjectRequest object */
+ object?: (string|null);
+
+ /** GetObjectRequest generation */
+ generation?: (number|Long|string|null);
+
+ /** GetObjectRequest softDeleted */
+ softDeleted?: (boolean|null);
+
+ /** GetObjectRequest ifGenerationMatch */
+ ifGenerationMatch?: (number|Long|string|null);
+
+ /** GetObjectRequest ifGenerationNotMatch */
+ ifGenerationNotMatch?: (number|Long|string|null);
+
+ /** GetObjectRequest ifMetagenerationMatch */
+ ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** GetObjectRequest ifMetagenerationNotMatch */
+ ifMetagenerationNotMatch?: (number|Long|string|null);
+
+ /** GetObjectRequest commonObjectRequestParams */
+ commonObjectRequestParams?: (google.storage.v2.ICommonObjectRequestParams|null);
+
+ /** GetObjectRequest readMask */
+ readMask?: (google.protobuf.IFieldMask|null);
+
+ /** GetObjectRequest restoreToken */
+ restoreToken?: (string|null);
+ }
+
+ /** Represents a GetObjectRequest. */
+ class GetObjectRequest implements IGetObjectRequest {
+
+ /**
+ * Constructs a new GetObjectRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IGetObjectRequest);
+
+ /** GetObjectRequest bucket. */
+ public bucket: string;
+
+ /** GetObjectRequest object. */
+ public object: string;
+
+ /** GetObjectRequest generation. */
+ public generation: (number|Long|string);
+
+ /** GetObjectRequest softDeleted. */
+ public softDeleted?: (boolean|null);
+
+ /** GetObjectRequest ifGenerationMatch. */
+ public ifGenerationMatch?: (number|Long|string|null);
+
+ /** GetObjectRequest ifGenerationNotMatch. */
+ public ifGenerationNotMatch?: (number|Long|string|null);
+
+ /** GetObjectRequest ifMetagenerationMatch. */
+ public ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** GetObjectRequest ifMetagenerationNotMatch. */
+ public ifMetagenerationNotMatch?: (number|Long|string|null);
+
+ /** GetObjectRequest commonObjectRequestParams. */
+ public commonObjectRequestParams?: (google.storage.v2.ICommonObjectRequestParams|null);
+
+ /** GetObjectRequest readMask. */
+ public readMask?: (google.protobuf.IFieldMask|null);
+
+ /** GetObjectRequest restoreToken. */
+ public restoreToken: string;
+
+ /**
+ * Creates a new GetObjectRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetObjectRequest instance
+ */
+ public static create(properties?: google.storage.v2.IGetObjectRequest): google.storage.v2.GetObjectRequest;
+
+ /**
+ * Encodes the specified GetObjectRequest message. Does not implicitly {@link google.storage.v2.GetObjectRequest.verify|verify} messages.
+ * @param message GetObjectRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IGetObjectRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetObjectRequest message, length delimited. Does not implicitly {@link google.storage.v2.GetObjectRequest.verify|verify} messages.
+ * @param message GetObjectRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IGetObjectRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetObjectRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetObjectRequest
+ * @throws {Error} If the payload is 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.storage.v2.GetObjectRequest;
+
+ /**
+ * Decodes a GetObjectRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetObjectRequest
+ * @throws {Error} If the 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.storage.v2.GetObjectRequest;
+
+ /**
+ * Verifies a GetObjectRequest message.
+ * @param message Plain 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 GetObjectRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetObjectRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.GetObjectRequest;
+
+ /**
+ * Creates a plain object from a GetObjectRequest message. Also converts values to other types if specified.
+ * @param message GetObjectRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.GetObjectRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetObjectRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetObjectRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ReadObjectResponse. */
+ interface IReadObjectResponse {
+
+ /** ReadObjectResponse checksummedData */
+ checksummedData?: (google.storage.v2.IChecksummedData|null);
+
+ /** ReadObjectResponse objectChecksums */
+ objectChecksums?: (google.storage.v2.IObjectChecksums|null);
+
+ /** ReadObjectResponse contentRange */
+ contentRange?: (google.storage.v2.IContentRange|null);
+
+ /** ReadObjectResponse metadata */
+ metadata?: (google.storage.v2.IObject|null);
+ }
+
+ /** Represents a ReadObjectResponse. */
+ class ReadObjectResponse implements IReadObjectResponse {
+
+ /**
+ * Constructs a new ReadObjectResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IReadObjectResponse);
+
+ /** ReadObjectResponse checksummedData. */
+ public checksummedData?: (google.storage.v2.IChecksummedData|null);
+
+ /** ReadObjectResponse objectChecksums. */
+ public objectChecksums?: (google.storage.v2.IObjectChecksums|null);
+
+ /** ReadObjectResponse contentRange. */
+ public contentRange?: (google.storage.v2.IContentRange|null);
+
+ /** ReadObjectResponse metadata. */
+ public metadata?: (google.storage.v2.IObject|null);
+
+ /**
+ * Creates a new ReadObjectResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReadObjectResponse instance
+ */
+ public static create(properties?: google.storage.v2.IReadObjectResponse): google.storage.v2.ReadObjectResponse;
+
+ /**
+ * Encodes the specified ReadObjectResponse message. Does not implicitly {@link google.storage.v2.ReadObjectResponse.verify|verify} messages.
+ * @param message ReadObjectResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IReadObjectResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReadObjectResponse message, length delimited. Does not implicitly {@link google.storage.v2.ReadObjectResponse.verify|verify} messages.
+ * @param message ReadObjectResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IReadObjectResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReadObjectResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReadObjectResponse
+ * @throws {Error} If the payload is 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.storage.v2.ReadObjectResponse;
+
+ /**
+ * Decodes a ReadObjectResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReadObjectResponse
+ * @throws {Error} If the 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.storage.v2.ReadObjectResponse;
+
+ /**
+ * Verifies a ReadObjectResponse message.
+ * @param message Plain 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 ReadObjectResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReadObjectResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.ReadObjectResponse;
+
+ /**
+ * Creates a plain object from a ReadObjectResponse message. Also converts values to other types if specified.
+ * @param message ReadObjectResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.ReadObjectResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReadObjectResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReadObjectResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BidiReadObjectSpec. */
+ interface IBidiReadObjectSpec {
+
+ /** BidiReadObjectSpec bucket */
+ bucket?: (string|null);
+
+ /** BidiReadObjectSpec object */
+ object?: (string|null);
+
+ /** BidiReadObjectSpec generation */
+ generation?: (number|Long|string|null);
+
+ /** BidiReadObjectSpec ifGenerationMatch */
+ ifGenerationMatch?: (number|Long|string|null);
+
+ /** BidiReadObjectSpec ifGenerationNotMatch */
+ ifGenerationNotMatch?: (number|Long|string|null);
+
+ /** BidiReadObjectSpec ifMetagenerationMatch */
+ ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** BidiReadObjectSpec ifMetagenerationNotMatch */
+ ifMetagenerationNotMatch?: (number|Long|string|null);
+
+ /** BidiReadObjectSpec commonObjectRequestParams */
+ commonObjectRequestParams?: (google.storage.v2.ICommonObjectRequestParams|null);
+
+ /** BidiReadObjectSpec readMask */
+ readMask?: (google.protobuf.IFieldMask|null);
+
+ /** BidiReadObjectSpec readHandle */
+ readHandle?: (google.storage.v2.IBidiReadHandle|null);
+
+ /** BidiReadObjectSpec routingToken */
+ routingToken?: (string|null);
+ }
+
+ /** Represents a BidiReadObjectSpec. */
+ class BidiReadObjectSpec implements IBidiReadObjectSpec {
+
+ /**
+ * Constructs a new BidiReadObjectSpec.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IBidiReadObjectSpec);
+
+ /** BidiReadObjectSpec bucket. */
+ public bucket: string;
+
+ /** BidiReadObjectSpec object. */
+ public object: string;
+
+ /** BidiReadObjectSpec generation. */
+ public generation: (number|Long|string);
+
+ /** BidiReadObjectSpec ifGenerationMatch. */
+ public ifGenerationMatch?: (number|Long|string|null);
+
+ /** BidiReadObjectSpec ifGenerationNotMatch. */
+ public ifGenerationNotMatch?: (number|Long|string|null);
+
+ /** BidiReadObjectSpec ifMetagenerationMatch. */
+ public ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** BidiReadObjectSpec ifMetagenerationNotMatch. */
+ public ifMetagenerationNotMatch?: (number|Long|string|null);
+
+ /** BidiReadObjectSpec commonObjectRequestParams. */
+ public commonObjectRequestParams?: (google.storage.v2.ICommonObjectRequestParams|null);
+
+ /** BidiReadObjectSpec readMask. */
+ public readMask?: (google.protobuf.IFieldMask|null);
+
+ /** BidiReadObjectSpec readHandle. */
+ public readHandle?: (google.storage.v2.IBidiReadHandle|null);
+
+ /** BidiReadObjectSpec routingToken. */
+ public routingToken?: (string|null);
+
+ /**
+ * Creates a new BidiReadObjectSpec instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BidiReadObjectSpec instance
+ */
+ public static create(properties?: google.storage.v2.IBidiReadObjectSpec): google.storage.v2.BidiReadObjectSpec;
+
+ /**
+ * Encodes the specified BidiReadObjectSpec message. Does not implicitly {@link google.storage.v2.BidiReadObjectSpec.verify|verify} messages.
+ * @param message BidiReadObjectSpec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IBidiReadObjectSpec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BidiReadObjectSpec message, length delimited. Does not implicitly {@link google.storage.v2.BidiReadObjectSpec.verify|verify} messages.
+ * @param message BidiReadObjectSpec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IBidiReadObjectSpec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BidiReadObjectSpec message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BidiReadObjectSpec
+ * @throws {Error} If the payload is 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.storage.v2.BidiReadObjectSpec;
+
+ /**
+ * Decodes a BidiReadObjectSpec message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BidiReadObjectSpec
+ * @throws {Error} If the 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.storage.v2.BidiReadObjectSpec;
+
+ /**
+ * Verifies a BidiReadObjectSpec message.
+ * @param message Plain 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 BidiReadObjectSpec message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BidiReadObjectSpec
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.BidiReadObjectSpec;
+
+ /**
+ * Creates a plain object from a BidiReadObjectSpec message. Also converts values to other types if specified.
+ * @param message BidiReadObjectSpec
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.BidiReadObjectSpec, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BidiReadObjectSpec to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BidiReadObjectSpec
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BidiReadObjectRequest. */
+ interface IBidiReadObjectRequest {
+
+ /** BidiReadObjectRequest readObjectSpec */
+ readObjectSpec?: (google.storage.v2.IBidiReadObjectSpec|null);
+
+ /** BidiReadObjectRequest readRanges */
+ readRanges?: (google.storage.v2.IReadRange[]|null);
+ }
+
+ /** Represents a BidiReadObjectRequest. */
+ class BidiReadObjectRequest implements IBidiReadObjectRequest {
+
+ /**
+ * Constructs a new BidiReadObjectRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IBidiReadObjectRequest);
+
+ /** BidiReadObjectRequest readObjectSpec. */
+ public readObjectSpec?: (google.storage.v2.IBidiReadObjectSpec|null);
+
+ /** BidiReadObjectRequest readRanges. */
+ public readRanges: google.storage.v2.IReadRange[];
+
+ /**
+ * Creates a new BidiReadObjectRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BidiReadObjectRequest instance
+ */
+ public static create(properties?: google.storage.v2.IBidiReadObjectRequest): google.storage.v2.BidiReadObjectRequest;
+
+ /**
+ * Encodes the specified BidiReadObjectRequest message. Does not implicitly {@link google.storage.v2.BidiReadObjectRequest.verify|verify} messages.
+ * @param message BidiReadObjectRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IBidiReadObjectRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BidiReadObjectRequest message, length delimited. Does not implicitly {@link google.storage.v2.BidiReadObjectRequest.verify|verify} messages.
+ * @param message BidiReadObjectRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IBidiReadObjectRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BidiReadObjectRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BidiReadObjectRequest
+ * @throws {Error} If the payload is 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.storage.v2.BidiReadObjectRequest;
+
+ /**
+ * Decodes a BidiReadObjectRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BidiReadObjectRequest
+ * @throws {Error} If the 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.storage.v2.BidiReadObjectRequest;
+
+ /**
+ * Verifies a BidiReadObjectRequest message.
+ * @param message Plain 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 BidiReadObjectRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BidiReadObjectRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.BidiReadObjectRequest;
+
+ /**
+ * Creates a plain object from a BidiReadObjectRequest message. Also converts values to other types if specified.
+ * @param message BidiReadObjectRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.BidiReadObjectRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BidiReadObjectRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BidiReadObjectRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BidiReadObjectResponse. */
+ interface IBidiReadObjectResponse {
+
+ /** BidiReadObjectResponse objectDataRanges */
+ objectDataRanges?: (google.storage.v2.IObjectRangeData[]|null);
+
+ /** BidiReadObjectResponse metadata */
+ metadata?: (google.storage.v2.IObject|null);
+
+ /** BidiReadObjectResponse readHandle */
+ readHandle?: (google.storage.v2.IBidiReadHandle|null);
+ }
+
+ /** Represents a BidiReadObjectResponse. */
+ class BidiReadObjectResponse implements IBidiReadObjectResponse {
+
+ /**
+ * Constructs a new BidiReadObjectResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IBidiReadObjectResponse);
+
+ /** BidiReadObjectResponse objectDataRanges. */
+ public objectDataRanges: google.storage.v2.IObjectRangeData[];
+
+ /** BidiReadObjectResponse metadata. */
+ public metadata?: (google.storage.v2.IObject|null);
+
+ /** BidiReadObjectResponse readHandle. */
+ public readHandle?: (google.storage.v2.IBidiReadHandle|null);
+
+ /**
+ * Creates a new BidiReadObjectResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BidiReadObjectResponse instance
+ */
+ public static create(properties?: google.storage.v2.IBidiReadObjectResponse): google.storage.v2.BidiReadObjectResponse;
+
+ /**
+ * Encodes the specified BidiReadObjectResponse message. Does not implicitly {@link google.storage.v2.BidiReadObjectResponse.verify|verify} messages.
+ * @param message BidiReadObjectResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IBidiReadObjectResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BidiReadObjectResponse message, length delimited. Does not implicitly {@link google.storage.v2.BidiReadObjectResponse.verify|verify} messages.
+ * @param message BidiReadObjectResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IBidiReadObjectResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BidiReadObjectResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BidiReadObjectResponse
+ * @throws {Error} If the payload is 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.storage.v2.BidiReadObjectResponse;
+
+ /**
+ * Decodes a BidiReadObjectResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BidiReadObjectResponse
+ * @throws {Error} If the 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.storage.v2.BidiReadObjectResponse;
+
+ /**
+ * Verifies a BidiReadObjectResponse message.
+ * @param message Plain 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 BidiReadObjectResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BidiReadObjectResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.BidiReadObjectResponse;
+
+ /**
+ * Creates a plain object from a BidiReadObjectResponse message. Also converts values to other types if specified.
+ * @param message BidiReadObjectResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.BidiReadObjectResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BidiReadObjectResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BidiReadObjectResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BidiReadObjectRedirectedError. */
+ interface IBidiReadObjectRedirectedError {
+
+ /** BidiReadObjectRedirectedError readHandle */
+ readHandle?: (google.storage.v2.IBidiReadHandle|null);
+
+ /** BidiReadObjectRedirectedError routingToken */
+ routingToken?: (string|null);
+ }
+
+ /** Represents a BidiReadObjectRedirectedError. */
+ class BidiReadObjectRedirectedError implements IBidiReadObjectRedirectedError {
+
+ /**
+ * Constructs a new BidiReadObjectRedirectedError.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IBidiReadObjectRedirectedError);
+
+ /** BidiReadObjectRedirectedError readHandle. */
+ public readHandle?: (google.storage.v2.IBidiReadHandle|null);
+
+ /** BidiReadObjectRedirectedError routingToken. */
+ public routingToken?: (string|null);
+
+ /**
+ * Creates a new BidiReadObjectRedirectedError instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BidiReadObjectRedirectedError instance
+ */
+ public static create(properties?: google.storage.v2.IBidiReadObjectRedirectedError): google.storage.v2.BidiReadObjectRedirectedError;
+
+ /**
+ * Encodes the specified BidiReadObjectRedirectedError message. Does not implicitly {@link google.storage.v2.BidiReadObjectRedirectedError.verify|verify} messages.
+ * @param message BidiReadObjectRedirectedError message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IBidiReadObjectRedirectedError, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BidiReadObjectRedirectedError message, length delimited. Does not implicitly {@link google.storage.v2.BidiReadObjectRedirectedError.verify|verify} messages.
+ * @param message BidiReadObjectRedirectedError message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IBidiReadObjectRedirectedError, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BidiReadObjectRedirectedError message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BidiReadObjectRedirectedError
+ * @throws {Error} If the payload is 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.storage.v2.BidiReadObjectRedirectedError;
+
+ /**
+ * Decodes a BidiReadObjectRedirectedError message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BidiReadObjectRedirectedError
+ * @throws {Error} If the 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.storage.v2.BidiReadObjectRedirectedError;
+
+ /**
+ * Verifies a BidiReadObjectRedirectedError message.
+ * @param message Plain 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 BidiReadObjectRedirectedError message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BidiReadObjectRedirectedError
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.BidiReadObjectRedirectedError;
+
+ /**
+ * Creates a plain object from a BidiReadObjectRedirectedError message. Also converts values to other types if specified.
+ * @param message BidiReadObjectRedirectedError
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.BidiReadObjectRedirectedError, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BidiReadObjectRedirectedError to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BidiReadObjectRedirectedError
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BidiWriteObjectRedirectedError. */
+ interface IBidiWriteObjectRedirectedError {
+
+ /** BidiWriteObjectRedirectedError routingToken */
+ routingToken?: (string|null);
+
+ /** BidiWriteObjectRedirectedError writeHandle */
+ writeHandle?: (google.storage.v2.IBidiWriteHandle|null);
+
+ /** BidiWriteObjectRedirectedError generation */
+ generation?: (number|Long|string|null);
+ }
+
+ /** Represents a BidiWriteObjectRedirectedError. */
+ class BidiWriteObjectRedirectedError implements IBidiWriteObjectRedirectedError {
+
+ /**
+ * Constructs a new BidiWriteObjectRedirectedError.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IBidiWriteObjectRedirectedError);
+
+ /** BidiWriteObjectRedirectedError routingToken. */
+ public routingToken?: (string|null);
+
+ /** BidiWriteObjectRedirectedError writeHandle. */
+ public writeHandle?: (google.storage.v2.IBidiWriteHandle|null);
+
+ /** BidiWriteObjectRedirectedError generation. */
+ public generation?: (number|Long|string|null);
+
+ /**
+ * Creates a new BidiWriteObjectRedirectedError instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BidiWriteObjectRedirectedError instance
+ */
+ public static create(properties?: google.storage.v2.IBidiWriteObjectRedirectedError): google.storage.v2.BidiWriteObjectRedirectedError;
+
+ /**
+ * Encodes the specified BidiWriteObjectRedirectedError message. Does not implicitly {@link google.storage.v2.BidiWriteObjectRedirectedError.verify|verify} messages.
+ * @param message BidiWriteObjectRedirectedError message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IBidiWriteObjectRedirectedError, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BidiWriteObjectRedirectedError message, length delimited. Does not implicitly {@link google.storage.v2.BidiWriteObjectRedirectedError.verify|verify} messages.
+ * @param message BidiWriteObjectRedirectedError message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IBidiWriteObjectRedirectedError, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BidiWriteObjectRedirectedError message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BidiWriteObjectRedirectedError
+ * @throws {Error} If the payload is 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.storage.v2.BidiWriteObjectRedirectedError;
+
+ /**
+ * Decodes a BidiWriteObjectRedirectedError message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BidiWriteObjectRedirectedError
+ * @throws {Error} If the 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.storage.v2.BidiWriteObjectRedirectedError;
+
+ /**
+ * Verifies a BidiWriteObjectRedirectedError message.
+ * @param message Plain 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 BidiWriteObjectRedirectedError message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BidiWriteObjectRedirectedError
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.BidiWriteObjectRedirectedError;
+
+ /**
+ * Creates a plain object from a BidiWriteObjectRedirectedError message. Also converts values to other types if specified.
+ * @param message BidiWriteObjectRedirectedError
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.BidiWriteObjectRedirectedError, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BidiWriteObjectRedirectedError to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BidiWriteObjectRedirectedError
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BidiReadObjectError. */
+ interface IBidiReadObjectError {
+
+ /** BidiReadObjectError readRangeErrors */
+ readRangeErrors?: (google.storage.v2.IReadRangeError[]|null);
+ }
+
+ /** Represents a BidiReadObjectError. */
+ class BidiReadObjectError implements IBidiReadObjectError {
+
+ /**
+ * Constructs a new BidiReadObjectError.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IBidiReadObjectError);
+
+ /** BidiReadObjectError readRangeErrors. */
+ public readRangeErrors: google.storage.v2.IReadRangeError[];
+
+ /**
+ * Creates a new BidiReadObjectError instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BidiReadObjectError instance
+ */
+ public static create(properties?: google.storage.v2.IBidiReadObjectError): google.storage.v2.BidiReadObjectError;
+
+ /**
+ * Encodes the specified BidiReadObjectError message. Does not implicitly {@link google.storage.v2.BidiReadObjectError.verify|verify} messages.
+ * @param message BidiReadObjectError message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IBidiReadObjectError, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BidiReadObjectError message, length delimited. Does not implicitly {@link google.storage.v2.BidiReadObjectError.verify|verify} messages.
+ * @param message BidiReadObjectError message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IBidiReadObjectError, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BidiReadObjectError message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BidiReadObjectError
+ * @throws {Error} If the payload is 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.storage.v2.BidiReadObjectError;
+
+ /**
+ * Decodes a BidiReadObjectError message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BidiReadObjectError
+ * @throws {Error} If the 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.storage.v2.BidiReadObjectError;
+
+ /**
+ * Verifies a BidiReadObjectError message.
+ * @param message Plain 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 BidiReadObjectError message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BidiReadObjectError
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.BidiReadObjectError;
+
+ /**
+ * Creates a plain object from a BidiReadObjectError message. Also converts values to other types if specified.
+ * @param message BidiReadObjectError
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.BidiReadObjectError, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BidiReadObjectError to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BidiReadObjectError
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ReadRangeError. */
+ interface IReadRangeError {
+
+ /** ReadRangeError readId */
+ readId?: (number|Long|string|null);
+
+ /** ReadRangeError status */
+ status?: (google.rpc.IStatus|null);
+ }
+
+ /** Represents a ReadRangeError. */
+ class ReadRangeError implements IReadRangeError {
+
+ /**
+ * Constructs a new ReadRangeError.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IReadRangeError);
+
+ /** ReadRangeError readId. */
+ public readId: (number|Long|string);
+
+ /** ReadRangeError status. */
+ public status?: (google.rpc.IStatus|null);
+
+ /**
+ * Creates a new ReadRangeError instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReadRangeError instance
+ */
+ public static create(properties?: google.storage.v2.IReadRangeError): google.storage.v2.ReadRangeError;
+
+ /**
+ * Encodes the specified ReadRangeError message. Does not implicitly {@link google.storage.v2.ReadRangeError.verify|verify} messages.
+ * @param message ReadRangeError message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IReadRangeError, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReadRangeError message, length delimited. Does not implicitly {@link google.storage.v2.ReadRangeError.verify|verify} messages.
+ * @param message ReadRangeError message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IReadRangeError, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReadRangeError message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReadRangeError
+ * @throws {Error} If the payload is 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.storage.v2.ReadRangeError;
+
+ /**
+ * Decodes a ReadRangeError message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReadRangeError
+ * @throws {Error} If the 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.storage.v2.ReadRangeError;
+
+ /**
+ * Verifies a ReadRangeError message.
+ * @param message Plain 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 ReadRangeError message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReadRangeError
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.ReadRangeError;
+
+ /**
+ * Creates a plain object from a ReadRangeError message. Also converts values to other types if specified.
+ * @param message ReadRangeError
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.ReadRangeError, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReadRangeError to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReadRangeError
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ReadRange. */
+ interface IReadRange {
+
+ /** ReadRange readOffset */
+ readOffset?: (number|Long|string|null);
+
+ /** ReadRange readLength */
+ readLength?: (number|Long|string|null);
+
+ /** ReadRange readId */
+ readId?: (number|Long|string|null);
+ }
+
+ /** Represents a ReadRange. */
+ class ReadRange implements IReadRange {
+
+ /**
+ * Constructs a new ReadRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IReadRange);
+
+ /** ReadRange readOffset. */
+ public readOffset: (number|Long|string);
+
+ /** ReadRange readLength. */
+ public readLength: (number|Long|string);
+
+ /** ReadRange readId. */
+ public readId: (number|Long|string);
+
+ /**
+ * Creates a new ReadRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReadRange instance
+ */
+ public static create(properties?: google.storage.v2.IReadRange): google.storage.v2.ReadRange;
+
+ /**
+ * Encodes the specified ReadRange message. Does not implicitly {@link google.storage.v2.ReadRange.verify|verify} messages.
+ * @param message ReadRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IReadRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReadRange message, length delimited. Does not implicitly {@link google.storage.v2.ReadRange.verify|verify} messages.
+ * @param message ReadRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IReadRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReadRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReadRange
+ * @throws {Error} If the payload is 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.storage.v2.ReadRange;
+
+ /**
+ * Decodes a ReadRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReadRange
+ * @throws {Error} If the 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.storage.v2.ReadRange;
+
+ /**
+ * Verifies a ReadRange message.
+ * @param message Plain 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 ReadRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReadRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.ReadRange;
+
+ /**
+ * Creates a plain object from a ReadRange message. Also converts values to other types if specified.
+ * @param message ReadRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.ReadRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReadRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReadRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ObjectRangeData. */
+ interface IObjectRangeData {
+
+ /** ObjectRangeData checksummedData */
+ checksummedData?: (google.storage.v2.IChecksummedData|null);
+
+ /** ObjectRangeData readRange */
+ readRange?: (google.storage.v2.IReadRange|null);
+
+ /** ObjectRangeData rangeEnd */
+ rangeEnd?: (boolean|null);
+ }
+
+ /** Represents an ObjectRangeData. */
+ class ObjectRangeData implements IObjectRangeData {
+
+ /**
+ * Constructs a new ObjectRangeData.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IObjectRangeData);
+
+ /** ObjectRangeData checksummedData. */
+ public checksummedData?: (google.storage.v2.IChecksummedData|null);
+
+ /** ObjectRangeData readRange. */
+ public readRange?: (google.storage.v2.IReadRange|null);
+
+ /** ObjectRangeData rangeEnd. */
+ public rangeEnd: boolean;
+
+ /**
+ * Creates a new ObjectRangeData instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ObjectRangeData instance
+ */
+ public static create(properties?: google.storage.v2.IObjectRangeData): google.storage.v2.ObjectRangeData;
+
+ /**
+ * Encodes the specified ObjectRangeData message. Does not implicitly {@link google.storage.v2.ObjectRangeData.verify|verify} messages.
+ * @param message ObjectRangeData message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IObjectRangeData, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ObjectRangeData message, length delimited. Does not implicitly {@link google.storage.v2.ObjectRangeData.verify|verify} messages.
+ * @param message ObjectRangeData message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IObjectRangeData, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ObjectRangeData message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ObjectRangeData
+ * @throws {Error} If the payload is 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.storage.v2.ObjectRangeData;
+
+ /**
+ * Decodes an ObjectRangeData message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ObjectRangeData
+ * @throws {Error} If the 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.storage.v2.ObjectRangeData;
+
+ /**
+ * Verifies an ObjectRangeData message.
+ * @param message Plain 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 ObjectRangeData message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ObjectRangeData
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.ObjectRangeData;
+
+ /**
+ * Creates a plain object from an ObjectRangeData message. Also converts values to other types if specified.
+ * @param message ObjectRangeData
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.ObjectRangeData, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ObjectRangeData to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ObjectRangeData
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BidiReadHandle. */
+ interface IBidiReadHandle {
+
+ /** BidiReadHandle handle */
+ handle?: (Uint8Array|Buffer|string|null);
+ }
+
+ /** Represents a BidiReadHandle. */
+ class BidiReadHandle implements IBidiReadHandle {
+
+ /**
+ * Constructs a new BidiReadHandle.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IBidiReadHandle);
+
+ /** BidiReadHandle handle. */
+ public handle: (Uint8Array|Buffer|string);
+
+ /**
+ * Creates a new BidiReadHandle instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BidiReadHandle instance
+ */
+ public static create(properties?: google.storage.v2.IBidiReadHandle): google.storage.v2.BidiReadHandle;
+
+ /**
+ * Encodes the specified BidiReadHandle message. Does not implicitly {@link google.storage.v2.BidiReadHandle.verify|verify} messages.
+ * @param message BidiReadHandle message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IBidiReadHandle, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BidiReadHandle message, length delimited. Does not implicitly {@link google.storage.v2.BidiReadHandle.verify|verify} messages.
+ * @param message BidiReadHandle message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IBidiReadHandle, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BidiReadHandle message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BidiReadHandle
+ * @throws {Error} If the payload is 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.storage.v2.BidiReadHandle;
+
+ /**
+ * Decodes a BidiReadHandle message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BidiReadHandle
+ * @throws {Error} If the 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.storage.v2.BidiReadHandle;
+
+ /**
+ * Verifies a BidiReadHandle message.
+ * @param message Plain 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 BidiReadHandle message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BidiReadHandle
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.BidiReadHandle;
+
+ /**
+ * Creates a plain object from a BidiReadHandle message. Also converts values to other types if specified.
+ * @param message BidiReadHandle
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.BidiReadHandle, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BidiReadHandle to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BidiReadHandle
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BidiWriteHandle. */
+ interface IBidiWriteHandle {
+
+ /** BidiWriteHandle handle */
+ handle?: (Uint8Array|Buffer|string|null);
+ }
+
+ /** Represents a BidiWriteHandle. */
+ class BidiWriteHandle implements IBidiWriteHandle {
+
+ /**
+ * Constructs a new BidiWriteHandle.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IBidiWriteHandle);
+
+ /** BidiWriteHandle handle. */
+ public handle: (Uint8Array|Buffer|string);
+
+ /**
+ * Creates a new BidiWriteHandle instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BidiWriteHandle instance
+ */
+ public static create(properties?: google.storage.v2.IBidiWriteHandle): google.storage.v2.BidiWriteHandle;
+
+ /**
+ * Encodes the specified BidiWriteHandle message. Does not implicitly {@link google.storage.v2.BidiWriteHandle.verify|verify} messages.
+ * @param message BidiWriteHandle message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IBidiWriteHandle, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BidiWriteHandle message, length delimited. Does not implicitly {@link google.storage.v2.BidiWriteHandle.verify|verify} messages.
+ * @param message BidiWriteHandle message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IBidiWriteHandle, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BidiWriteHandle message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BidiWriteHandle
+ * @throws {Error} If the payload is 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.storage.v2.BidiWriteHandle;
+
+ /**
+ * Decodes a BidiWriteHandle message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BidiWriteHandle
+ * @throws {Error} If the 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.storage.v2.BidiWriteHandle;
+
+ /**
+ * Verifies a BidiWriteHandle message.
+ * @param message Plain 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 BidiWriteHandle message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BidiWriteHandle
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.BidiWriteHandle;
+
+ /**
+ * Creates a plain object from a BidiWriteHandle message. Also converts values to other types if specified.
+ * @param message BidiWriteHandle
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.BidiWriteHandle, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BidiWriteHandle to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BidiWriteHandle
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a WriteObjectSpec. */
+ interface IWriteObjectSpec {
+
+ /** WriteObjectSpec resource */
+ resource?: (google.storage.v2.IObject|null);
+
+ /** WriteObjectSpec predefinedAcl */
+ predefinedAcl?: (string|null);
+
+ /** WriteObjectSpec ifGenerationMatch */
+ ifGenerationMatch?: (number|Long|string|null);
+
+ /** WriteObjectSpec ifGenerationNotMatch */
+ ifGenerationNotMatch?: (number|Long|string|null);
+
+ /** WriteObjectSpec ifMetagenerationMatch */
+ ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** WriteObjectSpec ifMetagenerationNotMatch */
+ ifMetagenerationNotMatch?: (number|Long|string|null);
+
+ /** WriteObjectSpec objectSize */
+ objectSize?: (number|Long|string|null);
+
+ /** WriteObjectSpec appendable */
+ appendable?: (boolean|null);
+ }
+
+ /** Represents a WriteObjectSpec. */
+ class WriteObjectSpec implements IWriteObjectSpec {
+
+ /**
+ * Constructs a new WriteObjectSpec.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IWriteObjectSpec);
+
+ /** WriteObjectSpec resource. */
+ public resource?: (google.storage.v2.IObject|null);
+
+ /** WriteObjectSpec predefinedAcl. */
+ public predefinedAcl: string;
+
+ /** WriteObjectSpec ifGenerationMatch. */
+ public ifGenerationMatch?: (number|Long|string|null);
+
+ /** WriteObjectSpec ifGenerationNotMatch. */
+ public ifGenerationNotMatch?: (number|Long|string|null);
+
+ /** WriteObjectSpec ifMetagenerationMatch. */
+ public ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** WriteObjectSpec ifMetagenerationNotMatch. */
+ public ifMetagenerationNotMatch?: (number|Long|string|null);
+
+ /** WriteObjectSpec objectSize. */
+ public objectSize?: (number|Long|string|null);
+
+ /** WriteObjectSpec appendable. */
+ public appendable?: (boolean|null);
+
+ /**
+ * Creates a new WriteObjectSpec instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WriteObjectSpec instance
+ */
+ public static create(properties?: google.storage.v2.IWriteObjectSpec): google.storage.v2.WriteObjectSpec;
+
+ /**
+ * Encodes the specified WriteObjectSpec message. Does not implicitly {@link google.storage.v2.WriteObjectSpec.verify|verify} messages.
+ * @param message WriteObjectSpec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IWriteObjectSpec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WriteObjectSpec message, length delimited. Does not implicitly {@link google.storage.v2.WriteObjectSpec.verify|verify} messages.
+ * @param message WriteObjectSpec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IWriteObjectSpec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WriteObjectSpec message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WriteObjectSpec
+ * @throws {Error} If the payload is 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.storage.v2.WriteObjectSpec;
+
+ /**
+ * Decodes a WriteObjectSpec message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WriteObjectSpec
+ * @throws {Error} If the 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.storage.v2.WriteObjectSpec;
+
+ /**
+ * Verifies a WriteObjectSpec message.
+ * @param message Plain 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 WriteObjectSpec message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WriteObjectSpec
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.WriteObjectSpec;
+
+ /**
+ * Creates a plain object from a WriteObjectSpec message. Also converts values to other types if specified.
+ * @param message WriteObjectSpec
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.WriteObjectSpec, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WriteObjectSpec to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WriteObjectSpec
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a WriteObjectRequest. */
+ interface IWriteObjectRequest {
+
+ /** WriteObjectRequest uploadId */
+ uploadId?: (string|null);
+
+ /** WriteObjectRequest writeObjectSpec */
+ writeObjectSpec?: (google.storage.v2.IWriteObjectSpec|null);
+
+ /** WriteObjectRequest writeOffset */
+ writeOffset?: (number|Long|string|null);
+
+ /** WriteObjectRequest checksummedData */
+ checksummedData?: (google.storage.v2.IChecksummedData|null);
+
+ /** WriteObjectRequest objectChecksums */
+ objectChecksums?: (google.storage.v2.IObjectChecksums|null);
+
+ /** WriteObjectRequest finishWrite */
+ finishWrite?: (boolean|null);
+
+ /** WriteObjectRequest commonObjectRequestParams */
+ commonObjectRequestParams?: (google.storage.v2.ICommonObjectRequestParams|null);
+ }
+
+ /** Represents a WriteObjectRequest. */
+ class WriteObjectRequest implements IWriteObjectRequest {
+
+ /**
+ * Constructs a new WriteObjectRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IWriteObjectRequest);
+
+ /** WriteObjectRequest uploadId. */
+ public uploadId?: (string|null);
+
+ /** WriteObjectRequest writeObjectSpec. */
+ public writeObjectSpec?: (google.storage.v2.IWriteObjectSpec|null);
+
+ /** WriteObjectRequest writeOffset. */
+ public writeOffset: (number|Long|string);
+
+ /** WriteObjectRequest checksummedData. */
+ public checksummedData?: (google.storage.v2.IChecksummedData|null);
+
+ /** WriteObjectRequest objectChecksums. */
+ public objectChecksums?: (google.storage.v2.IObjectChecksums|null);
+
+ /** WriteObjectRequest finishWrite. */
+ public finishWrite: boolean;
+
+ /** WriteObjectRequest commonObjectRequestParams. */
+ public commonObjectRequestParams?: (google.storage.v2.ICommonObjectRequestParams|null);
+
+ /** WriteObjectRequest firstMessage. */
+ public firstMessage?: ("uploadId"|"writeObjectSpec");
+
+ /** WriteObjectRequest data. */
+ public data?: "checksummedData";
+
+ /**
+ * Creates a new WriteObjectRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WriteObjectRequest instance
+ */
+ public static create(properties?: google.storage.v2.IWriteObjectRequest): google.storage.v2.WriteObjectRequest;
+
+ /**
+ * Encodes the specified WriteObjectRequest message. Does not implicitly {@link google.storage.v2.WriteObjectRequest.verify|verify} messages.
+ * @param message WriteObjectRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IWriteObjectRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WriteObjectRequest message, length delimited. Does not implicitly {@link google.storage.v2.WriteObjectRequest.verify|verify} messages.
+ * @param message WriteObjectRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IWriteObjectRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WriteObjectRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WriteObjectRequest
+ * @throws {Error} If the payload is 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.storage.v2.WriteObjectRequest;
+
+ /**
+ * Decodes a WriteObjectRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WriteObjectRequest
+ * @throws {Error} If the 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.storage.v2.WriteObjectRequest;
+
+ /**
+ * Verifies a WriteObjectRequest message.
+ * @param message Plain 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 WriteObjectRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WriteObjectRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.WriteObjectRequest;
+
+ /**
+ * Creates a plain object from a WriteObjectRequest message. Also converts values to other types if specified.
+ * @param message WriteObjectRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.WriteObjectRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WriteObjectRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WriteObjectRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a WriteObjectResponse. */
+ interface IWriteObjectResponse {
+
+ /** WriteObjectResponse persistedSize */
+ persistedSize?: (number|Long|string|null);
+
+ /** WriteObjectResponse resource */
+ resource?: (google.storage.v2.IObject|null);
+
+ /** WriteObjectResponse persistedDataChecksums */
+ persistedDataChecksums?: (google.storage.v2.IObjectChecksums|null);
+ }
+
+ /** Represents a WriteObjectResponse. */
+ class WriteObjectResponse implements IWriteObjectResponse {
+
+ /**
+ * Constructs a new WriteObjectResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IWriteObjectResponse);
+
+ /** WriteObjectResponse persistedSize. */
+ public persistedSize?: (number|Long|string|null);
+
+ /** WriteObjectResponse resource. */
+ public resource?: (google.storage.v2.IObject|null);
+
+ /** WriteObjectResponse persistedDataChecksums. */
+ public persistedDataChecksums?: (google.storage.v2.IObjectChecksums|null);
+
+ /** WriteObjectResponse writeStatus. */
+ public writeStatus?: ("persistedSize"|"resource");
+
+ /**
+ * Creates a new WriteObjectResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WriteObjectResponse instance
+ */
+ public static create(properties?: google.storage.v2.IWriteObjectResponse): google.storage.v2.WriteObjectResponse;
+
+ /**
+ * Encodes the specified WriteObjectResponse message. Does not implicitly {@link google.storage.v2.WriteObjectResponse.verify|verify} messages.
+ * @param message WriteObjectResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IWriteObjectResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WriteObjectResponse message, length delimited. Does not implicitly {@link google.storage.v2.WriteObjectResponse.verify|verify} messages.
+ * @param message WriteObjectResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IWriteObjectResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WriteObjectResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WriteObjectResponse
+ * @throws {Error} If the payload is 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.storage.v2.WriteObjectResponse;
+
+ /**
+ * Decodes a WriteObjectResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WriteObjectResponse
+ * @throws {Error} If the 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.storage.v2.WriteObjectResponse;
+
+ /**
+ * Verifies a WriteObjectResponse message.
+ * @param message Plain 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 WriteObjectResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WriteObjectResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.WriteObjectResponse;
+
+ /**
+ * Creates a plain object from a WriteObjectResponse message. Also converts values to other types if specified.
+ * @param message WriteObjectResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.WriteObjectResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WriteObjectResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WriteObjectResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an AppendObjectSpec. */
+ interface IAppendObjectSpec {
+
+ /** AppendObjectSpec bucket */
+ bucket?: (string|null);
+
+ /** AppendObjectSpec object */
+ object?: (string|null);
+
+ /** AppendObjectSpec generation */
+ generation?: (number|Long|string|null);
+
+ /** AppendObjectSpec ifMetagenerationMatch */
+ ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** AppendObjectSpec ifMetagenerationNotMatch */
+ ifMetagenerationNotMatch?: (number|Long|string|null);
+
+ /** AppendObjectSpec routingToken */
+ routingToken?: (string|null);
+
+ /** AppendObjectSpec writeHandle */
+ writeHandle?: (google.storage.v2.IBidiWriteHandle|null);
+ }
+
+ /** Represents an AppendObjectSpec. */
+ class AppendObjectSpec implements IAppendObjectSpec {
+
+ /**
+ * Constructs a new AppendObjectSpec.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IAppendObjectSpec);
+
+ /** AppendObjectSpec bucket. */
+ public bucket: string;
+
+ /** AppendObjectSpec object. */
+ public object: string;
+
+ /** AppendObjectSpec generation. */
+ public generation: (number|Long|string);
+
+ /** AppendObjectSpec ifMetagenerationMatch. */
+ public ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** AppendObjectSpec ifMetagenerationNotMatch. */
+ public ifMetagenerationNotMatch?: (number|Long|string|null);
+
+ /** AppendObjectSpec routingToken. */
+ public routingToken?: (string|null);
+
+ /** AppendObjectSpec writeHandle. */
+ public writeHandle?: (google.storage.v2.IBidiWriteHandle|null);
+
+ /**
+ * Creates a new AppendObjectSpec instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AppendObjectSpec instance
+ */
+ public static create(properties?: google.storage.v2.IAppendObjectSpec): google.storage.v2.AppendObjectSpec;
+
+ /**
+ * Encodes the specified AppendObjectSpec message. Does not implicitly {@link google.storage.v2.AppendObjectSpec.verify|verify} messages.
+ * @param message AppendObjectSpec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IAppendObjectSpec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AppendObjectSpec message, length delimited. Does not implicitly {@link google.storage.v2.AppendObjectSpec.verify|verify} messages.
+ * @param message AppendObjectSpec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IAppendObjectSpec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AppendObjectSpec message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AppendObjectSpec
+ * @throws {Error} If the payload is 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.storage.v2.AppendObjectSpec;
+
+ /**
+ * Decodes an AppendObjectSpec message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AppendObjectSpec
+ * @throws {Error} If the 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.storage.v2.AppendObjectSpec;
+
+ /**
+ * Verifies an AppendObjectSpec message.
+ * @param message Plain 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 AppendObjectSpec message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AppendObjectSpec
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.AppendObjectSpec;
+
+ /**
+ * Creates a plain object from an AppendObjectSpec message. Also converts values to other types if specified.
+ * @param message AppendObjectSpec
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.AppendObjectSpec, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AppendObjectSpec to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AppendObjectSpec
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BidiWriteObjectRequest. */
+ interface IBidiWriteObjectRequest {
+
+ /** BidiWriteObjectRequest uploadId */
+ uploadId?: (string|null);
+
+ /** BidiWriteObjectRequest writeObjectSpec */
+ writeObjectSpec?: (google.storage.v2.IWriteObjectSpec|null);
+
+ /** BidiWriteObjectRequest appendObjectSpec */
+ appendObjectSpec?: (google.storage.v2.IAppendObjectSpec|null);
+
+ /** BidiWriteObjectRequest writeOffset */
+ writeOffset?: (number|Long|string|null);
+
+ /** BidiWriteObjectRequest checksummedData */
+ checksummedData?: (google.storage.v2.IChecksummedData|null);
+
+ /** BidiWriteObjectRequest objectChecksums */
+ objectChecksums?: (google.storage.v2.IObjectChecksums|null);
+
+ /** BidiWriteObjectRequest stateLookup */
+ stateLookup?: (boolean|null);
+
+ /** BidiWriteObjectRequest flush */
+ flush?: (boolean|null);
+
+ /** BidiWriteObjectRequest finishWrite */
+ finishWrite?: (boolean|null);
+
+ /** BidiWriteObjectRequest commonObjectRequestParams */
+ commonObjectRequestParams?: (google.storage.v2.ICommonObjectRequestParams|null);
+ }
+
+ /** Represents a BidiWriteObjectRequest. */
+ class BidiWriteObjectRequest implements IBidiWriteObjectRequest {
+
+ /**
+ * Constructs a new BidiWriteObjectRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IBidiWriteObjectRequest);
+
+ /** BidiWriteObjectRequest uploadId. */
+ public uploadId?: (string|null);
+
+ /** BidiWriteObjectRequest writeObjectSpec. */
+ public writeObjectSpec?: (google.storage.v2.IWriteObjectSpec|null);
+
+ /** BidiWriteObjectRequest appendObjectSpec. */
+ public appendObjectSpec?: (google.storage.v2.IAppendObjectSpec|null);
+
+ /** BidiWriteObjectRequest writeOffset. */
+ public writeOffset: (number|Long|string);
+
+ /** BidiWriteObjectRequest checksummedData. */
+ public checksummedData?: (google.storage.v2.IChecksummedData|null);
+
+ /** BidiWriteObjectRequest objectChecksums. */
+ public objectChecksums?: (google.storage.v2.IObjectChecksums|null);
+
+ /** BidiWriteObjectRequest stateLookup. */
+ public stateLookup: boolean;
+
+ /** BidiWriteObjectRequest flush. */
+ public flush: boolean;
+
+ /** BidiWriteObjectRequest finishWrite. */
+ public finishWrite: boolean;
+
+ /** BidiWriteObjectRequest commonObjectRequestParams. */
+ public commonObjectRequestParams?: (google.storage.v2.ICommonObjectRequestParams|null);
+
+ /** BidiWriteObjectRequest firstMessage. */
+ public firstMessage?: ("uploadId"|"writeObjectSpec"|"appendObjectSpec");
+
+ /** BidiWriteObjectRequest data. */
+ public data?: "checksummedData";
+
+ /**
+ * Creates a new BidiWriteObjectRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BidiWriteObjectRequest instance
+ */
+ public static create(properties?: google.storage.v2.IBidiWriteObjectRequest): google.storage.v2.BidiWriteObjectRequest;
+
+ /**
+ * Encodes the specified BidiWriteObjectRequest message. Does not implicitly {@link google.storage.v2.BidiWriteObjectRequest.verify|verify} messages.
+ * @param message BidiWriteObjectRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IBidiWriteObjectRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BidiWriteObjectRequest message, length delimited. Does not implicitly {@link google.storage.v2.BidiWriteObjectRequest.verify|verify} messages.
+ * @param message BidiWriteObjectRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IBidiWriteObjectRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BidiWriteObjectRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BidiWriteObjectRequest
+ * @throws {Error} If the payload is 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.storage.v2.BidiWriteObjectRequest;
+
+ /**
+ * Decodes a BidiWriteObjectRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BidiWriteObjectRequest
+ * @throws {Error} If the 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.storage.v2.BidiWriteObjectRequest;
+
+ /**
+ * Verifies a BidiWriteObjectRequest message.
+ * @param message Plain 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 BidiWriteObjectRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BidiWriteObjectRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.BidiWriteObjectRequest;
+
+ /**
+ * Creates a plain object from a BidiWriteObjectRequest message. Also converts values to other types if specified.
+ * @param message BidiWriteObjectRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.BidiWriteObjectRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BidiWriteObjectRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BidiWriteObjectRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BidiWriteObjectResponse. */
+ interface IBidiWriteObjectResponse {
+
+ /** BidiWriteObjectResponse persistedSize */
+ persistedSize?: (number|Long|string|null);
+
+ /** BidiWriteObjectResponse resource */
+ resource?: (google.storage.v2.IObject|null);
+
+ /** BidiWriteObjectResponse persistedDataChecksums */
+ persistedDataChecksums?: (google.storage.v2.IObjectChecksums|null);
+
+ /** BidiWriteObjectResponse writeHandle */
+ writeHandle?: (google.storage.v2.IBidiWriteHandle|null);
+ }
+
+ /** Represents a BidiWriteObjectResponse. */
+ class BidiWriteObjectResponse implements IBidiWriteObjectResponse {
+
+ /**
+ * Constructs a new BidiWriteObjectResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IBidiWriteObjectResponse);
+
+ /** BidiWriteObjectResponse persistedSize. */
+ public persistedSize?: (number|Long|string|null);
+
+ /** BidiWriteObjectResponse resource. */
+ public resource?: (google.storage.v2.IObject|null);
+
+ /** BidiWriteObjectResponse persistedDataChecksums. */
+ public persistedDataChecksums?: (google.storage.v2.IObjectChecksums|null);
+
+ /** BidiWriteObjectResponse writeHandle. */
+ public writeHandle?: (google.storage.v2.IBidiWriteHandle|null);
+
+ /** BidiWriteObjectResponse writeStatus. */
+ public writeStatus?: ("persistedSize"|"resource");
+
+ /**
+ * Creates a new BidiWriteObjectResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BidiWriteObjectResponse instance
+ */
+ public static create(properties?: google.storage.v2.IBidiWriteObjectResponse): google.storage.v2.BidiWriteObjectResponse;
+
+ /**
+ * Encodes the specified BidiWriteObjectResponse message. Does not implicitly {@link google.storage.v2.BidiWriteObjectResponse.verify|verify} messages.
+ * @param message BidiWriteObjectResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IBidiWriteObjectResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BidiWriteObjectResponse message, length delimited. Does not implicitly {@link google.storage.v2.BidiWriteObjectResponse.verify|verify} messages.
+ * @param message BidiWriteObjectResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IBidiWriteObjectResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BidiWriteObjectResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BidiWriteObjectResponse
+ * @throws {Error} If the payload is 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.storage.v2.BidiWriteObjectResponse;
+
+ /**
+ * Decodes a BidiWriteObjectResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BidiWriteObjectResponse
+ * @throws {Error} If the 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.storage.v2.BidiWriteObjectResponse;
+
+ /**
+ * Verifies a BidiWriteObjectResponse message.
+ * @param message Plain 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 BidiWriteObjectResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BidiWriteObjectResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.BidiWriteObjectResponse;
+
+ /**
+ * Creates a plain object from a BidiWriteObjectResponse message. Also converts values to other types if specified.
+ * @param message BidiWriteObjectResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.BidiWriteObjectResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BidiWriteObjectResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BidiWriteObjectResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListObjectsRequest. */
+ interface IListObjectsRequest {
+
+ /** ListObjectsRequest parent */
+ parent?: (string|null);
+
+ /** ListObjectsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListObjectsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListObjectsRequest delimiter */
+ delimiter?: (string|null);
+
+ /** ListObjectsRequest includeTrailingDelimiter */
+ includeTrailingDelimiter?: (boolean|null);
+
+ /** ListObjectsRequest prefix */
+ prefix?: (string|null);
+
+ /** ListObjectsRequest versions */
+ versions?: (boolean|null);
+
+ /** ListObjectsRequest readMask */
+ readMask?: (google.protobuf.IFieldMask|null);
+
+ /** ListObjectsRequest lexicographicStart */
+ lexicographicStart?: (string|null);
+
+ /** ListObjectsRequest lexicographicEnd */
+ lexicographicEnd?: (string|null);
+
+ /** ListObjectsRequest softDeleted */
+ softDeleted?: (boolean|null);
+
+ /** ListObjectsRequest includeFoldersAsPrefixes */
+ includeFoldersAsPrefixes?: (boolean|null);
+
+ /** ListObjectsRequest matchGlob */
+ matchGlob?: (string|null);
+
+ /** ListObjectsRequest filter */
+ filter?: (string|null);
+ }
+
+ /** Represents a ListObjectsRequest. */
+ class ListObjectsRequest implements IListObjectsRequest {
+
+ /**
+ * Constructs a new ListObjectsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IListObjectsRequest);
+
+ /** ListObjectsRequest parent. */
+ public parent: string;
+
+ /** ListObjectsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListObjectsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListObjectsRequest delimiter. */
+ public delimiter: string;
+
+ /** ListObjectsRequest includeTrailingDelimiter. */
+ public includeTrailingDelimiter: boolean;
+
+ /** ListObjectsRequest prefix. */
+ public prefix: string;
+
+ /** ListObjectsRequest versions. */
+ public versions: boolean;
+
+ /** ListObjectsRequest readMask. */
+ public readMask?: (google.protobuf.IFieldMask|null);
+
+ /** ListObjectsRequest lexicographicStart. */
+ public lexicographicStart: string;
+
+ /** ListObjectsRequest lexicographicEnd. */
+ public lexicographicEnd: string;
+
+ /** ListObjectsRequest softDeleted. */
+ public softDeleted: boolean;
+
+ /** ListObjectsRequest includeFoldersAsPrefixes. */
+ public includeFoldersAsPrefixes: boolean;
+
+ /** ListObjectsRequest matchGlob. */
+ public matchGlob: string;
+
+ /** ListObjectsRequest filter. */
+ public filter: string;
+
+ /**
+ * Creates a new ListObjectsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListObjectsRequest instance
+ */
+ public static create(properties?: google.storage.v2.IListObjectsRequest): google.storage.v2.ListObjectsRequest;
+
+ /**
+ * Encodes the specified ListObjectsRequest message. Does not implicitly {@link google.storage.v2.ListObjectsRequest.verify|verify} messages.
+ * @param message ListObjectsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IListObjectsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListObjectsRequest message, length delimited. Does not implicitly {@link google.storage.v2.ListObjectsRequest.verify|verify} messages.
+ * @param message ListObjectsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IListObjectsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListObjectsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListObjectsRequest
+ * @throws {Error} If the payload is 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.storage.v2.ListObjectsRequest;
+
+ /**
+ * Decodes a ListObjectsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListObjectsRequest
+ * @throws {Error} If the 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.storage.v2.ListObjectsRequest;
+
+ /**
+ * Verifies a ListObjectsRequest message.
+ * @param message Plain 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 ListObjectsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListObjectsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.ListObjectsRequest;
+
+ /**
+ * Creates a plain object from a ListObjectsRequest message. Also converts values to other types if specified.
+ * @param message ListObjectsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.ListObjectsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListObjectsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListObjectsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a QueryWriteStatusRequest. */
+ interface IQueryWriteStatusRequest {
+
+ /** QueryWriteStatusRequest uploadId */
+ uploadId?: (string|null);
+
+ /** QueryWriteStatusRequest commonObjectRequestParams */
+ commonObjectRequestParams?: (google.storage.v2.ICommonObjectRequestParams|null);
+ }
+
+ /** Represents a QueryWriteStatusRequest. */
+ class QueryWriteStatusRequest implements IQueryWriteStatusRequest {
+
+ /**
+ * Constructs a new QueryWriteStatusRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IQueryWriteStatusRequest);
+
+ /** QueryWriteStatusRequest uploadId. */
+ public uploadId: string;
+
+ /** QueryWriteStatusRequest commonObjectRequestParams. */
+ public commonObjectRequestParams?: (google.storage.v2.ICommonObjectRequestParams|null);
+
+ /**
+ * Creates a new QueryWriteStatusRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns QueryWriteStatusRequest instance
+ */
+ public static create(properties?: google.storage.v2.IQueryWriteStatusRequest): google.storage.v2.QueryWriteStatusRequest;
+
+ /**
+ * Encodes the specified QueryWriteStatusRequest message. Does not implicitly {@link google.storage.v2.QueryWriteStatusRequest.verify|verify} messages.
+ * @param message QueryWriteStatusRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IQueryWriteStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified QueryWriteStatusRequest message, length delimited. Does not implicitly {@link google.storage.v2.QueryWriteStatusRequest.verify|verify} messages.
+ * @param message QueryWriteStatusRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IQueryWriteStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a QueryWriteStatusRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns QueryWriteStatusRequest
+ * @throws {Error} If the payload is 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.storage.v2.QueryWriteStatusRequest;
+
+ /**
+ * Decodes a QueryWriteStatusRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns QueryWriteStatusRequest
+ * @throws {Error} If the 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.storage.v2.QueryWriteStatusRequest;
+
+ /**
+ * Verifies a QueryWriteStatusRequest message.
+ * @param message Plain 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 QueryWriteStatusRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns QueryWriteStatusRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.QueryWriteStatusRequest;
+
+ /**
+ * Creates a plain object from a QueryWriteStatusRequest message. Also converts values to other types if specified.
+ * @param message QueryWriteStatusRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.QueryWriteStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this QueryWriteStatusRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for QueryWriteStatusRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a QueryWriteStatusResponse. */
+ interface IQueryWriteStatusResponse {
+
+ /** QueryWriteStatusResponse persistedSize */
+ persistedSize?: (number|Long|string|null);
+
+ /** QueryWriteStatusResponse resource */
+ resource?: (google.storage.v2.IObject|null);
+
+ /** QueryWriteStatusResponse persistedDataChecksums */
+ persistedDataChecksums?: (google.storage.v2.IObjectChecksums|null);
+ }
+
+ /** Represents a QueryWriteStatusResponse. */
+ class QueryWriteStatusResponse implements IQueryWriteStatusResponse {
+
+ /**
+ * Constructs a new QueryWriteStatusResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IQueryWriteStatusResponse);
+
+ /** QueryWriteStatusResponse persistedSize. */
+ public persistedSize?: (number|Long|string|null);
+
+ /** QueryWriteStatusResponse resource. */
+ public resource?: (google.storage.v2.IObject|null);
+
+ /** QueryWriteStatusResponse persistedDataChecksums. */
+ public persistedDataChecksums?: (google.storage.v2.IObjectChecksums|null);
+
+ /** QueryWriteStatusResponse writeStatus. */
+ public writeStatus?: ("persistedSize"|"resource");
+
+ /**
+ * Creates a new QueryWriteStatusResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns QueryWriteStatusResponse instance
+ */
+ public static create(properties?: google.storage.v2.IQueryWriteStatusResponse): google.storage.v2.QueryWriteStatusResponse;
+
+ /**
+ * Encodes the specified QueryWriteStatusResponse message. Does not implicitly {@link google.storage.v2.QueryWriteStatusResponse.verify|verify} messages.
+ * @param message QueryWriteStatusResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IQueryWriteStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified QueryWriteStatusResponse message, length delimited. Does not implicitly {@link google.storage.v2.QueryWriteStatusResponse.verify|verify} messages.
+ * @param message QueryWriteStatusResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IQueryWriteStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a QueryWriteStatusResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns QueryWriteStatusResponse
+ * @throws {Error} If the payload is 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.storage.v2.QueryWriteStatusResponse;
+
+ /**
+ * Decodes a QueryWriteStatusResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns QueryWriteStatusResponse
+ * @throws {Error} If the 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.storage.v2.QueryWriteStatusResponse;
+
+ /**
+ * Verifies a QueryWriteStatusResponse message.
+ * @param message Plain 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 QueryWriteStatusResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns QueryWriteStatusResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.QueryWriteStatusResponse;
+
+ /**
+ * Creates a plain object from a QueryWriteStatusResponse message. Also converts values to other types if specified.
+ * @param message QueryWriteStatusResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.QueryWriteStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this QueryWriteStatusResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for QueryWriteStatusResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RewriteObjectRequest. */
+ interface IRewriteObjectRequest {
+
+ /** RewriteObjectRequest destinationName */
+ destinationName?: (string|null);
+
+ /** RewriteObjectRequest destinationBucket */
+ destinationBucket?: (string|null);
+
+ /** RewriteObjectRequest destinationKmsKey */
+ destinationKmsKey?: (string|null);
+
+ /** RewriteObjectRequest destination */
+ destination?: (google.storage.v2.IObject|null);
+
+ /** RewriteObjectRequest sourceBucket */
+ sourceBucket?: (string|null);
+
+ /** RewriteObjectRequest sourceObject */
+ sourceObject?: (string|null);
+
+ /** RewriteObjectRequest sourceGeneration */
+ sourceGeneration?: (number|Long|string|null);
+
+ /** RewriteObjectRequest rewriteToken */
+ rewriteToken?: (string|null);
+
+ /** RewriteObjectRequest destinationPredefinedAcl */
+ destinationPredefinedAcl?: (string|null);
+
+ /** RewriteObjectRequest ifGenerationMatch */
+ ifGenerationMatch?: (number|Long|string|null);
+
+ /** RewriteObjectRequest ifGenerationNotMatch */
+ ifGenerationNotMatch?: (number|Long|string|null);
+
+ /** RewriteObjectRequest ifMetagenerationMatch */
+ ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** RewriteObjectRequest ifMetagenerationNotMatch */
+ ifMetagenerationNotMatch?: (number|Long|string|null);
+
+ /** RewriteObjectRequest ifSourceGenerationMatch */
+ ifSourceGenerationMatch?: (number|Long|string|null);
+
+ /** RewriteObjectRequest ifSourceGenerationNotMatch */
+ ifSourceGenerationNotMatch?: (number|Long|string|null);
+
+ /** RewriteObjectRequest ifSourceMetagenerationMatch */
+ ifSourceMetagenerationMatch?: (number|Long|string|null);
+
+ /** RewriteObjectRequest ifSourceMetagenerationNotMatch */
+ ifSourceMetagenerationNotMatch?: (number|Long|string|null);
+
+ /** RewriteObjectRequest maxBytesRewrittenPerCall */
+ maxBytesRewrittenPerCall?: (number|Long|string|null);
+
+ /** RewriteObjectRequest copySourceEncryptionAlgorithm */
+ copySourceEncryptionAlgorithm?: (string|null);
+
+ /** RewriteObjectRequest copySourceEncryptionKeyBytes */
+ copySourceEncryptionKeyBytes?: (Uint8Array|Buffer|string|null);
+
+ /** RewriteObjectRequest copySourceEncryptionKeySha256Bytes */
+ copySourceEncryptionKeySha256Bytes?: (Uint8Array|Buffer|string|null);
+
+ /** RewriteObjectRequest commonObjectRequestParams */
+ commonObjectRequestParams?: (google.storage.v2.ICommonObjectRequestParams|null);
+
+ /** RewriteObjectRequest objectChecksums */
+ objectChecksums?: (google.storage.v2.IObjectChecksums|null);
+ }
+
+ /** Represents a RewriteObjectRequest. */
+ class RewriteObjectRequest implements IRewriteObjectRequest {
+
+ /**
+ * Constructs a new RewriteObjectRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IRewriteObjectRequest);
+
+ /** RewriteObjectRequest destinationName. */
+ public destinationName: string;
+
+ /** RewriteObjectRequest destinationBucket. */
+ public destinationBucket: string;
+
+ /** RewriteObjectRequest destinationKmsKey. */
+ public destinationKmsKey: string;
+
+ /** RewriteObjectRequest destination. */
+ public destination?: (google.storage.v2.IObject|null);
+
+ /** RewriteObjectRequest sourceBucket. */
+ public sourceBucket: string;
+
+ /** RewriteObjectRequest sourceObject. */
+ public sourceObject: string;
+
+ /** RewriteObjectRequest sourceGeneration. */
+ public sourceGeneration: (number|Long|string);
+
+ /** RewriteObjectRequest rewriteToken. */
+ public rewriteToken: string;
+
+ /** RewriteObjectRequest destinationPredefinedAcl. */
+ public destinationPredefinedAcl: string;
+
+ /** RewriteObjectRequest ifGenerationMatch. */
+ public ifGenerationMatch?: (number|Long|string|null);
+
+ /** RewriteObjectRequest ifGenerationNotMatch. */
+ public ifGenerationNotMatch?: (number|Long|string|null);
+
+ /** RewriteObjectRequest ifMetagenerationMatch. */
+ public ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** RewriteObjectRequest ifMetagenerationNotMatch. */
+ public ifMetagenerationNotMatch?: (number|Long|string|null);
+
+ /** RewriteObjectRequest ifSourceGenerationMatch. */
+ public ifSourceGenerationMatch?: (number|Long|string|null);
+
+ /** RewriteObjectRequest ifSourceGenerationNotMatch. */
+ public ifSourceGenerationNotMatch?: (number|Long|string|null);
+
+ /** RewriteObjectRequest ifSourceMetagenerationMatch. */
+ public ifSourceMetagenerationMatch?: (number|Long|string|null);
+
+ /** RewriteObjectRequest ifSourceMetagenerationNotMatch. */
+ public ifSourceMetagenerationNotMatch?: (number|Long|string|null);
+
+ /** RewriteObjectRequest maxBytesRewrittenPerCall. */
+ public maxBytesRewrittenPerCall: (number|Long|string);
+
+ /** RewriteObjectRequest copySourceEncryptionAlgorithm. */
+ public copySourceEncryptionAlgorithm: string;
+
+ /** RewriteObjectRequest copySourceEncryptionKeyBytes. */
+ public copySourceEncryptionKeyBytes: (Uint8Array|Buffer|string);
+
+ /** RewriteObjectRequest copySourceEncryptionKeySha256Bytes. */
+ public copySourceEncryptionKeySha256Bytes: (Uint8Array|Buffer|string);
+
+ /** RewriteObjectRequest commonObjectRequestParams. */
+ public commonObjectRequestParams?: (google.storage.v2.ICommonObjectRequestParams|null);
+
+ /** RewriteObjectRequest objectChecksums. */
+ public objectChecksums?: (google.storage.v2.IObjectChecksums|null);
+
+ /**
+ * Creates a new RewriteObjectRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RewriteObjectRequest instance
+ */
+ public static create(properties?: google.storage.v2.IRewriteObjectRequest): google.storage.v2.RewriteObjectRequest;
+
+ /**
+ * Encodes the specified RewriteObjectRequest message. Does not implicitly {@link google.storage.v2.RewriteObjectRequest.verify|verify} messages.
+ * @param message RewriteObjectRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IRewriteObjectRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RewriteObjectRequest message, length delimited. Does not implicitly {@link google.storage.v2.RewriteObjectRequest.verify|verify} messages.
+ * @param message RewriteObjectRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IRewriteObjectRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RewriteObjectRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RewriteObjectRequest
+ * @throws {Error} If the payload is 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.storage.v2.RewriteObjectRequest;
+
+ /**
+ * Decodes a RewriteObjectRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RewriteObjectRequest
+ * @throws {Error} If the 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.storage.v2.RewriteObjectRequest;
+
+ /**
+ * Verifies a RewriteObjectRequest message.
+ * @param message Plain 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 RewriteObjectRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RewriteObjectRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.RewriteObjectRequest;
+
+ /**
+ * Creates a plain object from a RewriteObjectRequest message. Also converts values to other types if specified.
+ * @param message RewriteObjectRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.RewriteObjectRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RewriteObjectRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RewriteObjectRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RewriteResponse. */
+ interface IRewriteResponse {
+
+ /** RewriteResponse totalBytesRewritten */
+ totalBytesRewritten?: (number|Long|string|null);
+
+ /** RewriteResponse objectSize */
+ objectSize?: (number|Long|string|null);
+
+ /** RewriteResponse done */
+ done?: (boolean|null);
+
+ /** RewriteResponse rewriteToken */
+ rewriteToken?: (string|null);
+
+ /** RewriteResponse resource */
+ resource?: (google.storage.v2.IObject|null);
+ }
+
+ /** Represents a RewriteResponse. */
+ class RewriteResponse implements IRewriteResponse {
+
+ /**
+ * Constructs a new RewriteResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IRewriteResponse);
+
+ /** RewriteResponse totalBytesRewritten. */
+ public totalBytesRewritten: (number|Long|string);
+
+ /** RewriteResponse objectSize. */
+ public objectSize: (number|Long|string);
+
+ /** RewriteResponse done. */
+ public done: boolean;
+
+ /** RewriteResponse rewriteToken. */
+ public rewriteToken: string;
+
+ /** RewriteResponse resource. */
+ public resource?: (google.storage.v2.IObject|null);
+
+ /**
+ * Creates a new RewriteResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RewriteResponse instance
+ */
+ public static create(properties?: google.storage.v2.IRewriteResponse): google.storage.v2.RewriteResponse;
+
+ /**
+ * Encodes the specified RewriteResponse message. Does not implicitly {@link google.storage.v2.RewriteResponse.verify|verify} messages.
+ * @param message RewriteResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IRewriteResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RewriteResponse message, length delimited. Does not implicitly {@link google.storage.v2.RewriteResponse.verify|verify} messages.
+ * @param message RewriteResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IRewriteResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RewriteResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RewriteResponse
+ * @throws {Error} If the payload is 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.storage.v2.RewriteResponse;
+
+ /**
+ * Decodes a RewriteResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RewriteResponse
+ * @throws {Error} If the 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.storage.v2.RewriteResponse;
+
+ /**
+ * Verifies a RewriteResponse message.
+ * @param message Plain 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 RewriteResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RewriteResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.RewriteResponse;
+
+ /**
+ * Creates a plain object from a RewriteResponse message. Also converts values to other types if specified.
+ * @param message RewriteResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.RewriteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RewriteResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RewriteResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MoveObjectRequest. */
+ interface IMoveObjectRequest {
+
+ /** MoveObjectRequest bucket */
+ bucket?: (string|null);
+
+ /** MoveObjectRequest sourceObject */
+ sourceObject?: (string|null);
+
+ /** MoveObjectRequest destinationObject */
+ destinationObject?: (string|null);
+
+ /** MoveObjectRequest ifSourceGenerationMatch */
+ ifSourceGenerationMatch?: (number|Long|string|null);
+
+ /** MoveObjectRequest ifSourceGenerationNotMatch */
+ ifSourceGenerationNotMatch?: (number|Long|string|null);
+
+ /** MoveObjectRequest ifSourceMetagenerationMatch */
+ ifSourceMetagenerationMatch?: (number|Long|string|null);
+
+ /** MoveObjectRequest ifSourceMetagenerationNotMatch */
+ ifSourceMetagenerationNotMatch?: (number|Long|string|null);
+
+ /** MoveObjectRequest ifGenerationMatch */
+ ifGenerationMatch?: (number|Long|string|null);
+
+ /** MoveObjectRequest ifGenerationNotMatch */
+ ifGenerationNotMatch?: (number|Long|string|null);
+
+ /** MoveObjectRequest ifMetagenerationMatch */
+ ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** MoveObjectRequest ifMetagenerationNotMatch */
+ ifMetagenerationNotMatch?: (number|Long|string|null);
+ }
+
+ /** Represents a MoveObjectRequest. */
+ class MoveObjectRequest implements IMoveObjectRequest {
+
+ /**
+ * Constructs a new MoveObjectRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IMoveObjectRequest);
+
+ /** MoveObjectRequest bucket. */
+ public bucket: string;
+
+ /** MoveObjectRequest sourceObject. */
+ public sourceObject: string;
+
+ /** MoveObjectRequest destinationObject. */
+ public destinationObject: string;
+
+ /** MoveObjectRequest ifSourceGenerationMatch. */
+ public ifSourceGenerationMatch?: (number|Long|string|null);
+
+ /** MoveObjectRequest ifSourceGenerationNotMatch. */
+ public ifSourceGenerationNotMatch?: (number|Long|string|null);
+
+ /** MoveObjectRequest ifSourceMetagenerationMatch. */
+ public ifSourceMetagenerationMatch?: (number|Long|string|null);
+
+ /** MoveObjectRequest ifSourceMetagenerationNotMatch. */
+ public ifSourceMetagenerationNotMatch?: (number|Long|string|null);
+
+ /** MoveObjectRequest ifGenerationMatch. */
+ public ifGenerationMatch?: (number|Long|string|null);
+
+ /** MoveObjectRequest ifGenerationNotMatch. */
+ public ifGenerationNotMatch?: (number|Long|string|null);
+
+ /** MoveObjectRequest ifMetagenerationMatch. */
+ public ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** MoveObjectRequest ifMetagenerationNotMatch. */
+ public ifMetagenerationNotMatch?: (number|Long|string|null);
+
+ /**
+ * Creates a new MoveObjectRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MoveObjectRequest instance
+ */
+ public static create(properties?: google.storage.v2.IMoveObjectRequest): google.storage.v2.MoveObjectRequest;
+
+ /**
+ * Encodes the specified MoveObjectRequest message. Does not implicitly {@link google.storage.v2.MoveObjectRequest.verify|verify} messages.
+ * @param message MoveObjectRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IMoveObjectRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MoveObjectRequest message, length delimited. Does not implicitly {@link google.storage.v2.MoveObjectRequest.verify|verify} messages.
+ * @param message MoveObjectRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IMoveObjectRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MoveObjectRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MoveObjectRequest
+ * @throws {Error} If the payload is 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.storage.v2.MoveObjectRequest;
+
+ /**
+ * Decodes a MoveObjectRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MoveObjectRequest
+ * @throws {Error} If the 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.storage.v2.MoveObjectRequest;
+
+ /**
+ * Verifies a MoveObjectRequest message.
+ * @param message Plain 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 MoveObjectRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MoveObjectRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.MoveObjectRequest;
+
+ /**
+ * Creates a plain object from a MoveObjectRequest message. Also converts values to other types if specified.
+ * @param message MoveObjectRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.MoveObjectRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MoveObjectRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MoveObjectRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a StartResumableWriteRequest. */
+ interface IStartResumableWriteRequest {
+
+ /** StartResumableWriteRequest writeObjectSpec */
+ writeObjectSpec?: (google.storage.v2.IWriteObjectSpec|null);
+
+ /** StartResumableWriteRequest commonObjectRequestParams */
+ commonObjectRequestParams?: (google.storage.v2.ICommonObjectRequestParams|null);
+
+ /** StartResumableWriteRequest objectChecksums */
+ objectChecksums?: (google.storage.v2.IObjectChecksums|null);
+ }
+
+ /** Represents a StartResumableWriteRequest. */
+ class StartResumableWriteRequest implements IStartResumableWriteRequest {
+
+ /**
+ * Constructs a new StartResumableWriteRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IStartResumableWriteRequest);
+
+ /** StartResumableWriteRequest writeObjectSpec. */
+ public writeObjectSpec?: (google.storage.v2.IWriteObjectSpec|null);
+
+ /** StartResumableWriteRequest commonObjectRequestParams. */
+ public commonObjectRequestParams?: (google.storage.v2.ICommonObjectRequestParams|null);
+
+ /** StartResumableWriteRequest objectChecksums. */
+ public objectChecksums?: (google.storage.v2.IObjectChecksums|null);
+
+ /**
+ * Creates a new StartResumableWriteRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StartResumableWriteRequest instance
+ */
+ public static create(properties?: google.storage.v2.IStartResumableWriteRequest): google.storage.v2.StartResumableWriteRequest;
+
+ /**
+ * Encodes the specified StartResumableWriteRequest message. Does not implicitly {@link google.storage.v2.StartResumableWriteRequest.verify|verify} messages.
+ * @param message StartResumableWriteRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IStartResumableWriteRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StartResumableWriteRequest message, length delimited. Does not implicitly {@link google.storage.v2.StartResumableWriteRequest.verify|verify} messages.
+ * @param message StartResumableWriteRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IStartResumableWriteRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StartResumableWriteRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StartResumableWriteRequest
+ * @throws {Error} If the payload is 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.storage.v2.StartResumableWriteRequest;
+
+ /**
+ * Decodes a StartResumableWriteRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StartResumableWriteRequest
+ * @throws {Error} If the 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.storage.v2.StartResumableWriteRequest;
+
+ /**
+ * Verifies a StartResumableWriteRequest message.
+ * @param message Plain 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 StartResumableWriteRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StartResumableWriteRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.StartResumableWriteRequest;
+
+ /**
+ * Creates a plain object from a StartResumableWriteRequest message. Also converts values to other types if specified.
+ * @param message StartResumableWriteRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.StartResumableWriteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StartResumableWriteRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StartResumableWriteRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a StartResumableWriteResponse. */
+ interface IStartResumableWriteResponse {
+
+ /** StartResumableWriteResponse uploadId */
+ uploadId?: (string|null);
+ }
+
+ /** Represents a StartResumableWriteResponse. */
+ class StartResumableWriteResponse implements IStartResumableWriteResponse {
+
+ /**
+ * Constructs a new StartResumableWriteResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IStartResumableWriteResponse);
+
+ /** StartResumableWriteResponse uploadId. */
+ public uploadId: string;
+
+ /**
+ * Creates a new StartResumableWriteResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns StartResumableWriteResponse instance
+ */
+ public static create(properties?: google.storage.v2.IStartResumableWriteResponse): google.storage.v2.StartResumableWriteResponse;
+
+ /**
+ * Encodes the specified StartResumableWriteResponse message. Does not implicitly {@link google.storage.v2.StartResumableWriteResponse.verify|verify} messages.
+ * @param message StartResumableWriteResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IStartResumableWriteResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified StartResumableWriteResponse message, length delimited. Does not implicitly {@link google.storage.v2.StartResumableWriteResponse.verify|verify} messages.
+ * @param message StartResumableWriteResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IStartResumableWriteResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a StartResumableWriteResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns StartResumableWriteResponse
+ * @throws {Error} If the payload is 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.storage.v2.StartResumableWriteResponse;
+
+ /**
+ * Decodes a StartResumableWriteResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns StartResumableWriteResponse
+ * @throws {Error} If the 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.storage.v2.StartResumableWriteResponse;
+
+ /**
+ * Verifies a StartResumableWriteResponse message.
+ * @param message Plain 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 StartResumableWriteResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns StartResumableWriteResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.StartResumableWriteResponse;
+
+ /**
+ * Creates a plain object from a StartResumableWriteResponse message. Also converts values to other types if specified.
+ * @param message StartResumableWriteResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.StartResumableWriteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this StartResumableWriteResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for StartResumableWriteResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateObjectRequest. */
+ interface IUpdateObjectRequest {
+
+ /** UpdateObjectRequest object */
+ object?: (google.storage.v2.IObject|null);
+
+ /** UpdateObjectRequest ifGenerationMatch */
+ ifGenerationMatch?: (number|Long|string|null);
+
+ /** UpdateObjectRequest ifGenerationNotMatch */
+ ifGenerationNotMatch?: (number|Long|string|null);
+
+ /** UpdateObjectRequest ifMetagenerationMatch */
+ ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** UpdateObjectRequest ifMetagenerationNotMatch */
+ ifMetagenerationNotMatch?: (number|Long|string|null);
+
+ /** UpdateObjectRequest predefinedAcl */
+ predefinedAcl?: (string|null);
+
+ /** UpdateObjectRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateObjectRequest commonObjectRequestParams */
+ commonObjectRequestParams?: (google.storage.v2.ICommonObjectRequestParams|null);
+
+ /** UpdateObjectRequest overrideUnlockedRetention */
+ overrideUnlockedRetention?: (boolean|null);
+ }
+
+ /** Represents an UpdateObjectRequest. */
+ class UpdateObjectRequest implements IUpdateObjectRequest {
+
+ /**
+ * Constructs a new UpdateObjectRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IUpdateObjectRequest);
+
+ /** UpdateObjectRequest object. */
+ public object?: (google.storage.v2.IObject|null);
+
+ /** UpdateObjectRequest ifGenerationMatch. */
+ public ifGenerationMatch?: (number|Long|string|null);
+
+ /** UpdateObjectRequest ifGenerationNotMatch. */
+ public ifGenerationNotMatch?: (number|Long|string|null);
+
+ /** UpdateObjectRequest ifMetagenerationMatch. */
+ public ifMetagenerationMatch?: (number|Long|string|null);
+
+ /** UpdateObjectRequest ifMetagenerationNotMatch. */
+ public ifMetagenerationNotMatch?: (number|Long|string|null);
+
+ /** UpdateObjectRequest predefinedAcl. */
+ public predefinedAcl: string;
+
+ /** UpdateObjectRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateObjectRequest commonObjectRequestParams. */
+ public commonObjectRequestParams?: (google.storage.v2.ICommonObjectRequestParams|null);
+
+ /** UpdateObjectRequest overrideUnlockedRetention. */
+ public overrideUnlockedRetention: boolean;
+
+ /**
+ * Creates a new UpdateObjectRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateObjectRequest instance
+ */
+ public static create(properties?: google.storage.v2.IUpdateObjectRequest): google.storage.v2.UpdateObjectRequest;
+
+ /**
+ * Encodes the specified UpdateObjectRequest message. Does not implicitly {@link google.storage.v2.UpdateObjectRequest.verify|verify} messages.
+ * @param message UpdateObjectRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IUpdateObjectRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateObjectRequest message, length delimited. Does not implicitly {@link google.storage.v2.UpdateObjectRequest.verify|verify} messages.
+ * @param message UpdateObjectRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IUpdateObjectRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateObjectRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateObjectRequest
+ * @throws {Error} If the payload is 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.storage.v2.UpdateObjectRequest;
+
+ /**
+ * Decodes an UpdateObjectRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateObjectRequest
+ * @throws {Error} If the 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.storage.v2.UpdateObjectRequest;
+
+ /**
+ * Verifies an UpdateObjectRequest message.
+ * @param message Plain 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 UpdateObjectRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateObjectRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.UpdateObjectRequest;
+
+ /**
+ * Creates a plain object from an UpdateObjectRequest message. Also converts values to other types if specified.
+ * @param message UpdateObjectRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.UpdateObjectRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateObjectRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateObjectRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CommonObjectRequestParams. */
+ interface ICommonObjectRequestParams {
+
+ /** CommonObjectRequestParams encryptionAlgorithm */
+ encryptionAlgorithm?: (string|null);
+
+ /** CommonObjectRequestParams encryptionKeyBytes */
+ encryptionKeyBytes?: (Uint8Array|Buffer|string|null);
+
+ /** CommonObjectRequestParams encryptionKeySha256Bytes */
+ encryptionKeySha256Bytes?: (Uint8Array|Buffer|string|null);
+ }
+
+ /** Represents a CommonObjectRequestParams. */
+ class CommonObjectRequestParams implements ICommonObjectRequestParams {
+
+ /**
+ * Constructs a new CommonObjectRequestParams.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.ICommonObjectRequestParams);
+
+ /** CommonObjectRequestParams encryptionAlgorithm. */
+ public encryptionAlgorithm: string;
+
+ /** CommonObjectRequestParams encryptionKeyBytes. */
+ public encryptionKeyBytes: (Uint8Array|Buffer|string);
+
+ /** CommonObjectRequestParams encryptionKeySha256Bytes. */
+ public encryptionKeySha256Bytes: (Uint8Array|Buffer|string);
+
+ /**
+ * Creates a new CommonObjectRequestParams instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CommonObjectRequestParams instance
+ */
+ public static create(properties?: google.storage.v2.ICommonObjectRequestParams): google.storage.v2.CommonObjectRequestParams;
+
+ /**
+ * Encodes the specified CommonObjectRequestParams message. Does not implicitly {@link google.storage.v2.CommonObjectRequestParams.verify|verify} messages.
+ * @param message CommonObjectRequestParams message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.ICommonObjectRequestParams, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CommonObjectRequestParams message, length delimited. Does not implicitly {@link google.storage.v2.CommonObjectRequestParams.verify|verify} messages.
+ * @param message CommonObjectRequestParams message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.ICommonObjectRequestParams, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CommonObjectRequestParams message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CommonObjectRequestParams
+ * @throws {Error} If the payload is 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.storage.v2.CommonObjectRequestParams;
+
+ /**
+ * Decodes a CommonObjectRequestParams message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CommonObjectRequestParams
+ * @throws {Error} If the 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.storage.v2.CommonObjectRequestParams;
+
+ /**
+ * Verifies a CommonObjectRequestParams message.
+ * @param message Plain 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 CommonObjectRequestParams message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CommonObjectRequestParams
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.CommonObjectRequestParams;
+
+ /**
+ * Creates a plain object from a CommonObjectRequestParams message. Also converts values to other types if specified.
+ * @param message CommonObjectRequestParams
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.CommonObjectRequestParams, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CommonObjectRequestParams to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CommonObjectRequestParams
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceConstants. */
+ interface IServiceConstants {
+ }
+
+ /** Represents a ServiceConstants. */
+ class ServiceConstants implements IServiceConstants {
+
+ /**
+ * Constructs a new ServiceConstants.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IServiceConstants);
+
+ /**
+ * Creates a new ServiceConstants instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceConstants instance
+ */
+ public static create(properties?: google.storage.v2.IServiceConstants): google.storage.v2.ServiceConstants;
+
+ /**
+ * Encodes the specified ServiceConstants message. Does not implicitly {@link google.storage.v2.ServiceConstants.verify|verify} messages.
+ * @param message ServiceConstants message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IServiceConstants, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceConstants message, length delimited. Does not implicitly {@link google.storage.v2.ServiceConstants.verify|verify} messages.
+ * @param message ServiceConstants message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IServiceConstants, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceConstants message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceConstants
+ * @throws {Error} If the payload is 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.storage.v2.ServiceConstants;
+
+ /**
+ * Decodes a ServiceConstants message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceConstants
+ * @throws {Error} If the 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.storage.v2.ServiceConstants;
+
+ /**
+ * Verifies a ServiceConstants message.
+ * @param message Plain 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 ServiceConstants message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceConstants
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.ServiceConstants;
+
+ /**
+ * Creates a plain object from a ServiceConstants message. Also converts values to other types if specified.
+ * @param message ServiceConstants
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.ServiceConstants, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceConstants to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceConstants
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ServiceConstants {
+
+ /** Values enum. */
+ enum Values {
+ VALUES_UNSPECIFIED = 0,
+ MAX_READ_CHUNK_BYTES = 2097152,
+ MAX_WRITE_CHUNK_BYTES = 2097152,
+ MAX_OBJECT_SIZE_MB = 5242880,
+ MAX_CUSTOM_METADATA_FIELD_NAME_BYTES = 1024,
+ MAX_CUSTOM_METADATA_FIELD_VALUE_BYTES = 4096,
+ MAX_CUSTOM_METADATA_TOTAL_SIZE_BYTES = 8192,
+ MAX_BUCKET_METADATA_TOTAL_SIZE_BYTES = 20480,
+ MAX_NOTIFICATION_CONFIGS_PER_BUCKET = 100,
+ MAX_LIFECYCLE_RULES_PER_BUCKET = 100,
+ MAX_NOTIFICATION_CUSTOM_ATTRIBUTES = 5,
+ MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_KEY_LENGTH = 256,
+ MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_VALUE_LENGTH = 1024,
+ MAX_LABELS_ENTRIES_COUNT = 64,
+ MAX_LABELS_KEY_VALUE_LENGTH = 63,
+ MAX_LABELS_KEY_VALUE_BYTES = 128,
+ MAX_OBJECT_IDS_PER_DELETE_OBJECTS_REQUEST = 1000,
+ SPLIT_TOKEN_MAX_VALID_DAYS = 14
+ }
+ }
+
+ /** Properties of a Bucket. */
+ interface IBucket {
+
+ /** Bucket name */
+ name?: (string|null);
+
+ /** Bucket bucketId */
+ bucketId?: (string|null);
+
+ /** Bucket etag */
+ etag?: (string|null);
+
+ /** Bucket project */
+ project?: (string|null);
+
+ /** Bucket metageneration */
+ metageneration?: (number|Long|string|null);
+
+ /** Bucket location */
+ location?: (string|null);
+
+ /** Bucket locationType */
+ locationType?: (string|null);
+
+ /** Bucket storageClass */
+ storageClass?: (string|null);
+
+ /** Bucket rpo */
+ rpo?: (string|null);
+
+ /** Bucket acl */
+ acl?: (google.storage.v2.IBucketAccessControl[]|null);
+
+ /** Bucket defaultObjectAcl */
+ defaultObjectAcl?: (google.storage.v2.IObjectAccessControl[]|null);
+
+ /** Bucket lifecycle */
+ lifecycle?: (google.storage.v2.Bucket.ILifecycle|null);
+
+ /** Bucket createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Bucket cors */
+ cors?: (google.storage.v2.Bucket.ICors[]|null);
+
+ /** Bucket updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Bucket defaultEventBasedHold */
+ defaultEventBasedHold?: (boolean|null);
+
+ /** Bucket labels */
+ labels?: ({ [k: string]: string }|null);
+
+ /** Bucket website */
+ website?: (google.storage.v2.Bucket.IWebsite|null);
+
+ /** Bucket versioning */
+ versioning?: (google.storage.v2.Bucket.IVersioning|null);
+
+ /** Bucket logging */
+ logging?: (google.storage.v2.Bucket.ILogging|null);
+
+ /** Bucket owner */
+ owner?: (google.storage.v2.IOwner|null);
+
+ /** Bucket encryption */
+ encryption?: (google.storage.v2.Bucket.IEncryption|null);
+
+ /** Bucket billing */
+ billing?: (google.storage.v2.Bucket.IBilling|null);
+
+ /** Bucket retentionPolicy */
+ retentionPolicy?: (google.storage.v2.Bucket.IRetentionPolicy|null);
+
+ /** Bucket iamConfig */
+ iamConfig?: (google.storage.v2.Bucket.IIamConfig|null);
+
+ /** Bucket satisfiesPzs */
+ satisfiesPzs?: (boolean|null);
+
+ /** Bucket customPlacementConfig */
+ customPlacementConfig?: (google.storage.v2.Bucket.ICustomPlacementConfig|null);
+
+ /** Bucket autoclass */
+ autoclass?: (google.storage.v2.Bucket.IAutoclass|null);
+
+ /** Bucket hierarchicalNamespace */
+ hierarchicalNamespace?: (google.storage.v2.Bucket.IHierarchicalNamespace|null);
+
+ /** Bucket softDeletePolicy */
+ softDeletePolicy?: (google.storage.v2.Bucket.ISoftDeletePolicy|null);
+
+ /** Bucket objectRetention */
+ objectRetention?: (google.storage.v2.Bucket.IObjectRetention|null);
+
+ /** Bucket ipFilter */
+ ipFilter?: (google.storage.v2.Bucket.IIpFilter|null);
+ }
+
+ /** Represents a Bucket. */
+ class Bucket implements IBucket {
+
+ /**
+ * Constructs a new Bucket.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IBucket);
+
+ /** Bucket name. */
+ public name: string;
+
+ /** Bucket bucketId. */
+ public bucketId: string;
+
+ /** Bucket etag. */
+ public etag: string;
+
+ /** Bucket project. */
+ public project: string;
+
+ /** Bucket metageneration. */
+ public metageneration: (number|Long|string);
+
+ /** Bucket location. */
+ public location: string;
+
+ /** Bucket locationType. */
+ public locationType: string;
+
+ /** Bucket storageClass. */
+ public storageClass: string;
+
+ /** Bucket rpo. */
+ public rpo: string;
+
+ /** Bucket acl. */
+ public acl: google.storage.v2.IBucketAccessControl[];
+
+ /** Bucket defaultObjectAcl. */
+ public defaultObjectAcl: google.storage.v2.IObjectAccessControl[];
+
+ /** Bucket lifecycle. */
+ public lifecycle?: (google.storage.v2.Bucket.ILifecycle|null);
+
+ /** Bucket createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Bucket cors. */
+ public cors: google.storage.v2.Bucket.ICors[];
+
+ /** Bucket updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Bucket defaultEventBasedHold. */
+ public defaultEventBasedHold: boolean;
+
+ /** Bucket labels. */
+ public labels: { [k: string]: string };
+
+ /** Bucket website. */
+ public website?: (google.storage.v2.Bucket.IWebsite|null);
+
+ /** Bucket versioning. */
+ public versioning?: (google.storage.v2.Bucket.IVersioning|null);
+
+ /** Bucket logging. */
+ public logging?: (google.storage.v2.Bucket.ILogging|null);
+
+ /** Bucket owner. */
+ public owner?: (google.storage.v2.IOwner|null);
+
+ /** Bucket encryption. */
+ public encryption?: (google.storage.v2.Bucket.IEncryption|null);
+
+ /** Bucket billing. */
+ public billing?: (google.storage.v2.Bucket.IBilling|null);
+
+ /** Bucket retentionPolicy. */
+ public retentionPolicy?: (google.storage.v2.Bucket.IRetentionPolicy|null);
+
+ /** Bucket iamConfig. */
+ public iamConfig?: (google.storage.v2.Bucket.IIamConfig|null);
+
+ /** Bucket satisfiesPzs. */
+ public satisfiesPzs: boolean;
+
+ /** Bucket customPlacementConfig. */
+ public customPlacementConfig?: (google.storage.v2.Bucket.ICustomPlacementConfig|null);
+
+ /** Bucket autoclass. */
+ public autoclass?: (google.storage.v2.Bucket.IAutoclass|null);
+
+ /** Bucket hierarchicalNamespace. */
+ public hierarchicalNamespace?: (google.storage.v2.Bucket.IHierarchicalNamespace|null);
+
+ /** Bucket softDeletePolicy. */
+ public softDeletePolicy?: (google.storage.v2.Bucket.ISoftDeletePolicy|null);
+
+ /** Bucket objectRetention. */
+ public objectRetention?: (google.storage.v2.Bucket.IObjectRetention|null);
+
+ /** Bucket ipFilter. */
+ public ipFilter?: (google.storage.v2.Bucket.IIpFilter|null);
+
+ /**
+ * Creates a new Bucket instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Bucket instance
+ */
+ public static create(properties?: google.storage.v2.IBucket): google.storage.v2.Bucket;
+
+ /**
+ * Encodes the specified Bucket message. Does not implicitly {@link google.storage.v2.Bucket.verify|verify} messages.
+ * @param message Bucket message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IBucket, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Bucket message, length delimited. Does not implicitly {@link google.storage.v2.Bucket.verify|verify} messages.
+ * @param message Bucket message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IBucket, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Bucket message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Bucket
+ * @throws {Error} If the payload is 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.storage.v2.Bucket;
+
+ /**
+ * Decodes a Bucket message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Bucket
+ * @throws {Error} If the 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.storage.v2.Bucket;
+
+ /**
+ * Verifies a Bucket message.
+ * @param message Plain 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 Bucket message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Bucket
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.Bucket;
+
+ /**
+ * Creates a plain object from a Bucket message. Also converts values to other types if specified.
+ * @param message Bucket
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.Bucket, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Bucket to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Bucket
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Bucket {
+
+ /** Properties of a Billing. */
+ interface IBilling {
+
+ /** Billing requesterPays */
+ requesterPays?: (boolean|null);
+ }
+
+ /** Represents a Billing. */
+ class Billing implements IBilling {
+
+ /**
+ * Constructs a new Billing.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.Bucket.IBilling);
+
+ /** Billing requesterPays. */
+ public requesterPays: boolean;
+
+ /**
+ * Creates a new Billing instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Billing instance
+ */
+ public static create(properties?: google.storage.v2.Bucket.IBilling): google.storage.v2.Bucket.Billing;
+
+ /**
+ * Encodes the specified Billing message. Does not implicitly {@link google.storage.v2.Bucket.Billing.verify|verify} messages.
+ * @param message Billing message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.Bucket.IBilling, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Billing message, length delimited. Does not implicitly {@link google.storage.v2.Bucket.Billing.verify|verify} messages.
+ * @param message Billing message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.Bucket.IBilling, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Billing message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Billing
+ * @throws {Error} If the payload is 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.storage.v2.Bucket.Billing;
+
+ /**
+ * Decodes a Billing message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Billing
+ * @throws {Error} If the 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.storage.v2.Bucket.Billing;
+
+ /**
+ * Verifies a Billing message.
+ * @param message Plain 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 Billing message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Billing
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.Bucket.Billing;
+
+ /**
+ * Creates a plain object from a Billing message. Also converts values to other types if specified.
+ * @param message Billing
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.Bucket.Billing, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Billing to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Billing
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Cors. */
+ interface ICors {
+
+ /** Cors origin */
+ origin?: (string[]|null);
+
+ /** Cors method */
+ method?: (string[]|null);
+
+ /** Cors responseHeader */
+ responseHeader?: (string[]|null);
+
+ /** Cors maxAgeSeconds */
+ maxAgeSeconds?: (number|null);
+ }
+
+ /** Represents a Cors. */
+ class Cors implements ICors {
+
+ /**
+ * Constructs a new Cors.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.Bucket.ICors);
+
+ /** Cors origin. */
+ public origin: string[];
+
+ /** Cors method. */
+ public method: string[];
+
+ /** Cors responseHeader. */
+ public responseHeader: string[];
+
+ /** Cors maxAgeSeconds. */
+ public maxAgeSeconds: number;
+
+ /**
+ * Creates a new Cors instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Cors instance
+ */
+ public static create(properties?: google.storage.v2.Bucket.ICors): google.storage.v2.Bucket.Cors;
+
+ /**
+ * Encodes the specified Cors message. Does not implicitly {@link google.storage.v2.Bucket.Cors.verify|verify} messages.
+ * @param message Cors message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.Bucket.ICors, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Cors message, length delimited. Does not implicitly {@link google.storage.v2.Bucket.Cors.verify|verify} messages.
+ * @param message Cors message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.Bucket.ICors, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Cors message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Cors
+ * @throws {Error} If the payload is 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.storage.v2.Bucket.Cors;
+
+ /**
+ * Decodes a Cors message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Cors
+ * @throws {Error} If the 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.storage.v2.Bucket.Cors;
+
+ /**
+ * Verifies a Cors message.
+ * @param message Plain 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 Cors message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Cors
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.Bucket.Cors;
+
+ /**
+ * Creates a plain object from a Cors message. Also converts values to other types if specified.
+ * @param message Cors
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.Bucket.Cors, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Cors to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Cors
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Encryption. */
+ interface IEncryption {
+
+ /** Encryption defaultKmsKey */
+ defaultKmsKey?: (string|null);
+
+ /** Encryption googleManagedEncryptionEnforcementConfig */
+ googleManagedEncryptionEnforcementConfig?: (google.storage.v2.Bucket.Encryption.IGoogleManagedEncryptionEnforcementConfig|null);
+
+ /** Encryption customerManagedEncryptionEnforcementConfig */
+ customerManagedEncryptionEnforcementConfig?: (google.storage.v2.Bucket.Encryption.ICustomerManagedEncryptionEnforcementConfig|null);
+
+ /** Encryption customerSuppliedEncryptionEnforcementConfig */
+ customerSuppliedEncryptionEnforcementConfig?: (google.storage.v2.Bucket.Encryption.ICustomerSuppliedEncryptionEnforcementConfig|null);
+ }
+
+ /** Represents an Encryption. */
+ class Encryption implements IEncryption {
+
+ /**
+ * Constructs a new Encryption.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.Bucket.IEncryption);
+
+ /** Encryption defaultKmsKey. */
+ public defaultKmsKey: string;
+
+ /** Encryption googleManagedEncryptionEnforcementConfig. */
+ public googleManagedEncryptionEnforcementConfig?: (google.storage.v2.Bucket.Encryption.IGoogleManagedEncryptionEnforcementConfig|null);
+
+ /** Encryption customerManagedEncryptionEnforcementConfig. */
+ public customerManagedEncryptionEnforcementConfig?: (google.storage.v2.Bucket.Encryption.ICustomerManagedEncryptionEnforcementConfig|null);
+
+ /** Encryption customerSuppliedEncryptionEnforcementConfig. */
+ public customerSuppliedEncryptionEnforcementConfig?: (google.storage.v2.Bucket.Encryption.ICustomerSuppliedEncryptionEnforcementConfig|null);
+
+ /**
+ * Creates a new Encryption instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Encryption instance
+ */
+ public static create(properties?: google.storage.v2.Bucket.IEncryption): google.storage.v2.Bucket.Encryption;
+
+ /**
+ * Encodes the specified Encryption message. Does not implicitly {@link google.storage.v2.Bucket.Encryption.verify|verify} messages.
+ * @param message Encryption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.Bucket.IEncryption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Encryption message, length delimited. Does not implicitly {@link google.storage.v2.Bucket.Encryption.verify|verify} messages.
+ * @param message Encryption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.Bucket.IEncryption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Encryption message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Encryption
+ * @throws {Error} If the payload is 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.storage.v2.Bucket.Encryption;
+
+ /**
+ * Decodes an Encryption message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Encryption
+ * @throws {Error} If the 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.storage.v2.Bucket.Encryption;
+
+ /**
+ * Verifies an Encryption message.
+ * @param message Plain 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 Encryption message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Encryption
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.Bucket.Encryption;
+
+ /**
+ * Creates a plain object from an Encryption message. Also converts values to other types if specified.
+ * @param message Encryption
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.Bucket.Encryption, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Encryption to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Encryption
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Encryption {
+
+ /** Properties of a GoogleManagedEncryptionEnforcementConfig. */
+ interface IGoogleManagedEncryptionEnforcementConfig {
+
+ /** GoogleManagedEncryptionEnforcementConfig restrictionMode */
+ restrictionMode?: (string|null);
+
+ /** GoogleManagedEncryptionEnforcementConfig effectiveTime */
+ effectiveTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a GoogleManagedEncryptionEnforcementConfig. */
+ class GoogleManagedEncryptionEnforcementConfig implements IGoogleManagedEncryptionEnforcementConfig {
+
+ /**
+ * Constructs a new GoogleManagedEncryptionEnforcementConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.Bucket.Encryption.IGoogleManagedEncryptionEnforcementConfig);
+
+ /** GoogleManagedEncryptionEnforcementConfig restrictionMode. */
+ public restrictionMode?: (string|null);
+
+ /** GoogleManagedEncryptionEnforcementConfig effectiveTime. */
+ public effectiveTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new GoogleManagedEncryptionEnforcementConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GoogleManagedEncryptionEnforcementConfig instance
+ */
+ public static create(properties?: google.storage.v2.Bucket.Encryption.IGoogleManagedEncryptionEnforcementConfig): google.storage.v2.Bucket.Encryption.GoogleManagedEncryptionEnforcementConfig;
+
+ /**
+ * Encodes the specified GoogleManagedEncryptionEnforcementConfig message. Does not implicitly {@link google.storage.v2.Bucket.Encryption.GoogleManagedEncryptionEnforcementConfig.verify|verify} messages.
+ * @param message GoogleManagedEncryptionEnforcementConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.Bucket.Encryption.IGoogleManagedEncryptionEnforcementConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GoogleManagedEncryptionEnforcementConfig message, length delimited. Does not implicitly {@link google.storage.v2.Bucket.Encryption.GoogleManagedEncryptionEnforcementConfig.verify|verify} messages.
+ * @param message GoogleManagedEncryptionEnforcementConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.Bucket.Encryption.IGoogleManagedEncryptionEnforcementConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GoogleManagedEncryptionEnforcementConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GoogleManagedEncryptionEnforcementConfig
+ * @throws {Error} If the payload is 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.storage.v2.Bucket.Encryption.GoogleManagedEncryptionEnforcementConfig;
+
+ /**
+ * Decodes a GoogleManagedEncryptionEnforcementConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GoogleManagedEncryptionEnforcementConfig
+ * @throws {Error} If the 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.storage.v2.Bucket.Encryption.GoogleManagedEncryptionEnforcementConfig;
+
+ /**
+ * Verifies a GoogleManagedEncryptionEnforcementConfig message.
+ * @param message Plain 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 GoogleManagedEncryptionEnforcementConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GoogleManagedEncryptionEnforcementConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.Bucket.Encryption.GoogleManagedEncryptionEnforcementConfig;
+
+ /**
+ * Creates a plain object from a GoogleManagedEncryptionEnforcementConfig message. Also converts values to other types if specified.
+ * @param message GoogleManagedEncryptionEnforcementConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.Bucket.Encryption.GoogleManagedEncryptionEnforcementConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GoogleManagedEncryptionEnforcementConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GoogleManagedEncryptionEnforcementConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CustomerManagedEncryptionEnforcementConfig. */
+ interface ICustomerManagedEncryptionEnforcementConfig {
+
+ /** CustomerManagedEncryptionEnforcementConfig restrictionMode */
+ restrictionMode?: (string|null);
+
+ /** CustomerManagedEncryptionEnforcementConfig effectiveTime */
+ effectiveTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a CustomerManagedEncryptionEnforcementConfig. */
+ class CustomerManagedEncryptionEnforcementConfig implements ICustomerManagedEncryptionEnforcementConfig {
+
+ /**
+ * Constructs a new CustomerManagedEncryptionEnforcementConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.Bucket.Encryption.ICustomerManagedEncryptionEnforcementConfig);
+
+ /** CustomerManagedEncryptionEnforcementConfig restrictionMode. */
+ public restrictionMode?: (string|null);
+
+ /** CustomerManagedEncryptionEnforcementConfig effectiveTime. */
+ public effectiveTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new CustomerManagedEncryptionEnforcementConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CustomerManagedEncryptionEnforcementConfig instance
+ */
+ public static create(properties?: google.storage.v2.Bucket.Encryption.ICustomerManagedEncryptionEnforcementConfig): google.storage.v2.Bucket.Encryption.CustomerManagedEncryptionEnforcementConfig;
+
+ /**
+ * Encodes the specified CustomerManagedEncryptionEnforcementConfig message. Does not implicitly {@link google.storage.v2.Bucket.Encryption.CustomerManagedEncryptionEnforcementConfig.verify|verify} messages.
+ * @param message CustomerManagedEncryptionEnforcementConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.Bucket.Encryption.ICustomerManagedEncryptionEnforcementConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CustomerManagedEncryptionEnforcementConfig message, length delimited. Does not implicitly {@link google.storage.v2.Bucket.Encryption.CustomerManagedEncryptionEnforcementConfig.verify|verify} messages.
+ * @param message CustomerManagedEncryptionEnforcementConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.Bucket.Encryption.ICustomerManagedEncryptionEnforcementConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CustomerManagedEncryptionEnforcementConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CustomerManagedEncryptionEnforcementConfig
+ * @throws {Error} If the payload is 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.storage.v2.Bucket.Encryption.CustomerManagedEncryptionEnforcementConfig;
+
+ /**
+ * Decodes a CustomerManagedEncryptionEnforcementConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CustomerManagedEncryptionEnforcementConfig
+ * @throws {Error} If the 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.storage.v2.Bucket.Encryption.CustomerManagedEncryptionEnforcementConfig;
+
+ /**
+ * Verifies a CustomerManagedEncryptionEnforcementConfig message.
+ * @param message Plain 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 CustomerManagedEncryptionEnforcementConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CustomerManagedEncryptionEnforcementConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.Bucket.Encryption.CustomerManagedEncryptionEnforcementConfig;
+
+ /**
+ * Creates a plain object from a CustomerManagedEncryptionEnforcementConfig message. Also converts values to other types if specified.
+ * @param message CustomerManagedEncryptionEnforcementConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.Bucket.Encryption.CustomerManagedEncryptionEnforcementConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CustomerManagedEncryptionEnforcementConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CustomerManagedEncryptionEnforcementConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CustomerSuppliedEncryptionEnforcementConfig. */
+ interface ICustomerSuppliedEncryptionEnforcementConfig {
+
+ /** CustomerSuppliedEncryptionEnforcementConfig restrictionMode */
+ restrictionMode?: (string|null);
+
+ /** CustomerSuppliedEncryptionEnforcementConfig effectiveTime */
+ effectiveTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a CustomerSuppliedEncryptionEnforcementConfig. */
+ class CustomerSuppliedEncryptionEnforcementConfig implements ICustomerSuppliedEncryptionEnforcementConfig {
+
+ /**
+ * Constructs a new CustomerSuppliedEncryptionEnforcementConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.Bucket.Encryption.ICustomerSuppliedEncryptionEnforcementConfig);
+
+ /** CustomerSuppliedEncryptionEnforcementConfig restrictionMode. */
+ public restrictionMode?: (string|null);
+
+ /** CustomerSuppliedEncryptionEnforcementConfig effectiveTime. */
+ public effectiveTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new CustomerSuppliedEncryptionEnforcementConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CustomerSuppliedEncryptionEnforcementConfig instance
+ */
+ public static create(properties?: google.storage.v2.Bucket.Encryption.ICustomerSuppliedEncryptionEnforcementConfig): google.storage.v2.Bucket.Encryption.CustomerSuppliedEncryptionEnforcementConfig;
+
+ /**
+ * Encodes the specified CustomerSuppliedEncryptionEnforcementConfig message. Does not implicitly {@link google.storage.v2.Bucket.Encryption.CustomerSuppliedEncryptionEnforcementConfig.verify|verify} messages.
+ * @param message CustomerSuppliedEncryptionEnforcementConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.Bucket.Encryption.ICustomerSuppliedEncryptionEnforcementConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CustomerSuppliedEncryptionEnforcementConfig message, length delimited. Does not implicitly {@link google.storage.v2.Bucket.Encryption.CustomerSuppliedEncryptionEnforcementConfig.verify|verify} messages.
+ * @param message CustomerSuppliedEncryptionEnforcementConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.Bucket.Encryption.ICustomerSuppliedEncryptionEnforcementConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CustomerSuppliedEncryptionEnforcementConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CustomerSuppliedEncryptionEnforcementConfig
+ * @throws {Error} If the payload is 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.storage.v2.Bucket.Encryption.CustomerSuppliedEncryptionEnforcementConfig;
+
+ /**
+ * Decodes a CustomerSuppliedEncryptionEnforcementConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CustomerSuppliedEncryptionEnforcementConfig
+ * @throws {Error} If the 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.storage.v2.Bucket.Encryption.CustomerSuppliedEncryptionEnforcementConfig;
+
+ /**
+ * Verifies a CustomerSuppliedEncryptionEnforcementConfig message.
+ * @param message Plain 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 CustomerSuppliedEncryptionEnforcementConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CustomerSuppliedEncryptionEnforcementConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.Bucket.Encryption.CustomerSuppliedEncryptionEnforcementConfig;
+
+ /**
+ * Creates a plain object from a CustomerSuppliedEncryptionEnforcementConfig message. Also converts values to other types if specified.
+ * @param message CustomerSuppliedEncryptionEnforcementConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.Bucket.Encryption.CustomerSuppliedEncryptionEnforcementConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CustomerSuppliedEncryptionEnforcementConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CustomerSuppliedEncryptionEnforcementConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an IamConfig. */
+ interface IIamConfig {
+
+ /** IamConfig uniformBucketLevelAccess */
+ uniformBucketLevelAccess?: (google.storage.v2.Bucket.IamConfig.IUniformBucketLevelAccess|null);
+
+ /** IamConfig publicAccessPrevention */
+ publicAccessPrevention?: (string|null);
+ }
+
+ /** Represents an IamConfig. */
+ class IamConfig implements IIamConfig {
+
+ /**
+ * Constructs a new IamConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.Bucket.IIamConfig);
+
+ /** IamConfig uniformBucketLevelAccess. */
+ public uniformBucketLevelAccess?: (google.storage.v2.Bucket.IamConfig.IUniformBucketLevelAccess|null);
+
+ /** IamConfig publicAccessPrevention. */
+ public publicAccessPrevention: string;
+
+ /**
+ * Creates a new IamConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns IamConfig instance
+ */
+ public static create(properties?: google.storage.v2.Bucket.IIamConfig): google.storage.v2.Bucket.IamConfig;
+
+ /**
+ * Encodes the specified IamConfig message. Does not implicitly {@link google.storage.v2.Bucket.IamConfig.verify|verify} messages.
+ * @param message IamConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.Bucket.IIamConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified IamConfig message, length delimited. Does not implicitly {@link google.storage.v2.Bucket.IamConfig.verify|verify} messages.
+ * @param message IamConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.Bucket.IIamConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an IamConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns IamConfig
+ * @throws {Error} If the payload is 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.storage.v2.Bucket.IamConfig;
+
+ /**
+ * Decodes an IamConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns IamConfig
+ * @throws {Error} If the 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.storage.v2.Bucket.IamConfig;
+
+ /**
+ * Verifies an IamConfig message.
+ * @param message Plain 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 IamConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns IamConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.Bucket.IamConfig;
+
+ /**
+ * Creates a plain object from an IamConfig message. Also converts values to other types if specified.
+ * @param message IamConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.Bucket.IamConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this IamConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for IamConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace IamConfig {
+
+ /** Properties of an UniformBucketLevelAccess. */
+ interface IUniformBucketLevelAccess {
+
+ /** UniformBucketLevelAccess enabled */
+ enabled?: (boolean|null);
+
+ /** UniformBucketLevelAccess lockTime */
+ lockTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents an UniformBucketLevelAccess. */
+ class UniformBucketLevelAccess implements IUniformBucketLevelAccess {
+
+ /**
+ * Constructs a new UniformBucketLevelAccess.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.Bucket.IamConfig.IUniformBucketLevelAccess);
+
+ /** UniformBucketLevelAccess enabled. */
+ public enabled: boolean;
+
+ /** UniformBucketLevelAccess lockTime. */
+ public lockTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new UniformBucketLevelAccess instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UniformBucketLevelAccess instance
+ */
+ public static create(properties?: google.storage.v2.Bucket.IamConfig.IUniformBucketLevelAccess): google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess;
+
+ /**
+ * Encodes the specified UniformBucketLevelAccess message. Does not implicitly {@link google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.verify|verify} messages.
+ * @param message UniformBucketLevelAccess message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.Bucket.IamConfig.IUniformBucketLevelAccess, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UniformBucketLevelAccess message, length delimited. Does not implicitly {@link google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.verify|verify} messages.
+ * @param message UniformBucketLevelAccess message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.Bucket.IamConfig.IUniformBucketLevelAccess, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UniformBucketLevelAccess message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UniformBucketLevelAccess
+ * @throws {Error} If the payload is 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.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess;
+
+ /**
+ * Decodes an UniformBucketLevelAccess message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UniformBucketLevelAccess
+ * @throws {Error} If the 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.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess;
+
+ /**
+ * Verifies an UniformBucketLevelAccess message.
+ * @param message Plain 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 UniformBucketLevelAccess message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UniformBucketLevelAccess
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess;
+
+ /**
+ * Creates a plain object from an UniformBucketLevelAccess message. Also converts values to other types if specified.
+ * @param message UniformBucketLevelAccess
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UniformBucketLevelAccess to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UniformBucketLevelAccess
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a Lifecycle. */
+ interface ILifecycle {
+
+ /** Lifecycle rule */
+ rule?: (google.storage.v2.Bucket.Lifecycle.IRule[]|null);
+ }
+
+ /** Represents a Lifecycle. */
+ class Lifecycle implements ILifecycle {
+
+ /**
+ * Constructs a new Lifecycle.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.Bucket.ILifecycle);
+
+ /** Lifecycle rule. */
+ public rule: google.storage.v2.Bucket.Lifecycle.IRule[];
+
+ /**
+ * Creates a new Lifecycle instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Lifecycle instance
+ */
+ public static create(properties?: google.storage.v2.Bucket.ILifecycle): google.storage.v2.Bucket.Lifecycle;
+
+ /**
+ * Encodes the specified Lifecycle message. Does not implicitly {@link google.storage.v2.Bucket.Lifecycle.verify|verify} messages.
+ * @param message Lifecycle message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.Bucket.ILifecycle, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Lifecycle message, length delimited. Does not implicitly {@link google.storage.v2.Bucket.Lifecycle.verify|verify} messages.
+ * @param message Lifecycle message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.Bucket.ILifecycle, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Lifecycle message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Lifecycle
+ * @throws {Error} If the payload is 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.storage.v2.Bucket.Lifecycle;
+
+ /**
+ * Decodes a Lifecycle message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Lifecycle
+ * @throws {Error} If the 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.storage.v2.Bucket.Lifecycle;
+
+ /**
+ * Verifies a Lifecycle message.
+ * @param message Plain 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 Lifecycle message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Lifecycle
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.Bucket.Lifecycle;
+
+ /**
+ * Creates a plain object from a Lifecycle message. Also converts values to other types if specified.
+ * @param message Lifecycle
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.Bucket.Lifecycle, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Lifecycle to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Lifecycle
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Lifecycle {
+
+ /** Properties of a Rule. */
+ interface IRule {
+
+ /** Rule action */
+ action?: (google.storage.v2.Bucket.Lifecycle.Rule.IAction|null);
+
+ /** Rule condition */
+ condition?: (google.storage.v2.Bucket.Lifecycle.Rule.ICondition|null);
+ }
+
+ /** Represents a Rule. */
+ class Rule implements IRule {
+
+ /**
+ * Constructs a new Rule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.Bucket.Lifecycle.IRule);
+
+ /** Rule action. */
+ public action?: (google.storage.v2.Bucket.Lifecycle.Rule.IAction|null);
+
+ /** Rule condition. */
+ public condition?: (google.storage.v2.Bucket.Lifecycle.Rule.ICondition|null);
+
+ /**
+ * Creates a new Rule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Rule instance
+ */
+ public static create(properties?: google.storage.v2.Bucket.Lifecycle.IRule): google.storage.v2.Bucket.Lifecycle.Rule;
+
+ /**
+ * Encodes the specified Rule message. Does not implicitly {@link google.storage.v2.Bucket.Lifecycle.Rule.verify|verify} messages.
+ * @param message Rule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.Bucket.Lifecycle.IRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Rule message, length delimited. Does not implicitly {@link google.storage.v2.Bucket.Lifecycle.Rule.verify|verify} messages.
+ * @param message Rule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.Bucket.Lifecycle.IRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Rule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Rule
+ * @throws {Error} If the payload is 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.storage.v2.Bucket.Lifecycle.Rule;
+
+ /**
+ * Decodes a Rule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Rule
+ * @throws {Error} If the 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.storage.v2.Bucket.Lifecycle.Rule;
+
+ /**
+ * Verifies a Rule message.
+ * @param message Plain 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 Rule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Rule
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.Bucket.Lifecycle.Rule;
+
+ /**
+ * Creates a plain object from a Rule message. Also converts values to other types if specified.
+ * @param message Rule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.Bucket.Lifecycle.Rule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Rule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Rule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Rule {
+
+ /** Properties of an Action. */
+ interface IAction {
+
+ /** Action type */
+ type?: (string|null);
+
+ /** Action storageClass */
+ storageClass?: (string|null);
+ }
+
+ /** Represents an Action. */
+ class Action implements IAction {
+
+ /**
+ * Constructs a new Action.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.Bucket.Lifecycle.Rule.IAction);
+
+ /** Action type. */
+ public type: string;
+
+ /** Action storageClass. */
+ public storageClass: string;
+
+ /**
+ * Creates a new Action instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Action instance
+ */
+ public static create(properties?: google.storage.v2.Bucket.Lifecycle.Rule.IAction): google.storage.v2.Bucket.Lifecycle.Rule.Action;
+
+ /**
+ * Encodes the specified Action message. Does not implicitly {@link google.storage.v2.Bucket.Lifecycle.Rule.Action.verify|verify} messages.
+ * @param message Action message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.Bucket.Lifecycle.Rule.IAction, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Action message, length delimited. Does not implicitly {@link google.storage.v2.Bucket.Lifecycle.Rule.Action.verify|verify} messages.
+ * @param message Action message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.Bucket.Lifecycle.Rule.IAction, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Action message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Action
+ * @throws {Error} If the payload is 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.storage.v2.Bucket.Lifecycle.Rule.Action;
+
+ /**
+ * Decodes an Action message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Action
+ * @throws {Error} If the 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.storage.v2.Bucket.Lifecycle.Rule.Action;
+
+ /**
+ * Verifies an Action message.
+ * @param message Plain 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 Action message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Action
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.Bucket.Lifecycle.Rule.Action;
+
+ /**
+ * Creates a plain object from an Action message. Also converts values to other types if specified.
+ * @param message Action
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.Bucket.Lifecycle.Rule.Action, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Action to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Action
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Condition. */
+ interface ICondition {
+
+ /** Condition ageDays */
+ ageDays?: (number|null);
+
+ /** Condition createdBefore */
+ createdBefore?: (google.type.IDate|null);
+
+ /** Condition isLive */
+ isLive?: (boolean|null);
+
+ /** Condition numNewerVersions */
+ numNewerVersions?: (number|null);
+
+ /** Condition matchesStorageClass */
+ matchesStorageClass?: (string[]|null);
+
+ /** Condition daysSinceCustomTime */
+ daysSinceCustomTime?: (number|null);
+
+ /** Condition customTimeBefore */
+ customTimeBefore?: (google.type.IDate|null);
+
+ /** Condition daysSinceNoncurrentTime */
+ daysSinceNoncurrentTime?: (number|null);
+
+ /** Condition noncurrentTimeBefore */
+ noncurrentTimeBefore?: (google.type.IDate|null);
+
+ /** Condition matchesPrefix */
+ matchesPrefix?: (string[]|null);
+
+ /** Condition matchesSuffix */
+ matchesSuffix?: (string[]|null);
+ }
+
+ /** Represents a Condition. */
+ class Condition implements ICondition {
+
+ /**
+ * Constructs a new Condition.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.Bucket.Lifecycle.Rule.ICondition);
+
+ /** Condition ageDays. */
+ public ageDays?: (number|null);
+
+ /** Condition createdBefore. */
+ public createdBefore?: (google.type.IDate|null);
+
+ /** Condition isLive. */
+ public isLive?: (boolean|null);
+
+ /** Condition numNewerVersions. */
+ public numNewerVersions?: (number|null);
+
+ /** Condition matchesStorageClass. */
+ public matchesStorageClass: string[];
+
+ /** Condition daysSinceCustomTime. */
+ public daysSinceCustomTime?: (number|null);
+
+ /** Condition customTimeBefore. */
+ public customTimeBefore?: (google.type.IDate|null);
+
+ /** Condition daysSinceNoncurrentTime. */
+ public daysSinceNoncurrentTime?: (number|null);
+
+ /** Condition noncurrentTimeBefore. */
+ public noncurrentTimeBefore?: (google.type.IDate|null);
+
+ /** Condition matchesPrefix. */
+ public matchesPrefix: string[];
+
+ /** Condition matchesSuffix. */
+ public matchesSuffix: string[];
+
+ /**
+ * Creates a new Condition instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Condition instance
+ */
+ public static create(properties?: google.storage.v2.Bucket.Lifecycle.Rule.ICondition): google.storage.v2.Bucket.Lifecycle.Rule.Condition;
+
+ /**
+ * Encodes the specified Condition message. Does not implicitly {@link google.storage.v2.Bucket.Lifecycle.Rule.Condition.verify|verify} messages.
+ * @param message Condition message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.Bucket.Lifecycle.Rule.ICondition, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Condition message, length delimited. Does not implicitly {@link google.storage.v2.Bucket.Lifecycle.Rule.Condition.verify|verify} messages.
+ * @param message Condition message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.Bucket.Lifecycle.Rule.ICondition, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Condition message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Condition
+ * @throws {Error} If the payload is 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.storage.v2.Bucket.Lifecycle.Rule.Condition;
+
+ /**
+ * Decodes a Condition message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Condition
+ * @throws {Error} If the 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.storage.v2.Bucket.Lifecycle.Rule.Condition;
+
+ /**
+ * Verifies a Condition message.
+ * @param message Plain 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 Condition message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Condition
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.Bucket.Lifecycle.Rule.Condition;
+
+ /**
+ * Creates a plain object from a Condition message. Also converts values to other types if specified.
+ * @param message Condition
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.Bucket.Lifecycle.Rule.Condition, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Condition to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Condition
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+ }
+
+ /** Properties of a Logging. */
+ interface ILogging {
+
+ /** Logging logBucket */
+ logBucket?: (string|null);
+
+ /** Logging logObjectPrefix */
+ logObjectPrefix?: (string|null);
+ }
+
+ /** Represents a Logging. */
+ class Logging implements ILogging {
+
+ /**
+ * Constructs a new Logging.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.Bucket.ILogging);
+
+ /** Logging logBucket. */
+ public logBucket: string;
+
+ /** Logging logObjectPrefix. */
+ public logObjectPrefix: string;
+
+ /**
+ * Creates a new Logging instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Logging instance
+ */
+ public static create(properties?: google.storage.v2.Bucket.ILogging): google.storage.v2.Bucket.Logging;
+
+ /**
+ * Encodes the specified Logging message. Does not implicitly {@link google.storage.v2.Bucket.Logging.verify|verify} messages.
+ * @param message Logging message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.Bucket.ILogging, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Logging message, length delimited. Does not implicitly {@link google.storage.v2.Bucket.Logging.verify|verify} messages.
+ * @param message Logging message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.Bucket.ILogging, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Logging message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Logging
+ * @throws {Error} If the payload is 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.storage.v2.Bucket.Logging;
+
+ /**
+ * Decodes a Logging message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Logging
+ * @throws {Error} If the 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.storage.v2.Bucket.Logging;
+
+ /**
+ * Verifies a Logging message.
+ * @param message Plain 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 Logging message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Logging
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.Bucket.Logging;
+
+ /**
+ * Creates a plain object from a Logging message. Also converts values to other types if specified.
+ * @param message Logging
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.Bucket.Logging, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Logging to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Logging
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ObjectRetention. */
+ interface IObjectRetention {
+
+ /** ObjectRetention enabled */
+ enabled?: (boolean|null);
+ }
+
+ /** Represents an ObjectRetention. */
+ class ObjectRetention implements IObjectRetention {
+
+ /**
+ * Constructs a new ObjectRetention.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.Bucket.IObjectRetention);
+
+ /** ObjectRetention enabled. */
+ public enabled: boolean;
+
+ /**
+ * Creates a new ObjectRetention instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ObjectRetention instance
+ */
+ public static create(properties?: google.storage.v2.Bucket.IObjectRetention): google.storage.v2.Bucket.ObjectRetention;
+
+ /**
+ * Encodes the specified ObjectRetention message. Does not implicitly {@link google.storage.v2.Bucket.ObjectRetention.verify|verify} messages.
+ * @param message ObjectRetention message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.Bucket.IObjectRetention, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ObjectRetention message, length delimited. Does not implicitly {@link google.storage.v2.Bucket.ObjectRetention.verify|verify} messages.
+ * @param message ObjectRetention message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.Bucket.IObjectRetention, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ObjectRetention message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ObjectRetention
+ * @throws {Error} If the payload is 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.storage.v2.Bucket.ObjectRetention;
+
+ /**
+ * Decodes an ObjectRetention message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ObjectRetention
+ * @throws {Error} If the 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.storage.v2.Bucket.ObjectRetention;
+
+ /**
+ * Verifies an ObjectRetention message.
+ * @param message Plain 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 ObjectRetention message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ObjectRetention
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.Bucket.ObjectRetention;
+
+ /**
+ * Creates a plain object from an ObjectRetention message. Also converts values to other types if specified.
+ * @param message ObjectRetention
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.Bucket.ObjectRetention, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ObjectRetention to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ObjectRetention
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RetentionPolicy. */
+ interface IRetentionPolicy {
+
+ /** RetentionPolicy effectiveTime */
+ effectiveTime?: (google.protobuf.ITimestamp|null);
+
+ /** RetentionPolicy isLocked */
+ isLocked?: (boolean|null);
+
+ /** RetentionPolicy retentionDuration */
+ retentionDuration?: (google.protobuf.IDuration|null);
+ }
+
+ /** Represents a RetentionPolicy. */
+ class RetentionPolicy implements IRetentionPolicy {
+
+ /**
+ * Constructs a new RetentionPolicy.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.Bucket.IRetentionPolicy);
+
+ /** RetentionPolicy effectiveTime. */
+ public effectiveTime?: (google.protobuf.ITimestamp|null);
+
+ /** RetentionPolicy isLocked. */
+ public isLocked: boolean;
+
+ /** RetentionPolicy retentionDuration. */
+ public retentionDuration?: (google.protobuf.IDuration|null);
+
+ /**
+ * Creates a new RetentionPolicy instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RetentionPolicy instance
+ */
+ public static create(properties?: google.storage.v2.Bucket.IRetentionPolicy): google.storage.v2.Bucket.RetentionPolicy;
+
+ /**
+ * Encodes the specified RetentionPolicy message. Does not implicitly {@link google.storage.v2.Bucket.RetentionPolicy.verify|verify} messages.
+ * @param message RetentionPolicy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.Bucket.IRetentionPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RetentionPolicy message, length delimited. Does not implicitly {@link google.storage.v2.Bucket.RetentionPolicy.verify|verify} messages.
+ * @param message RetentionPolicy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.Bucket.IRetentionPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RetentionPolicy message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RetentionPolicy
+ * @throws {Error} If the payload is 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.storage.v2.Bucket.RetentionPolicy;
+
+ /**
+ * Decodes a RetentionPolicy message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RetentionPolicy
+ * @throws {Error} If the 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.storage.v2.Bucket.RetentionPolicy;
+
+ /**
+ * Verifies a RetentionPolicy message.
+ * @param message Plain 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 RetentionPolicy message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RetentionPolicy
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.Bucket.RetentionPolicy;
+
+ /**
+ * Creates a plain object from a RetentionPolicy message. Also converts values to other types if specified.
+ * @param message RetentionPolicy
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.Bucket.RetentionPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RetentionPolicy to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RetentionPolicy
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SoftDeletePolicy. */
+ interface ISoftDeletePolicy {
+
+ /** SoftDeletePolicy retentionDuration */
+ retentionDuration?: (google.protobuf.IDuration|null);
+
+ /** SoftDeletePolicy effectiveTime */
+ effectiveTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a SoftDeletePolicy. */
+ class SoftDeletePolicy implements ISoftDeletePolicy {
+
+ /**
+ * Constructs a new SoftDeletePolicy.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.Bucket.ISoftDeletePolicy);
+
+ /** SoftDeletePolicy retentionDuration. */
+ public retentionDuration?: (google.protobuf.IDuration|null);
+
+ /** SoftDeletePolicy effectiveTime. */
+ public effectiveTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new SoftDeletePolicy instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SoftDeletePolicy instance
+ */
+ public static create(properties?: google.storage.v2.Bucket.ISoftDeletePolicy): google.storage.v2.Bucket.SoftDeletePolicy;
+
+ /**
+ * Encodes the specified SoftDeletePolicy message. Does not implicitly {@link google.storage.v2.Bucket.SoftDeletePolicy.verify|verify} messages.
+ * @param message SoftDeletePolicy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.Bucket.ISoftDeletePolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SoftDeletePolicy message, length delimited. Does not implicitly {@link google.storage.v2.Bucket.SoftDeletePolicy.verify|verify} messages.
+ * @param message SoftDeletePolicy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.Bucket.ISoftDeletePolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SoftDeletePolicy message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SoftDeletePolicy
+ * @throws {Error} If the payload is 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.storage.v2.Bucket.SoftDeletePolicy;
+
+ /**
+ * Decodes a SoftDeletePolicy message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SoftDeletePolicy
+ * @throws {Error} If the 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.storage.v2.Bucket.SoftDeletePolicy;
+
+ /**
+ * Verifies a SoftDeletePolicy message.
+ * @param message Plain 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 SoftDeletePolicy message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SoftDeletePolicy
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.Bucket.SoftDeletePolicy;
+
+ /**
+ * Creates a plain object from a SoftDeletePolicy message. Also converts values to other types if specified.
+ * @param message SoftDeletePolicy
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.Bucket.SoftDeletePolicy, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SoftDeletePolicy to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SoftDeletePolicy
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Versioning. */
+ interface IVersioning {
+
+ /** Versioning enabled */
+ enabled?: (boolean|null);
+ }
+
+ /** Represents a Versioning. */
+ class Versioning implements IVersioning {
+
+ /**
+ * Constructs a new Versioning.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.Bucket.IVersioning);
+
+ /** Versioning enabled. */
+ public enabled: boolean;
+
+ /**
+ * Creates a new Versioning instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Versioning instance
+ */
+ public static create(properties?: google.storage.v2.Bucket.IVersioning): google.storage.v2.Bucket.Versioning;
+
+ /**
+ * Encodes the specified Versioning message. Does not implicitly {@link google.storage.v2.Bucket.Versioning.verify|verify} messages.
+ * @param message Versioning message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.Bucket.IVersioning, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Versioning message, length delimited. Does not implicitly {@link google.storage.v2.Bucket.Versioning.verify|verify} messages.
+ * @param message Versioning message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.Bucket.IVersioning, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Versioning message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Versioning
+ * @throws {Error} If the payload is 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.storage.v2.Bucket.Versioning;
+
+ /**
+ * Decodes a Versioning message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Versioning
+ * @throws {Error} If the 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.storage.v2.Bucket.Versioning;
+
+ /**
+ * Verifies a Versioning message.
+ * @param message Plain 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 Versioning message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Versioning
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.Bucket.Versioning;
+
+ /**
+ * Creates a plain object from a Versioning message. Also converts values to other types if specified.
+ * @param message Versioning
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.Bucket.Versioning, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Versioning to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Versioning
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Website. */
+ interface IWebsite {
+
+ /** Website mainPageSuffix */
+ mainPageSuffix?: (string|null);
+
+ /** Website notFoundPage */
+ notFoundPage?: (string|null);
+ }
+
+ /** Represents a Website. */
+ class Website implements IWebsite {
+
+ /**
+ * Constructs a new Website.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.Bucket.IWebsite);
+
+ /** Website mainPageSuffix. */
+ public mainPageSuffix: string;
+
+ /** Website notFoundPage. */
+ public notFoundPage: string;
+
+ /**
+ * Creates a new Website instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Website instance
+ */
+ public static create(properties?: google.storage.v2.Bucket.IWebsite): google.storage.v2.Bucket.Website;
+
+ /**
+ * Encodes the specified Website message. Does not implicitly {@link google.storage.v2.Bucket.Website.verify|verify} messages.
+ * @param message Website message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.Bucket.IWebsite, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Website message, length delimited. Does not implicitly {@link google.storage.v2.Bucket.Website.verify|verify} messages.
+ * @param message Website message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.Bucket.IWebsite, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Website message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Website
+ * @throws {Error} If the payload is 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.storage.v2.Bucket.Website;
+
+ /**
+ * Decodes a Website message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Website
+ * @throws {Error} If the 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.storage.v2.Bucket.Website;
+
+ /**
+ * Verifies a Website message.
+ * @param message Plain 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 Website message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Website
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.Bucket.Website;
+
+ /**
+ * Creates a plain object from a Website message. Also converts values to other types if specified.
+ * @param message Website
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.Bucket.Website, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Website to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Website
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CustomPlacementConfig. */
+ interface ICustomPlacementConfig {
+
+ /** CustomPlacementConfig dataLocations */
+ dataLocations?: (string[]|null);
+ }
+
+ /** Represents a CustomPlacementConfig. */
+ class CustomPlacementConfig implements ICustomPlacementConfig {
+
+ /**
+ * Constructs a new CustomPlacementConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.Bucket.ICustomPlacementConfig);
+
+ /** CustomPlacementConfig dataLocations. */
+ public dataLocations: string[];
+
+ /**
+ * Creates a new CustomPlacementConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CustomPlacementConfig instance
+ */
+ public static create(properties?: google.storage.v2.Bucket.ICustomPlacementConfig): google.storage.v2.Bucket.CustomPlacementConfig;
+
+ /**
+ * Encodes the specified CustomPlacementConfig message. Does not implicitly {@link google.storage.v2.Bucket.CustomPlacementConfig.verify|verify} messages.
+ * @param message CustomPlacementConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.Bucket.ICustomPlacementConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CustomPlacementConfig message, length delimited. Does not implicitly {@link google.storage.v2.Bucket.CustomPlacementConfig.verify|verify} messages.
+ * @param message CustomPlacementConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.Bucket.ICustomPlacementConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CustomPlacementConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CustomPlacementConfig
+ * @throws {Error} If the payload is 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.storage.v2.Bucket.CustomPlacementConfig;
+
+ /**
+ * Decodes a CustomPlacementConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CustomPlacementConfig
+ * @throws {Error} If the 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.storage.v2.Bucket.CustomPlacementConfig;
+
+ /**
+ * Verifies a CustomPlacementConfig message.
+ * @param message Plain 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 CustomPlacementConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CustomPlacementConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.Bucket.CustomPlacementConfig;
+
+ /**
+ * Creates a plain object from a CustomPlacementConfig message. Also converts values to other types if specified.
+ * @param message CustomPlacementConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.Bucket.CustomPlacementConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CustomPlacementConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CustomPlacementConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Autoclass. */
+ interface IAutoclass {
+
+ /** Autoclass enabled */
+ enabled?: (boolean|null);
+
+ /** Autoclass toggleTime */
+ toggleTime?: (google.protobuf.ITimestamp|null);
+
+ /** Autoclass terminalStorageClass */
+ terminalStorageClass?: (string|null);
+
+ /** Autoclass terminalStorageClassUpdateTime */
+ terminalStorageClassUpdateTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents an Autoclass. */
+ class Autoclass implements IAutoclass {
+
+ /**
+ * Constructs a new Autoclass.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.Bucket.IAutoclass);
+
+ /** Autoclass enabled. */
+ public enabled: boolean;
+
+ /** Autoclass toggleTime. */
+ public toggleTime?: (google.protobuf.ITimestamp|null);
+
+ /** Autoclass terminalStorageClass. */
+ public terminalStorageClass?: (string|null);
+
+ /** Autoclass terminalStorageClassUpdateTime. */
+ public terminalStorageClassUpdateTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new Autoclass instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Autoclass instance
+ */
+ public static create(properties?: google.storage.v2.Bucket.IAutoclass): google.storage.v2.Bucket.Autoclass;
+
+ /**
+ * Encodes the specified Autoclass message. Does not implicitly {@link google.storage.v2.Bucket.Autoclass.verify|verify} messages.
+ * @param message Autoclass message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.Bucket.IAutoclass, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Autoclass message, length delimited. Does not implicitly {@link google.storage.v2.Bucket.Autoclass.verify|verify} messages.
+ * @param message Autoclass message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.Bucket.IAutoclass, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Autoclass message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Autoclass
+ * @throws {Error} If the payload is 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.storage.v2.Bucket.Autoclass;
+
+ /**
+ * Decodes an Autoclass message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Autoclass
+ * @throws {Error} If the 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.storage.v2.Bucket.Autoclass;
+
+ /**
+ * Verifies an Autoclass message.
+ * @param message Plain 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 Autoclass message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Autoclass
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.Bucket.Autoclass;
+
+ /**
+ * Creates a plain object from an Autoclass message. Also converts values to other types if specified.
+ * @param message Autoclass
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.Bucket.Autoclass, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Autoclass to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Autoclass
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an IpFilter. */
+ interface IIpFilter {
+
+ /** IpFilter mode */
+ mode?: (string|null);
+
+ /** IpFilter publicNetworkSource */
+ publicNetworkSource?: (google.storage.v2.Bucket.IpFilter.IPublicNetworkSource|null);
+
+ /** IpFilter vpcNetworkSources */
+ vpcNetworkSources?: (google.storage.v2.Bucket.IpFilter.IVpcNetworkSource[]|null);
+
+ /** IpFilter allowCrossOrgVpcs */
+ allowCrossOrgVpcs?: (boolean|null);
+
+ /** IpFilter allowAllServiceAgentAccess */
+ allowAllServiceAgentAccess?: (boolean|null);
+ }
+
+ /** Represents an IpFilter. */
+ class IpFilter implements IIpFilter {
+
+ /**
+ * Constructs a new IpFilter.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.Bucket.IIpFilter);
+
+ /** IpFilter mode. */
+ public mode?: (string|null);
+
+ /** IpFilter publicNetworkSource. */
+ public publicNetworkSource?: (google.storage.v2.Bucket.IpFilter.IPublicNetworkSource|null);
+
+ /** IpFilter vpcNetworkSources. */
+ public vpcNetworkSources: google.storage.v2.Bucket.IpFilter.IVpcNetworkSource[];
+
+ /** IpFilter allowCrossOrgVpcs. */
+ public allowCrossOrgVpcs: boolean;
+
+ /** IpFilter allowAllServiceAgentAccess. */
+ public allowAllServiceAgentAccess?: (boolean|null);
+
+ /**
+ * Creates a new IpFilter instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns IpFilter instance
+ */
+ public static create(properties?: google.storage.v2.Bucket.IIpFilter): google.storage.v2.Bucket.IpFilter;
+
+ /**
+ * Encodes the specified IpFilter message. Does not implicitly {@link google.storage.v2.Bucket.IpFilter.verify|verify} messages.
+ * @param message IpFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.Bucket.IIpFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified IpFilter message, length delimited. Does not implicitly {@link google.storage.v2.Bucket.IpFilter.verify|verify} messages.
+ * @param message IpFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.Bucket.IIpFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an IpFilter message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns IpFilter
+ * @throws {Error} If the payload is 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.storage.v2.Bucket.IpFilter;
+
+ /**
+ * Decodes an IpFilter message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns IpFilter
+ * @throws {Error} If the 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.storage.v2.Bucket.IpFilter;
+
+ /**
+ * Verifies an IpFilter message.
+ * @param message Plain 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 IpFilter message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns IpFilter
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.Bucket.IpFilter;
+
+ /**
+ * Creates a plain object from an IpFilter message. Also converts values to other types if specified.
+ * @param message IpFilter
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.Bucket.IpFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this IpFilter to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for IpFilter
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace IpFilter {
+
+ /** Properties of a PublicNetworkSource. */
+ interface IPublicNetworkSource {
+
+ /** PublicNetworkSource allowedIpCidrRanges */
+ allowedIpCidrRanges?: (string[]|null);
+ }
+
+ /** Represents a PublicNetworkSource. */
+ class PublicNetworkSource implements IPublicNetworkSource {
+
+ /**
+ * Constructs a new PublicNetworkSource.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.Bucket.IpFilter.IPublicNetworkSource);
+
+ /** PublicNetworkSource allowedIpCidrRanges. */
+ public allowedIpCidrRanges: string[];
+
+ /**
+ * Creates a new PublicNetworkSource instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PublicNetworkSource instance
+ */
+ public static create(properties?: google.storage.v2.Bucket.IpFilter.IPublicNetworkSource): google.storage.v2.Bucket.IpFilter.PublicNetworkSource;
+
+ /**
+ * Encodes the specified PublicNetworkSource message. Does not implicitly {@link google.storage.v2.Bucket.IpFilter.PublicNetworkSource.verify|verify} messages.
+ * @param message PublicNetworkSource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.Bucket.IpFilter.IPublicNetworkSource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PublicNetworkSource message, length delimited. Does not implicitly {@link google.storage.v2.Bucket.IpFilter.PublicNetworkSource.verify|verify} messages.
+ * @param message PublicNetworkSource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.Bucket.IpFilter.IPublicNetworkSource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PublicNetworkSource message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PublicNetworkSource
+ * @throws {Error} If the payload is 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.storage.v2.Bucket.IpFilter.PublicNetworkSource;
+
+ /**
+ * Decodes a PublicNetworkSource message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PublicNetworkSource
+ * @throws {Error} If the 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.storage.v2.Bucket.IpFilter.PublicNetworkSource;
+
+ /**
+ * Verifies a PublicNetworkSource message.
+ * @param message Plain 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 PublicNetworkSource message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PublicNetworkSource
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.Bucket.IpFilter.PublicNetworkSource;
+
+ /**
+ * Creates a plain object from a PublicNetworkSource message. Also converts values to other types if specified.
+ * @param message PublicNetworkSource
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.Bucket.IpFilter.PublicNetworkSource, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PublicNetworkSource to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PublicNetworkSource
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a VpcNetworkSource. */
+ interface IVpcNetworkSource {
+
+ /** VpcNetworkSource network */
+ network?: (string|null);
+
+ /** VpcNetworkSource allowedIpCidrRanges */
+ allowedIpCidrRanges?: (string[]|null);
+ }
+
+ /** Represents a VpcNetworkSource. */
+ class VpcNetworkSource implements IVpcNetworkSource {
+
+ /**
+ * Constructs a new VpcNetworkSource.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.Bucket.IpFilter.IVpcNetworkSource);
+
+ /** VpcNetworkSource network. */
+ public network?: (string|null);
+
+ /** VpcNetworkSource allowedIpCidrRanges. */
+ public allowedIpCidrRanges: string[];
+
+ /**
+ * Creates a new VpcNetworkSource instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VpcNetworkSource instance
+ */
+ public static create(properties?: google.storage.v2.Bucket.IpFilter.IVpcNetworkSource): google.storage.v2.Bucket.IpFilter.VpcNetworkSource;
+
+ /**
+ * Encodes the specified VpcNetworkSource message. Does not implicitly {@link google.storage.v2.Bucket.IpFilter.VpcNetworkSource.verify|verify} messages.
+ * @param message VpcNetworkSource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.Bucket.IpFilter.IVpcNetworkSource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VpcNetworkSource message, length delimited. Does not implicitly {@link google.storage.v2.Bucket.IpFilter.VpcNetworkSource.verify|verify} messages.
+ * @param message VpcNetworkSource message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.Bucket.IpFilter.IVpcNetworkSource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VpcNetworkSource message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VpcNetworkSource
+ * @throws {Error} If the payload is 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.storage.v2.Bucket.IpFilter.VpcNetworkSource;
+
+ /**
+ * Decodes a VpcNetworkSource message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VpcNetworkSource
+ * @throws {Error} If the 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.storage.v2.Bucket.IpFilter.VpcNetworkSource;
+
+ /**
+ * Verifies a VpcNetworkSource message.
+ * @param message Plain 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 VpcNetworkSource message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VpcNetworkSource
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.Bucket.IpFilter.VpcNetworkSource;
+
+ /**
+ * Creates a plain object from a VpcNetworkSource message. Also converts values to other types if specified.
+ * @param message VpcNetworkSource
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.Bucket.IpFilter.VpcNetworkSource, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VpcNetworkSource to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VpcNetworkSource
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a HierarchicalNamespace. */
+ interface IHierarchicalNamespace {
+
+ /** HierarchicalNamespace enabled */
+ enabled?: (boolean|null);
+ }
+
+ /** Represents a HierarchicalNamespace. */
+ class HierarchicalNamespace implements IHierarchicalNamespace {
+
+ /**
+ * Constructs a new HierarchicalNamespace.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.Bucket.IHierarchicalNamespace);
+
+ /** HierarchicalNamespace enabled. */
+ public enabled: boolean;
+
+ /**
+ * Creates a new HierarchicalNamespace instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HierarchicalNamespace instance
+ */
+ public static create(properties?: google.storage.v2.Bucket.IHierarchicalNamespace): google.storage.v2.Bucket.HierarchicalNamespace;
+
+ /**
+ * Encodes the specified HierarchicalNamespace message. Does not implicitly {@link google.storage.v2.Bucket.HierarchicalNamespace.verify|verify} messages.
+ * @param message HierarchicalNamespace message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.Bucket.IHierarchicalNamespace, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HierarchicalNamespace message, length delimited. Does not implicitly {@link google.storage.v2.Bucket.HierarchicalNamespace.verify|verify} messages.
+ * @param message HierarchicalNamespace message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.Bucket.IHierarchicalNamespace, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HierarchicalNamespace message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HierarchicalNamespace
+ * @throws {Error} If the payload is 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.storage.v2.Bucket.HierarchicalNamespace;
+
+ /**
+ * Decodes a HierarchicalNamespace message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HierarchicalNamespace
+ * @throws {Error} If the 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.storage.v2.Bucket.HierarchicalNamespace;
+
+ /**
+ * Verifies a HierarchicalNamespace message.
+ * @param message Plain 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 HierarchicalNamespace message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HierarchicalNamespace
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.Bucket.HierarchicalNamespace;
+
+ /**
+ * Creates a plain object from a HierarchicalNamespace message. Also converts values to other types if specified.
+ * @param message HierarchicalNamespace
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.Bucket.HierarchicalNamespace, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HierarchicalNamespace to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HierarchicalNamespace
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a BucketAccessControl. */
+ interface IBucketAccessControl {
+
+ /** BucketAccessControl role */
+ role?: (string|null);
+
+ /** BucketAccessControl id */
+ id?: (string|null);
+
+ /** BucketAccessControl entity */
+ entity?: (string|null);
+
+ /** BucketAccessControl entityAlt */
+ entityAlt?: (string|null);
+
+ /** BucketAccessControl entityId */
+ entityId?: (string|null);
+
+ /** BucketAccessControl etag */
+ etag?: (string|null);
+
+ /** BucketAccessControl email */
+ email?: (string|null);
+
+ /** BucketAccessControl domain */
+ domain?: (string|null);
+
+ /** BucketAccessControl projectTeam */
+ projectTeam?: (google.storage.v2.IProjectTeam|null);
+ }
+
+ /** Represents a BucketAccessControl. */
+ class BucketAccessControl implements IBucketAccessControl {
+
+ /**
+ * Constructs a new BucketAccessControl.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IBucketAccessControl);
+
+ /** BucketAccessControl role. */
+ public role: string;
+
+ /** BucketAccessControl id. */
+ public id: string;
+
+ /** BucketAccessControl entity. */
+ public entity: string;
+
+ /** BucketAccessControl entityAlt. */
+ public entityAlt: string;
+
+ /** BucketAccessControl entityId. */
+ public entityId: string;
+
+ /** BucketAccessControl etag. */
+ public etag: string;
+
+ /** BucketAccessControl email. */
+ public email: string;
+
+ /** BucketAccessControl domain. */
+ public domain: string;
+
+ /** BucketAccessControl projectTeam. */
+ public projectTeam?: (google.storage.v2.IProjectTeam|null);
+
+ /**
+ * Creates a new BucketAccessControl instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BucketAccessControl instance
+ */
+ public static create(properties?: google.storage.v2.IBucketAccessControl): google.storage.v2.BucketAccessControl;
+
+ /**
+ * Encodes the specified BucketAccessControl message. Does not implicitly {@link google.storage.v2.BucketAccessControl.verify|verify} messages.
+ * @param message BucketAccessControl message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IBucketAccessControl, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BucketAccessControl message, length delimited. Does not implicitly {@link google.storage.v2.BucketAccessControl.verify|verify} messages.
+ * @param message BucketAccessControl message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IBucketAccessControl, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BucketAccessControl message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BucketAccessControl
+ * @throws {Error} If the payload is 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.storage.v2.BucketAccessControl;
+
+ /**
+ * Decodes a BucketAccessControl message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BucketAccessControl
+ * @throws {Error} If the 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.storage.v2.BucketAccessControl;
+
+ /**
+ * Verifies a BucketAccessControl message.
+ * @param message Plain 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 BucketAccessControl message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BucketAccessControl
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.BucketAccessControl;
+
+ /**
+ * Creates a plain object from a BucketAccessControl message. Also converts values to other types if specified.
+ * @param message BucketAccessControl
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.BucketAccessControl, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BucketAccessControl to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BucketAccessControl
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ChecksummedData. */
+ interface IChecksummedData {
+
+ /** ChecksummedData content */
+ content?: (Uint8Array|Buffer|string|null);
+
+ /** ChecksummedData crc32c */
+ crc32c?: (number|null);
+ }
+
+ /** Represents a ChecksummedData. */
+ class ChecksummedData implements IChecksummedData {
+
+ /**
+ * Constructs a new ChecksummedData.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IChecksummedData);
+
+ /** ChecksummedData content. */
+ public content: (Uint8Array|Buffer|string);
+
+ /** ChecksummedData crc32c. */
+ public crc32c?: (number|null);
+
+ /**
+ * Creates a new ChecksummedData instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ChecksummedData instance
+ */
+ public static create(properties?: google.storage.v2.IChecksummedData): google.storage.v2.ChecksummedData;
+
+ /**
+ * Encodes the specified ChecksummedData message. Does not implicitly {@link google.storage.v2.ChecksummedData.verify|verify} messages.
+ * @param message ChecksummedData message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IChecksummedData, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ChecksummedData message, length delimited. Does not implicitly {@link google.storage.v2.ChecksummedData.verify|verify} messages.
+ * @param message ChecksummedData message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IChecksummedData, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ChecksummedData message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ChecksummedData
+ * @throws {Error} If the payload is 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.storage.v2.ChecksummedData;
+
+ /**
+ * Decodes a ChecksummedData message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ChecksummedData
+ * @throws {Error} If the 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.storage.v2.ChecksummedData;
+
+ /**
+ * Verifies a ChecksummedData message.
+ * @param message Plain 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 ChecksummedData message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ChecksummedData
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.ChecksummedData;
+
+ /**
+ * Creates a plain object from a ChecksummedData message. Also converts values to other types if specified.
+ * @param message ChecksummedData
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.ChecksummedData, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ChecksummedData to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ChecksummedData
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ObjectChecksums. */
+ interface IObjectChecksums {
+
+ /** ObjectChecksums crc32c */
+ crc32c?: (number|null);
+
+ /** ObjectChecksums md5Hash */
+ md5Hash?: (Uint8Array|Buffer|string|null);
+ }
+
+ /** Represents an ObjectChecksums. */
+ class ObjectChecksums implements IObjectChecksums {
+
+ /**
+ * Constructs a new ObjectChecksums.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IObjectChecksums);
+
+ /** ObjectChecksums crc32c. */
+ public crc32c?: (number|null);
+
+ /** ObjectChecksums md5Hash. */
+ public md5Hash: (Uint8Array|Buffer|string);
+
+ /**
+ * Creates a new ObjectChecksums instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ObjectChecksums instance
+ */
+ public static create(properties?: google.storage.v2.IObjectChecksums): google.storage.v2.ObjectChecksums;
+
+ /**
+ * Encodes the specified ObjectChecksums message. Does not implicitly {@link google.storage.v2.ObjectChecksums.verify|verify} messages.
+ * @param message ObjectChecksums message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IObjectChecksums, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ObjectChecksums message, length delimited. Does not implicitly {@link google.storage.v2.ObjectChecksums.verify|verify} messages.
+ * @param message ObjectChecksums message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IObjectChecksums, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ObjectChecksums message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ObjectChecksums
+ * @throws {Error} If the payload is 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.storage.v2.ObjectChecksums;
+
+ /**
+ * Decodes an ObjectChecksums message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ObjectChecksums
+ * @throws {Error} If the 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.storage.v2.ObjectChecksums;
+
+ /**
+ * Verifies an ObjectChecksums message.
+ * @param message Plain 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 ObjectChecksums message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ObjectChecksums
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.ObjectChecksums;
+
+ /**
+ * Creates a plain object from an ObjectChecksums message. Also converts values to other types if specified.
+ * @param message ObjectChecksums
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.ObjectChecksums, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ObjectChecksums to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ObjectChecksums
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ObjectCustomContextPayload. */
+ interface IObjectCustomContextPayload {
+
+ /** ObjectCustomContextPayload value */
+ value?: (string|null);
+
+ /** ObjectCustomContextPayload createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** ObjectCustomContextPayload updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents an ObjectCustomContextPayload. */
+ class ObjectCustomContextPayload implements IObjectCustomContextPayload {
+
+ /**
+ * Constructs a new ObjectCustomContextPayload.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IObjectCustomContextPayload);
+
+ /** ObjectCustomContextPayload value. */
+ public value: string;
+
+ /** ObjectCustomContextPayload createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** ObjectCustomContextPayload updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new ObjectCustomContextPayload instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ObjectCustomContextPayload instance
+ */
+ public static create(properties?: google.storage.v2.IObjectCustomContextPayload): google.storage.v2.ObjectCustomContextPayload;
+
+ /**
+ * Encodes the specified ObjectCustomContextPayload message. Does not implicitly {@link google.storage.v2.ObjectCustomContextPayload.verify|verify} messages.
+ * @param message ObjectCustomContextPayload message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IObjectCustomContextPayload, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ObjectCustomContextPayload message, length delimited. Does not implicitly {@link google.storage.v2.ObjectCustomContextPayload.verify|verify} messages.
+ * @param message ObjectCustomContextPayload message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IObjectCustomContextPayload, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ObjectCustomContextPayload message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ObjectCustomContextPayload
+ * @throws {Error} If the payload is 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.storage.v2.ObjectCustomContextPayload;
+
+ /**
+ * Decodes an ObjectCustomContextPayload message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ObjectCustomContextPayload
+ * @throws {Error} If the 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.storage.v2.ObjectCustomContextPayload;
+
+ /**
+ * Verifies an ObjectCustomContextPayload message.
+ * @param message Plain 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 ObjectCustomContextPayload message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ObjectCustomContextPayload
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.ObjectCustomContextPayload;
+
+ /**
+ * Creates a plain object from an ObjectCustomContextPayload message. Also converts values to other types if specified.
+ * @param message ObjectCustomContextPayload
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.ObjectCustomContextPayload, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ObjectCustomContextPayload to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ObjectCustomContextPayload
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ObjectContexts. */
+ interface IObjectContexts {
+
+ /** ObjectContexts custom */
+ custom?: ({ [k: string]: google.storage.v2.IObjectCustomContextPayload }|null);
+ }
+
+ /** Represents an ObjectContexts. */
+ class ObjectContexts implements IObjectContexts {
+
+ /**
+ * Constructs a new ObjectContexts.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IObjectContexts);
+
+ /** ObjectContexts custom. */
+ public custom: { [k: string]: google.storage.v2.IObjectCustomContextPayload };
+
+ /**
+ * Creates a new ObjectContexts instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ObjectContexts instance
+ */
+ public static create(properties?: google.storage.v2.IObjectContexts): google.storage.v2.ObjectContexts;
+
+ /**
+ * Encodes the specified ObjectContexts message. Does not implicitly {@link google.storage.v2.ObjectContexts.verify|verify} messages.
+ * @param message ObjectContexts message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IObjectContexts, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ObjectContexts message, length delimited. Does not implicitly {@link google.storage.v2.ObjectContexts.verify|verify} messages.
+ * @param message ObjectContexts message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IObjectContexts, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ObjectContexts message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ObjectContexts
+ * @throws {Error} If the payload is 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.storage.v2.ObjectContexts;
+
+ /**
+ * Decodes an ObjectContexts message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ObjectContexts
+ * @throws {Error} If the 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.storage.v2.ObjectContexts;
+
+ /**
+ * Verifies an ObjectContexts message.
+ * @param message Plain 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 ObjectContexts message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ObjectContexts
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.ObjectContexts;
+
+ /**
+ * Creates a plain object from an ObjectContexts message. Also converts values to other types if specified.
+ * @param message ObjectContexts
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.ObjectContexts, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ObjectContexts to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ObjectContexts
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CustomerEncryption. */
+ interface ICustomerEncryption {
+
+ /** CustomerEncryption encryptionAlgorithm */
+ encryptionAlgorithm?: (string|null);
+
+ /** CustomerEncryption keySha256Bytes */
+ keySha256Bytes?: (Uint8Array|Buffer|string|null);
+ }
+
+ /** Represents a CustomerEncryption. */
+ class CustomerEncryption implements ICustomerEncryption {
+
+ /**
+ * Constructs a new CustomerEncryption.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.ICustomerEncryption);
+
+ /** CustomerEncryption encryptionAlgorithm. */
+ public encryptionAlgorithm: string;
+
+ /** CustomerEncryption keySha256Bytes. */
+ public keySha256Bytes: (Uint8Array|Buffer|string);
+
+ /**
+ * Creates a new CustomerEncryption instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CustomerEncryption instance
+ */
+ public static create(properties?: google.storage.v2.ICustomerEncryption): google.storage.v2.CustomerEncryption;
+
+ /**
+ * Encodes the specified CustomerEncryption message. Does not implicitly {@link google.storage.v2.CustomerEncryption.verify|verify} messages.
+ * @param message CustomerEncryption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.ICustomerEncryption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CustomerEncryption message, length delimited. Does not implicitly {@link google.storage.v2.CustomerEncryption.verify|verify} messages.
+ * @param message CustomerEncryption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.ICustomerEncryption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CustomerEncryption message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CustomerEncryption
+ * @throws {Error} If the payload is 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.storage.v2.CustomerEncryption;
+
+ /**
+ * Decodes a CustomerEncryption message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CustomerEncryption
+ * @throws {Error} If the 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.storage.v2.CustomerEncryption;
+
+ /**
+ * Verifies a CustomerEncryption message.
+ * @param message Plain 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 CustomerEncryption message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CustomerEncryption
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.CustomerEncryption;
+
+ /**
+ * Creates a plain object from a CustomerEncryption message. Also converts values to other types if specified.
+ * @param message CustomerEncryption
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.CustomerEncryption, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CustomerEncryption to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CustomerEncryption
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Object. */
+ interface IObject {
+
+ /** Object name */
+ name?: (string|null);
+
+ /** Object bucket */
+ bucket?: (string|null);
+
+ /** Object etag */
+ etag?: (string|null);
+
+ /** Object generation */
+ generation?: (number|Long|string|null);
+
+ /** Object restoreToken */
+ restoreToken?: (string|null);
+
+ /** Object metageneration */
+ metageneration?: (number|Long|string|null);
+
+ /** Object storageClass */
+ storageClass?: (string|null);
+
+ /** Object size */
+ size?: (number|Long|string|null);
+
+ /** Object contentEncoding */
+ contentEncoding?: (string|null);
+
+ /** Object contentDisposition */
+ contentDisposition?: (string|null);
+
+ /** Object cacheControl */
+ cacheControl?: (string|null);
+
+ /** Object acl */
+ acl?: (google.storage.v2.IObjectAccessControl[]|null);
+
+ /** Object contentLanguage */
+ contentLanguage?: (string|null);
+
+ /** Object deleteTime */
+ deleteTime?: (google.protobuf.ITimestamp|null);
+
+ /** Object finalizeTime */
+ finalizeTime?: (google.protobuf.ITimestamp|null);
+
+ /** Object contentType */
+ contentType?: (string|null);
+
+ /** Object createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Object componentCount */
+ componentCount?: (number|null);
+
+ /** Object checksums */
+ checksums?: (google.storage.v2.IObjectChecksums|null);
+
+ /** Object updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Object kmsKey */
+ kmsKey?: (string|null);
+
+ /** Object updateStorageClassTime */
+ updateStorageClassTime?: (google.protobuf.ITimestamp|null);
+
+ /** Object temporaryHold */
+ temporaryHold?: (boolean|null);
+
+ /** Object retentionExpireTime */
+ retentionExpireTime?: (google.protobuf.ITimestamp|null);
+
+ /** Object metadata */
+ metadata?: ({ [k: string]: string }|null);
+
+ /** Object contexts */
+ contexts?: (google.storage.v2.IObjectContexts|null);
+
+ /** Object eventBasedHold */
+ eventBasedHold?: (boolean|null);
+
+ /** Object owner */
+ owner?: (google.storage.v2.IOwner|null);
+
+ /** Object customerEncryption */
+ customerEncryption?: (google.storage.v2.ICustomerEncryption|null);
+
+ /** Object customTime */
+ customTime?: (google.protobuf.ITimestamp|null);
+
+ /** Object softDeleteTime */
+ softDeleteTime?: (google.protobuf.ITimestamp|null);
+
+ /** Object hardDeleteTime */
+ hardDeleteTime?: (google.protobuf.ITimestamp|null);
+
+ /** Object retention */
+ retention?: (google.storage.v2.Object.IRetention|null);
+ }
+
+ /** Represents an Object. */
+ class Object implements IObject {
+
+ /**
+ * Constructs a new Object.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IObject);
+
+ /** Object name. */
+ public name: string;
+
+ /** Object bucket. */
+ public bucket: string;
+
+ /** Object etag. */
+ public etag: string;
+
+ /** Object generation. */
+ public generation: (number|Long|string);
+
+ /** Object restoreToken. */
+ public restoreToken?: (string|null);
+
+ /** Object metageneration. */
+ public metageneration: (number|Long|string);
+
+ /** Object storageClass. */
+ public storageClass: string;
+
+ /** Object size. */
+ public size: (number|Long|string);
+
+ /** Object contentEncoding. */
+ public contentEncoding: string;
+
+ /** Object contentDisposition. */
+ public contentDisposition: string;
+
+ /** Object cacheControl. */
+ public cacheControl: string;
+
+ /** Object acl. */
+ public acl: google.storage.v2.IObjectAccessControl[];
+
+ /** Object contentLanguage. */
+ public contentLanguage: string;
+
+ /** Object deleteTime. */
+ public deleteTime?: (google.protobuf.ITimestamp|null);
+
+ /** Object finalizeTime. */
+ public finalizeTime?: (google.protobuf.ITimestamp|null);
+
+ /** Object contentType. */
+ public contentType: string;
+
+ /** Object createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Object componentCount. */
+ public componentCount: number;
+
+ /** Object checksums. */
+ public checksums?: (google.storage.v2.IObjectChecksums|null);
+
+ /** Object updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Object kmsKey. */
+ public kmsKey: string;
+
+ /** Object updateStorageClassTime. */
+ public updateStorageClassTime?: (google.protobuf.ITimestamp|null);
+
+ /** Object temporaryHold. */
+ public temporaryHold: boolean;
+
+ /** Object retentionExpireTime. */
+ public retentionExpireTime?: (google.protobuf.ITimestamp|null);
+
+ /** Object metadata. */
+ public metadata: { [k: string]: string };
+
+ /** Object contexts. */
+ public contexts?: (google.storage.v2.IObjectContexts|null);
+
+ /** Object eventBasedHold. */
+ public eventBasedHold?: (boolean|null);
+
+ /** Object owner. */
+ public owner?: (google.storage.v2.IOwner|null);
+
+ /** Object customerEncryption. */
+ public customerEncryption?: (google.storage.v2.ICustomerEncryption|null);
+
+ /** Object customTime. */
+ public customTime?: (google.protobuf.ITimestamp|null);
+
+ /** Object softDeleteTime. */
+ public softDeleteTime?: (google.protobuf.ITimestamp|null);
+
+ /** Object hardDeleteTime. */
+ public hardDeleteTime?: (google.protobuf.ITimestamp|null);
+
+ /** Object retention. */
+ public retention?: (google.storage.v2.Object.IRetention|null);
+
+ /**
+ * Creates a new Object instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Object instance
+ */
+ public static create(properties?: google.storage.v2.IObject): google.storage.v2.object;
+
+ /**
+ * Encodes the specified Object message. Does not implicitly {@link google.storage.v2.Object.verify|verify} messages.
+ * @param message Object message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IObject, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Object message, length delimited. Does not implicitly {@link google.storage.v2.Object.verify|verify} messages.
+ * @param message Object message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IObject, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Object message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Object
+ * @throws {Error} If the payload is 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.storage.v2.object;
+
+ /**
+ * Decodes an Object message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Object
+ * @throws {Error} If the 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.storage.v2.object;
+
+ /**
+ * Verifies an Object message.
+ * @param message Plain 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 Object message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Object
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.object;
+
+ /**
+ * Creates a plain object from an Object message. Also converts values to other types if specified.
+ * @param message Object
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.object, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Object to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Object
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Object {
+
+ /** Properties of a Retention. */
+ interface IRetention {
+
+ /** Retention mode */
+ mode?: (google.storage.v2.Object.Retention.Mode|keyof typeof google.storage.v2.Object.Retention.Mode|null);
+
+ /** Retention retainUntilTime */
+ retainUntilTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a Retention. */
+ class Retention implements IRetention {
+
+ /**
+ * Constructs a new Retention.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.Object.IRetention);
+
+ /** Retention mode. */
+ public mode: (google.storage.v2.Object.Retention.Mode|keyof typeof google.storage.v2.Object.Retention.Mode);
+
+ /** Retention retainUntilTime. */
+ public retainUntilTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new Retention instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Retention instance
+ */
+ public static create(properties?: google.storage.v2.Object.IRetention): google.storage.v2.Object.Retention;
+
+ /**
+ * Encodes the specified Retention message. Does not implicitly {@link google.storage.v2.Object.Retention.verify|verify} messages.
+ * @param message Retention message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.Object.IRetention, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Retention message, length delimited. Does not implicitly {@link google.storage.v2.Object.Retention.verify|verify} messages.
+ * @param message Retention message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.Object.IRetention, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Retention message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Retention
+ * @throws {Error} If the payload is 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.storage.v2.Object.Retention;
+
+ /**
+ * Decodes a Retention message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Retention
+ * @throws {Error} If the 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.storage.v2.Object.Retention;
+
+ /**
+ * Verifies a Retention message.
+ * @param message Plain 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 Retention message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Retention
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.Object.Retention;
+
+ /**
+ * Creates a plain object from a Retention message. Also converts values to other types if specified.
+ * @param message Retention
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.Object.Retention, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Retention to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Retention
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Retention {
+
+ /** Mode enum. */
+ enum Mode {
+ MODE_UNSPECIFIED = 0,
+ UNLOCKED = 1,
+ LOCKED = 2
+ }
+ }
+ }
+
+ /** Properties of an ObjectAccessControl. */
+ interface IObjectAccessControl {
+
+ /** ObjectAccessControl role */
+ role?: (string|null);
+
+ /** ObjectAccessControl id */
+ id?: (string|null);
+
+ /** ObjectAccessControl entity */
+ entity?: (string|null);
+
+ /** ObjectAccessControl entityAlt */
+ entityAlt?: (string|null);
+
+ /** ObjectAccessControl entityId */
+ entityId?: (string|null);
+
+ /** ObjectAccessControl etag */
+ etag?: (string|null);
+
+ /** ObjectAccessControl email */
+ email?: (string|null);
+
+ /** ObjectAccessControl domain */
+ domain?: (string|null);
+
+ /** ObjectAccessControl projectTeam */
+ projectTeam?: (google.storage.v2.IProjectTeam|null);
+ }
+
+ /** Represents an ObjectAccessControl. */
+ class ObjectAccessControl implements IObjectAccessControl {
+
+ /**
+ * Constructs a new ObjectAccessControl.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IObjectAccessControl);
+
+ /** ObjectAccessControl role. */
+ public role: string;
+
+ /** ObjectAccessControl id. */
+ public id: string;
+
+ /** ObjectAccessControl entity. */
+ public entity: string;
+
+ /** ObjectAccessControl entityAlt. */
+ public entityAlt: string;
+
+ /** ObjectAccessControl entityId. */
+ public entityId: string;
+
+ /** ObjectAccessControl etag. */
+ public etag: string;
+
+ /** ObjectAccessControl email. */
+ public email: string;
+
+ /** ObjectAccessControl domain. */
+ public domain: string;
+
+ /** ObjectAccessControl projectTeam. */
+ public projectTeam?: (google.storage.v2.IProjectTeam|null);
+
+ /**
+ * Creates a new ObjectAccessControl instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ObjectAccessControl instance
+ */
+ public static create(properties?: google.storage.v2.IObjectAccessControl): google.storage.v2.ObjectAccessControl;
+
+ /**
+ * Encodes the specified ObjectAccessControl message. Does not implicitly {@link google.storage.v2.ObjectAccessControl.verify|verify} messages.
+ * @param message ObjectAccessControl message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IObjectAccessControl, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ObjectAccessControl message, length delimited. Does not implicitly {@link google.storage.v2.ObjectAccessControl.verify|verify} messages.
+ * @param message ObjectAccessControl message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IObjectAccessControl, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ObjectAccessControl message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ObjectAccessControl
+ * @throws {Error} If the payload is 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.storage.v2.ObjectAccessControl;
+
+ /**
+ * Decodes an ObjectAccessControl message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ObjectAccessControl
+ * @throws {Error} If the 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.storage.v2.ObjectAccessControl;
+
+ /**
+ * Verifies an ObjectAccessControl message.
+ * @param message Plain 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 ObjectAccessControl message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ObjectAccessControl
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.ObjectAccessControl;
+
+ /**
+ * Creates a plain object from an ObjectAccessControl message. Also converts values to other types if specified.
+ * @param message ObjectAccessControl
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.ObjectAccessControl, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ObjectAccessControl to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ObjectAccessControl
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListObjectsResponse. */
+ interface IListObjectsResponse {
+
+ /** ListObjectsResponse objects */
+ objects?: (google.storage.v2.IObject[]|null);
+
+ /** ListObjectsResponse prefixes */
+ prefixes?: (string[]|null);
+
+ /** ListObjectsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListObjectsResponse. */
+ class ListObjectsResponse implements IListObjectsResponse {
+
+ /**
+ * Constructs a new ListObjectsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IListObjectsResponse);
+
+ /** ListObjectsResponse objects. */
+ public objects: google.storage.v2.IObject[];
+
+ /** ListObjectsResponse prefixes. */
+ public prefixes: string[];
+
+ /** ListObjectsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListObjectsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListObjectsResponse instance
+ */
+ public static create(properties?: google.storage.v2.IListObjectsResponse): google.storage.v2.ListObjectsResponse;
+
+ /**
+ * Encodes the specified ListObjectsResponse message. Does not implicitly {@link google.storage.v2.ListObjectsResponse.verify|verify} messages.
+ * @param message ListObjectsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IListObjectsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListObjectsResponse message, length delimited. Does not implicitly {@link google.storage.v2.ListObjectsResponse.verify|verify} messages.
+ * @param message ListObjectsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IListObjectsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListObjectsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListObjectsResponse
+ * @throws {Error} If the payload is 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.storage.v2.ListObjectsResponse;
+
+ /**
+ * Decodes a ListObjectsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListObjectsResponse
+ * @throws {Error} If the 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.storage.v2.ListObjectsResponse;
+
+ /**
+ * Verifies a ListObjectsResponse message.
+ * @param message Plain 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 ListObjectsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListObjectsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.ListObjectsResponse;
+
+ /**
+ * Creates a plain object from a ListObjectsResponse message. Also converts values to other types if specified.
+ * @param message ListObjectsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.ListObjectsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListObjectsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListObjectsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ProjectTeam. */
+ interface IProjectTeam {
+
+ /** ProjectTeam projectNumber */
+ projectNumber?: (string|null);
+
+ /** ProjectTeam team */
+ team?: (string|null);
+ }
+
+ /** Represents a ProjectTeam. */
+ class ProjectTeam implements IProjectTeam {
+
+ /**
+ * Constructs a new ProjectTeam.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IProjectTeam);
+
+ /** ProjectTeam projectNumber. */
+ public projectNumber: string;
+
+ /** ProjectTeam team. */
+ public team: string;
+
+ /**
+ * Creates a new ProjectTeam instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ProjectTeam instance
+ */
+ public static create(properties?: google.storage.v2.IProjectTeam): google.storage.v2.ProjectTeam;
+
+ /**
+ * Encodes the specified ProjectTeam message. Does not implicitly {@link google.storage.v2.ProjectTeam.verify|verify} messages.
+ * @param message ProjectTeam message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IProjectTeam, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ProjectTeam message, length delimited. Does not implicitly {@link google.storage.v2.ProjectTeam.verify|verify} messages.
+ * @param message ProjectTeam message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IProjectTeam, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ProjectTeam message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ProjectTeam
+ * @throws {Error} If the payload is 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.storage.v2.ProjectTeam;
+
+ /**
+ * Decodes a ProjectTeam message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ProjectTeam
+ * @throws {Error} If the 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.storage.v2.ProjectTeam;
+
+ /**
+ * Verifies a ProjectTeam message.
+ * @param message Plain 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 ProjectTeam message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ProjectTeam
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.ProjectTeam;
+
+ /**
+ * Creates a plain object from a ProjectTeam message. Also converts values to other types if specified.
+ * @param message ProjectTeam
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.ProjectTeam, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ProjectTeam to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ProjectTeam
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Owner. */
+ interface IOwner {
+
+ /** Owner entity */
+ entity?: (string|null);
+
+ /** Owner entityId */
+ entityId?: (string|null);
+ }
+
+ /** Represents an Owner. */
+ class Owner implements IOwner {
+
+ /**
+ * Constructs a new Owner.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IOwner);
+
+ /** Owner entity. */
+ public entity: string;
+
+ /** Owner entityId. */
+ public entityId: string;
+
+ /**
+ * Creates a new Owner instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Owner instance
+ */
+ public static create(properties?: google.storage.v2.IOwner): google.storage.v2.Owner;
+
+ /**
+ * Encodes the specified Owner message. Does not implicitly {@link google.storage.v2.Owner.verify|verify} messages.
+ * @param message Owner message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IOwner, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Owner message, length delimited. Does not implicitly {@link google.storage.v2.Owner.verify|verify} messages.
+ * @param message Owner message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IOwner, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Owner message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Owner
+ * @throws {Error} If the payload is 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.storage.v2.Owner;
+
+ /**
+ * Decodes an Owner message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Owner
+ * @throws {Error} If the 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.storage.v2.Owner;
+
+ /**
+ * Verifies an Owner message.
+ * @param message Plain 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 Owner message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Owner
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.Owner;
+
+ /**
+ * Creates a plain object from an Owner message. Also converts values to other types if specified.
+ * @param message Owner
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.Owner, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Owner to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Owner
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ContentRange. */
+ interface IContentRange {
+
+ /** ContentRange start */
+ start?: (number|Long|string|null);
+
+ /** ContentRange end */
+ end?: (number|Long|string|null);
+
+ /** ContentRange completeLength */
+ completeLength?: (number|Long|string|null);
+ }
+
+ /** Represents a ContentRange. */
+ class ContentRange implements IContentRange {
+
+ /**
+ * Constructs a new ContentRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.storage.v2.IContentRange);
+
+ /** ContentRange start. */
+ public start: (number|Long|string);
+
+ /** ContentRange end. */
+ public end: (number|Long|string);
+
+ /** ContentRange completeLength. */
+ public completeLength: (number|Long|string);
+
+ /**
+ * Creates a new ContentRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ContentRange instance
+ */
+ public static create(properties?: google.storage.v2.IContentRange): google.storage.v2.ContentRange;
+
+ /**
+ * Encodes the specified ContentRange message. Does not implicitly {@link google.storage.v2.ContentRange.verify|verify} messages.
+ * @param message ContentRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.storage.v2.IContentRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ContentRange message, length delimited. Does not implicitly {@link google.storage.v2.ContentRange.verify|verify} messages.
+ * @param message ContentRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.storage.v2.IContentRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ContentRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ContentRange
+ * @throws {Error} If the payload is 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.storage.v2.ContentRange;
+
+ /**
+ * Decodes a ContentRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ContentRange
+ * @throws {Error} If the 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.storage.v2.ContentRange;
+
+ /**
+ * Verifies a ContentRange message.
+ * @param message Plain 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 ContentRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ContentRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.storage.v2.ContentRange;
+
+ /**
+ * Creates a plain object from a ContentRange message. Also converts values to other types if specified.
+ * @param message ContentRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.storage.v2.ContentRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ContentRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ContentRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+ }
+
+ /** Namespace api. */
+ namespace api {
+
+ /** Properties of a Http. */
+ interface IHttp {
+
+ /** Http rules */
+ rules?: (google.api.IHttpRule[]|null);
+
+ /** Http fullyDecodeReservedExpansion */
+ fullyDecodeReservedExpansion?: (boolean|null);
+ }
+
+ /** Represents a Http. */
+ class Http implements IHttp {
+
+ /**
+ * Constructs a new Http.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttp);
+
+ /** Http rules. */
+ public rules: google.api.IHttpRule[];
+
+ /** Http fullyDecodeReservedExpansion. */
+ public fullyDecodeReservedExpansion: boolean;
+
+ /**
+ * Creates a new Http instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Http instance
+ */
+ public static create(properties?: google.api.IHttp): google.api.Http;
+
+ /**
+ * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http;
+
+ /**
+ * Verifies a Http message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Http message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Http
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Http;
+
+ /**
+ * Creates a plain object from a Http message. Also converts values to other types if specified.
+ * @param message Http
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Http to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Http
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a HttpRule. */
+ interface IHttpRule {
+
+ /** HttpRule selector */
+ selector?: (string|null);
+
+ /** HttpRule get */
+ get?: (string|null);
+
+ /** HttpRule put */
+ put?: (string|null);
+
+ /** HttpRule post */
+ post?: (string|null);
+
+ /** HttpRule delete */
+ "delete"?: (string|null);
+
+ /** HttpRule patch */
+ patch?: (string|null);
+
+ /** HttpRule custom */
+ custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body */
+ body?: (string|null);
+
+ /** HttpRule responseBody */
+ responseBody?: (string|null);
+
+ /** HttpRule additionalBindings */
+ additionalBindings?: (google.api.IHttpRule[]|null);
+ }
+
+ /** Represents a HttpRule. */
+ class HttpRule implements IHttpRule {
+
+ /**
+ * Constructs a new HttpRule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttpRule);
+
+ /** HttpRule selector. */
+ public selector: string;
+
+ /** HttpRule get. */
+ public get?: (string|null);
+
+ /** HttpRule put. */
+ public put?: (string|null);
+
+ /** HttpRule post. */
+ public post?: (string|null);
+
+ /** HttpRule delete. */
+ public delete?: (string|null);
+
+ /** HttpRule patch. */
+ public patch?: (string|null);
+
+ /** HttpRule custom. */
+ public custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body. */
+ public body: string;
+
+ /** HttpRule responseBody. */
+ public responseBody: string;
+
+ /** HttpRule additionalBindings. */
+ public additionalBindings: google.api.IHttpRule[];
+
+ /** HttpRule pattern. */
+ public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom");
+
+ /**
+ * Creates a new HttpRule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HttpRule instance
+ */
+ public static create(properties?: google.api.IHttpRule): google.api.HttpRule;
+
+ /**
+ * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule;
+
+ /**
+ * Verifies a HttpRule message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HttpRule
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.HttpRule;
+
+ /**
+ * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
+ * @param message HttpRule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HttpRule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HttpRule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CustomHttpPattern. */
+ interface ICustomHttpPattern {
+
+ /** CustomHttpPattern kind */
+ kind?: (string|null);
+
+ /** CustomHttpPattern path */
+ path?: (string|null);
+ }
+
+ /** Represents a CustomHttpPattern. */
+ class CustomHttpPattern implements ICustomHttpPattern {
+
+ /**
+ * Constructs a new CustomHttpPattern.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICustomHttpPattern);
+
+ /** CustomHttpPattern kind. */
+ public kind: string;
+
+ /** CustomHttpPattern path. */
+ public path: string;
+
+ /**
+ * Creates a new CustomHttpPattern instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CustomHttpPattern instance
+ */
+ public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern;
+
+ /**
+ * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern;
+
+ /**
+ * Verifies a CustomHttpPattern message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CustomHttpPattern
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern;
+
+ /**
+ * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
+ * @param message CustomHttpPattern
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CustomHttpPattern to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CustomHttpPattern
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CommonLanguageSettings. */
+ interface ICommonLanguageSettings {
+
+ /** CommonLanguageSettings referenceDocsUri */
+ referenceDocsUri?: (string|null);
+
+ /** CommonLanguageSettings destinations */
+ destinations?: (google.api.ClientLibraryDestination[]|null);
+ }
+
+ /** Represents a CommonLanguageSettings. */
+ class CommonLanguageSettings implements ICommonLanguageSettings {
+
+ /**
+ * Constructs a new CommonLanguageSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICommonLanguageSettings);
+
+ /** CommonLanguageSettings referenceDocsUri. */
+ public referenceDocsUri: string;
+
+ /** CommonLanguageSettings destinations. */
+ public destinations: google.api.ClientLibraryDestination[];
+
+ /**
+ * Creates a new CommonLanguageSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CommonLanguageSettings instance
+ */
+ public static create(properties?: google.api.ICommonLanguageSettings): google.api.CommonLanguageSettings;
+
+ /**
+ * Encodes the specified CommonLanguageSettings message. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
+ * @param message CommonLanguageSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICommonLanguageSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CommonLanguageSettings message, length delimited. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
+ * @param message CommonLanguageSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICommonLanguageSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CommonLanguageSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CommonLanguageSettings;
+
+ /**
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CommonLanguageSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CommonLanguageSettings;
+
+ /**
+ * Verifies a CommonLanguageSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CommonLanguageSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CommonLanguageSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CommonLanguageSettings;
+
+ /**
+ * Creates a plain object from a CommonLanguageSettings message. Also converts values to other types if specified.
+ * @param message CommonLanguageSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CommonLanguageSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CommonLanguageSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CommonLanguageSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ClientLibrarySettings. */
+ interface IClientLibrarySettings {
+
+ /** ClientLibrarySettings version */
+ version?: (string|null);
+
+ /** ClientLibrarySettings launchStage */
+ launchStage?: (google.api.LaunchStage|keyof typeof google.api.LaunchStage|null);
+
+ /** ClientLibrarySettings restNumericEnums */
+ restNumericEnums?: (boolean|null);
+
+ /** ClientLibrarySettings javaSettings */
+ javaSettings?: (google.api.IJavaSettings|null);
+
+ /** ClientLibrarySettings cppSettings */
+ cppSettings?: (google.api.ICppSettings|null);
+
+ /** ClientLibrarySettings phpSettings */
+ phpSettings?: (google.api.IPhpSettings|null);
+
+ /** ClientLibrarySettings pythonSettings */
+ pythonSettings?: (google.api.IPythonSettings|null);
+
+ /** ClientLibrarySettings nodeSettings */
+ nodeSettings?: (google.api.INodeSettings|null);
+
+ /** ClientLibrarySettings dotnetSettings */
+ dotnetSettings?: (google.api.IDotnetSettings|null);
+
+ /** ClientLibrarySettings rubySettings */
+ rubySettings?: (google.api.IRubySettings|null);
+
+ /** ClientLibrarySettings goSettings */
+ goSettings?: (google.api.IGoSettings|null);
+ }
+
+ /** Represents a ClientLibrarySettings. */
+ class ClientLibrarySettings implements IClientLibrarySettings {
+
+ /**
+ * Constructs a new ClientLibrarySettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IClientLibrarySettings);
+
+ /** ClientLibrarySettings version. */
+ public version: string;
+
+ /** ClientLibrarySettings launchStage. */
+ public launchStage: (google.api.LaunchStage|keyof typeof google.api.LaunchStage);
+
+ /** ClientLibrarySettings restNumericEnums. */
+ public restNumericEnums: boolean;
+
+ /** ClientLibrarySettings javaSettings. */
+ public javaSettings?: (google.api.IJavaSettings|null);
+
+ /** ClientLibrarySettings cppSettings. */
+ public cppSettings?: (google.api.ICppSettings|null);
+
+ /** ClientLibrarySettings phpSettings. */
+ public phpSettings?: (google.api.IPhpSettings|null);
+
+ /** ClientLibrarySettings pythonSettings. */
+ public pythonSettings?: (google.api.IPythonSettings|null);
+
+ /** ClientLibrarySettings nodeSettings. */
+ public nodeSettings?: (google.api.INodeSettings|null);
+
+ /** ClientLibrarySettings dotnetSettings. */
+ public dotnetSettings?: (google.api.IDotnetSettings|null);
+
+ /** ClientLibrarySettings rubySettings. */
+ public rubySettings?: (google.api.IRubySettings|null);
+
+ /** ClientLibrarySettings goSettings. */
+ public goSettings?: (google.api.IGoSettings|null);
+
+ /**
+ * Creates a new ClientLibrarySettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ClientLibrarySettings instance
+ */
+ public static create(properties?: google.api.IClientLibrarySettings): google.api.ClientLibrarySettings;
+
+ /**
+ * Encodes the specified ClientLibrarySettings message. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
+ * @param message ClientLibrarySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IClientLibrarySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ClientLibrarySettings message, length delimited. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
+ * @param message ClientLibrarySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IClientLibrarySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ClientLibrarySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ClientLibrarySettings;
+
+ /**
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ClientLibrarySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ClientLibrarySettings;
+
+ /**
+ * Verifies a ClientLibrarySettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ClientLibrarySettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ClientLibrarySettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ClientLibrarySettings;
+
+ /**
+ * Creates a plain object from a ClientLibrarySettings message. Also converts values to other types if specified.
+ * @param message ClientLibrarySettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ClientLibrarySettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ClientLibrarySettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ClientLibrarySettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Publishing. */
+ interface IPublishing {
+
+ /** Publishing methodSettings */
+ methodSettings?: (google.api.IMethodSettings[]|null);
+
+ /** Publishing newIssueUri */
+ newIssueUri?: (string|null);
+
+ /** Publishing documentationUri */
+ documentationUri?: (string|null);
+
+ /** Publishing apiShortName */
+ apiShortName?: (string|null);
+
+ /** Publishing githubLabel */
+ githubLabel?: (string|null);
+
+ /** Publishing codeownerGithubTeams */
+ codeownerGithubTeams?: (string[]|null);
+
+ /** Publishing docTagPrefix */
+ docTagPrefix?: (string|null);
+
+ /** Publishing organization */
+ organization?: (google.api.ClientLibraryOrganization|keyof typeof google.api.ClientLibraryOrganization|null);
+
+ /** Publishing librarySettings */
+ librarySettings?: (google.api.IClientLibrarySettings[]|null);
+
+ /** Publishing protoReferenceDocumentationUri */
+ protoReferenceDocumentationUri?: (string|null);
+
+ /** Publishing restReferenceDocumentationUri */
+ restReferenceDocumentationUri?: (string|null);
+ }
+
+ /** Represents a Publishing. */
+ class Publishing implements IPublishing {
+
+ /**
+ * Constructs a new Publishing.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPublishing);
+
+ /** Publishing methodSettings. */
+ public methodSettings: google.api.IMethodSettings[];
+
+ /** Publishing newIssueUri. */
+ public newIssueUri: string;
+
+ /** Publishing documentationUri. */
+ public documentationUri: string;
+
+ /** Publishing apiShortName. */
+ public apiShortName: string;
+
+ /** Publishing githubLabel. */
+ public githubLabel: string;
+
+ /** Publishing codeownerGithubTeams. */
+ public codeownerGithubTeams: string[];
+
+ /** Publishing docTagPrefix. */
+ public docTagPrefix: string;
+
+ /** Publishing organization. */
+ public organization: (google.api.ClientLibraryOrganization|keyof typeof google.api.ClientLibraryOrganization);
+
+ /** Publishing librarySettings. */
+ public librarySettings: google.api.IClientLibrarySettings[];
+
+ /** Publishing protoReferenceDocumentationUri. */
+ public protoReferenceDocumentationUri: string;
+
+ /** Publishing restReferenceDocumentationUri. */
+ public restReferenceDocumentationUri: string;
+
+ /**
+ * Creates a new Publishing instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Publishing instance
+ */
+ public static create(properties?: google.api.IPublishing): google.api.Publishing;
+
+ /**
+ * Encodes the specified Publishing message. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
+ * @param message Publishing message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IPublishing, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Publishing message, length delimited. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
+ * @param message Publishing message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IPublishing, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Publishing message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Publishing
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Publishing;
+
+ /**
+ * Decodes a Publishing message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Publishing
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Publishing;
+
+ /**
+ * Verifies a Publishing message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Publishing message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Publishing
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Publishing;
+
+ /**
+ * Creates a plain object from a Publishing message. Also converts values to other types if specified.
+ * @param message Publishing
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Publishing, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Publishing to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Publishing
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a JavaSettings. */
+ interface IJavaSettings {
+
+ /** JavaSettings libraryPackage */
+ libraryPackage?: (string|null);
+
+ /** JavaSettings serviceClassNames */
+ serviceClassNames?: ({ [k: string]: string }|null);
+
+ /** JavaSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a JavaSettings. */
+ class JavaSettings implements IJavaSettings {
+
+ /**
+ * Constructs a new JavaSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IJavaSettings);
+
+ /** JavaSettings libraryPackage. */
+ public libraryPackage: string;
+
+ /** JavaSettings serviceClassNames. */
+ public serviceClassNames: { [k: string]: string };
+
+ /** JavaSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new JavaSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns JavaSettings instance
+ */
+ public static create(properties?: google.api.IJavaSettings): google.api.JavaSettings;
+
+ /**
+ * Encodes the specified JavaSettings message. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
+ * @param message JavaSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IJavaSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified JavaSettings message, length delimited. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
+ * @param message JavaSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IJavaSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a JavaSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns JavaSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.JavaSettings;
+
+ /**
+ * Decodes a JavaSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns JavaSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.JavaSettings;
+
+ /**
+ * Verifies a JavaSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a JavaSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns JavaSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.JavaSettings;
+
+ /**
+ * Creates a plain object from a JavaSettings message. Also converts values to other types if specified.
+ * @param message JavaSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.JavaSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this JavaSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for JavaSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CppSettings. */
+ interface ICppSettings {
+
+ /** CppSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a CppSettings. */
+ class CppSettings implements ICppSettings {
+
+ /**
+ * Constructs a new CppSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICppSettings);
+
+ /** CppSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new CppSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CppSettings instance
+ */
+ public static create(properties?: google.api.ICppSettings): google.api.CppSettings;
+
+ /**
+ * Encodes the specified CppSettings message. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
+ * @param message CppSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICppSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CppSettings message, length delimited. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
+ * @param message CppSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICppSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CppSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CppSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CppSettings;
+
+ /**
+ * Decodes a CppSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CppSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CppSettings;
+
+ /**
+ * Verifies a CppSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CppSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CppSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CppSettings;
+
+ /**
+ * Creates a plain object from a CppSettings message. Also converts values to other types if specified.
+ * @param message CppSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CppSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CppSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CppSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PhpSettings. */
+ interface IPhpSettings {
+
+ /** PhpSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a PhpSettings. */
+ class PhpSettings implements IPhpSettings {
+
+ /**
+ * Constructs a new PhpSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPhpSettings);
+
+ /** PhpSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new PhpSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PhpSettings instance
+ */
+ public static create(properties?: google.api.IPhpSettings): google.api.PhpSettings;
+
+ /**
+ * Encodes the specified PhpSettings message. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
+ * @param message PhpSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IPhpSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PhpSettings message, length delimited. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
+ * @param message PhpSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IPhpSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PhpSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PhpSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.PhpSettings;
+
+ /**
+ * Decodes a PhpSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PhpSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.PhpSettings;
+
+ /**
+ * Verifies a PhpSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PhpSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PhpSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.PhpSettings;
+
+ /**
+ * Creates a plain object from a PhpSettings message. Also converts values to other types if specified.
+ * @param message PhpSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.PhpSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PhpSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PhpSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PythonSettings. */
+ interface IPythonSettings {
+
+ /** PythonSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a PythonSettings. */
+ class PythonSettings implements IPythonSettings {
+
+ /**
+ * Constructs a new PythonSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPythonSettings);
+
+ /** PythonSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new PythonSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PythonSettings instance
+ */
+ public static create(properties?: google.api.IPythonSettings): google.api.PythonSettings;
+
+ /**
+ * Encodes the specified PythonSettings message. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
+ * @param message PythonSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IPythonSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PythonSettings message, length delimited. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
+ * @param message PythonSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IPythonSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PythonSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PythonSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.PythonSettings;
+
+ /**
+ * Decodes a PythonSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PythonSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.PythonSettings;
+
+ /**
+ * Verifies a PythonSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PythonSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PythonSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.PythonSettings;
+
+ /**
+ * Creates a plain object from a PythonSettings message. Also converts values to other types if specified.
+ * @param message PythonSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.PythonSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PythonSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PythonSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a NodeSettings. */
+ interface INodeSettings {
+
+ /** NodeSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a NodeSettings. */
+ class NodeSettings implements INodeSettings {
+
+ /**
+ * Constructs a new NodeSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.INodeSettings);
+
+ /** NodeSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new NodeSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NodeSettings instance
+ */
+ public static create(properties?: google.api.INodeSettings): google.api.NodeSettings;
+
+ /**
+ * Encodes the specified NodeSettings message. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
+ * @param message NodeSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.INodeSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NodeSettings message, length delimited. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
+ * @param message NodeSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.INodeSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NodeSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NodeSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.NodeSettings;
+
+ /**
+ * Decodes a NodeSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NodeSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.NodeSettings;
+
+ /**
+ * Verifies a NodeSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NodeSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NodeSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.NodeSettings;
+
+ /**
+ * Creates a plain object from a NodeSettings message. Also converts values to other types if specified.
+ * @param message NodeSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.NodeSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NodeSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NodeSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DotnetSettings. */
+ interface IDotnetSettings {
+
+ /** DotnetSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+
+ /** DotnetSettings renamedServices */
+ renamedServices?: ({ [k: string]: string }|null);
+
+ /** DotnetSettings renamedResources */
+ renamedResources?: ({ [k: string]: string }|null);
+
+ /** DotnetSettings ignoredResources */
+ ignoredResources?: (string[]|null);
+
+ /** DotnetSettings forcedNamespaceAliases */
+ forcedNamespaceAliases?: (string[]|null);
+
+ /** DotnetSettings handwrittenSignatures */
+ handwrittenSignatures?: (string[]|null);
+ }
+
+ /** Represents a DotnetSettings. */
+ class DotnetSettings implements IDotnetSettings {
+
+ /**
+ * Constructs a new DotnetSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IDotnetSettings);
+
+ /** DotnetSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /** DotnetSettings renamedServices. */
+ public renamedServices: { [k: string]: string };
+
+ /** DotnetSettings renamedResources. */
+ public renamedResources: { [k: string]: string };
+
+ /** DotnetSettings ignoredResources. */
+ public ignoredResources: string[];
+
+ /** DotnetSettings forcedNamespaceAliases. */
+ public forcedNamespaceAliases: string[];
+
+ /** DotnetSettings handwrittenSignatures. */
+ public handwrittenSignatures: string[];
+
+ /**
+ * Creates a new DotnetSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DotnetSettings instance
+ */
+ public static create(properties?: google.api.IDotnetSettings): google.api.DotnetSettings;
+
+ /**
+ * Encodes the specified DotnetSettings message. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
+ * @param message DotnetSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IDotnetSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DotnetSettings message, length delimited. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
+ * @param message DotnetSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IDotnetSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DotnetSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DotnetSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.DotnetSettings;
+
+ /**
+ * Decodes a DotnetSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DotnetSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.DotnetSettings;
+
+ /**
+ * Verifies a DotnetSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DotnetSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DotnetSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.DotnetSettings;
+
+ /**
+ * Creates a plain object from a DotnetSettings message. Also converts values to other types if specified.
+ * @param message DotnetSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.DotnetSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DotnetSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DotnetSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RubySettings. */
+ interface IRubySettings {
+
+ /** RubySettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a RubySettings. */
+ class RubySettings implements IRubySettings {
+
+ /**
+ * Constructs a new RubySettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IRubySettings);
+
+ /** RubySettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new RubySettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RubySettings instance
+ */
+ public static create(properties?: google.api.IRubySettings): google.api.RubySettings;
+
+ /**
+ * Encodes the specified RubySettings message. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
+ * @param message RubySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IRubySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RubySettings message, length delimited. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
+ * @param message RubySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IRubySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RubySettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RubySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.RubySettings;
+
+ /**
+ * Decodes a RubySettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RubySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.RubySettings;
+
+ /**
+ * Verifies a RubySettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RubySettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RubySettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.RubySettings;
+
+ /**
+ * Creates a plain object from a RubySettings message. Also converts values to other types if specified.
+ * @param message RubySettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.RubySettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RubySettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RubySettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GoSettings. */
+ interface IGoSettings {
+
+ /** GoSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a GoSettings. */
+ class GoSettings implements IGoSettings {
+
+ /**
+ * Constructs a new GoSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IGoSettings);
+
+ /** GoSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new GoSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GoSettings instance
+ */
+ public static create(properties?: google.api.IGoSettings): google.api.GoSettings;
+
+ /**
+ * Encodes the specified GoSettings message. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
+ * @param message GoSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IGoSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GoSettings message, length delimited. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
+ * @param message GoSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IGoSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GoSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GoSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.GoSettings;
+
+ /**
+ * Decodes a GoSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GoSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.GoSettings;
+
+ /**
+ * Verifies a GoSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GoSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GoSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.GoSettings;
+
+ /**
+ * Creates a plain object from a GoSettings message. Also converts values to other types if specified.
+ * @param message GoSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.GoSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GoSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GoSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodSettings. */
+ interface IMethodSettings {
+
+ /** MethodSettings selector */
+ selector?: (string|null);
+
+ /** MethodSettings longRunning */
+ longRunning?: (google.api.MethodSettings.ILongRunning|null);
+
+ /** MethodSettings autoPopulatedFields */
+ autoPopulatedFields?: (string[]|null);
+ }
+
+ /** Represents a MethodSettings. */
+ class MethodSettings implements IMethodSettings {
+
+ /**
+ * Constructs a new MethodSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IMethodSettings);
+
+ /** MethodSettings selector. */
+ public selector: string;
+
+ /** MethodSettings longRunning. */
+ public longRunning?: (google.api.MethodSettings.ILongRunning|null);
+
+ /** MethodSettings autoPopulatedFields. */
+ public autoPopulatedFields: string[];
+
+ /**
+ * Creates a new MethodSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodSettings instance
+ */
+ public static create(properties?: google.api.IMethodSettings): google.api.MethodSettings;
+
+ /**
+ * Encodes the specified MethodSettings message. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
+ * @param message MethodSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IMethodSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodSettings message, length delimited. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
+ * @param message MethodSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IMethodSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.MethodSettings;
+
+ /**
+ * Decodes a MethodSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.MethodSettings;
+
+ /**
+ * Verifies a MethodSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.MethodSettings;
+
+ /**
+ * Creates a plain object from a MethodSettings message. Also converts values to other types if specified.
+ * @param message MethodSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.MethodSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MethodSettings {
+
+ /** Properties of a LongRunning. */
+ interface ILongRunning {
+
+ /** LongRunning initialPollDelay */
+ initialPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning pollDelayMultiplier */
+ pollDelayMultiplier?: (number|null);
+
+ /** LongRunning maxPollDelay */
+ maxPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning totalPollTimeout */
+ totalPollTimeout?: (google.protobuf.IDuration|null);
+ }
+
+ /** Represents a LongRunning. */
+ class LongRunning implements ILongRunning {
+
+ /**
+ * Constructs a new LongRunning.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.MethodSettings.ILongRunning);
+
+ /** LongRunning initialPollDelay. */
+ public initialPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning pollDelayMultiplier. */
+ public pollDelayMultiplier: number;
+
+ /** LongRunning maxPollDelay. */
+ public maxPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning totalPollTimeout. */
+ public totalPollTimeout?: (google.protobuf.IDuration|null);
+
+ /**
+ * Creates a new LongRunning instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LongRunning instance
+ */
+ public static create(properties?: google.api.MethodSettings.ILongRunning): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Encodes the specified LongRunning message. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
+ * @param message LongRunning message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.MethodSettings.ILongRunning, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LongRunning message, length delimited. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
+ * @param message LongRunning message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.MethodSettings.ILongRunning, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LongRunning message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LongRunning
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Decodes a LongRunning message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LongRunning
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Verifies a LongRunning message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LongRunning message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LongRunning
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Creates a plain object from a LongRunning message. Also converts values to other types if specified.
+ * @param message LongRunning
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.MethodSettings.LongRunning, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LongRunning to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LongRunning
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** ClientLibraryOrganization enum. */
+ enum ClientLibraryOrganization {
+ CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0,
+ CLOUD = 1,
+ ADS = 2,
+ PHOTOS = 3,
+ STREET_VIEW = 4,
+ SHOPPING = 5,
+ GEO = 6,
+ GENERATIVE_AI = 7
+ }
+
+ /** ClientLibraryDestination enum. */
+ enum ClientLibraryDestination {
+ CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0,
+ GITHUB = 10,
+ PACKAGE_MANAGER = 20
+ }
+
+ /** LaunchStage enum. */
+ enum LaunchStage {
+ LAUNCH_STAGE_UNSPECIFIED = 0,
+ UNIMPLEMENTED = 6,
+ PRELAUNCH = 7,
+ EARLY_ACCESS = 1,
+ ALPHA = 2,
+ BETA = 3,
+ GA = 4,
+ DEPRECATED = 5
+ }
+
+ /** FieldBehavior enum. */
+ enum FieldBehavior {
+ FIELD_BEHAVIOR_UNSPECIFIED = 0,
+ OPTIONAL = 1,
+ REQUIRED = 2,
+ OUTPUT_ONLY = 3,
+ INPUT_ONLY = 4,
+ IMMUTABLE = 5,
+ UNORDERED_LIST = 6,
+ NON_EMPTY_DEFAULT = 7,
+ IDENTIFIER = 8
+ }
+
+ /** Properties of a FieldInfo. */
+ interface IFieldInfo {
+
+ /** FieldInfo format */
+ format?: (google.api.FieldInfo.Format|keyof typeof google.api.FieldInfo.Format|null);
+ }
+
+ /** Represents a FieldInfo. */
+ class FieldInfo implements IFieldInfo {
+
+ /**
+ * Constructs a new FieldInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IFieldInfo);
+
+ /** FieldInfo format. */
+ public format: (google.api.FieldInfo.Format|keyof typeof google.api.FieldInfo.Format);
+
+ /**
+ * Creates a new FieldInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldInfo instance
+ */
+ public static create(properties?: google.api.IFieldInfo): google.api.FieldInfo;
+
+ /**
+ * Encodes the specified FieldInfo message. Does not implicitly {@link google.api.FieldInfo.verify|verify} messages.
+ * @param message FieldInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IFieldInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldInfo message, length delimited. Does not implicitly {@link google.api.FieldInfo.verify|verify} messages.
+ * @param message FieldInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IFieldInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.FieldInfo;
+
+ /**
+ * Decodes a FieldInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.FieldInfo;
+
+ /**
+ * Verifies a FieldInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.FieldInfo;
+
+ /**
+ * Creates a plain object from a FieldInfo message. Also converts values to other types if specified.
+ * @param message FieldInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.FieldInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldInfo {
+
+ /** Format enum. */
+ enum Format {
+ FORMAT_UNSPECIFIED = 0,
+ UUID4 = 1,
+ IPV4 = 2,
+ IPV6 = 3,
+ IPV4_OR_IPV6 = 4
+ }
+ }
+
+ /** Properties of a ResourceDescriptor. */
+ interface IResourceDescriptor {
+
+ /** ResourceDescriptor type */
+ type?: (string|null);
+
+ /** ResourceDescriptor pattern */
+ pattern?: (string[]|null);
+
+ /** ResourceDescriptor nameField */
+ nameField?: (string|null);
+
+ /** ResourceDescriptor history */
+ history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null);
+
+ /** ResourceDescriptor plural */
+ plural?: (string|null);
+
+ /** ResourceDescriptor singular */
+ singular?: (string|null);
+
+ /** ResourceDescriptor style */
+ style?: (google.api.ResourceDescriptor.Style[]|null);
+ }
+
+ /** Represents a ResourceDescriptor. */
+ class ResourceDescriptor implements IResourceDescriptor {
+
+ /**
+ * Constructs a new ResourceDescriptor.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceDescriptor);
+
+ /** ResourceDescriptor type. */
+ public type: string;
+
+ /** ResourceDescriptor pattern. */
+ public pattern: string[];
+
+ /** ResourceDescriptor nameField. */
+ public nameField: string;
+
+ /** ResourceDescriptor history. */
+ public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History);
+
+ /** ResourceDescriptor plural. */
+ public plural: string;
+
+ /** ResourceDescriptor singular. */
+ public singular: string;
+
+ /** ResourceDescriptor style. */
+ public style: google.api.ResourceDescriptor.Style[];
+
+ /**
+ * Creates a new ResourceDescriptor instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceDescriptor instance
+ */
+ public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor;
+
+ /**
+ * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @param message ResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @param message ResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceDescriptor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceDescriptor;
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceDescriptor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceDescriptor;
+
+ /**
+ * Verifies a ResourceDescriptor message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceDescriptor
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor;
+
+ /**
+ * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.
+ * @param message ResourceDescriptor
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceDescriptor to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceDescriptor
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ResourceDescriptor {
+
+ /** History enum. */
+ enum History {
+ HISTORY_UNSPECIFIED = 0,
+ ORIGINALLY_SINGLE_PATTERN = 1,
+ FUTURE_MULTI_PATTERN = 2
+ }
+
+ /** Style enum. */
+ enum Style {
+ STYLE_UNSPECIFIED = 0,
+ DECLARATIVE_FRIENDLY = 1
+ }
+ }
+
+ /** Properties of a ResourceReference. */
+ interface IResourceReference {
+
+ /** ResourceReference type */
+ type?: (string|null);
+
+ /** ResourceReference childType */
+ childType?: (string|null);
+ }
+
+ /** Represents a ResourceReference. */
+ class ResourceReference implements IResourceReference {
+
+ /**
+ * Constructs a new ResourceReference.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceReference);
+
+ /** ResourceReference type. */
+ public type: string;
+
+ /** ResourceReference childType. */
+ public childType: string;
+
+ /**
+ * Creates a new ResourceReference instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceReference instance
+ */
+ public static create(properties?: google.api.IResourceReference): google.api.ResourceReference;
+
+ /**
+ * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @param message ResourceReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @param message ResourceReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceReference;
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceReference;
+
+ /**
+ * Verifies a ResourceReference message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceReference
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceReference;
+
+ /**
+ * Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
+ * @param message ResourceReference
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceReference to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceReference
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RoutingRule. */
+ interface IRoutingRule {
+
+ /** RoutingRule routingParameters */
+ routingParameters?: (google.api.IRoutingParameter[]|null);
+ }
+
+ /** Represents a RoutingRule. */
+ class RoutingRule implements IRoutingRule {
+
+ /**
+ * Constructs a new RoutingRule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IRoutingRule);
+
+ /** RoutingRule routingParameters. */
+ public routingParameters: google.api.IRoutingParameter[];
+
+ /**
+ * Creates a new RoutingRule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RoutingRule instance
+ */
+ public static create(properties?: google.api.IRoutingRule): google.api.RoutingRule;
+
+ /**
+ * Encodes the specified RoutingRule message. Does not implicitly {@link google.api.RoutingRule.verify|verify} messages.
+ * @param message RoutingRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IRoutingRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RoutingRule message, length delimited. Does not implicitly {@link google.api.RoutingRule.verify|verify} messages.
+ * @param message RoutingRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IRoutingRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RoutingRule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RoutingRule
+ * @throws {Error} If the payload is 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.RoutingRule;
+
+ /**
+ * Decodes a RoutingRule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RoutingRule
+ * @throws {Error} If the 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.RoutingRule;
+
+ /**
+ * Verifies a RoutingRule message.
+ * @param message Plain 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 RoutingRule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RoutingRule
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.RoutingRule;
+
+ /**
+ * Creates a plain object from a RoutingRule message. Also converts values to other types if specified.
+ * @param message RoutingRule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.RoutingRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RoutingRule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RoutingRule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RoutingParameter. */
+ interface IRoutingParameter {
+
+ /** RoutingParameter field */
+ field?: (string|null);
+
+ /** RoutingParameter pathTemplate */
+ pathTemplate?: (string|null);
+ }
+
+ /** Represents a RoutingParameter. */
+ class RoutingParameter implements IRoutingParameter {
+
+ /**
+ * Constructs a new RoutingParameter.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IRoutingParameter);
+
+ /** RoutingParameter field. */
+ public field: string;
+
+ /** RoutingParameter pathTemplate. */
+ public pathTemplate: string;
+
+ /**
+ * Creates a new RoutingParameter instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RoutingParameter instance
+ */
+ public static create(properties?: google.api.IRoutingParameter): google.api.RoutingParameter;
+
+ /**
+ * Encodes the specified RoutingParameter message. Does not implicitly {@link google.api.RoutingParameter.verify|verify} messages.
+ * @param message RoutingParameter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IRoutingParameter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RoutingParameter message, length delimited. Does not implicitly {@link google.api.RoutingParameter.verify|verify} messages.
+ * @param message RoutingParameter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IRoutingParameter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RoutingParameter message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RoutingParameter
+ * @throws {Error} If the payload is 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.RoutingParameter;
+
+ /**
+ * Decodes a RoutingParameter message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RoutingParameter
+ * @throws {Error} If the 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.RoutingParameter;
+
+ /**
+ * Verifies a RoutingParameter message.
+ * @param message Plain 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 RoutingParameter message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RoutingParameter
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.RoutingParameter;
+
+ /**
+ * Creates a plain object from a RoutingParameter message. Also converts values to other types if specified.
+ * @param message RoutingParameter
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.RoutingParameter, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RoutingParameter to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RoutingParameter
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace protobuf. */
+ namespace protobuf {
+
+ /** Properties of a FileDescriptorSet. */
+ interface IFileDescriptorSet {
+
+ /** FileDescriptorSet file */
+ file?: (google.protobuf.IFileDescriptorProto[]|null);
+ }
+
+ /** Represents a FileDescriptorSet. */
+ class FileDescriptorSet implements IFileDescriptorSet {
+
+ /**
+ * Constructs a new FileDescriptorSet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorSet);
+
+ /** FileDescriptorSet file. */
+ public file: google.protobuf.IFileDescriptorProto[];
+
+ /**
+ * Creates a new FileDescriptorSet instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileDescriptorSet instance
+ */
+ public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileDescriptorSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileDescriptorSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Verifies a FileDescriptorSet message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileDescriptorSet
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
+ * @param message FileDescriptorSet
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileDescriptorSet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileDescriptorSet
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Edition enum. */
+ enum Edition {
+ EDITION_UNKNOWN = 0,
+ EDITION_PROTO2 = 998,
+ EDITION_PROTO3 = 999,
+ EDITION_2023 = 1000,
+ EDITION_2024 = 1001,
+ EDITION_1_TEST_ONLY = 1,
+ EDITION_2_TEST_ONLY = 2,
+ EDITION_99997_TEST_ONLY = 99997,
+ EDITION_99998_TEST_ONLY = 99998,
+ EDITION_99999_TEST_ONLY = 99999,
+ EDITION_MAX = 2147483647
+ }
+
+ /** Properties of a FileDescriptorProto. */
+ interface IFileDescriptorProto {
+
+ /** FileDescriptorProto name */
+ name?: (string|null);
+
+ /** FileDescriptorProto package */
+ "package"?: (string|null);
+
+ /** FileDescriptorProto dependency */
+ dependency?: (string[]|null);
+
+ /** FileDescriptorProto publicDependency */
+ publicDependency?: (number[]|null);
+
+ /** FileDescriptorProto weakDependency */
+ weakDependency?: (number[]|null);
+
+ /** FileDescriptorProto messageType */
+ messageType?: (google.protobuf.IDescriptorProto[]|null);
+
+ /** FileDescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
+
+ /** FileDescriptorProto service */
+ service?: (google.protobuf.IServiceDescriptorProto[]|null);
+
+ /** FileDescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** FileDescriptorProto options */
+ options?: (google.protobuf.IFileOptions|null);
+
+ /** FileDescriptorProto sourceCodeInfo */
+ sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
+
+ /** FileDescriptorProto syntax */
+ syntax?: (string|null);
+
+ /** FileDescriptorProto edition */
+ edition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+ }
+
+ /** Represents a FileDescriptorProto. */
+ class FileDescriptorProto implements IFileDescriptorProto {
+
+ /**
+ * Constructs a new FileDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorProto);
+
+ /** FileDescriptorProto name. */
+ public name: string;
+
+ /** FileDescriptorProto package. */
+ public package: string;
+
+ /** FileDescriptorProto dependency. */
+ public dependency: string[];
+
+ /** FileDescriptorProto publicDependency. */
+ public publicDependency: number[];
+
+ /** FileDescriptorProto weakDependency. */
+ public weakDependency: number[];
+
+ /** FileDescriptorProto messageType. */
+ public messageType: google.protobuf.IDescriptorProto[];
+
+ /** FileDescriptorProto enumType. */
+ public enumType: google.protobuf.IEnumDescriptorProto[];
+
+ /** FileDescriptorProto service. */
+ public service: google.protobuf.IServiceDescriptorProto[];
+
+ /** FileDescriptorProto extension. */
+ public extension: google.protobuf.IFieldDescriptorProto[];
+
+ /** FileDescriptorProto options. */
+ public options?: (google.protobuf.IFileOptions|null);
+
+ /** FileDescriptorProto sourceCodeInfo. */
+ public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
+
+ /** FileDescriptorProto syntax. */
+ public syntax: string;
+
+ /** FileDescriptorProto edition. */
+ public edition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /**
+ * Creates a new FileDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @param message FileDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @param message FileDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Verifies a FileDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified.
+ * @param message FileDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DescriptorProto. */
+ interface IDescriptorProto {
+
+ /** DescriptorProto name */
+ name?: (string|null);
+
+ /** DescriptorProto field */
+ field?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** DescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** DescriptorProto nestedType */
+ nestedType?: (google.protobuf.IDescriptorProto[]|null);
+
+ /** DescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
+
+ /** DescriptorProto extensionRange */
+ extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null);
+
+ /** DescriptorProto oneofDecl */
+ oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null);
+
+ /** DescriptorProto options */
+ options?: (google.protobuf.IMessageOptions|null);
+
+ /** DescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null);
+
+ /** DescriptorProto reservedName */
+ reservedName?: (string[]|null);
+ }
+
+ /** Represents a DescriptorProto. */
+ class DescriptorProto implements IDescriptorProto {
+
+ /**
+ * Constructs a new DescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDescriptorProto);
+
+ /** DescriptorProto name. */
+ public name: string;
+
+ /** DescriptorProto field. */
+ public field: google.protobuf.IFieldDescriptorProto[];
+
+ /** DescriptorProto extension. */
+ public extension: google.protobuf.IFieldDescriptorProto[];
+
+ /** DescriptorProto nestedType. */
+ public nestedType: google.protobuf.IDescriptorProto[];
+
+ /** DescriptorProto enumType. */
+ public enumType: google.protobuf.IEnumDescriptorProto[];
+
+ /** DescriptorProto extensionRange. */
+ public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[];
+
+ /** DescriptorProto oneofDecl. */
+ public oneofDecl: google.protobuf.IOneofDescriptorProto[];
+
+ /** DescriptorProto options. */
+ public options?: (google.protobuf.IMessageOptions|null);
+
+ /** DescriptorProto reservedRange. */
+ public reservedRange: google.protobuf.DescriptorProto.IReservedRange[];
+
+ /** DescriptorProto reservedName. */
+ public reservedName: string[];
+
+ /**
+ * Creates a new DescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto;
+
+ /**
+ * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @param message DescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @param message DescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto;
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto;
+
+ /**
+ * Verifies a DescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto;
+
+ /**
+ * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified.
+ * @param message DescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DescriptorProto {
+
+ /** Properties of an ExtensionRange. */
+ interface IExtensionRange {
+
+ /** ExtensionRange start */
+ start?: (number|null);
+
+ /** ExtensionRange end */
+ end?: (number|null);
+
+ /** ExtensionRange options */
+ options?: (google.protobuf.IExtensionRangeOptions|null);
+ }
+
+ /** Represents an ExtensionRange. */
+ class ExtensionRange implements IExtensionRange {
+
+ /**
+ * Constructs a new ExtensionRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange);
+
+ /** ExtensionRange start. */
+ public start: number;
+
+ /** ExtensionRange end. */
+ public end: number;
+
+ /** ExtensionRange options. */
+ public options?: (google.protobuf.IExtensionRangeOptions|null);
+
+ /**
+ * Creates a new ExtensionRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExtensionRange instance
+ */
+ public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @param message ExtensionRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @param message ExtensionRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtensionRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExtensionRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Verifies an ExtensionRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExtensionRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified.
+ * @param message ExtensionRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExtensionRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExtensionRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ReservedRange. */
+ interface IReservedRange {
+
+ /** ReservedRange start */
+ start?: (number|null);
+
+ /** ReservedRange end */
+ end?: (number|null);
+ }
+
+ /** Represents a ReservedRange. */
+ class ReservedRange implements IReservedRange {
+
+ /**
+ * Constructs a new ReservedRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.DescriptorProto.IReservedRange);
+
+ /** ReservedRange start. */
+ public start: number;
+
+ /** ReservedRange end. */
+ public end: number;
+
+ /**
+ * Creates a new ReservedRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReservedRange instance
+ */
+ public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @param message ReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @param message ReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Verifies a ReservedRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReservedRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Creates a plain object from a ReservedRange message. Also converts values to other types if specified.
+ * @param message ReservedRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReservedRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReservedRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an ExtensionRangeOptions. */
+ interface IExtensionRangeOptions {
+
+ /** ExtensionRangeOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** ExtensionRangeOptions declaration */
+ declaration?: (google.protobuf.ExtensionRangeOptions.IDeclaration[]|null);
+
+ /** ExtensionRangeOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** ExtensionRangeOptions verification */
+ verification?: (google.protobuf.ExtensionRangeOptions.VerificationState|keyof typeof google.protobuf.ExtensionRangeOptions.VerificationState|null);
+ }
+
+ /** Represents an ExtensionRangeOptions. */
+ class ExtensionRangeOptions implements IExtensionRangeOptions {
+
+ /**
+ * Constructs a new ExtensionRangeOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IExtensionRangeOptions);
+
+ /** ExtensionRangeOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /** ExtensionRangeOptions declaration. */
+ public declaration: google.protobuf.ExtensionRangeOptions.IDeclaration[];
+
+ /** ExtensionRangeOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** ExtensionRangeOptions verification. */
+ public verification: (google.protobuf.ExtensionRangeOptions.VerificationState|keyof typeof google.protobuf.ExtensionRangeOptions.VerificationState);
+
+ /**
+ * Creates a new ExtensionRangeOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExtensionRangeOptions instance
+ */
+ public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
+ * @param message ExtensionRangeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
+ * @param message ExtensionRangeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtensionRangeOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtensionRangeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExtensionRangeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Verifies an ExtensionRangeOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExtensionRangeOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified.
+ * @param message ExtensionRangeOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExtensionRangeOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExtensionRangeOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ExtensionRangeOptions {
+
+ /** Properties of a Declaration. */
+ interface IDeclaration {
+
+ /** Declaration number */
+ number?: (number|null);
+
+ /** Declaration fullName */
+ fullName?: (string|null);
+
+ /** Declaration type */
+ type?: (string|null);
+
+ /** Declaration reserved */
+ reserved?: (boolean|null);
+
+ /** Declaration repeated */
+ repeated?: (boolean|null);
+ }
+
+ /** Represents a Declaration. */
+ class Declaration implements IDeclaration {
+
+ /**
+ * Constructs a new Declaration.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ExtensionRangeOptions.IDeclaration);
+
+ /** Declaration number. */
+ public number: number;
+
+ /** Declaration fullName. */
+ public fullName: string;
+
+ /** Declaration type. */
+ public type: string;
+
+ /** Declaration reserved. */
+ public reserved: boolean;
+
+ /** Declaration repeated. */
+ public repeated: boolean;
+
+ /**
+ * Creates a new Declaration instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Declaration instance
+ */
+ public static create(properties?: google.protobuf.ExtensionRangeOptions.IDeclaration): google.protobuf.ExtensionRangeOptions.Declaration;
+
+ /**
+ * Encodes the specified Declaration message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages.
+ * @param message Declaration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ExtensionRangeOptions.IDeclaration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Declaration message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages.
+ * @param message Declaration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ExtensionRangeOptions.IDeclaration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Declaration message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Declaration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions.Declaration;
+
+ /**
+ * Decodes a Declaration message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Declaration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions.Declaration;
+
+ /**
+ * Verifies a Declaration message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Declaration message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Declaration
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions.Declaration;
+
+ /**
+ * Creates a plain object from a Declaration message. Also converts values to other types if specified.
+ * @param message Declaration
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ExtensionRangeOptions.Declaration, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Declaration to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Declaration
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** VerificationState enum. */
+ enum VerificationState {
+ DECLARATION = 0,
+ UNVERIFIED = 1
+ }
+ }
+
+ /** Properties of a FieldDescriptorProto. */
+ interface IFieldDescriptorProto {
+
+ /** FieldDescriptorProto name */
+ name?: (string|null);
+
+ /** FieldDescriptorProto number */
+ number?: (number|null);
+
+ /** FieldDescriptorProto label */
+ label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null);
+
+ /** FieldDescriptorProto type */
+ type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null);
+
+ /** FieldDescriptorProto typeName */
+ typeName?: (string|null);
+
+ /** FieldDescriptorProto extendee */
+ extendee?: (string|null);
+
+ /** FieldDescriptorProto defaultValue */
+ defaultValue?: (string|null);
+
+ /** FieldDescriptorProto oneofIndex */
+ oneofIndex?: (number|null);
+
+ /** FieldDescriptorProto jsonName */
+ jsonName?: (string|null);
+
+ /** FieldDescriptorProto options */
+ options?: (google.protobuf.IFieldOptions|null);
+
+ /** FieldDescriptorProto proto3Optional */
+ proto3Optional?: (boolean|null);
+ }
+
+ /** Represents a FieldDescriptorProto. */
+ class FieldDescriptorProto implements IFieldDescriptorProto {
+
+ /**
+ * Constructs a new FieldDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldDescriptorProto);
+
+ /** FieldDescriptorProto name. */
+ public name: string;
+
+ /** FieldDescriptorProto number. */
+ public number: number;
+
+ /** FieldDescriptorProto label. */
+ public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label);
+
+ /** FieldDescriptorProto type. */
+ public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type);
+
+ /** FieldDescriptorProto typeName. */
+ public typeName: string;
+
+ /** FieldDescriptorProto extendee. */
+ public extendee: string;
+
+ /** FieldDescriptorProto defaultValue. */
+ public defaultValue: string;
+
+ /** FieldDescriptorProto oneofIndex. */
+ public oneofIndex: number;
+
+ /** FieldDescriptorProto jsonName. */
+ public jsonName: string;
+
+ /** FieldDescriptorProto options. */
+ public options?: (google.protobuf.IFieldOptions|null);
+
+ /** FieldDescriptorProto proto3Optional. */
+ public proto3Optional: boolean;
+
+ /**
+ * Creates a new FieldDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
+ * @param message FieldDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
+ * @param message FieldDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Verifies a FieldDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified.
+ * @param message FieldDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldDescriptorProto {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_DOUBLE = 1,
+ TYPE_FLOAT = 2,
+ TYPE_INT64 = 3,
+ TYPE_UINT64 = 4,
+ TYPE_INT32 = 5,
+ TYPE_FIXED64 = 6,
+ TYPE_FIXED32 = 7,
+ TYPE_BOOL = 8,
+ TYPE_STRING = 9,
+ TYPE_GROUP = 10,
+ TYPE_MESSAGE = 11,
+ TYPE_BYTES = 12,
+ TYPE_UINT32 = 13,
+ TYPE_ENUM = 14,
+ TYPE_SFIXED32 = 15,
+ TYPE_SFIXED64 = 16,
+ TYPE_SINT32 = 17,
+ TYPE_SINT64 = 18
+ }
+
+ /** Label enum. */
+ enum Label {
+ LABEL_OPTIONAL = 1,
+ LABEL_REPEATED = 3,
+ LABEL_REQUIRED = 2
+ }
+ }
+
+ /** Properties of an OneofDescriptorProto. */
+ interface IOneofDescriptorProto {
+
+ /** OneofDescriptorProto name */
+ name?: (string|null);
+
+ /** OneofDescriptorProto options */
+ options?: (google.protobuf.IOneofOptions|null);
+ }
+
+ /** Represents an OneofDescriptorProto. */
+ class OneofDescriptorProto implements IOneofDescriptorProto {
+
+ /**
+ * Constructs a new OneofDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofDescriptorProto);
+
+ /** OneofDescriptorProto name. */
+ public name: string;
+
+ /** OneofDescriptorProto options. */
+ public options?: (google.protobuf.IOneofOptions|null);
+
+ /**
+ * Creates a new OneofDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneofDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
+ * @param message OneofDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
+ * @param message OneofDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneofDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneofDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneofDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Verifies an OneofDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneofDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified.
+ * @param message OneofDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneofDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneofDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumDescriptorProto. */
+ interface IEnumDescriptorProto {
+
+ /** EnumDescriptorProto name */
+ name?: (string|null);
+
+ /** EnumDescriptorProto value */
+ value?: (google.protobuf.IEnumValueDescriptorProto[]|null);
+
+ /** EnumDescriptorProto options */
+ options?: (google.protobuf.IEnumOptions|null);
+
+ /** EnumDescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null);
+
+ /** EnumDescriptorProto reservedName */
+ reservedName?: (string[]|null);
+ }
+
+ /** Represents an EnumDescriptorProto. */
+ class EnumDescriptorProto implements IEnumDescriptorProto {
+
+ /**
+ * Constructs a new EnumDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumDescriptorProto);
+
+ /** EnumDescriptorProto name. */
+ public name: string;
+
+ /** EnumDescriptorProto value. */
+ public value: google.protobuf.IEnumValueDescriptorProto[];
+
+ /** EnumDescriptorProto options. */
+ public options?: (google.protobuf.IEnumOptions|null);
+
+ /** EnumDescriptorProto reservedRange. */
+ public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[];
+
+ /** EnumDescriptorProto reservedName. */
+ public reservedName: string[];
+
+ /**
+ * Creates a new EnumDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
+ * @param message EnumDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
+ * @param message EnumDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Verifies an EnumDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified.
+ * @param message EnumDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace EnumDescriptorProto {
+
+ /** Properties of an EnumReservedRange. */
+ interface IEnumReservedRange {
+
+ /** EnumReservedRange start */
+ start?: (number|null);
+
+ /** EnumReservedRange end */
+ end?: (number|null);
+ }
+
+ /** Represents an EnumReservedRange. */
+ class EnumReservedRange implements IEnumReservedRange {
+
+ /**
+ * Constructs a new EnumReservedRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange);
+
+ /** EnumReservedRange start. */
+ public start: number;
+
+ /** EnumReservedRange end. */
+ public end: number;
+
+ /**
+ * Creates a new EnumReservedRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumReservedRange instance
+ */
+ public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
+ * @param message EnumReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
+ * @param message EnumReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumReservedRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Verifies an EnumReservedRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumReservedRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified.
+ * @param message EnumReservedRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumReservedRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumReservedRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an EnumValueDescriptorProto. */
+ interface IEnumValueDescriptorProto {
+
+ /** EnumValueDescriptorProto name */
+ name?: (string|null);
+
+ /** EnumValueDescriptorProto number */
+ number?: (number|null);
+
+ /** EnumValueDescriptorProto options */
+ options?: (google.protobuf.IEnumValueOptions|null);
+ }
+
+ /** Represents an EnumValueDescriptorProto. */
+ class EnumValueDescriptorProto implements IEnumValueDescriptorProto {
+
+ /**
+ * Constructs a new EnumValueDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueDescriptorProto);
+
+ /** EnumValueDescriptorProto name. */
+ public name: string;
+
+ /** EnumValueDescriptorProto number. */
+ public number: number;
+
+ /** EnumValueDescriptorProto options. */
+ public options?: (google.protobuf.IEnumValueOptions|null);
+
+ /**
+ * Creates a new EnumValueDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValueDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
+ * @param message EnumValueDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
+ * @param message EnumValueDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValueDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValueDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValueDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Verifies an EnumValueDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValueDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified.
+ * @param message EnumValueDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValueDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValueDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceDescriptorProto. */
+ interface IServiceDescriptorProto {
+
+ /** ServiceDescriptorProto name */
+ name?: (string|null);
+
+ /** ServiceDescriptorProto method */
+ method?: (google.protobuf.IMethodDescriptorProto[]|null);
+
+ /** ServiceDescriptorProto options */
+ options?: (google.protobuf.IServiceOptions|null);
+ }
+
+ /** Represents a ServiceDescriptorProto. */
+ class ServiceDescriptorProto implements IServiceDescriptorProto {
+
+ /**
+ * Constructs a new ServiceDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IServiceDescriptorProto);
+
+ /** ServiceDescriptorProto name. */
+ public name: string;
+
+ /** ServiceDescriptorProto method. */
+ public method: google.protobuf.IMethodDescriptorProto[];
+
+ /** ServiceDescriptorProto options. */
+ public options?: (google.protobuf.IServiceOptions|null);
+
+ /**
+ * Creates a new ServiceDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
+ * @param message ServiceDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
+ * @param message ServiceDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Verifies a ServiceDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified.
+ * @param message ServiceDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodDescriptorProto. */
+ interface IMethodDescriptorProto {
+
+ /** MethodDescriptorProto name */
+ name?: (string|null);
+
+ /** MethodDescriptorProto inputType */
+ inputType?: (string|null);
+
+ /** MethodDescriptorProto outputType */
+ outputType?: (string|null);
+
+ /** MethodDescriptorProto options */
+ options?: (google.protobuf.IMethodOptions|null);
+
+ /** MethodDescriptorProto clientStreaming */
+ clientStreaming?: (boolean|null);
+
+ /** MethodDescriptorProto serverStreaming */
+ serverStreaming?: (boolean|null);
+ }
+
+ /** Represents a MethodDescriptorProto. */
+ class MethodDescriptorProto implements IMethodDescriptorProto {
+
+ /**
+ * Constructs a new MethodDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethodDescriptorProto);
+
+ /** MethodDescriptorProto name. */
+ public name: string;
+
+ /** MethodDescriptorProto inputType. */
+ public inputType: string;
+
+ /** MethodDescriptorProto outputType. */
+ public outputType: string;
+
+ /** MethodDescriptorProto options. */
+ public options?: (google.protobuf.IMethodOptions|null);
+
+ /** MethodDescriptorProto clientStreaming. */
+ public clientStreaming: boolean;
+
+ /** MethodDescriptorProto serverStreaming. */
+ public serverStreaming: boolean;
+
+ /**
+ * Creates a new MethodDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
+ * @param message MethodDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
+ * @param message MethodDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Verifies a MethodDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified.
+ * @param message MethodDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FileOptions. */
+ interface IFileOptions {
+
+ /** FileOptions javaPackage */
+ javaPackage?: (string|null);
+
+ /** FileOptions javaOuterClassname */
+ javaOuterClassname?: (string|null);
+
+ /** FileOptions javaMultipleFiles */
+ javaMultipleFiles?: (boolean|null);
+
+ /** FileOptions javaGenerateEqualsAndHash */
+ javaGenerateEqualsAndHash?: (boolean|null);
+
+ /** FileOptions javaStringCheckUtf8 */
+ javaStringCheckUtf8?: (boolean|null);
+
+ /** FileOptions optimizeFor */
+ optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null);
+
+ /** FileOptions goPackage */
+ goPackage?: (string|null);
+
+ /** FileOptions ccGenericServices */
+ ccGenericServices?: (boolean|null);
+
+ /** FileOptions javaGenericServices */
+ javaGenericServices?: (boolean|null);
+
+ /** FileOptions pyGenericServices */
+ pyGenericServices?: (boolean|null);
+
+ /** FileOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** FileOptions ccEnableArenas */
+ ccEnableArenas?: (boolean|null);
+
+ /** FileOptions objcClassPrefix */
+ objcClassPrefix?: (string|null);
+
+ /** FileOptions csharpNamespace */
+ csharpNamespace?: (string|null);
+
+ /** FileOptions swiftPrefix */
+ swiftPrefix?: (string|null);
+
+ /** FileOptions phpClassPrefix */
+ phpClassPrefix?: (string|null);
+
+ /** FileOptions phpNamespace */
+ phpNamespace?: (string|null);
+
+ /** FileOptions phpMetadataNamespace */
+ phpMetadataNamespace?: (string|null);
+
+ /** FileOptions rubyPackage */
+ rubyPackage?: (string|null);
+
+ /** FileOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** FileOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** FileOptions .google.api.resourceDefinition */
+ ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null);
+ }
+
+ /** Represents a FileOptions. */
+ class FileOptions implements IFileOptions {
+
+ /**
+ * Constructs a new FileOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileOptions);
+
+ /** FileOptions javaPackage. */
+ public javaPackage: string;
+
+ /** FileOptions javaOuterClassname. */
+ public javaOuterClassname: string;
+
+ /** FileOptions javaMultipleFiles. */
+ public javaMultipleFiles: boolean;
+
+ /** FileOptions javaGenerateEqualsAndHash. */
+ public javaGenerateEqualsAndHash: boolean;
+
+ /** FileOptions javaStringCheckUtf8. */
+ public javaStringCheckUtf8: boolean;
+
+ /** FileOptions optimizeFor. */
+ public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode);
+
+ /** FileOptions goPackage. */
+ public goPackage: string;
+
+ /** FileOptions ccGenericServices. */
+ public ccGenericServices: boolean;
+
+ /** FileOptions javaGenericServices. */
+ public javaGenericServices: boolean;
+
+ /** FileOptions pyGenericServices. */
+ public pyGenericServices: boolean;
+
+ /** FileOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FileOptions ccEnableArenas. */
+ public ccEnableArenas: boolean;
+
+ /** FileOptions objcClassPrefix. */
+ public objcClassPrefix: string;
+
+ /** FileOptions csharpNamespace. */
+ public csharpNamespace: string;
+
+ /** FileOptions swiftPrefix. */
+ public swiftPrefix: string;
+
+ /** FileOptions phpClassPrefix. */
+ public phpClassPrefix: string;
+
+ /** FileOptions phpNamespace. */
+ public phpNamespace: string;
+
+ /** FileOptions phpMetadataNamespace. */
+ public phpMetadataNamespace: string;
+
+ /** FileOptions rubyPackage. */
+ public rubyPackage: string;
+
+ /** FileOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** FileOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FileOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileOptions instance
+ */
+ public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions;
+
+ /**
+ * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions;
+
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions;
+
+ /**
+ * Verifies a FileOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions;
+
+ /**
+ * Creates a plain object from a FileOptions message. Also converts values to other types if specified.
+ * @param message FileOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FileOptions {
+
+ /** OptimizeMode enum. */
+ enum OptimizeMode {
+ SPEED = 1,
+ CODE_SIZE = 2,
+ LITE_RUNTIME = 3
+ }
+ }
+
+ /** Properties of a MessageOptions. */
+ interface IMessageOptions {
+
+ /** MessageOptions messageSetWireFormat */
+ messageSetWireFormat?: (boolean|null);
+
+ /** MessageOptions noStandardDescriptorAccessor */
+ noStandardDescriptorAccessor?: (boolean|null);
+
+ /** MessageOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** MessageOptions mapEntry */
+ mapEntry?: (boolean|null);
+
+ /** MessageOptions deprecatedLegacyJsonFieldConflicts */
+ deprecatedLegacyJsonFieldConflicts?: (boolean|null);
+
+ /** MessageOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** MessageOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** MessageOptions .google.api.resource */
+ ".google.api.resource"?: (google.api.IResourceDescriptor|null);
+ }
+
+ /** Represents a MessageOptions. */
+ class MessageOptions implements IMessageOptions {
+
+ /**
+ * Constructs a new MessageOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMessageOptions);
+
+ /** MessageOptions messageSetWireFormat. */
+ public messageSetWireFormat: boolean;
+
+ /** MessageOptions noStandardDescriptorAccessor. */
+ public noStandardDescriptorAccessor: boolean;
+
+ /** MessageOptions deprecated. */
+ public deprecated: boolean;
+
+ /** MessageOptions mapEntry. */
+ public mapEntry: boolean;
+
+ /** MessageOptions deprecatedLegacyJsonFieldConflicts. */
+ public deprecatedLegacyJsonFieldConflicts: boolean;
+
+ /** MessageOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** MessageOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new MessageOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MessageOptions instance
+ */
+ public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions;
+
+ /**
+ * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MessageOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MessageOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions;
+
+ /**
+ * Decodes a MessageOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MessageOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions;
+
+ /**
+ * Verifies a MessageOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MessageOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions;
+
+ /**
+ * Creates a plain object from a MessageOptions message. Also converts values to other types if specified.
+ * @param message MessageOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MessageOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MessageOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldOptions. */
+ interface IFieldOptions {
+
+ /** FieldOptions ctype */
+ ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null);
+
+ /** FieldOptions packed */
+ packed?: (boolean|null);
+
+ /** FieldOptions jstype */
+ jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null);
+
+ /** FieldOptions lazy */
+ lazy?: (boolean|null);
+
+ /** FieldOptions unverifiedLazy */
+ unverifiedLazy?: (boolean|null);
+
+ /** FieldOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** FieldOptions weak */
+ weak?: (boolean|null);
+
+ /** FieldOptions debugRedact */
+ debugRedact?: (boolean|null);
+
+ /** FieldOptions retention */
+ retention?: (google.protobuf.FieldOptions.OptionRetention|keyof typeof google.protobuf.FieldOptions.OptionRetention|null);
+
+ /** FieldOptions targets */
+ targets?: (google.protobuf.FieldOptions.OptionTargetType[]|null);
+
+ /** FieldOptions editionDefaults */
+ editionDefaults?: (google.protobuf.FieldOptions.IEditionDefault[]|null);
+
+ /** FieldOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** FieldOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** FieldOptions .google.api.fieldBehavior */
+ ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
+
+ /** FieldOptions .google.api.fieldInfo */
+ ".google.api.fieldInfo"?: (google.api.IFieldInfo|null);
+
+ /** FieldOptions .google.api.resourceReference */
+ ".google.api.resourceReference"?: (google.api.IResourceReference|null);
+ }
+
+ /** Represents a FieldOptions. */
+ class FieldOptions implements IFieldOptions {
+
+ /**
+ * Constructs a new FieldOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldOptions);
+
+ /** FieldOptions ctype. */
+ public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType);
+
+ /** FieldOptions packed. */
+ public packed: boolean;
+
+ /** FieldOptions jstype. */
+ public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType);
+
+ /** FieldOptions lazy. */
+ public lazy: boolean;
+
+ /** FieldOptions unverifiedLazy. */
+ public unverifiedLazy: boolean;
+
+ /** FieldOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FieldOptions weak. */
+ public weak: boolean;
+
+ /** FieldOptions debugRedact. */
+ public debugRedact: boolean;
+
+ /** FieldOptions retention. */
+ public retention: (google.protobuf.FieldOptions.OptionRetention|keyof typeof google.protobuf.FieldOptions.OptionRetention);
+
+ /** FieldOptions targets. */
+ public targets: google.protobuf.FieldOptions.OptionTargetType[];
+
+ /** FieldOptions editionDefaults. */
+ public editionDefaults: google.protobuf.FieldOptions.IEditionDefault[];
+
+ /** FieldOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** FieldOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FieldOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldOptions instance
+ */
+ public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions;
+
+ /**
+ * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions;
+
+ /**
+ * Verifies a FieldOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions;
+
+ /**
+ * Creates a plain object from a FieldOptions message. Also converts values to other types if specified.
+ * @param message FieldOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldOptions {
+
+ /** CType enum. */
+ enum CType {
+ STRING = 0,
+ CORD = 1,
+ STRING_PIECE = 2
+ }
+
+ /** JSType enum. */
+ enum JSType {
+ JS_NORMAL = 0,
+ JS_STRING = 1,
+ JS_NUMBER = 2
+ }
+
+ /** OptionRetention enum. */
+ enum OptionRetention {
+ RETENTION_UNKNOWN = 0,
+ RETENTION_RUNTIME = 1,
+ RETENTION_SOURCE = 2
+ }
+
+ /** OptionTargetType enum. */
+ enum OptionTargetType {
+ TARGET_TYPE_UNKNOWN = 0,
+ TARGET_TYPE_FILE = 1,
+ TARGET_TYPE_EXTENSION_RANGE = 2,
+ TARGET_TYPE_MESSAGE = 3,
+ TARGET_TYPE_FIELD = 4,
+ TARGET_TYPE_ONEOF = 5,
+ TARGET_TYPE_ENUM = 6,
+ TARGET_TYPE_ENUM_ENTRY = 7,
+ TARGET_TYPE_SERVICE = 8,
+ TARGET_TYPE_METHOD = 9
+ }
+
+ /** Properties of an EditionDefault. */
+ interface IEditionDefault {
+
+ /** EditionDefault edition */
+ edition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+
+ /** EditionDefault value */
+ value?: (string|null);
+ }
+
+ /** Represents an EditionDefault. */
+ class EditionDefault implements IEditionDefault {
+
+ /**
+ * Constructs a new EditionDefault.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.FieldOptions.IEditionDefault);
+
+ /** EditionDefault edition. */
+ public edition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /** EditionDefault value. */
+ public value: string;
+
+ /**
+ * Creates a new EditionDefault instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EditionDefault instance
+ */
+ public static create(properties?: google.protobuf.FieldOptions.IEditionDefault): google.protobuf.FieldOptions.EditionDefault;
+
+ /**
+ * Encodes the specified EditionDefault message. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages.
+ * @param message EditionDefault message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.FieldOptions.IEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages.
+ * @param message EditionDefault message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.FieldOptions.IEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EditionDefault message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EditionDefault
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions.EditionDefault;
+
+ /**
+ * Decodes an EditionDefault message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EditionDefault
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions.EditionDefault;
+
+ /**
+ * Verifies an EditionDefault message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EditionDefault message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EditionDefault
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions.EditionDefault;
+
+ /**
+ * Creates a plain object from an EditionDefault message. Also converts values to other types if specified.
+ * @param message EditionDefault
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldOptions.EditionDefault, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EditionDefault to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EditionDefault
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an OneofOptions. */
+ interface IOneofOptions {
+
+ /** OneofOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** OneofOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an OneofOptions. */
+ class OneofOptions implements IOneofOptions {
+
+ /**
+ * Constructs a new OneofOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofOptions);
+
+ /** OneofOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** OneofOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new OneofOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneofOptions instance
+ */
+ public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions;
+
+ /**
+ * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneofOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneofOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions;
+
+ /**
+ * Verifies an OneofOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneofOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions;
+
+ /**
+ * Creates a plain object from an OneofOptions message. Also converts values to other types if specified.
+ * @param message OneofOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneofOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneofOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumOptions. */
+ interface IEnumOptions {
+
+ /** EnumOptions allowAlias */
+ allowAlias?: (boolean|null);
+
+ /** EnumOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumOptions deprecatedLegacyJsonFieldConflicts */
+ deprecatedLegacyJsonFieldConflicts?: (boolean|null);
+
+ /** EnumOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** EnumOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumOptions. */
+ class EnumOptions implements IEnumOptions {
+
+ /**
+ * Constructs a new EnumOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumOptions);
+
+ /** EnumOptions allowAlias. */
+ public allowAlias: boolean;
+
+ /** EnumOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumOptions deprecatedLegacyJsonFieldConflicts. */
+ public deprecatedLegacyJsonFieldConflicts: boolean;
+
+ /** EnumOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** EnumOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new EnumOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions;
+
+ /**
+ * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions;
+
+ /**
+ * Verifies an EnumOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions;
+
+ /**
+ * Creates a plain object from an EnumOptions message. Also converts values to other types if specified.
+ * @param message EnumOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumValueOptions. */
+ interface IEnumValueOptions {
+
+ /** EnumValueOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumValueOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** EnumValueOptions debugRedact */
+ debugRedact?: (boolean|null);
+
+ /** EnumValueOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumValueOptions. */
+ class EnumValueOptions implements IEnumValueOptions {
+
+ /**
+ * Constructs a new EnumValueOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueOptions);
+
+ /** EnumValueOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumValueOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** EnumValueOptions debugRedact. */
+ public debugRedact: boolean;
+
+ /** EnumValueOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new EnumValueOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValueOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions;
+
+ /**
+ * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValueOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValueOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions;
+
+ /**
+ * Verifies an EnumValueOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValueOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions;
+
+ /**
+ * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified.
+ * @param message EnumValueOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValueOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValueOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceOptions. */
+ interface IServiceOptions {
+
+ /** ServiceOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** ServiceOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** ServiceOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** ServiceOptions .google.api.defaultHost */
+ ".google.api.defaultHost"?: (string|null);
+
+ /** ServiceOptions .google.api.oauthScopes */
+ ".google.api.oauthScopes"?: (string|null);
+
+ /** ServiceOptions .google.api.apiVersion */
+ ".google.api.apiVersion"?: (string|null);
+ }
+
+ /** Represents a ServiceOptions. */
+ class ServiceOptions implements IServiceOptions {
+
+ /**
+ * Constructs a new ServiceOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IServiceOptions);
+
+ /** ServiceOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** ServiceOptions deprecated. */
+ public deprecated: boolean;
+
+ /** ServiceOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new ServiceOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceOptions instance
+ */
+ public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions;
+
+ /**
+ * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions;
+
+ /**
+ * Decodes a ServiceOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions;
+
+ /**
+ * Verifies a ServiceOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions;
+
+ /**
+ * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified.
+ * @param message ServiceOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodOptions. */
+ interface IMethodOptions {
+
+ /** MethodOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** MethodOptions idempotencyLevel */
+ idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null);
+
+ /** MethodOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** MethodOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** MethodOptions .google.api.http */
+ ".google.api.http"?: (google.api.IHttpRule|null);
+
+ /** MethodOptions .google.api.methodSignature */
+ ".google.api.methodSignature"?: (string[]|null);
+
+ /** MethodOptions .google.api.routing */
+ ".google.api.routing"?: (google.api.IRoutingRule|null);
+
+ /** MethodOptions .google.longrunning.operationInfo */
+ ".google.longrunning.operationInfo"?: (google.longrunning.IOperationInfo|null);
+ }
+
+ /** Represents a MethodOptions. */
+ class MethodOptions implements IMethodOptions {
+
+ /**
+ * Constructs a new MethodOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethodOptions);
+
+ /** MethodOptions deprecated. */
+ public deprecated: boolean;
+
+ /** MethodOptions idempotencyLevel. */
+ public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel);
+
+ /** MethodOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** MethodOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new MethodOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodOptions instance
+ */
+ public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions;
+
+ /**
+ * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions;
+
+ /**
+ * Verifies a MethodOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions;
+
+ /**
+ * Creates a plain object from a MethodOptions message. Also converts values to other types if specified.
+ * @param message MethodOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MethodOptions {
+
+ /** IdempotencyLevel enum. */
+ enum IdempotencyLevel {
+ IDEMPOTENCY_UNKNOWN = 0,
+ NO_SIDE_EFFECTS = 1,
+ IDEMPOTENT = 2
+ }
+ }
+
+ /** Properties of an UninterpretedOption. */
+ interface IUninterpretedOption {
+
+ /** UninterpretedOption name */
+ name?: (google.protobuf.UninterpretedOption.INamePart[]|null);
+
+ /** UninterpretedOption identifierValue */
+ identifierValue?: (string|null);
+
+ /** UninterpretedOption positiveIntValue */
+ positiveIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption negativeIntValue */
+ negativeIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption doubleValue */
+ doubleValue?: (number|null);
+
+ /** UninterpretedOption stringValue */
+ stringValue?: (Uint8Array|Buffer|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|Buffer|string);
+
+ /** UninterpretedOption aggregateValue. */
+ public aggregateValue: string;
+
+ /**
+ * Creates a new UninterpretedOption instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UninterpretedOption instance
+ */
+ public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption;
+
+ /**
+ * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UninterpretedOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UninterpretedOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption;
+
+ /**
+ * Verifies an UninterpretedOption message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UninterpretedOption
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption;
+
+ /**
+ * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified.
+ * @param message UninterpretedOption
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UninterpretedOption to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UninterpretedOption
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace UninterpretedOption {
+
+ /** Properties of a NamePart. */
+ interface INamePart {
+
+ /** NamePart namePart */
+ namePart: string;
+
+ /** NamePart isExtension */
+ isExtension: boolean;
+ }
+
+ /** Represents a NamePart. */
+ class NamePart implements INamePart {
+
+ /**
+ * Constructs a new NamePart.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.UninterpretedOption.INamePart);
+
+ /** NamePart namePart. */
+ public namePart: string;
+
+ /** NamePart isExtension. */
+ public isExtension: boolean;
+
+ /**
+ * Creates a new NamePart instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NamePart instance
+ */
+ public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NamePart
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NamePart
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Verifies a NamePart message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NamePart message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NamePart
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Creates a plain object from a NamePart message. Also converts values to other types if specified.
+ * @param message NamePart
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NamePart to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NamePart
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a FeatureSet. */
+ interface IFeatureSet {
+
+ /** FeatureSet fieldPresence */
+ fieldPresence?: (google.protobuf.FeatureSet.FieldPresence|keyof typeof google.protobuf.FeatureSet.FieldPresence|null);
+
+ /** FeatureSet enumType */
+ enumType?: (google.protobuf.FeatureSet.EnumType|keyof typeof google.protobuf.FeatureSet.EnumType|null);
+
+ /** FeatureSet repeatedFieldEncoding */
+ repeatedFieldEncoding?: (google.protobuf.FeatureSet.RepeatedFieldEncoding|keyof typeof google.protobuf.FeatureSet.RepeatedFieldEncoding|null);
+
+ /** FeatureSet utf8Validation */
+ utf8Validation?: (google.protobuf.FeatureSet.Utf8Validation|keyof typeof google.protobuf.FeatureSet.Utf8Validation|null);
+
+ /** FeatureSet messageEncoding */
+ messageEncoding?: (google.protobuf.FeatureSet.MessageEncoding|keyof typeof google.protobuf.FeatureSet.MessageEncoding|null);
+
+ /** FeatureSet jsonFormat */
+ jsonFormat?: (google.protobuf.FeatureSet.JsonFormat|keyof typeof google.protobuf.FeatureSet.JsonFormat|null);
+ }
+
+ /** Represents a FeatureSet. */
+ class FeatureSet implements IFeatureSet {
+
+ /**
+ * Constructs a new FeatureSet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFeatureSet);
+
+ /** FeatureSet fieldPresence. */
+ public fieldPresence: (google.protobuf.FeatureSet.FieldPresence|keyof typeof google.protobuf.FeatureSet.FieldPresence);
+
+ /** FeatureSet enumType. */
+ public enumType: (google.protobuf.FeatureSet.EnumType|keyof typeof google.protobuf.FeatureSet.EnumType);
+
+ /** FeatureSet repeatedFieldEncoding. */
+ public repeatedFieldEncoding: (google.protobuf.FeatureSet.RepeatedFieldEncoding|keyof typeof google.protobuf.FeatureSet.RepeatedFieldEncoding);
+
+ /** FeatureSet utf8Validation. */
+ public utf8Validation: (google.protobuf.FeatureSet.Utf8Validation|keyof typeof google.protobuf.FeatureSet.Utf8Validation);
+
+ /** FeatureSet messageEncoding. */
+ public messageEncoding: (google.protobuf.FeatureSet.MessageEncoding|keyof typeof google.protobuf.FeatureSet.MessageEncoding);
+
+ /** FeatureSet jsonFormat. */
+ public jsonFormat: (google.protobuf.FeatureSet.JsonFormat|keyof typeof google.protobuf.FeatureSet.JsonFormat);
+
+ /**
+ * Creates a new FeatureSet instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FeatureSet instance
+ */
+ public static create(properties?: google.protobuf.IFeatureSet): google.protobuf.FeatureSet;
+
+ /**
+ * Encodes the specified FeatureSet message. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages.
+ * @param message FeatureSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFeatureSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FeatureSet message, length delimited. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages.
+ * @param message FeatureSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFeatureSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FeatureSet message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FeatureSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FeatureSet;
+
+ /**
+ * Decodes a FeatureSet message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FeatureSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FeatureSet;
+
+ /**
+ * Verifies a FeatureSet message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FeatureSet message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FeatureSet
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSet;
+
+ /**
+ * Creates a plain object from a FeatureSet message. Also converts values to other types if specified.
+ * @param message FeatureSet
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FeatureSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FeatureSet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FeatureSet
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FeatureSet {
+
+ /** FieldPresence enum. */
+ enum FieldPresence {
+ FIELD_PRESENCE_UNKNOWN = 0,
+ EXPLICIT = 1,
+ IMPLICIT = 2,
+ LEGACY_REQUIRED = 3
+ }
+
+ /** EnumType enum. */
+ enum EnumType {
+ ENUM_TYPE_UNKNOWN = 0,
+ OPEN = 1,
+ CLOSED = 2
+ }
+
+ /** RepeatedFieldEncoding enum. */
+ enum RepeatedFieldEncoding {
+ REPEATED_FIELD_ENCODING_UNKNOWN = 0,
+ PACKED = 1,
+ EXPANDED = 2
+ }
+
+ /** Utf8Validation enum. */
+ enum Utf8Validation {
+ UTF8_VALIDATION_UNKNOWN = 0,
+ VERIFY = 2,
+ NONE = 3
+ }
+
+ /** MessageEncoding enum. */
+ enum MessageEncoding {
+ MESSAGE_ENCODING_UNKNOWN = 0,
+ LENGTH_PREFIXED = 1,
+ DELIMITED = 2
+ }
+
+ /** JsonFormat enum. */
+ enum JsonFormat {
+ JSON_FORMAT_UNKNOWN = 0,
+ ALLOW = 1,
+ LEGACY_BEST_EFFORT = 2
+ }
+ }
+
+ /** Properties of a FeatureSetDefaults. */
+ interface IFeatureSetDefaults {
+
+ /** FeatureSetDefaults defaults */
+ defaults?: (google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault[]|null);
+
+ /** FeatureSetDefaults minimumEdition */
+ minimumEdition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+
+ /** FeatureSetDefaults maximumEdition */
+ maximumEdition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+ }
+
+ /** Represents a FeatureSetDefaults. */
+ class FeatureSetDefaults implements IFeatureSetDefaults {
+
+ /**
+ * Constructs a new FeatureSetDefaults.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFeatureSetDefaults);
+
+ /** FeatureSetDefaults defaults. */
+ public defaults: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault[];
+
+ /** FeatureSetDefaults minimumEdition. */
+ public minimumEdition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /** FeatureSetDefaults maximumEdition. */
+ public maximumEdition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /**
+ * Creates a new FeatureSetDefaults instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FeatureSetDefaults instance
+ */
+ public static create(properties?: google.protobuf.IFeatureSetDefaults): google.protobuf.FeatureSetDefaults;
+
+ /**
+ * Encodes the specified FeatureSetDefaults message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages.
+ * @param message FeatureSetDefaults message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFeatureSetDefaults, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FeatureSetDefaults message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages.
+ * @param message FeatureSetDefaults message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFeatureSetDefaults, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FeatureSetDefaults message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FeatureSetDefaults
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FeatureSetDefaults;
+
+ /**
+ * Decodes a FeatureSetDefaults message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FeatureSetDefaults
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FeatureSetDefaults;
+
+ /**
+ * Verifies a FeatureSetDefaults message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FeatureSetDefaults message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FeatureSetDefaults
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSetDefaults;
+
+ /**
+ * Creates a plain object from a FeatureSetDefaults message. Also converts values to other types if specified.
+ * @param message FeatureSetDefaults
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FeatureSetDefaults, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FeatureSetDefaults to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FeatureSetDefaults
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FeatureSetDefaults {
+
+ /** Properties of a FeatureSetEditionDefault. */
+ interface IFeatureSetEditionDefault {
+
+ /** FeatureSetEditionDefault edition */
+ edition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+
+ /** FeatureSetEditionDefault features */
+ features?: (google.protobuf.IFeatureSet|null);
+ }
+
+ /** Represents a FeatureSetEditionDefault. */
+ class FeatureSetEditionDefault implements IFeatureSetEditionDefault {
+
+ /**
+ * Constructs a new FeatureSetEditionDefault.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault);
+
+ /** FeatureSetEditionDefault edition. */
+ public edition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /** FeatureSetEditionDefault features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /**
+ * Creates a new FeatureSetEditionDefault instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FeatureSetEditionDefault instance
+ */
+ public static create(properties?: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault;
+
+ /**
+ * Encodes the specified FeatureSetEditionDefault message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages.
+ * @param message FeatureSetEditionDefault message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FeatureSetEditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages.
+ * @param message FeatureSetEditionDefault message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FeatureSetEditionDefault message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FeatureSetEditionDefault
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault;
+
+ /**
+ * Decodes a FeatureSetEditionDefault message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FeatureSetEditionDefault
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault;
+
+ /**
+ * Verifies a FeatureSetEditionDefault message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FeatureSetEditionDefault message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FeatureSetEditionDefault
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault;
+
+ /**
+ * Creates a plain object from a FeatureSetEditionDefault message. Also converts values to other types if specified.
+ * @param message FeatureSetEditionDefault
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FeatureSetEditionDefault to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FeatureSetEditionDefault
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a SourceCodeInfo. */
+ interface ISourceCodeInfo {
+
+ /** SourceCodeInfo location */
+ location?: (google.protobuf.SourceCodeInfo.ILocation[]|null);
+ }
+
+ /** Represents a SourceCodeInfo. */
+ class SourceCodeInfo implements ISourceCodeInfo {
+
+ /**
+ * Constructs a new SourceCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ISourceCodeInfo);
+
+ /** SourceCodeInfo location. */
+ public location: google.protobuf.SourceCodeInfo.ILocation[];
+
+ /**
+ * Creates a new SourceCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SourceCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SourceCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SourceCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Verifies a SourceCodeInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SourceCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified.
+ * @param message SourceCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SourceCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SourceCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace SourceCodeInfo {
+
+ /** Properties of a Location. */
+ interface ILocation {
+
+ /** Location path */
+ path?: (number[]|null);
+
+ /** Location span */
+ span?: (number[]|null);
+
+ /** Location leadingComments */
+ leadingComments?: (string|null);
+
+ /** Location trailingComments */
+ trailingComments?: (string|null);
+
+ /** Location leadingDetachedComments */
+ leadingDetachedComments?: (string[]|null);
+ }
+
+ /** Represents a Location. */
+ class Location implements ILocation {
+
+ /**
+ * Constructs a new Location.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.SourceCodeInfo.ILocation);
+
+ /** Location path. */
+ public path: number[];
+
+ /** Location span. */
+ public span: number[];
+
+ /** Location leadingComments. */
+ public leadingComments: string;
+
+ /** Location trailingComments. */
+ public trailingComments: string;
+
+ /** Location leadingDetachedComments. */
+ public leadingDetachedComments: string[];
+
+ /**
+ * Creates a new Location instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Location instance
+ */
+ public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Location
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Location
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Verifies a Location message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Location message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Location
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Creates a plain object from a Location message. Also converts values to other types if specified.
+ * @param message Location
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Location to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Location
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a GeneratedCodeInfo. */
+ interface IGeneratedCodeInfo {
+
+ /** GeneratedCodeInfo annotation */
+ annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null);
+ }
+
+ /** Represents a GeneratedCodeInfo. */
+ class GeneratedCodeInfo implements IGeneratedCodeInfo {
+
+ /**
+ * Constructs a new GeneratedCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IGeneratedCodeInfo);
+
+ /** GeneratedCodeInfo annotation. */
+ public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[];
+
+ /**
+ * Creates a new GeneratedCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GeneratedCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GeneratedCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GeneratedCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Verifies a GeneratedCodeInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GeneratedCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified.
+ * @param message GeneratedCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GeneratedCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GeneratedCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace GeneratedCodeInfo {
+
+ /** Properties of an Annotation. */
+ interface IAnnotation {
+
+ /** Annotation path */
+ path?: (number[]|null);
+
+ /** Annotation sourceFile */
+ sourceFile?: (string|null);
+
+ /** Annotation begin */
+ begin?: (number|null);
+
+ /** Annotation end */
+ end?: (number|null);
+
+ /** Annotation semantic */
+ semantic?: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null);
+ }
+
+ /** Represents an Annotation. */
+ class Annotation implements IAnnotation {
+
+ /**
+ * Constructs a new Annotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation);
+
+ /** Annotation path. */
+ public path: number[];
+
+ /** Annotation sourceFile. */
+ public sourceFile: string;
+
+ /** Annotation begin. */
+ public begin: number;
+
+ /** Annotation end. */
+ public end: number;
+
+ /** Annotation semantic. */
+ public semantic: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic);
+
+ /**
+ * Creates a new Annotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Annotation instance
+ */
+ public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Annotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Annotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Verifies an Annotation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Annotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Annotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Creates a plain object from an Annotation message. Also converts values to other types if specified.
+ * @param message Annotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Annotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Annotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Annotation {
+
+ /** Semantic enum. */
+ enum Semantic {
+ NONE = 0,
+ SET = 1,
+ ALIAS = 2
+ }
+ }
+ }
+
+ /** Properties of a Duration. */
+ interface IDuration {
+
+ /** Duration seconds */
+ seconds?: (number|Long|string|null);
+
+ /** Duration nanos */
+ nanos?: (number|null);
+ }
+
+ /** Represents a Duration. */
+ class Duration implements IDuration {
+
+ /**
+ * Constructs a new Duration.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDuration);
+
+ /** Duration seconds. */
+ public seconds: (number|Long|string);
+
+ /** Duration nanos. */
+ public nanos: number;
+
+ /**
+ * Creates a new Duration instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Duration instance
+ */
+ public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration;
+
+ /**
+ * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
+ * @param message Duration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
+ * @param message Duration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Duration message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Duration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration;
+
+ /**
+ * Decodes a Duration message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Duration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Duration;
+
+ /**
+ * Verifies a Duration message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Duration message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Duration
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Duration;
+
+ /**
+ * Creates a plain object from a Duration message. Also converts values to other types if specified.
+ * @param message Duration
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Duration to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Duration
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldMask. */
+ interface IFieldMask {
+
+ /** FieldMask paths */
+ paths?: (string[]|null);
+ }
+
+ /** Represents a FieldMask. */
+ class FieldMask implements IFieldMask {
+
+ /**
+ * Constructs a new FieldMask.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldMask);
+
+ /** FieldMask paths. */
+ public paths: string[];
+
+ /**
+ * Creates a new FieldMask instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldMask instance
+ */
+ public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask;
+
+ /**
+ * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldMask
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldMask;
+
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldMask
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldMask;
+
+ /**
+ * Verifies a FieldMask message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldMask message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldMask
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask;
+
+ /**
+ * Creates a plain object from a FieldMask message. Also converts values to other types if specified.
+ * @param message FieldMask
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldMask to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldMask
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Any. */
+ interface IAny {
+
+ /** Any type_url */
+ type_url?: (string|null);
+
+ /** Any value */
+ value?: (Uint8Array|Buffer|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|Buffer|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;
+ }
+ }
+
+ /** Namespace iam. */
+ namespace iam {
+
+ /** Namespace v1. */
+ namespace v1 {
+
+ /** Represents a IAMPolicy */
+ class IAMPolicy extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new IAMPolicy 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 IAMPolicy 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): IAMPolicy;
+
+ /**
+ * Calls SetIamPolicy.
+ * @param request SetIamPolicyRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Policy
+ */
+ public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest, callback: google.iam.v1.IAMPolicy.SetIamPolicyCallback): void;
+
+ /**
+ * Calls SetIamPolicy.
+ * @param request SetIamPolicyRequest message or plain object
+ * @returns Promise
+ */
+ public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest): Promise;
+
+ /**
+ * Calls GetIamPolicy.
+ * @param request GetIamPolicyRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Policy
+ */
+ public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest, callback: google.iam.v1.IAMPolicy.GetIamPolicyCallback): void;
+
+ /**
+ * Calls GetIamPolicy.
+ * @param request GetIamPolicyRequest message or plain object
+ * @returns Promise
+ */
+ public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest): Promise;
+
+ /**
+ * Calls TestIamPermissions.
+ * @param request TestIamPermissionsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and TestIamPermissionsResponse
+ */
+ public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest, callback: google.iam.v1.IAMPolicy.TestIamPermissionsCallback): void;
+
+ /**
+ * Calls TestIamPermissions.
+ * @param request TestIamPermissionsRequest message or plain object
+ * @returns Promise
+ */
+ public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest): Promise;
+ }
+
+ namespace IAMPolicy {
+
+ /**
+ * Callback as used by {@link google.iam.v1.IAMPolicy|setIamPolicy}.
+ * @param error Error, if any
+ * @param [response] Policy
+ */
+ type SetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void;
+
+ /**
+ * Callback as used by {@link google.iam.v1.IAMPolicy|getIamPolicy}.
+ * @param error Error, if any
+ * @param [response] Policy
+ */
+ type GetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void;
+
+ /**
+ * Callback as used by {@link google.iam.v1.IAMPolicy|testIamPermissions}.
+ * @param error Error, if any
+ * @param [response] TestIamPermissionsResponse
+ */
+ type TestIamPermissionsCallback = (error: (Error|null), response?: google.iam.v1.TestIamPermissionsResponse) => void;
+ }
+
+ /** Properties of a SetIamPolicyRequest. */
+ interface ISetIamPolicyRequest {
+
+ /** SetIamPolicyRequest resource */
+ resource?: (string|null);
+
+ /** SetIamPolicyRequest policy */
+ policy?: (google.iam.v1.IPolicy|null);
+
+ /** SetIamPolicyRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+ }
+
+ /** Represents a SetIamPolicyRequest. */
+ class SetIamPolicyRequest implements ISetIamPolicyRequest {
+
+ /**
+ * Constructs a new SetIamPolicyRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.iam.v1.ISetIamPolicyRequest);
+
+ /** SetIamPolicyRequest resource. */
+ public resource: string;
+
+ /** SetIamPolicyRequest policy. */
+ public policy?: (google.iam.v1.IPolicy|null);
+
+ /** SetIamPolicyRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /**
+ * Creates a new SetIamPolicyRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SetIamPolicyRequest instance
+ */
+ public static create(properties?: google.iam.v1.ISetIamPolicyRequest): google.iam.v1.SetIamPolicyRequest;
+
+ /**
+ * Encodes the specified SetIamPolicyRequest message. Does not implicitly {@link google.iam.v1.SetIamPolicyRequest.verify|verify} messages.
+ * @param message SetIamPolicyRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.iam.v1.ISetIamPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SetIamPolicyRequest message, length delimited. Does not implicitly {@link google.iam.v1.SetIamPolicyRequest.verify|verify} messages.
+ * @param message SetIamPolicyRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.iam.v1.ISetIamPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SetIamPolicyRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SetIamPolicyRequest
+ * @throws {Error} If the payload is 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.iam.v1.SetIamPolicyRequest;
+
+ /**
+ * Decodes a SetIamPolicyRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SetIamPolicyRequest
+ * @throws {Error} If the 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.iam.v1.SetIamPolicyRequest;
+
+ /**
+ * Verifies a SetIamPolicyRequest message.
+ * @param message Plain 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 SetIamPolicyRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SetIamPolicyRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.iam.v1.SetIamPolicyRequest;
+
+ /**
+ * Creates a plain object from a SetIamPolicyRequest message. Also converts values to other types if specified.
+ * @param message SetIamPolicyRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.iam.v1.SetIamPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SetIamPolicyRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SetIamPolicyRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetIamPolicyRequest. */
+ interface IGetIamPolicyRequest {
+
+ /** GetIamPolicyRequest resource */
+ resource?: (string|null);
+
+ /** GetIamPolicyRequest options */
+ options?: (google.iam.v1.IGetPolicyOptions|null);
+ }
+
+ /** Represents a GetIamPolicyRequest. */
+ class GetIamPolicyRequest implements IGetIamPolicyRequest {
+
+ /**
+ * Constructs a new GetIamPolicyRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.iam.v1.IGetIamPolicyRequest);
+
+ /** GetIamPolicyRequest resource. */
+ public resource: string;
+
+ /** GetIamPolicyRequest options. */
+ public options?: (google.iam.v1.IGetPolicyOptions|null);
+
+ /**
+ * Creates a new GetIamPolicyRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetIamPolicyRequest instance
+ */
+ public static create(properties?: google.iam.v1.IGetIamPolicyRequest): google.iam.v1.GetIamPolicyRequest;
+
+ /**
+ * Encodes the specified GetIamPolicyRequest message. Does not implicitly {@link google.iam.v1.GetIamPolicyRequest.verify|verify} messages.
+ * @param message GetIamPolicyRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.iam.v1.IGetIamPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetIamPolicyRequest message, length delimited. Does not implicitly {@link google.iam.v1.GetIamPolicyRequest.verify|verify} messages.
+ * @param message GetIamPolicyRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.iam.v1.IGetIamPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetIamPolicyRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetIamPolicyRequest
+ * @throws {Error} If the payload is 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.iam.v1.GetIamPolicyRequest;
+
+ /**
+ * Decodes a GetIamPolicyRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetIamPolicyRequest
+ * @throws {Error} If the 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.iam.v1.GetIamPolicyRequest;
+
+ /**
+ * Verifies a GetIamPolicyRequest message.
+ * @param message Plain 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 GetIamPolicyRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetIamPolicyRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.iam.v1.GetIamPolicyRequest;
+
+ /**
+ * Creates a plain object from a GetIamPolicyRequest message. Also converts values to other types if specified.
+ * @param message GetIamPolicyRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.iam.v1.GetIamPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetIamPolicyRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetIamPolicyRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TestIamPermissionsRequest. */
+ interface ITestIamPermissionsRequest {
+
+ /** TestIamPermissionsRequest resource */
+ resource?: (string|null);
+
+ /** TestIamPermissionsRequest permissions */
+ permissions?: (string[]|null);
+ }
+
+ /** Represents a TestIamPermissionsRequest. */
+ class TestIamPermissionsRequest implements ITestIamPermissionsRequest {
+
+ /**
+ * Constructs a new TestIamPermissionsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.iam.v1.ITestIamPermissionsRequest);
+
+ /** TestIamPermissionsRequest resource. */
+ public resource: string;
+
+ /** TestIamPermissionsRequest permissions. */
+ public permissions: string[];
+
+ /**
+ * Creates a new TestIamPermissionsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TestIamPermissionsRequest instance
+ */
+ public static create(properties?: google.iam.v1.ITestIamPermissionsRequest): google.iam.v1.TestIamPermissionsRequest;
+
+ /**
+ * Encodes the specified TestIamPermissionsRequest message. Does not implicitly {@link google.iam.v1.TestIamPermissionsRequest.verify|verify} messages.
+ * @param message TestIamPermissionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.iam.v1.ITestIamPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TestIamPermissionsRequest message, length delimited. Does not implicitly {@link google.iam.v1.TestIamPermissionsRequest.verify|verify} messages.
+ * @param message TestIamPermissionsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.iam.v1.ITestIamPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TestIamPermissionsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TestIamPermissionsRequest
+ * @throws {Error} If the payload is 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.iam.v1.TestIamPermissionsRequest;
+
+ /**
+ * Decodes a TestIamPermissionsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TestIamPermissionsRequest
+ * @throws {Error} If the 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.iam.v1.TestIamPermissionsRequest;
+
+ /**
+ * Verifies a TestIamPermissionsRequest message.
+ * @param message Plain 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 TestIamPermissionsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TestIamPermissionsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.iam.v1.TestIamPermissionsRequest;
+
+ /**
+ * Creates a plain object from a TestIamPermissionsRequest message. Also converts values to other types if specified.
+ * @param message TestIamPermissionsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.iam.v1.TestIamPermissionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TestIamPermissionsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TestIamPermissionsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TestIamPermissionsResponse. */
+ interface ITestIamPermissionsResponse {
+
+ /** TestIamPermissionsResponse permissions */
+ permissions?: (string[]|null);
+ }
+
+ /** Represents a TestIamPermissionsResponse. */
+ class TestIamPermissionsResponse implements ITestIamPermissionsResponse {
+
+ /**
+ * Constructs a new TestIamPermissionsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.iam.v1.ITestIamPermissionsResponse);
+
+ /** TestIamPermissionsResponse permissions. */
+ public permissions: string[];
+
+ /**
+ * Creates a new TestIamPermissionsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TestIamPermissionsResponse instance
+ */
+ public static create(properties?: google.iam.v1.ITestIamPermissionsResponse): google.iam.v1.TestIamPermissionsResponse;
+
+ /**
+ * Encodes the specified TestIamPermissionsResponse message. Does not implicitly {@link google.iam.v1.TestIamPermissionsResponse.verify|verify} messages.
+ * @param message TestIamPermissionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.iam.v1.ITestIamPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TestIamPermissionsResponse message, length delimited. Does not implicitly {@link google.iam.v1.TestIamPermissionsResponse.verify|verify} messages.
+ * @param message TestIamPermissionsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.iam.v1.ITestIamPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TestIamPermissionsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TestIamPermissionsResponse
+ * @throws {Error} If the payload is 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.iam.v1.TestIamPermissionsResponse;
+
+ /**
+ * Decodes a TestIamPermissionsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TestIamPermissionsResponse
+ * @throws {Error} If the 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.iam.v1.TestIamPermissionsResponse;
+
+ /**
+ * Verifies a TestIamPermissionsResponse message.
+ * @param message Plain 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 TestIamPermissionsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TestIamPermissionsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.iam.v1.TestIamPermissionsResponse;
+
+ /**
+ * Creates a plain object from a TestIamPermissionsResponse message. Also converts values to other types if specified.
+ * @param message TestIamPermissionsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.iam.v1.TestIamPermissionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TestIamPermissionsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TestIamPermissionsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetPolicyOptions. */
+ interface IGetPolicyOptions {
+
+ /** GetPolicyOptions requestedPolicyVersion */
+ requestedPolicyVersion?: (number|null);
+ }
+
+ /** Represents a GetPolicyOptions. */
+ class GetPolicyOptions implements IGetPolicyOptions {
+
+ /**
+ * Constructs a new GetPolicyOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.iam.v1.IGetPolicyOptions);
+
+ /** GetPolicyOptions requestedPolicyVersion. */
+ public requestedPolicyVersion: number;
+
+ /**
+ * Creates a new GetPolicyOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetPolicyOptions instance
+ */
+ public static create(properties?: google.iam.v1.IGetPolicyOptions): google.iam.v1.GetPolicyOptions;
+
+ /**
+ * Encodes the specified GetPolicyOptions message. Does not implicitly {@link google.iam.v1.GetPolicyOptions.verify|verify} messages.
+ * @param message GetPolicyOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.iam.v1.IGetPolicyOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetPolicyOptions message, length delimited. Does not implicitly {@link google.iam.v1.GetPolicyOptions.verify|verify} messages.
+ * @param message GetPolicyOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.iam.v1.IGetPolicyOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetPolicyOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetPolicyOptions
+ * @throws {Error} If the payload is 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.iam.v1.GetPolicyOptions;
+
+ /**
+ * Decodes a GetPolicyOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetPolicyOptions
+ * @throws {Error} If the 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.iam.v1.GetPolicyOptions;
+
+ /**
+ * Verifies a GetPolicyOptions message.
+ * @param message Plain 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 GetPolicyOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetPolicyOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.iam.v1.GetPolicyOptions;
+
+ /**
+ * Creates a plain object from a GetPolicyOptions message. Also converts values to other types if specified.
+ * @param message GetPolicyOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.iam.v1.GetPolicyOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetPolicyOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetPolicyOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Policy. */
+ interface IPolicy {
+
+ /** Policy version */
+ version?: (number|null);
+
+ /** Policy bindings */
+ bindings?: (google.iam.v1.IBinding[]|null);
+
+ /** Policy auditConfigs */
+ auditConfigs?: (google.iam.v1.IAuditConfig[]|null);
+
+ /** Policy etag */
+ etag?: (Uint8Array|Buffer|string|null);
+ }
+
+ /** Represents a Policy. */
+ class Policy implements IPolicy {
+
+ /**
+ * Constructs a new Policy.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.iam.v1.IPolicy);
+
+ /** Policy version. */
+ public version: number;
+
+ /** Policy bindings. */
+ public bindings: google.iam.v1.IBinding[];
+
+ /** Policy auditConfigs. */
+ public auditConfigs: google.iam.v1.IAuditConfig[];
+
+ /** Policy etag. */
+ public etag: (Uint8Array|Buffer|string);
+
+ /**
+ * Creates a new Policy instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Policy instance
+ */
+ public static create(properties?: google.iam.v1.IPolicy): google.iam.v1.Policy;
+
+ /**
+ * Encodes the specified Policy message. Does not implicitly {@link google.iam.v1.Policy.verify|verify} messages.
+ * @param message Policy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.iam.v1.IPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Policy message, length delimited. Does not implicitly {@link google.iam.v1.Policy.verify|verify} messages.
+ * @param message Policy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.iam.v1.IPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Policy message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Policy
+ * @throws {Error} If the payload is 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.iam.v1.Policy;
+
+ /**
+ * Decodes a Policy message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Policy
+ * @throws {Error} If the 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.iam.v1.Policy;
+
+ /**
+ * Verifies a Policy message.
+ * @param message Plain 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 Policy message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Policy
+ */
+ public static fromObject(object: { [k: string]: any }): google.iam.v1.Policy;
+
+ /**
+ * Creates a plain object from a Policy message. Also converts values to other types if specified.
+ * @param message Policy
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.iam.v1.Policy, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Policy to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Policy
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Binding. */
+ interface IBinding {
+
+ /** Binding role */
+ role?: (string|null);
+
+ /** Binding members */
+ members?: (string[]|null);
+
+ /** Binding condition */
+ condition?: (google.type.IExpr|null);
+ }
+
+ /** Represents a Binding. */
+ class Binding implements IBinding {
+
+ /**
+ * Constructs a new Binding.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.iam.v1.IBinding);
+
+ /** Binding role. */
+ public role: string;
+
+ /** Binding members. */
+ public members: string[];
+
+ /** Binding condition. */
+ public condition?: (google.type.IExpr|null);
+
+ /**
+ * Creates a new Binding instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Binding instance
+ */
+ public static create(properties?: google.iam.v1.IBinding): google.iam.v1.Binding;
+
+ /**
+ * Encodes the specified Binding message. Does not implicitly {@link google.iam.v1.Binding.verify|verify} messages.
+ * @param message Binding message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.iam.v1.IBinding, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Binding message, length delimited. Does not implicitly {@link google.iam.v1.Binding.verify|verify} messages.
+ * @param message Binding message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.iam.v1.IBinding, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Binding message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Binding
+ * @throws {Error} If the payload is 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.iam.v1.Binding;
+
+ /**
+ * Decodes a Binding message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Binding
+ * @throws {Error} If the 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.iam.v1.Binding;
+
+ /**
+ * Verifies a Binding message.
+ * @param message Plain 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 Binding message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Binding
+ */
+ public static fromObject(object: { [k: string]: any }): google.iam.v1.Binding;
+
+ /**
+ * Creates a plain object from a Binding message. Also converts values to other types if specified.
+ * @param message Binding
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.iam.v1.Binding, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Binding to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Binding
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an AuditConfig. */
+ interface IAuditConfig {
+
+ /** AuditConfig service */
+ service?: (string|null);
+
+ /** AuditConfig auditLogConfigs */
+ auditLogConfigs?: (google.iam.v1.IAuditLogConfig[]|null);
+ }
+
+ /** Represents an AuditConfig. */
+ class AuditConfig implements IAuditConfig {
+
+ /**
+ * Constructs a new AuditConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.iam.v1.IAuditConfig);
+
+ /** AuditConfig service. */
+ public service: string;
+
+ /** AuditConfig auditLogConfigs. */
+ public auditLogConfigs: google.iam.v1.IAuditLogConfig[];
+
+ /**
+ * Creates a new AuditConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AuditConfig instance
+ */
+ public static create(properties?: google.iam.v1.IAuditConfig): google.iam.v1.AuditConfig;
+
+ /**
+ * Encodes the specified AuditConfig message. Does not implicitly {@link google.iam.v1.AuditConfig.verify|verify} messages.
+ * @param message AuditConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.iam.v1.IAuditConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AuditConfig message, length delimited. Does not implicitly {@link google.iam.v1.AuditConfig.verify|verify} messages.
+ * @param message AuditConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.iam.v1.IAuditConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AuditConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AuditConfig
+ * @throws {Error} If the payload is 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.iam.v1.AuditConfig;
+
+ /**
+ * Decodes an AuditConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AuditConfig
+ * @throws {Error} If the 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.iam.v1.AuditConfig;
+
+ /**
+ * Verifies an AuditConfig message.
+ * @param message Plain 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 AuditConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AuditConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.iam.v1.AuditConfig;
+
+ /**
+ * Creates a plain object from an AuditConfig message. Also converts values to other types if specified.
+ * @param message AuditConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.iam.v1.AuditConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AuditConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AuditConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an AuditLogConfig. */
+ interface IAuditLogConfig {
+
+ /** AuditLogConfig logType */
+ logType?: (google.iam.v1.AuditLogConfig.LogType|keyof typeof google.iam.v1.AuditLogConfig.LogType|null);
+
+ /** AuditLogConfig exemptedMembers */
+ exemptedMembers?: (string[]|null);
+ }
+
+ /** Represents an AuditLogConfig. */
+ class AuditLogConfig implements IAuditLogConfig {
+
+ /**
+ * Constructs a new AuditLogConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.iam.v1.IAuditLogConfig);
+
+ /** AuditLogConfig logType. */
+ public logType: (google.iam.v1.AuditLogConfig.LogType|keyof typeof google.iam.v1.AuditLogConfig.LogType);
+
+ /** AuditLogConfig exemptedMembers. */
+ public exemptedMembers: string[];
+
+ /**
+ * Creates a new AuditLogConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AuditLogConfig instance
+ */
+ public static create(properties?: google.iam.v1.IAuditLogConfig): google.iam.v1.AuditLogConfig;
+
+ /**
+ * Encodes the specified AuditLogConfig message. Does not implicitly {@link google.iam.v1.AuditLogConfig.verify|verify} messages.
+ * @param message AuditLogConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.iam.v1.IAuditLogConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AuditLogConfig message, length delimited. Does not implicitly {@link google.iam.v1.AuditLogConfig.verify|verify} messages.
+ * @param message AuditLogConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.iam.v1.IAuditLogConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AuditLogConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AuditLogConfig
+ * @throws {Error} If the payload is 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.iam.v1.AuditLogConfig;
+
+ /**
+ * Decodes an AuditLogConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AuditLogConfig
+ * @throws {Error} If the 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.iam.v1.AuditLogConfig;
+
+ /**
+ * Verifies an AuditLogConfig message.
+ * @param message Plain 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 AuditLogConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AuditLogConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.iam.v1.AuditLogConfig;
+
+ /**
+ * Creates a plain object from an AuditLogConfig message. Also converts values to other types if specified.
+ * @param message AuditLogConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.iam.v1.AuditLogConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AuditLogConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AuditLogConfig
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace AuditLogConfig {
+
+ /** LogType enum. */
+ enum LogType {
+ LOG_TYPE_UNSPECIFIED = 0,
+ ADMIN_READ = 1,
+ DATA_WRITE = 2,
+ DATA_READ = 3
+ }
+ }
+
+ /** Properties of a PolicyDelta. */
+ interface IPolicyDelta {
+
+ /** PolicyDelta bindingDeltas */
+ bindingDeltas?: (google.iam.v1.IBindingDelta[]|null);
+
+ /** PolicyDelta auditConfigDeltas */
+ auditConfigDeltas?: (google.iam.v1.IAuditConfigDelta[]|null);
+ }
+
+ /** Represents a PolicyDelta. */
+ class PolicyDelta implements IPolicyDelta {
+
+ /**
+ * Constructs a new PolicyDelta.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.iam.v1.IPolicyDelta);
+
+ /** PolicyDelta bindingDeltas. */
+ public bindingDeltas: google.iam.v1.IBindingDelta[];
+
+ /** PolicyDelta auditConfigDeltas. */
+ public auditConfigDeltas: google.iam.v1.IAuditConfigDelta[];
+
+ /**
+ * Creates a new PolicyDelta instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PolicyDelta instance
+ */
+ public static create(properties?: google.iam.v1.IPolicyDelta): google.iam.v1.PolicyDelta;
+
+ /**
+ * Encodes the specified PolicyDelta message. Does not implicitly {@link google.iam.v1.PolicyDelta.verify|verify} messages.
+ * @param message PolicyDelta message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.iam.v1.IPolicyDelta, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PolicyDelta message, length delimited. Does not implicitly {@link google.iam.v1.PolicyDelta.verify|verify} messages.
+ * @param message PolicyDelta message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.iam.v1.IPolicyDelta, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PolicyDelta message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PolicyDelta
+ * @throws {Error} If the payload is 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.iam.v1.PolicyDelta;
+
+ /**
+ * Decodes a PolicyDelta message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PolicyDelta
+ * @throws {Error} If the 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.iam.v1.PolicyDelta;
+
+ /**
+ * Verifies a PolicyDelta message.
+ * @param message Plain 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 PolicyDelta message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PolicyDelta
+ */
+ public static fromObject(object: { [k: string]: any }): google.iam.v1.PolicyDelta;
+
+ /**
+ * Creates a plain object from a PolicyDelta message. Also converts values to other types if specified.
+ * @param message PolicyDelta
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.iam.v1.PolicyDelta, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PolicyDelta to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PolicyDelta
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a BindingDelta. */
+ interface IBindingDelta {
+
+ /** BindingDelta action */
+ action?: (google.iam.v1.BindingDelta.Action|keyof typeof google.iam.v1.BindingDelta.Action|null);
+
+ /** BindingDelta role */
+ role?: (string|null);
+
+ /** BindingDelta member */
+ member?: (string|null);
+
+ /** BindingDelta condition */
+ condition?: (google.type.IExpr|null);
+ }
+
+ /** Represents a BindingDelta. */
+ class BindingDelta implements IBindingDelta {
+
+ /**
+ * Constructs a new BindingDelta.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.iam.v1.IBindingDelta);
+
+ /** BindingDelta action. */
+ public action: (google.iam.v1.BindingDelta.Action|keyof typeof google.iam.v1.BindingDelta.Action);
+
+ /** BindingDelta role. */
+ public role: string;
+
+ /** BindingDelta member. */
+ public member: string;
+
+ /** BindingDelta condition. */
+ public condition?: (google.type.IExpr|null);
+
+ /**
+ * Creates a new BindingDelta instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns BindingDelta instance
+ */
+ public static create(properties?: google.iam.v1.IBindingDelta): google.iam.v1.BindingDelta;
+
+ /**
+ * Encodes the specified BindingDelta message. Does not implicitly {@link google.iam.v1.BindingDelta.verify|verify} messages.
+ * @param message BindingDelta message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.iam.v1.IBindingDelta, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified BindingDelta message, length delimited. Does not implicitly {@link google.iam.v1.BindingDelta.verify|verify} messages.
+ * @param message BindingDelta message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.iam.v1.IBindingDelta, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a BindingDelta message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns BindingDelta
+ * @throws {Error} If the payload is 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.iam.v1.BindingDelta;
+
+ /**
+ * Decodes a BindingDelta message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns BindingDelta
+ * @throws {Error} If the 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.iam.v1.BindingDelta;
+
+ /**
+ * Verifies a BindingDelta message.
+ * @param message Plain 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 BindingDelta message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns BindingDelta
+ */
+ public static fromObject(object: { [k: string]: any }): google.iam.v1.BindingDelta;
+
+ /**
+ * Creates a plain object from a BindingDelta message. Also converts values to other types if specified.
+ * @param message BindingDelta
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.iam.v1.BindingDelta, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this BindingDelta to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for BindingDelta
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace BindingDelta {
+
+ /** Action enum. */
+ enum Action {
+ ACTION_UNSPECIFIED = 0,
+ ADD = 1,
+ REMOVE = 2
+ }
+ }
+
+ /** Properties of an AuditConfigDelta. */
+ interface IAuditConfigDelta {
+
+ /** AuditConfigDelta action */
+ action?: (google.iam.v1.AuditConfigDelta.Action|keyof typeof google.iam.v1.AuditConfigDelta.Action|null);
+
+ /** AuditConfigDelta service */
+ service?: (string|null);
+
+ /** AuditConfigDelta exemptedMember */
+ exemptedMember?: (string|null);
+
+ /** AuditConfigDelta logType */
+ logType?: (string|null);
+ }
+
+ /** Represents an AuditConfigDelta. */
+ class AuditConfigDelta implements IAuditConfigDelta {
+
+ /**
+ * Constructs a new AuditConfigDelta.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.iam.v1.IAuditConfigDelta);
+
+ /** AuditConfigDelta action. */
+ public action: (google.iam.v1.AuditConfigDelta.Action|keyof typeof google.iam.v1.AuditConfigDelta.Action);
+
+ /** AuditConfigDelta service. */
+ public service: string;
+
+ /** AuditConfigDelta exemptedMember. */
+ public exemptedMember: string;
+
+ /** AuditConfigDelta logType. */
+ public logType: string;
+
+ /**
+ * Creates a new AuditConfigDelta instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AuditConfigDelta instance
+ */
+ public static create(properties?: google.iam.v1.IAuditConfigDelta): google.iam.v1.AuditConfigDelta;
+
+ /**
+ * Encodes the specified AuditConfigDelta message. Does not implicitly {@link google.iam.v1.AuditConfigDelta.verify|verify} messages.
+ * @param message AuditConfigDelta message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.iam.v1.IAuditConfigDelta, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AuditConfigDelta message, length delimited. Does not implicitly {@link google.iam.v1.AuditConfigDelta.verify|verify} messages.
+ * @param message AuditConfigDelta message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.iam.v1.IAuditConfigDelta, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AuditConfigDelta message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AuditConfigDelta
+ * @throws {Error} If the payload is 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.iam.v1.AuditConfigDelta;
+
+ /**
+ * Decodes an AuditConfigDelta message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AuditConfigDelta
+ * @throws {Error} If the 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.iam.v1.AuditConfigDelta;
+
+ /**
+ * Verifies an AuditConfigDelta message.
+ * @param message Plain 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 AuditConfigDelta message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AuditConfigDelta
+ */
+ public static fromObject(object: { [k: string]: any }): google.iam.v1.AuditConfigDelta;
+
+ /**
+ * Creates a plain object from an AuditConfigDelta message. Also converts values to other types if specified.
+ * @param message AuditConfigDelta
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.iam.v1.AuditConfigDelta, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AuditConfigDelta to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AuditConfigDelta
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace AuditConfigDelta {
+
+ /** Action enum. */
+ enum Action {
+ ACTION_UNSPECIFIED = 0,
+ ADD = 1,
+ REMOVE = 2
+ }
+ }
+ }
+ }
+
+ /** Namespace type. */
+ namespace type {
+
+ /** Properties of an Expr. */
+ interface IExpr {
+
+ /** Expr expression */
+ expression?: (string|null);
+
+ /** Expr title */
+ title?: (string|null);
+
+ /** Expr description */
+ description?: (string|null);
+
+ /** Expr location */
+ location?: (string|null);
+ }
+
+ /** Represents an Expr. */
+ class Expr implements IExpr {
+
+ /**
+ * Constructs a new Expr.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.type.IExpr);
+
+ /** Expr expression. */
+ public expression: string;
+
+ /** Expr title. */
+ public title: string;
+
+ /** Expr description. */
+ public description: string;
+
+ /** Expr location. */
+ public location: string;
+
+ /**
+ * Creates a new Expr instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Expr instance
+ */
+ public static create(properties?: google.type.IExpr): google.type.Expr;
+
+ /**
+ * Encodes the specified Expr message. Does not implicitly {@link google.type.Expr.verify|verify} messages.
+ * @param message Expr message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.type.IExpr, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Expr message, length delimited. Does not implicitly {@link google.type.Expr.verify|verify} messages.
+ * @param message Expr message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.type.IExpr, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Expr message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Expr
+ * @throws {Error} If the payload is 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.type.Expr;
+
+ /**
+ * Decodes an Expr message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Expr
+ * @throws {Error} If the 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.type.Expr;
+
+ /**
+ * Verifies an Expr message.
+ * @param message Plain 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 Expr message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Expr
+ */
+ public static fromObject(object: { [k: string]: any }): google.type.Expr;
+
+ /**
+ * Creates a plain object from an Expr message. Also converts values to other types if specified.
+ * @param message Expr
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.type.Expr, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Expr to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Expr
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Date. */
+ interface IDate {
+
+ /** Date year */
+ year?: (number|null);
+
+ /** Date month */
+ month?: (number|null);
+
+ /** Date day */
+ day?: (number|null);
+ }
+
+ /** Represents a Date. */
+ class Date implements IDate {
+
+ /**
+ * Constructs a new Date.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.type.IDate);
+
+ /** Date year. */
+ public year: number;
+
+ /** Date month. */
+ public month: number;
+
+ /** Date day. */
+ public day: number;
+
+ /**
+ * Creates a new Date instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Date instance
+ */
+ public static create(properties?: google.type.IDate): google.type.Date;
+
+ /**
+ * Encodes the specified Date message. Does not implicitly {@link google.type.Date.verify|verify} messages.
+ * @param message Date message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.type.IDate, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Date message, length delimited. Does not implicitly {@link google.type.Date.verify|verify} messages.
+ * @param message Date message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.type.IDate, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Date message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Date
+ * @throws {Error} If the payload is 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.type.Date;
+
+ /**
+ * Decodes a Date message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Date
+ * @throws {Error} If the 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.type.Date;
+
+ /**
+ * Verifies a Date message.
+ * @param message Plain 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 Date message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Date
+ */
+ public static fromObject(object: { [k: string]: any }): google.type.Date;
+
+ /**
+ * Creates a plain object from a Date message. Also converts values to other types if specified.
+ * @param message Date
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.type.Date, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Date to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Date
+ * @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/owl-bot-staging/google-storage-control/protos/protos.js b/owl-bot-staging/google-storage-control/protos/protos.js
new file mode 100644
index 00000000000..1832dd12b0a
--- /dev/null
+++ b/owl-bot-staging/google-storage-control/protos/protos.js
@@ -0,0 +1,68272 @@
+// Copyright 2026 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_storage_control_protos || ($protobuf.roots._google_cloud_storage_control_protos = {});
+
+ $root.google = (function() {
+
+ /**
+ * Namespace google.
+ * @exports google
+ * @namespace
+ */
+ var google = {};
+
+ google.storage = (function() {
+
+ /**
+ * Namespace storage.
+ * @memberof google
+ * @namespace
+ */
+ var storage = {};
+
+ storage.control = (function() {
+
+ /**
+ * Namespace control.
+ * @memberof google.storage
+ * @namespace
+ */
+ var control = {};
+
+ control.v2 = (function() {
+
+ /**
+ * Namespace v2.
+ * @memberof google.storage.control
+ * @namespace
+ */
+ var v2 = {};
+
+ v2.StorageControl = (function() {
+
+ /**
+ * Constructs a new StorageControl service.
+ * @memberof google.storage.control.v2
+ * @classdesc Represents a StorageControl
+ * @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 StorageControl(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (StorageControl.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = StorageControl;
+
+ /**
+ * Creates new StorageControl service using the specified rpc implementation.
+ * @function create
+ * @memberof google.storage.control.v2.StorageControl
+ * @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 {StorageControl} RPC service. Useful where requests and/or responses are streamed.
+ */
+ StorageControl.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|createFolder}.
+ * @memberof google.storage.control.v2.StorageControl
+ * @typedef CreateFolderCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.storage.control.v2.Folder} [response] Folder
+ */
+
+ /**
+ * Calls CreateFolder.
+ * @function createFolder
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.ICreateFolderRequest} request CreateFolderRequest message or plain object
+ * @param {google.storage.control.v2.StorageControl.CreateFolderCallback} callback Node-style callback called with the error, if any, and Folder
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(StorageControl.prototype.createFolder = function createFolder(request, callback) {
+ return this.rpcCall(createFolder, $root.google.storage.control.v2.CreateFolderRequest, $root.google.storage.control.v2.Folder, request, callback);
+ }, "name", { value: "CreateFolder" });
+
+ /**
+ * Calls CreateFolder.
+ * @function createFolder
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.ICreateFolderRequest} request CreateFolderRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|deleteFolder}.
+ * @memberof google.storage.control.v2.StorageControl
+ * @typedef DeleteFolderCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.protobuf.Empty} [response] Empty
+ */
+
+ /**
+ * Calls DeleteFolder.
+ * @function deleteFolder
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IDeleteFolderRequest} request DeleteFolderRequest message or plain object
+ * @param {google.storage.control.v2.StorageControl.DeleteFolderCallback} callback Node-style callback called with the error, if any, and Empty
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(StorageControl.prototype.deleteFolder = function deleteFolder(request, callback) {
+ return this.rpcCall(deleteFolder, $root.google.storage.control.v2.DeleteFolderRequest, $root.google.protobuf.Empty, request, callback);
+ }, "name", { value: "DeleteFolder" });
+
+ /**
+ * Calls DeleteFolder.
+ * @function deleteFolder
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IDeleteFolderRequest} request DeleteFolderRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|getFolder}.
+ * @memberof google.storage.control.v2.StorageControl
+ * @typedef GetFolderCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.storage.control.v2.Folder} [response] Folder
+ */
+
+ /**
+ * Calls GetFolder.
+ * @function getFolder
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IGetFolderRequest} request GetFolderRequest message or plain object
+ * @param {google.storage.control.v2.StorageControl.GetFolderCallback} callback Node-style callback called with the error, if any, and Folder
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(StorageControl.prototype.getFolder = function getFolder(request, callback) {
+ return this.rpcCall(getFolder, $root.google.storage.control.v2.GetFolderRequest, $root.google.storage.control.v2.Folder, request, callback);
+ }, "name", { value: "GetFolder" });
+
+ /**
+ * Calls GetFolder.
+ * @function getFolder
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IGetFolderRequest} request GetFolderRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|listFolders}.
+ * @memberof google.storage.control.v2.StorageControl
+ * @typedef ListFoldersCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.storage.control.v2.ListFoldersResponse} [response] ListFoldersResponse
+ */
+
+ /**
+ * Calls ListFolders.
+ * @function listFolders
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IListFoldersRequest} request ListFoldersRequest message or plain object
+ * @param {google.storage.control.v2.StorageControl.ListFoldersCallback} callback Node-style callback called with the error, if any, and ListFoldersResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(StorageControl.prototype.listFolders = function listFolders(request, callback) {
+ return this.rpcCall(listFolders, $root.google.storage.control.v2.ListFoldersRequest, $root.google.storage.control.v2.ListFoldersResponse, request, callback);
+ }, "name", { value: "ListFolders" });
+
+ /**
+ * Calls ListFolders.
+ * @function listFolders
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IListFoldersRequest} request ListFoldersRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|renameFolder}.
+ * @memberof google.storage.control.v2.StorageControl
+ * @typedef RenameFolderCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls RenameFolder.
+ * @function renameFolder
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IRenameFolderRequest} request RenameFolderRequest message or plain object
+ * @param {google.storage.control.v2.StorageControl.RenameFolderCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(StorageControl.prototype.renameFolder = function renameFolder(request, callback) {
+ return this.rpcCall(renameFolder, $root.google.storage.control.v2.RenameFolderRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "RenameFolder" });
+
+ /**
+ * Calls RenameFolder.
+ * @function renameFolder
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IRenameFolderRequest} request RenameFolderRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|deleteFolderRecursive}.
+ * @memberof google.storage.control.v2.StorageControl
+ * @typedef DeleteFolderRecursiveCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeleteFolderRecursive.
+ * @function deleteFolderRecursive
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IDeleteFolderRecursiveRequest} request DeleteFolderRecursiveRequest message or plain object
+ * @param {google.storage.control.v2.StorageControl.DeleteFolderRecursiveCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(StorageControl.prototype.deleteFolderRecursive = function deleteFolderRecursive(request, callback) {
+ return this.rpcCall(deleteFolderRecursive, $root.google.storage.control.v2.DeleteFolderRecursiveRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeleteFolderRecursive" });
+
+ /**
+ * Calls DeleteFolderRecursive.
+ * @function deleteFolderRecursive
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IDeleteFolderRecursiveRequest} request DeleteFolderRecursiveRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|getStorageLayout}.
+ * @memberof google.storage.control.v2.StorageControl
+ * @typedef GetStorageLayoutCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.storage.control.v2.StorageLayout} [response] StorageLayout
+ */
+
+ /**
+ * Calls GetStorageLayout.
+ * @function getStorageLayout
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IGetStorageLayoutRequest} request GetStorageLayoutRequest message or plain object
+ * @param {google.storage.control.v2.StorageControl.GetStorageLayoutCallback} callback Node-style callback called with the error, if any, and StorageLayout
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(StorageControl.prototype.getStorageLayout = function getStorageLayout(request, callback) {
+ return this.rpcCall(getStorageLayout, $root.google.storage.control.v2.GetStorageLayoutRequest, $root.google.storage.control.v2.StorageLayout, request, callback);
+ }, "name", { value: "GetStorageLayout" });
+
+ /**
+ * Calls GetStorageLayout.
+ * @function getStorageLayout
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IGetStorageLayoutRequest} request GetStorageLayoutRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|createManagedFolder}.
+ * @memberof google.storage.control.v2.StorageControl
+ * @typedef CreateManagedFolderCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.storage.control.v2.ManagedFolder} [response] ManagedFolder
+ */
+
+ /**
+ * Calls CreateManagedFolder.
+ * @function createManagedFolder
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.ICreateManagedFolderRequest} request CreateManagedFolderRequest message or plain object
+ * @param {google.storage.control.v2.StorageControl.CreateManagedFolderCallback} callback Node-style callback called with the error, if any, and ManagedFolder
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(StorageControl.prototype.createManagedFolder = function createManagedFolder(request, callback) {
+ return this.rpcCall(createManagedFolder, $root.google.storage.control.v2.CreateManagedFolderRequest, $root.google.storage.control.v2.ManagedFolder, request, callback);
+ }, "name", { value: "CreateManagedFolder" });
+
+ /**
+ * Calls CreateManagedFolder.
+ * @function createManagedFolder
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.ICreateManagedFolderRequest} request CreateManagedFolderRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|deleteManagedFolder}.
+ * @memberof google.storage.control.v2.StorageControl
+ * @typedef DeleteManagedFolderCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.protobuf.Empty} [response] Empty
+ */
+
+ /**
+ * Calls DeleteManagedFolder.
+ * @function deleteManagedFolder
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IDeleteManagedFolderRequest} request DeleteManagedFolderRequest message or plain object
+ * @param {google.storage.control.v2.StorageControl.DeleteManagedFolderCallback} callback Node-style callback called with the error, if any, and Empty
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(StorageControl.prototype.deleteManagedFolder = function deleteManagedFolder(request, callback) {
+ return this.rpcCall(deleteManagedFolder, $root.google.storage.control.v2.DeleteManagedFolderRequest, $root.google.protobuf.Empty, request, callback);
+ }, "name", { value: "DeleteManagedFolder" });
+
+ /**
+ * Calls DeleteManagedFolder.
+ * @function deleteManagedFolder
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IDeleteManagedFolderRequest} request DeleteManagedFolderRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|getManagedFolder}.
+ * @memberof google.storage.control.v2.StorageControl
+ * @typedef GetManagedFolderCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.storage.control.v2.ManagedFolder} [response] ManagedFolder
+ */
+
+ /**
+ * Calls GetManagedFolder.
+ * @function getManagedFolder
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IGetManagedFolderRequest} request GetManagedFolderRequest message or plain object
+ * @param {google.storage.control.v2.StorageControl.GetManagedFolderCallback} callback Node-style callback called with the error, if any, and ManagedFolder
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(StorageControl.prototype.getManagedFolder = function getManagedFolder(request, callback) {
+ return this.rpcCall(getManagedFolder, $root.google.storage.control.v2.GetManagedFolderRequest, $root.google.storage.control.v2.ManagedFolder, request, callback);
+ }, "name", { value: "GetManagedFolder" });
+
+ /**
+ * Calls GetManagedFolder.
+ * @function getManagedFolder
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IGetManagedFolderRequest} request GetManagedFolderRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|listManagedFolders}.
+ * @memberof google.storage.control.v2.StorageControl
+ * @typedef ListManagedFoldersCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.storage.control.v2.ListManagedFoldersResponse} [response] ListManagedFoldersResponse
+ */
+
+ /**
+ * Calls ListManagedFolders.
+ * @function listManagedFolders
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IListManagedFoldersRequest} request ListManagedFoldersRequest message or plain object
+ * @param {google.storage.control.v2.StorageControl.ListManagedFoldersCallback} callback Node-style callback called with the error, if any, and ListManagedFoldersResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(StorageControl.prototype.listManagedFolders = function listManagedFolders(request, callback) {
+ return this.rpcCall(listManagedFolders, $root.google.storage.control.v2.ListManagedFoldersRequest, $root.google.storage.control.v2.ListManagedFoldersResponse, request, callback);
+ }, "name", { value: "ListManagedFolders" });
+
+ /**
+ * Calls ListManagedFolders.
+ * @function listManagedFolders
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IListManagedFoldersRequest} request ListManagedFoldersRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|createAnywhereCache}.
+ * @memberof google.storage.control.v2.StorageControl
+ * @typedef CreateAnywhereCacheCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateAnywhereCache.
+ * @function createAnywhereCache
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.ICreateAnywhereCacheRequest} request CreateAnywhereCacheRequest message or plain object
+ * @param {google.storage.control.v2.StorageControl.CreateAnywhereCacheCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(StorageControl.prototype.createAnywhereCache = function createAnywhereCache(request, callback) {
+ return this.rpcCall(createAnywhereCache, $root.google.storage.control.v2.CreateAnywhereCacheRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateAnywhereCache" });
+
+ /**
+ * Calls CreateAnywhereCache.
+ * @function createAnywhereCache
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.ICreateAnywhereCacheRequest} request CreateAnywhereCacheRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|updateAnywhereCache}.
+ * @memberof google.storage.control.v2.StorageControl
+ * @typedef UpdateAnywhereCacheCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls UpdateAnywhereCache.
+ * @function updateAnywhereCache
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IUpdateAnywhereCacheRequest} request UpdateAnywhereCacheRequest message or plain object
+ * @param {google.storage.control.v2.StorageControl.UpdateAnywhereCacheCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(StorageControl.prototype.updateAnywhereCache = function updateAnywhereCache(request, callback) {
+ return this.rpcCall(updateAnywhereCache, $root.google.storage.control.v2.UpdateAnywhereCacheRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "UpdateAnywhereCache" });
+
+ /**
+ * Calls UpdateAnywhereCache.
+ * @function updateAnywhereCache
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IUpdateAnywhereCacheRequest} request UpdateAnywhereCacheRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|disableAnywhereCache}.
+ * @memberof google.storage.control.v2.StorageControl
+ * @typedef DisableAnywhereCacheCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.storage.control.v2.AnywhereCache} [response] AnywhereCache
+ */
+
+ /**
+ * Calls DisableAnywhereCache.
+ * @function disableAnywhereCache
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IDisableAnywhereCacheRequest} request DisableAnywhereCacheRequest message or plain object
+ * @param {google.storage.control.v2.StorageControl.DisableAnywhereCacheCallback} callback Node-style callback called with the error, if any, and AnywhereCache
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(StorageControl.prototype.disableAnywhereCache = function disableAnywhereCache(request, callback) {
+ return this.rpcCall(disableAnywhereCache, $root.google.storage.control.v2.DisableAnywhereCacheRequest, $root.google.storage.control.v2.AnywhereCache, request, callback);
+ }, "name", { value: "DisableAnywhereCache" });
+
+ /**
+ * Calls DisableAnywhereCache.
+ * @function disableAnywhereCache
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IDisableAnywhereCacheRequest} request DisableAnywhereCacheRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|pauseAnywhereCache}.
+ * @memberof google.storage.control.v2.StorageControl
+ * @typedef PauseAnywhereCacheCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.storage.control.v2.AnywhereCache} [response] AnywhereCache
+ */
+
+ /**
+ * Calls PauseAnywhereCache.
+ * @function pauseAnywhereCache
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IPauseAnywhereCacheRequest} request PauseAnywhereCacheRequest message or plain object
+ * @param {google.storage.control.v2.StorageControl.PauseAnywhereCacheCallback} callback Node-style callback called with the error, if any, and AnywhereCache
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(StorageControl.prototype.pauseAnywhereCache = function pauseAnywhereCache(request, callback) {
+ return this.rpcCall(pauseAnywhereCache, $root.google.storage.control.v2.PauseAnywhereCacheRequest, $root.google.storage.control.v2.AnywhereCache, request, callback);
+ }, "name", { value: "PauseAnywhereCache" });
+
+ /**
+ * Calls PauseAnywhereCache.
+ * @function pauseAnywhereCache
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IPauseAnywhereCacheRequest} request PauseAnywhereCacheRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|resumeAnywhereCache}.
+ * @memberof google.storage.control.v2.StorageControl
+ * @typedef ResumeAnywhereCacheCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.storage.control.v2.AnywhereCache} [response] AnywhereCache
+ */
+
+ /**
+ * Calls ResumeAnywhereCache.
+ * @function resumeAnywhereCache
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IResumeAnywhereCacheRequest} request ResumeAnywhereCacheRequest message or plain object
+ * @param {google.storage.control.v2.StorageControl.ResumeAnywhereCacheCallback} callback Node-style callback called with the error, if any, and AnywhereCache
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(StorageControl.prototype.resumeAnywhereCache = function resumeAnywhereCache(request, callback) {
+ return this.rpcCall(resumeAnywhereCache, $root.google.storage.control.v2.ResumeAnywhereCacheRequest, $root.google.storage.control.v2.AnywhereCache, request, callback);
+ }, "name", { value: "ResumeAnywhereCache" });
+
+ /**
+ * Calls ResumeAnywhereCache.
+ * @function resumeAnywhereCache
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IResumeAnywhereCacheRequest} request ResumeAnywhereCacheRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|getAnywhereCache}.
+ * @memberof google.storage.control.v2.StorageControl
+ * @typedef GetAnywhereCacheCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.storage.control.v2.AnywhereCache} [response] AnywhereCache
+ */
+
+ /**
+ * Calls GetAnywhereCache.
+ * @function getAnywhereCache
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IGetAnywhereCacheRequest} request GetAnywhereCacheRequest message or plain object
+ * @param {google.storage.control.v2.StorageControl.GetAnywhereCacheCallback} callback Node-style callback called with the error, if any, and AnywhereCache
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(StorageControl.prototype.getAnywhereCache = function getAnywhereCache(request, callback) {
+ return this.rpcCall(getAnywhereCache, $root.google.storage.control.v2.GetAnywhereCacheRequest, $root.google.storage.control.v2.AnywhereCache, request, callback);
+ }, "name", { value: "GetAnywhereCache" });
+
+ /**
+ * Calls GetAnywhereCache.
+ * @function getAnywhereCache
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IGetAnywhereCacheRequest} request GetAnywhereCacheRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|listAnywhereCaches}.
+ * @memberof google.storage.control.v2.StorageControl
+ * @typedef ListAnywhereCachesCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.storage.control.v2.ListAnywhereCachesResponse} [response] ListAnywhereCachesResponse
+ */
+
+ /**
+ * Calls ListAnywhereCaches.
+ * @function listAnywhereCaches
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IListAnywhereCachesRequest} request ListAnywhereCachesRequest message or plain object
+ * @param {google.storage.control.v2.StorageControl.ListAnywhereCachesCallback} callback Node-style callback called with the error, if any, and ListAnywhereCachesResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(StorageControl.prototype.listAnywhereCaches = function listAnywhereCaches(request, callback) {
+ return this.rpcCall(listAnywhereCaches, $root.google.storage.control.v2.ListAnywhereCachesRequest, $root.google.storage.control.v2.ListAnywhereCachesResponse, request, callback);
+ }, "name", { value: "ListAnywhereCaches" });
+
+ /**
+ * Calls ListAnywhereCaches.
+ * @function listAnywhereCaches
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IListAnywhereCachesRequest} request ListAnywhereCachesRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|getProjectIntelligenceConfig}.
+ * @memberof google.storage.control.v2.StorageControl
+ * @typedef GetProjectIntelligenceConfigCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.storage.control.v2.IntelligenceConfig} [response] IntelligenceConfig
+ */
+
+ /**
+ * Calls GetProjectIntelligenceConfig.
+ * @function getProjectIntelligenceConfig
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IGetProjectIntelligenceConfigRequest} request GetProjectIntelligenceConfigRequest message or plain object
+ * @param {google.storage.control.v2.StorageControl.GetProjectIntelligenceConfigCallback} callback Node-style callback called with the error, if any, and IntelligenceConfig
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(StorageControl.prototype.getProjectIntelligenceConfig = function getProjectIntelligenceConfig(request, callback) {
+ return this.rpcCall(getProjectIntelligenceConfig, $root.google.storage.control.v2.GetProjectIntelligenceConfigRequest, $root.google.storage.control.v2.IntelligenceConfig, request, callback);
+ }, "name", { value: "GetProjectIntelligenceConfig" });
+
+ /**
+ * Calls GetProjectIntelligenceConfig.
+ * @function getProjectIntelligenceConfig
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IGetProjectIntelligenceConfigRequest} request GetProjectIntelligenceConfigRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|updateProjectIntelligenceConfig}.
+ * @memberof google.storage.control.v2.StorageControl
+ * @typedef UpdateProjectIntelligenceConfigCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.storage.control.v2.IntelligenceConfig} [response] IntelligenceConfig
+ */
+
+ /**
+ * Calls UpdateProjectIntelligenceConfig.
+ * @function updateProjectIntelligenceConfig
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IUpdateProjectIntelligenceConfigRequest} request UpdateProjectIntelligenceConfigRequest message or plain object
+ * @param {google.storage.control.v2.StorageControl.UpdateProjectIntelligenceConfigCallback} callback Node-style callback called with the error, if any, and IntelligenceConfig
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(StorageControl.prototype.updateProjectIntelligenceConfig = function updateProjectIntelligenceConfig(request, callback) {
+ return this.rpcCall(updateProjectIntelligenceConfig, $root.google.storage.control.v2.UpdateProjectIntelligenceConfigRequest, $root.google.storage.control.v2.IntelligenceConfig, request, callback);
+ }, "name", { value: "UpdateProjectIntelligenceConfig" });
+
+ /**
+ * Calls UpdateProjectIntelligenceConfig.
+ * @function updateProjectIntelligenceConfig
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IUpdateProjectIntelligenceConfigRequest} request UpdateProjectIntelligenceConfigRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|getFolderIntelligenceConfig}.
+ * @memberof google.storage.control.v2.StorageControl
+ * @typedef GetFolderIntelligenceConfigCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.storage.control.v2.IntelligenceConfig} [response] IntelligenceConfig
+ */
+
+ /**
+ * Calls GetFolderIntelligenceConfig.
+ * @function getFolderIntelligenceConfig
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IGetFolderIntelligenceConfigRequest} request GetFolderIntelligenceConfigRequest message or plain object
+ * @param {google.storage.control.v2.StorageControl.GetFolderIntelligenceConfigCallback} callback Node-style callback called with the error, if any, and IntelligenceConfig
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(StorageControl.prototype.getFolderIntelligenceConfig = function getFolderIntelligenceConfig(request, callback) {
+ return this.rpcCall(getFolderIntelligenceConfig, $root.google.storage.control.v2.GetFolderIntelligenceConfigRequest, $root.google.storage.control.v2.IntelligenceConfig, request, callback);
+ }, "name", { value: "GetFolderIntelligenceConfig" });
+
+ /**
+ * Calls GetFolderIntelligenceConfig.
+ * @function getFolderIntelligenceConfig
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IGetFolderIntelligenceConfigRequest} request GetFolderIntelligenceConfigRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|updateFolderIntelligenceConfig}.
+ * @memberof google.storage.control.v2.StorageControl
+ * @typedef UpdateFolderIntelligenceConfigCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.storage.control.v2.IntelligenceConfig} [response] IntelligenceConfig
+ */
+
+ /**
+ * Calls UpdateFolderIntelligenceConfig.
+ * @function updateFolderIntelligenceConfig
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IUpdateFolderIntelligenceConfigRequest} request UpdateFolderIntelligenceConfigRequest message or plain object
+ * @param {google.storage.control.v2.StorageControl.UpdateFolderIntelligenceConfigCallback} callback Node-style callback called with the error, if any, and IntelligenceConfig
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(StorageControl.prototype.updateFolderIntelligenceConfig = function updateFolderIntelligenceConfig(request, callback) {
+ return this.rpcCall(updateFolderIntelligenceConfig, $root.google.storage.control.v2.UpdateFolderIntelligenceConfigRequest, $root.google.storage.control.v2.IntelligenceConfig, request, callback);
+ }, "name", { value: "UpdateFolderIntelligenceConfig" });
+
+ /**
+ * Calls UpdateFolderIntelligenceConfig.
+ * @function updateFolderIntelligenceConfig
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IUpdateFolderIntelligenceConfigRequest} request UpdateFolderIntelligenceConfigRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|getOrganizationIntelligenceConfig}.
+ * @memberof google.storage.control.v2.StorageControl
+ * @typedef GetOrganizationIntelligenceConfigCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.storage.control.v2.IntelligenceConfig} [response] IntelligenceConfig
+ */
+
+ /**
+ * Calls GetOrganizationIntelligenceConfig.
+ * @function getOrganizationIntelligenceConfig
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IGetOrganizationIntelligenceConfigRequest} request GetOrganizationIntelligenceConfigRequest message or plain object
+ * @param {google.storage.control.v2.StorageControl.GetOrganizationIntelligenceConfigCallback} callback Node-style callback called with the error, if any, and IntelligenceConfig
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(StorageControl.prototype.getOrganizationIntelligenceConfig = function getOrganizationIntelligenceConfig(request, callback) {
+ return this.rpcCall(getOrganizationIntelligenceConfig, $root.google.storage.control.v2.GetOrganizationIntelligenceConfigRequest, $root.google.storage.control.v2.IntelligenceConfig, request, callback);
+ }, "name", { value: "GetOrganizationIntelligenceConfig" });
+
+ /**
+ * Calls GetOrganizationIntelligenceConfig.
+ * @function getOrganizationIntelligenceConfig
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IGetOrganizationIntelligenceConfigRequest} request GetOrganizationIntelligenceConfigRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|updateOrganizationIntelligenceConfig}.
+ * @memberof google.storage.control.v2.StorageControl
+ * @typedef UpdateOrganizationIntelligenceConfigCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.storage.control.v2.IntelligenceConfig} [response] IntelligenceConfig
+ */
+
+ /**
+ * Calls UpdateOrganizationIntelligenceConfig.
+ * @function updateOrganizationIntelligenceConfig
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IUpdateOrganizationIntelligenceConfigRequest} request UpdateOrganizationIntelligenceConfigRequest message or plain object
+ * @param {google.storage.control.v2.StorageControl.UpdateOrganizationIntelligenceConfigCallback} callback Node-style callback called with the error, if any, and IntelligenceConfig
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(StorageControl.prototype.updateOrganizationIntelligenceConfig = function updateOrganizationIntelligenceConfig(request, callback) {
+ return this.rpcCall(updateOrganizationIntelligenceConfig, $root.google.storage.control.v2.UpdateOrganizationIntelligenceConfigRequest, $root.google.storage.control.v2.IntelligenceConfig, request, callback);
+ }, "name", { value: "UpdateOrganizationIntelligenceConfig" });
+
+ /**
+ * Calls UpdateOrganizationIntelligenceConfig.
+ * @function updateOrganizationIntelligenceConfig
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.storage.control.v2.IUpdateOrganizationIntelligenceConfigRequest} request UpdateOrganizationIntelligenceConfigRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|getIamPolicy}.
+ * @memberof google.storage.control.v2.StorageControl
+ * @typedef GetIamPolicyCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.iam.v1.Policy} [response] Policy
+ */
+
+ /**
+ * Calls GetIamPolicy.
+ * @function getIamPolicy
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.iam.v1.IGetIamPolicyRequest} request GetIamPolicyRequest message or plain object
+ * @param {google.storage.control.v2.StorageControl.GetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(StorageControl.prototype.getIamPolicy = function getIamPolicy(request, callback) {
+ return this.rpcCall(getIamPolicy, $root.google.iam.v1.GetIamPolicyRequest, $root.google.iam.v1.Policy, request, callback);
+ }, "name", { value: "GetIamPolicy" });
+
+ /**
+ * Calls GetIamPolicy.
+ * @function getIamPolicy
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.iam.v1.IGetIamPolicyRequest} request GetIamPolicyRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|setIamPolicy}.
+ * @memberof google.storage.control.v2.StorageControl
+ * @typedef SetIamPolicyCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.iam.v1.Policy} [response] Policy
+ */
+
+ /**
+ * Calls SetIamPolicy.
+ * @function setIamPolicy
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.iam.v1.ISetIamPolicyRequest} request SetIamPolicyRequest message or plain object
+ * @param {google.storage.control.v2.StorageControl.SetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(StorageControl.prototype.setIamPolicy = function setIamPolicy(request, callback) {
+ return this.rpcCall(setIamPolicy, $root.google.iam.v1.SetIamPolicyRequest, $root.google.iam.v1.Policy, request, callback);
+ }, "name", { value: "SetIamPolicy" });
+
+ /**
+ * Calls SetIamPolicy.
+ * @function setIamPolicy
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.iam.v1.ISetIamPolicyRequest} request SetIamPolicyRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.storage.control.v2.StorageControl|testIamPermissions}.
+ * @memberof google.storage.control.v2.StorageControl
+ * @typedef TestIamPermissionsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.iam.v1.TestIamPermissionsResponse} [response] TestIamPermissionsResponse
+ */
+
+ /**
+ * Calls TestIamPermissions.
+ * @function testIamPermissions
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.iam.v1.ITestIamPermissionsRequest} request TestIamPermissionsRequest message or plain object
+ * @param {google.storage.control.v2.StorageControl.TestIamPermissionsCallback} callback Node-style callback called with the error, if any, and TestIamPermissionsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(StorageControl.prototype.testIamPermissions = function testIamPermissions(request, callback) {
+ return this.rpcCall(testIamPermissions, $root.google.iam.v1.TestIamPermissionsRequest, $root.google.iam.v1.TestIamPermissionsResponse, request, callback);
+ }, "name", { value: "TestIamPermissions" });
+
+ /**
+ * Calls TestIamPermissions.
+ * @function testIamPermissions
+ * @memberof google.storage.control.v2.StorageControl
+ * @instance
+ * @param {google.iam.v1.ITestIamPermissionsRequest} request TestIamPermissionsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ return StorageControl;
+ })();
+
+ v2.PendingRenameInfo = (function() {
+
+ /**
+ * Properties of a PendingRenameInfo.
+ * @memberof google.storage.control.v2
+ * @interface IPendingRenameInfo
+ * @property {string|null} [operation] PendingRenameInfo operation
+ */
+
+ /**
+ * Constructs a new PendingRenameInfo.
+ * @memberof google.storage.control.v2
+ * @classdesc Represents a PendingRenameInfo.
+ * @implements IPendingRenameInfo
+ * @constructor
+ * @param {google.storage.control.v2.IPendingRenameInfo=} [properties] Properties to set
+ */
+ function PendingRenameInfo(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]];
+ }
+
+ /**
+ * PendingRenameInfo operation.
+ * @member {string} operation
+ * @memberof google.storage.control.v2.PendingRenameInfo
+ * @instance
+ */
+ PendingRenameInfo.prototype.operation = "";
+
+ /**
+ * Creates a new PendingRenameInfo instance using the specified properties.
+ * @function create
+ * @memberof google.storage.control.v2.PendingRenameInfo
+ * @static
+ * @param {google.storage.control.v2.IPendingRenameInfo=} [properties] Properties to set
+ * @returns {google.storage.control.v2.PendingRenameInfo} PendingRenameInfo instance
+ */
+ PendingRenameInfo.create = function create(properties) {
+ return new PendingRenameInfo(properties);
+ };
+
+ /**
+ * Encodes the specified PendingRenameInfo message. Does not implicitly {@link google.storage.control.v2.PendingRenameInfo.verify|verify} messages.
+ * @function encode
+ * @memberof google.storage.control.v2.PendingRenameInfo
+ * @static
+ * @param {google.storage.control.v2.IPendingRenameInfo} message PendingRenameInfo message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ PendingRenameInfo.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.operation != null && Object.hasOwnProperty.call(message, "operation"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.operation);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified PendingRenameInfo message, length delimited. Does not implicitly {@link google.storage.control.v2.PendingRenameInfo.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.storage.control.v2.PendingRenameInfo
+ * @static
+ * @param {google.storage.control.v2.IPendingRenameInfo} message PendingRenameInfo message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ PendingRenameInfo.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a PendingRenameInfo message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.storage.control.v2.PendingRenameInfo
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.storage.control.v2.PendingRenameInfo} PendingRenameInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ PendingRenameInfo.decode = function decode(reader, length, error) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.storage.control.v2.PendingRenameInfo();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.operation = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a PendingRenameInfo message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.storage.control.v2.PendingRenameInfo
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.storage.control.v2.PendingRenameInfo} PendingRenameInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ PendingRenameInfo.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a PendingRenameInfo message.
+ * @function verify
+ * @memberof google.storage.control.v2.PendingRenameInfo
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ PendingRenameInfo.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.operation != null && message.hasOwnProperty("operation"))
+ if (!$util.isString(message.operation))
+ return "operation: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a PendingRenameInfo message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.storage.control.v2.PendingRenameInfo
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.storage.control.v2.PendingRenameInfo} PendingRenameInfo
+ */
+ PendingRenameInfo.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.storage.control.v2.PendingRenameInfo)
+ return object;
+ var message = new $root.google.storage.control.v2.PendingRenameInfo();
+ if (object.operation != null)
+ message.operation = String(object.operation);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a PendingRenameInfo message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.storage.control.v2.PendingRenameInfo
+ * @static
+ * @param {google.storage.control.v2.PendingRenameInfo} message PendingRenameInfo
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ PendingRenameInfo.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.operation = "";
+ if (message.operation != null && message.hasOwnProperty("operation"))
+ object.operation = message.operation;
+ return object;
+ };
+
+ /**
+ * Converts this PendingRenameInfo to JSON.
+ * @function toJSON
+ * @memberof google.storage.control.v2.PendingRenameInfo
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ PendingRenameInfo.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for PendingRenameInfo
+ * @function getTypeUrl
+ * @memberof google.storage.control.v2.PendingRenameInfo
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ PendingRenameInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.storage.control.v2.PendingRenameInfo";
+ };
+
+ return PendingRenameInfo;
+ })();
+
+ v2.Folder = (function() {
+
+ /**
+ * Properties of a Folder.
+ * @memberof google.storage.control.v2
+ * @interface IFolder
+ * @property {string|null} [name] Folder name
+ * @property {number|Long|null} [metageneration] Folder metageneration
+ * @property {google.protobuf.ITimestamp|null} [createTime] Folder createTime
+ * @property {google.protobuf.ITimestamp|null} [updateTime] Folder updateTime
+ * @property {google.storage.control.v2.IPendingRenameInfo|null} [pendingRenameInfo] Folder pendingRenameInfo
+ */
+
+ /**
+ * Constructs a new Folder.
+ * @memberof google.storage.control.v2
+ * @classdesc Represents a Folder.
+ * @implements IFolder
+ * @constructor
+ * @param {google.storage.control.v2.IFolder=} [properties] Properties to set
+ */
+ function Folder(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]];
+ }
+
+ /**
+ * Folder name.
+ * @member {string} name
+ * @memberof google.storage.control.v2.Folder
+ * @instance
+ */
+ Folder.prototype.name = "";
+
+ /**
+ * Folder metageneration.
+ * @member {number|Long} metageneration
+ * @memberof google.storage.control.v2.Folder
+ * @instance
+ */
+ Folder.prototype.metageneration = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * Folder createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.storage.control.v2.Folder
+ * @instance
+ */
+ Folder.prototype.createTime = null;
+
+ /**
+ * Folder updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.storage.control.v2.Folder
+ * @instance
+ */
+ Folder.prototype.updateTime = null;
+
+ /**
+ * Folder pendingRenameInfo.
+ * @member {google.storage.control.v2.IPendingRenameInfo|null|undefined} pendingRenameInfo
+ * @memberof google.storage.control.v2.Folder
+ * @instance
+ */
+ Folder.prototype.pendingRenameInfo = null;
+
+ /**
+ * Creates a new Folder instance using the specified properties.
+ * @function create
+ * @memberof google.storage.control.v2.Folder
+ * @static
+ * @param {google.storage.control.v2.IFolder=} [properties] Properties to set
+ * @returns {google.storage.control.v2.Folder} Folder instance
+ */
+ Folder.create = function create(properties) {
+ return new Folder(properties);
+ };
+
+ /**
+ * Encodes the specified Folder message. Does not implicitly {@link google.storage.control.v2.Folder.verify|verify} messages.
+ * @function encode
+ * @memberof google.storage.control.v2.Folder
+ * @static
+ * @param {google.storage.control.v2.IFolder} message Folder message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Folder.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.metageneration != null && Object.hasOwnProperty.call(message, "metageneration"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int64(message.metageneration);
+ 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.pendingRenameInfo != null && Object.hasOwnProperty.call(message, "pendingRenameInfo"))
+ $root.google.storage.control.v2.PendingRenameInfo.encode(message.pendingRenameInfo, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Folder message, length delimited. Does not implicitly {@link google.storage.control.v2.Folder.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.storage.control.v2.Folder
+ * @static
+ * @param {google.storage.control.v2.IFolder} message Folder message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Folder.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Folder message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.storage.control.v2.Folder
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.storage.control.v2.Folder} Folder
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Folder.decode = function decode(reader, length, error) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.storage.control.v2.Folder();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 3: {
+ message.metageneration = reader.int64();
+ 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 7: {
+ message.pendingRenameInfo = $root.google.storage.control.v2.PendingRenameInfo.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Folder message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.storage.control.v2.Folder
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.storage.control.v2.Folder} Folder
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Folder.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Folder message.
+ * @function verify
+ * @memberof google.storage.control.v2.Folder
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Folder.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.metageneration != null && message.hasOwnProperty("metageneration"))
+ if (!$util.isInteger(message.metageneration) && !(message.metageneration && $util.isInteger(message.metageneration.low) && $util.isInteger(message.metageneration.high)))
+ return "metageneration: integer|Long 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.pendingRenameInfo != null && message.hasOwnProperty("pendingRenameInfo")) {
+ var error = $root.google.storage.control.v2.PendingRenameInfo.verify(message.pendingRenameInfo);
+ if (error)
+ return "pendingRenameInfo." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Folder message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.storage.control.v2.Folder
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.storage.control.v2.Folder} Folder
+ */
+ Folder.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.storage.control.v2.Folder)
+ return object;
+ var message = new $root.google.storage.control.v2.Folder();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.metageneration != null)
+ if ($util.Long)
+ (message.metageneration = $util.Long.fromValue(object.metageneration)).unsigned = false;
+ else if (typeof object.metageneration === "string")
+ message.metageneration = parseInt(object.metageneration, 10);
+ else if (typeof object.metageneration === "number")
+ message.metageneration = object.metageneration;
+ else if (typeof object.metageneration === "object")
+ message.metageneration = new $util.LongBits(object.metageneration.low >>> 0, object.metageneration.high >>> 0).toNumber();
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.storage.control.v2.Folder.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
+ }
+ if (object.updateTime != null) {
+ if (typeof object.updateTime !== "object")
+ throw TypeError(".google.storage.control.v2.Folder.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ if (object.pendingRenameInfo != null) {
+ if (typeof object.pendingRenameInfo !== "object")
+ throw TypeError(".google.storage.control.v2.Folder.pendingRenameInfo: object expected");
+ message.pendingRenameInfo = $root.google.storage.control.v2.PendingRenameInfo.fromObject(object.pendingRenameInfo);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Folder message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.storage.control.v2.Folder
+ * @static
+ * @param {google.storage.control.v2.Folder} message Folder
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Folder.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.metageneration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.metageneration = options.longs === String ? "0" : 0;
+ object.createTime = null;
+ object.updateTime = null;
+ object.pendingRenameInfo = null;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.metageneration != null && message.hasOwnProperty("metageneration"))
+ if (typeof message.metageneration === "number")
+ object.metageneration = options.longs === String ? String(message.metageneration) : message.metageneration;
+ else
+ object.metageneration = options.longs === String ? $util.Long.prototype.toString.call(message.metageneration) : options.longs === Number ? new $util.LongBits(message.metageneration.low >>> 0, message.metageneration.high >>> 0).toNumber() : message.metageneration;
+ 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.pendingRenameInfo != null && message.hasOwnProperty("pendingRenameInfo"))
+ object.pendingRenameInfo = $root.google.storage.control.v2.PendingRenameInfo.toObject(message.pendingRenameInfo, options);
+ return object;
+ };
+
+ /**
+ * Converts this Folder to JSON.
+ * @function toJSON
+ * @memberof google.storage.control.v2.Folder
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Folder.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Folder
+ * @function getTypeUrl
+ * @memberof google.storage.control.v2.Folder
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Folder.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.storage.control.v2.Folder";
+ };
+
+ return Folder;
+ })();
+
+ v2.GetFolderRequest = (function() {
+
+ /**
+ * Properties of a GetFolderRequest.
+ * @memberof google.storage.control.v2
+ * @interface IGetFolderRequest
+ * @property {string|null} [name] GetFolderRequest name
+ * @property {number|Long|null} [ifMetagenerationMatch] GetFolderRequest ifMetagenerationMatch
+ * @property {number|Long|null} [ifMetagenerationNotMatch] GetFolderRequest ifMetagenerationNotMatch
+ * @property {string|null} [requestId] GetFolderRequest requestId
+ */
+
+ /**
+ * Constructs a new GetFolderRequest.
+ * @memberof google.storage.control.v2
+ * @classdesc Represents a GetFolderRequest.
+ * @implements IGetFolderRequest
+ * @constructor
+ * @param {google.storage.control.v2.IGetFolderRequest=} [properties] Properties to set
+ */
+ function GetFolderRequest(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]];
+ }
+
+ /**
+ * GetFolderRequest name.
+ * @member {string} name
+ * @memberof google.storage.control.v2.GetFolderRequest
+ * @instance
+ */
+ GetFolderRequest.prototype.name = "";
+
+ /**
+ * GetFolderRequest ifMetagenerationMatch.
+ * @member {number|Long|null|undefined} ifMetagenerationMatch
+ * @memberof google.storage.control.v2.GetFolderRequest
+ * @instance
+ */
+ GetFolderRequest.prototype.ifMetagenerationMatch = null;
+
+ /**
+ * GetFolderRequest ifMetagenerationNotMatch.
+ * @member {number|Long|null|undefined} ifMetagenerationNotMatch
+ * @memberof google.storage.control.v2.GetFolderRequest
+ * @instance
+ */
+ GetFolderRequest.prototype.ifMetagenerationNotMatch = null;
+
+ /**
+ * GetFolderRequest requestId.
+ * @member {string} requestId
+ * @memberof google.storage.control.v2.GetFolderRequest
+ * @instance
+ */
+ GetFolderRequest.prototype.requestId = "";
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ // Virtual OneOf for proto3 optional field
+ Object.defineProperty(GetFolderRequest.prototype, "_ifMetagenerationMatch", {
+ get: $util.oneOfGetter($oneOfFields = ["ifMetagenerationMatch"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ // Virtual OneOf for proto3 optional field
+ Object.defineProperty(GetFolderRequest.prototype, "_ifMetagenerationNotMatch", {
+ get: $util.oneOfGetter($oneOfFields = ["ifMetagenerationNotMatch"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new GetFolderRequest instance using the specified properties.
+ * @function create
+ * @memberof google.storage.control.v2.GetFolderRequest
+ * @static
+ * @param {google.storage.control.v2.IGetFolderRequest=} [properties] Properties to set
+ * @returns {google.storage.control.v2.GetFolderRequest} GetFolderRequest instance
+ */
+ GetFolderRequest.create = function create(properties) {
+ return new GetFolderRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetFolderRequest message. Does not implicitly {@link google.storage.control.v2.GetFolderRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.storage.control.v2.GetFolderRequest
+ * @static
+ * @param {google.storage.control.v2.IGetFolderRequest} message GetFolderRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetFolderRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.ifMetagenerationMatch != null && Object.hasOwnProperty.call(message, "ifMetagenerationMatch"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int64(message.ifMetagenerationMatch);
+ if (message.ifMetagenerationNotMatch != null && Object.hasOwnProperty.call(message, "ifMetagenerationNotMatch"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int64(message.ifMetagenerationNotMatch);
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.requestId);
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.name);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GetFolderRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.GetFolderRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.storage.control.v2.GetFolderRequest
+ * @static
+ * @param {google.storage.control.v2.IGetFolderRequest} message GetFolderRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetFolderRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetFolderRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.storage.control.v2.GetFolderRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.storage.control.v2.GetFolderRequest} GetFolderRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetFolderRequest.decode = function decode(reader, length, error) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.storage.control.v2.GetFolderRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 6: {
+ message.name = reader.string();
+ break;
+ }
+ case 3: {
+ message.ifMetagenerationMatch = reader.int64();
+ break;
+ }
+ case 4: {
+ message.ifMetagenerationNotMatch = reader.int64();
+ break;
+ }
+ case 5: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GetFolderRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.storage.control.v2.GetFolderRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.storage.control.v2.GetFolderRequest} GetFolderRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetFolderRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetFolderRequest message.
+ * @function verify
+ * @memberof google.storage.control.v2.GetFolderRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetFolderRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.ifMetagenerationMatch != null && message.hasOwnProperty("ifMetagenerationMatch")) {
+ properties._ifMetagenerationMatch = 1;
+ if (!$util.isInteger(message.ifMetagenerationMatch) && !(message.ifMetagenerationMatch && $util.isInteger(message.ifMetagenerationMatch.low) && $util.isInteger(message.ifMetagenerationMatch.high)))
+ return "ifMetagenerationMatch: integer|Long expected";
+ }
+ if (message.ifMetagenerationNotMatch != null && message.hasOwnProperty("ifMetagenerationNotMatch")) {
+ properties._ifMetagenerationNotMatch = 1;
+ if (!$util.isInteger(message.ifMetagenerationNotMatch) && !(message.ifMetagenerationNotMatch && $util.isInteger(message.ifMetagenerationNotMatch.low) && $util.isInteger(message.ifMetagenerationNotMatch.high)))
+ return "ifMetagenerationNotMatch: integer|Long expected";
+ }
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GetFolderRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.storage.control.v2.GetFolderRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.storage.control.v2.GetFolderRequest} GetFolderRequest
+ */
+ GetFolderRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.storage.control.v2.GetFolderRequest)
+ return object;
+ var message = new $root.google.storage.control.v2.GetFolderRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.ifMetagenerationMatch != null)
+ if ($util.Long)
+ (message.ifMetagenerationMatch = $util.Long.fromValue(object.ifMetagenerationMatch)).unsigned = false;
+ else if (typeof object.ifMetagenerationMatch === "string")
+ message.ifMetagenerationMatch = parseInt(object.ifMetagenerationMatch, 10);
+ else if (typeof object.ifMetagenerationMatch === "number")
+ message.ifMetagenerationMatch = object.ifMetagenerationMatch;
+ else if (typeof object.ifMetagenerationMatch === "object")
+ message.ifMetagenerationMatch = new $util.LongBits(object.ifMetagenerationMatch.low >>> 0, object.ifMetagenerationMatch.high >>> 0).toNumber();
+ if (object.ifMetagenerationNotMatch != null)
+ if ($util.Long)
+ (message.ifMetagenerationNotMatch = $util.Long.fromValue(object.ifMetagenerationNotMatch)).unsigned = false;
+ else if (typeof object.ifMetagenerationNotMatch === "string")
+ message.ifMetagenerationNotMatch = parseInt(object.ifMetagenerationNotMatch, 10);
+ else if (typeof object.ifMetagenerationNotMatch === "number")
+ message.ifMetagenerationNotMatch = object.ifMetagenerationNotMatch;
+ else if (typeof object.ifMetagenerationNotMatch === "object")
+ message.ifMetagenerationNotMatch = new $util.LongBits(object.ifMetagenerationNotMatch.low >>> 0, object.ifMetagenerationNotMatch.high >>> 0).toNumber();
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetFolderRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.storage.control.v2.GetFolderRequest
+ * @static
+ * @param {google.storage.control.v2.GetFolderRequest} message GetFolderRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetFolderRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.requestId = "";
+ object.name = "";
+ }
+ if (message.ifMetagenerationMatch != null && message.hasOwnProperty("ifMetagenerationMatch")) {
+ if (typeof message.ifMetagenerationMatch === "number")
+ object.ifMetagenerationMatch = options.longs === String ? String(message.ifMetagenerationMatch) : message.ifMetagenerationMatch;
+ else
+ object.ifMetagenerationMatch = options.longs === String ? $util.Long.prototype.toString.call(message.ifMetagenerationMatch) : options.longs === Number ? new $util.LongBits(message.ifMetagenerationMatch.low >>> 0, message.ifMetagenerationMatch.high >>> 0).toNumber() : message.ifMetagenerationMatch;
+ if (options.oneofs)
+ object._ifMetagenerationMatch = "ifMetagenerationMatch";
+ }
+ if (message.ifMetagenerationNotMatch != null && message.hasOwnProperty("ifMetagenerationNotMatch")) {
+ if (typeof message.ifMetagenerationNotMatch === "number")
+ object.ifMetagenerationNotMatch = options.longs === String ? String(message.ifMetagenerationNotMatch) : message.ifMetagenerationNotMatch;
+ else
+ object.ifMetagenerationNotMatch = options.longs === String ? $util.Long.prototype.toString.call(message.ifMetagenerationNotMatch) : options.longs === Number ? new $util.LongBits(message.ifMetagenerationNotMatch.low >>> 0, message.ifMetagenerationNotMatch.high >>> 0).toNumber() : message.ifMetagenerationNotMatch;
+ if (options.oneofs)
+ object._ifMetagenerationNotMatch = "ifMetagenerationNotMatch";
+ }
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ return object;
+ };
+
+ /**
+ * Converts this GetFolderRequest to JSON.
+ * @function toJSON
+ * @memberof google.storage.control.v2.GetFolderRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetFolderRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetFolderRequest
+ * @function getTypeUrl
+ * @memberof google.storage.control.v2.GetFolderRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetFolderRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.storage.control.v2.GetFolderRequest";
+ };
+
+ return GetFolderRequest;
+ })();
+
+ v2.CreateFolderRequest = (function() {
+
+ /**
+ * Properties of a CreateFolderRequest.
+ * @memberof google.storage.control.v2
+ * @interface ICreateFolderRequest
+ * @property {string|null} [parent] CreateFolderRequest parent
+ * @property {google.storage.control.v2.IFolder|null} [folder] CreateFolderRequest folder
+ * @property {string|null} [folderId] CreateFolderRequest folderId
+ * @property {boolean|null} [recursive] CreateFolderRequest recursive
+ * @property {string|null} [requestId] CreateFolderRequest requestId
+ */
+
+ /**
+ * Constructs a new CreateFolderRequest.
+ * @memberof google.storage.control.v2
+ * @classdesc Represents a CreateFolderRequest.
+ * @implements ICreateFolderRequest
+ * @constructor
+ * @param {google.storage.control.v2.ICreateFolderRequest=} [properties] Properties to set
+ */
+ function CreateFolderRequest(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]];
+ }
+
+ /**
+ * CreateFolderRequest parent.
+ * @member {string} parent
+ * @memberof google.storage.control.v2.CreateFolderRequest
+ * @instance
+ */
+ CreateFolderRequest.prototype.parent = "";
+
+ /**
+ * CreateFolderRequest folder.
+ * @member {google.storage.control.v2.IFolder|null|undefined} folder
+ * @memberof google.storage.control.v2.CreateFolderRequest
+ * @instance
+ */
+ CreateFolderRequest.prototype.folder = null;
+
+ /**
+ * CreateFolderRequest folderId.
+ * @member {string} folderId
+ * @memberof google.storage.control.v2.CreateFolderRequest
+ * @instance
+ */
+ CreateFolderRequest.prototype.folderId = "";
+
+ /**
+ * CreateFolderRequest recursive.
+ * @member {boolean} recursive
+ * @memberof google.storage.control.v2.CreateFolderRequest
+ * @instance
+ */
+ CreateFolderRequest.prototype.recursive = false;
+
+ /**
+ * CreateFolderRequest requestId.
+ * @member {string} requestId
+ * @memberof google.storage.control.v2.CreateFolderRequest
+ * @instance
+ */
+ CreateFolderRequest.prototype.requestId = "";
+
+ /**
+ * Creates a new CreateFolderRequest instance using the specified properties.
+ * @function create
+ * @memberof google.storage.control.v2.CreateFolderRequest
+ * @static
+ * @param {google.storage.control.v2.ICreateFolderRequest=} [properties] Properties to set
+ * @returns {google.storage.control.v2.CreateFolderRequest} CreateFolderRequest instance
+ */
+ CreateFolderRequest.create = function create(properties) {
+ return new CreateFolderRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateFolderRequest message. Does not implicitly {@link google.storage.control.v2.CreateFolderRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.storage.control.v2.CreateFolderRequest
+ * @static
+ * @param {google.storage.control.v2.ICreateFolderRequest} message CreateFolderRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateFolderRequest.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.folder != null && Object.hasOwnProperty.call(message, "folder"))
+ $root.google.storage.control.v2.Folder.encode(message.folder, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.folderId != null && Object.hasOwnProperty.call(message, "folderId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.folderId);
+ if (message.recursive != null && Object.hasOwnProperty.call(message, "recursive"))
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.recursive);
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.requestId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateFolderRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.CreateFolderRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.storage.control.v2.CreateFolderRequest
+ * @static
+ * @param {google.storage.control.v2.ICreateFolderRequest} message CreateFolderRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateFolderRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateFolderRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.storage.control.v2.CreateFolderRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.storage.control.v2.CreateFolderRequest} CreateFolderRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateFolderRequest.decode = function decode(reader, length, error) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.storage.control.v2.CreateFolderRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.folder = $root.google.storage.control.v2.Folder.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.folderId = reader.string();
+ break;
+ }
+ case 4: {
+ message.recursive = reader.bool();
+ break;
+ }
+ case 5: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateFolderRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.storage.control.v2.CreateFolderRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.storage.control.v2.CreateFolderRequest} CreateFolderRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateFolderRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateFolderRequest message.
+ * @function verify
+ * @memberof google.storage.control.v2.CreateFolderRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateFolderRequest.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.folder != null && message.hasOwnProperty("folder")) {
+ var error = $root.google.storage.control.v2.Folder.verify(message.folder);
+ if (error)
+ return "folder." + error;
+ }
+ if (message.folderId != null && message.hasOwnProperty("folderId"))
+ if (!$util.isString(message.folderId))
+ return "folderId: string expected";
+ if (message.recursive != null && message.hasOwnProperty("recursive"))
+ if (typeof message.recursive !== "boolean")
+ return "recursive: boolean expected";
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a CreateFolderRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.storage.control.v2.CreateFolderRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.storage.control.v2.CreateFolderRequest} CreateFolderRequest
+ */
+ CreateFolderRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.storage.control.v2.CreateFolderRequest)
+ return object;
+ var message = new $root.google.storage.control.v2.CreateFolderRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.folder != null) {
+ if (typeof object.folder !== "object")
+ throw TypeError(".google.storage.control.v2.CreateFolderRequest.folder: object expected");
+ message.folder = $root.google.storage.control.v2.Folder.fromObject(object.folder);
+ }
+ if (object.folderId != null)
+ message.folderId = String(object.folderId);
+ if (object.recursive != null)
+ message.recursive = Boolean(object.recursive);
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateFolderRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.storage.control.v2.CreateFolderRequest
+ * @static
+ * @param {google.storage.control.v2.CreateFolderRequest} message CreateFolderRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateFolderRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.folder = null;
+ object.folderId = "";
+ object.recursive = false;
+ object.requestId = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.folder != null && message.hasOwnProperty("folder"))
+ object.folder = $root.google.storage.control.v2.Folder.toObject(message.folder, options);
+ if (message.folderId != null && message.hasOwnProperty("folderId"))
+ object.folderId = message.folderId;
+ if (message.recursive != null && message.hasOwnProperty("recursive"))
+ object.recursive = message.recursive;
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this CreateFolderRequest to JSON.
+ * @function toJSON
+ * @memberof google.storage.control.v2.CreateFolderRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateFolderRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateFolderRequest
+ * @function getTypeUrl
+ * @memberof google.storage.control.v2.CreateFolderRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateFolderRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.storage.control.v2.CreateFolderRequest";
+ };
+
+ return CreateFolderRequest;
+ })();
+
+ v2.DeleteFolderRequest = (function() {
+
+ /**
+ * Properties of a DeleteFolderRequest.
+ * @memberof google.storage.control.v2
+ * @interface IDeleteFolderRequest
+ * @property {string|null} [name] DeleteFolderRequest name
+ * @property {number|Long|null} [ifMetagenerationMatch] DeleteFolderRequest ifMetagenerationMatch
+ * @property {number|Long|null} [ifMetagenerationNotMatch] DeleteFolderRequest ifMetagenerationNotMatch
+ * @property {string|null} [requestId] DeleteFolderRequest requestId
+ */
+
+ /**
+ * Constructs a new DeleteFolderRequest.
+ * @memberof google.storage.control.v2
+ * @classdesc Represents a DeleteFolderRequest.
+ * @implements IDeleteFolderRequest
+ * @constructor
+ * @param {google.storage.control.v2.IDeleteFolderRequest=} [properties] Properties to set
+ */
+ function DeleteFolderRequest(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]];
+ }
+
+ /**
+ * DeleteFolderRequest name.
+ * @member {string} name
+ * @memberof google.storage.control.v2.DeleteFolderRequest
+ * @instance
+ */
+ DeleteFolderRequest.prototype.name = "";
+
+ /**
+ * DeleteFolderRequest ifMetagenerationMatch.
+ * @member {number|Long|null|undefined} ifMetagenerationMatch
+ * @memberof google.storage.control.v2.DeleteFolderRequest
+ * @instance
+ */
+ DeleteFolderRequest.prototype.ifMetagenerationMatch = null;
+
+ /**
+ * DeleteFolderRequest ifMetagenerationNotMatch.
+ * @member {number|Long|null|undefined} ifMetagenerationNotMatch
+ * @memberof google.storage.control.v2.DeleteFolderRequest
+ * @instance
+ */
+ DeleteFolderRequest.prototype.ifMetagenerationNotMatch = null;
+
+ /**
+ * DeleteFolderRequest requestId.
+ * @member {string} requestId
+ * @memberof google.storage.control.v2.DeleteFolderRequest
+ * @instance
+ */
+ DeleteFolderRequest.prototype.requestId = "";
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ // Virtual OneOf for proto3 optional field
+ Object.defineProperty(DeleteFolderRequest.prototype, "_ifMetagenerationMatch", {
+ get: $util.oneOfGetter($oneOfFields = ["ifMetagenerationMatch"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ // Virtual OneOf for proto3 optional field
+ Object.defineProperty(DeleteFolderRequest.prototype, "_ifMetagenerationNotMatch", {
+ get: $util.oneOfGetter($oneOfFields = ["ifMetagenerationNotMatch"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new DeleteFolderRequest instance using the specified properties.
+ * @function create
+ * @memberof google.storage.control.v2.DeleteFolderRequest
+ * @static
+ * @param {google.storage.control.v2.IDeleteFolderRequest=} [properties] Properties to set
+ * @returns {google.storage.control.v2.DeleteFolderRequest} DeleteFolderRequest instance
+ */
+ DeleteFolderRequest.create = function create(properties) {
+ return new DeleteFolderRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteFolderRequest message. Does not implicitly {@link google.storage.control.v2.DeleteFolderRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.storage.control.v2.DeleteFolderRequest
+ * @static
+ * @param {google.storage.control.v2.IDeleteFolderRequest} message DeleteFolderRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteFolderRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.ifMetagenerationMatch != null && Object.hasOwnProperty.call(message, "ifMetagenerationMatch"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int64(message.ifMetagenerationMatch);
+ if (message.ifMetagenerationNotMatch != null && Object.hasOwnProperty.call(message, "ifMetagenerationNotMatch"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int64(message.ifMetagenerationNotMatch);
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.requestId);
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.name);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DeleteFolderRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.DeleteFolderRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.storage.control.v2.DeleteFolderRequest
+ * @static
+ * @param {google.storage.control.v2.IDeleteFolderRequest} message DeleteFolderRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteFolderRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteFolderRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.storage.control.v2.DeleteFolderRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.storage.control.v2.DeleteFolderRequest} DeleteFolderRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteFolderRequest.decode = function decode(reader, length, error) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.storage.control.v2.DeleteFolderRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 6: {
+ message.name = reader.string();
+ break;
+ }
+ case 3: {
+ message.ifMetagenerationMatch = reader.int64();
+ break;
+ }
+ case 4: {
+ message.ifMetagenerationNotMatch = reader.int64();
+ break;
+ }
+ case 5: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DeleteFolderRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.storage.control.v2.DeleteFolderRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.storage.control.v2.DeleteFolderRequest} DeleteFolderRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteFolderRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteFolderRequest message.
+ * @function verify
+ * @memberof google.storage.control.v2.DeleteFolderRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteFolderRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.ifMetagenerationMatch != null && message.hasOwnProperty("ifMetagenerationMatch")) {
+ properties._ifMetagenerationMatch = 1;
+ if (!$util.isInteger(message.ifMetagenerationMatch) && !(message.ifMetagenerationMatch && $util.isInteger(message.ifMetagenerationMatch.low) && $util.isInteger(message.ifMetagenerationMatch.high)))
+ return "ifMetagenerationMatch: integer|Long expected";
+ }
+ if (message.ifMetagenerationNotMatch != null && message.hasOwnProperty("ifMetagenerationNotMatch")) {
+ properties._ifMetagenerationNotMatch = 1;
+ if (!$util.isInteger(message.ifMetagenerationNotMatch) && !(message.ifMetagenerationNotMatch && $util.isInteger(message.ifMetagenerationNotMatch.low) && $util.isInteger(message.ifMetagenerationNotMatch.high)))
+ return "ifMetagenerationNotMatch: integer|Long expected";
+ }
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a DeleteFolderRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.storage.control.v2.DeleteFolderRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.storage.control.v2.DeleteFolderRequest} DeleteFolderRequest
+ */
+ DeleteFolderRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.storage.control.v2.DeleteFolderRequest)
+ return object;
+ var message = new $root.google.storage.control.v2.DeleteFolderRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.ifMetagenerationMatch != null)
+ if ($util.Long)
+ (message.ifMetagenerationMatch = $util.Long.fromValue(object.ifMetagenerationMatch)).unsigned = false;
+ else if (typeof object.ifMetagenerationMatch === "string")
+ message.ifMetagenerationMatch = parseInt(object.ifMetagenerationMatch, 10);
+ else if (typeof object.ifMetagenerationMatch === "number")
+ message.ifMetagenerationMatch = object.ifMetagenerationMatch;
+ else if (typeof object.ifMetagenerationMatch === "object")
+ message.ifMetagenerationMatch = new $util.LongBits(object.ifMetagenerationMatch.low >>> 0, object.ifMetagenerationMatch.high >>> 0).toNumber();
+ if (object.ifMetagenerationNotMatch != null)
+ if ($util.Long)
+ (message.ifMetagenerationNotMatch = $util.Long.fromValue(object.ifMetagenerationNotMatch)).unsigned = false;
+ else if (typeof object.ifMetagenerationNotMatch === "string")
+ message.ifMetagenerationNotMatch = parseInt(object.ifMetagenerationNotMatch, 10);
+ else if (typeof object.ifMetagenerationNotMatch === "number")
+ message.ifMetagenerationNotMatch = object.ifMetagenerationNotMatch;
+ else if (typeof object.ifMetagenerationNotMatch === "object")
+ message.ifMetagenerationNotMatch = new $util.LongBits(object.ifMetagenerationNotMatch.low >>> 0, object.ifMetagenerationNotMatch.high >>> 0).toNumber();
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteFolderRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.storage.control.v2.DeleteFolderRequest
+ * @static
+ * @param {google.storage.control.v2.DeleteFolderRequest} message DeleteFolderRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteFolderRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.requestId = "";
+ object.name = "";
+ }
+ if (message.ifMetagenerationMatch != null && message.hasOwnProperty("ifMetagenerationMatch")) {
+ if (typeof message.ifMetagenerationMatch === "number")
+ object.ifMetagenerationMatch = options.longs === String ? String(message.ifMetagenerationMatch) : message.ifMetagenerationMatch;
+ else
+ object.ifMetagenerationMatch = options.longs === String ? $util.Long.prototype.toString.call(message.ifMetagenerationMatch) : options.longs === Number ? new $util.LongBits(message.ifMetagenerationMatch.low >>> 0, message.ifMetagenerationMatch.high >>> 0).toNumber() : message.ifMetagenerationMatch;
+ if (options.oneofs)
+ object._ifMetagenerationMatch = "ifMetagenerationMatch";
+ }
+ if (message.ifMetagenerationNotMatch != null && message.hasOwnProperty("ifMetagenerationNotMatch")) {
+ if (typeof message.ifMetagenerationNotMatch === "number")
+ object.ifMetagenerationNotMatch = options.longs === String ? String(message.ifMetagenerationNotMatch) : message.ifMetagenerationNotMatch;
+ else
+ object.ifMetagenerationNotMatch = options.longs === String ? $util.Long.prototype.toString.call(message.ifMetagenerationNotMatch) : options.longs === Number ? new $util.LongBits(message.ifMetagenerationNotMatch.low >>> 0, message.ifMetagenerationNotMatch.high >>> 0).toNumber() : message.ifMetagenerationNotMatch;
+ if (options.oneofs)
+ object._ifMetagenerationNotMatch = "ifMetagenerationNotMatch";
+ }
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ return object;
+ };
+
+ /**
+ * Converts this DeleteFolderRequest to JSON.
+ * @function toJSON
+ * @memberof google.storage.control.v2.DeleteFolderRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteFolderRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteFolderRequest
+ * @function getTypeUrl
+ * @memberof google.storage.control.v2.DeleteFolderRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteFolderRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.storage.control.v2.DeleteFolderRequest";
+ };
+
+ return DeleteFolderRequest;
+ })();
+
+ v2.ListFoldersRequest = (function() {
+
+ /**
+ * Properties of a ListFoldersRequest.
+ * @memberof google.storage.control.v2
+ * @interface IListFoldersRequest
+ * @property {string|null} [parent] ListFoldersRequest parent
+ * @property {number|null} [pageSize] ListFoldersRequest pageSize
+ * @property {string|null} [pageToken] ListFoldersRequest pageToken
+ * @property {string|null} [prefix] ListFoldersRequest prefix
+ * @property {string|null} [delimiter] ListFoldersRequest delimiter
+ * @property {string|null} [lexicographicStart] ListFoldersRequest lexicographicStart
+ * @property {string|null} [lexicographicEnd] ListFoldersRequest lexicographicEnd
+ * @property {string|null} [requestId] ListFoldersRequest requestId
+ */
+
+ /**
+ * Constructs a new ListFoldersRequest.
+ * @memberof google.storage.control.v2
+ * @classdesc Represents a ListFoldersRequest.
+ * @implements IListFoldersRequest
+ * @constructor
+ * @param {google.storage.control.v2.IListFoldersRequest=} [properties] Properties to set
+ */
+ function ListFoldersRequest(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]];
+ }
+
+ /**
+ * ListFoldersRequest parent.
+ * @member {string} parent
+ * @memberof google.storage.control.v2.ListFoldersRequest
+ * @instance
+ */
+ ListFoldersRequest.prototype.parent = "";
+
+ /**
+ * ListFoldersRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.storage.control.v2.ListFoldersRequest
+ * @instance
+ */
+ ListFoldersRequest.prototype.pageSize = 0;
+
+ /**
+ * ListFoldersRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.storage.control.v2.ListFoldersRequest
+ * @instance
+ */
+ ListFoldersRequest.prototype.pageToken = "";
+
+ /**
+ * ListFoldersRequest prefix.
+ * @member {string} prefix
+ * @memberof google.storage.control.v2.ListFoldersRequest
+ * @instance
+ */
+ ListFoldersRequest.prototype.prefix = "";
+
+ /**
+ * ListFoldersRequest delimiter.
+ * @member {string} delimiter
+ * @memberof google.storage.control.v2.ListFoldersRequest
+ * @instance
+ */
+ ListFoldersRequest.prototype.delimiter = "";
+
+ /**
+ * ListFoldersRequest lexicographicStart.
+ * @member {string} lexicographicStart
+ * @memberof google.storage.control.v2.ListFoldersRequest
+ * @instance
+ */
+ ListFoldersRequest.prototype.lexicographicStart = "";
+
+ /**
+ * ListFoldersRequest lexicographicEnd.
+ * @member {string} lexicographicEnd
+ * @memberof google.storage.control.v2.ListFoldersRequest
+ * @instance
+ */
+ ListFoldersRequest.prototype.lexicographicEnd = "";
+
+ /**
+ * ListFoldersRequest requestId.
+ * @member {string} requestId
+ * @memberof google.storage.control.v2.ListFoldersRequest
+ * @instance
+ */
+ ListFoldersRequest.prototype.requestId = "";
+
+ /**
+ * Creates a new ListFoldersRequest instance using the specified properties.
+ * @function create
+ * @memberof google.storage.control.v2.ListFoldersRequest
+ * @static
+ * @param {google.storage.control.v2.IListFoldersRequest=} [properties] Properties to set
+ * @returns {google.storage.control.v2.ListFoldersRequest} ListFoldersRequest instance
+ */
+ ListFoldersRequest.create = function create(properties) {
+ return new ListFoldersRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListFoldersRequest message. Does not implicitly {@link google.storage.control.v2.ListFoldersRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.storage.control.v2.ListFoldersRequest
+ * @static
+ * @param {google.storage.control.v2.IListFoldersRequest} message ListFoldersRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListFoldersRequest.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.prefix != null && Object.hasOwnProperty.call(message, "prefix"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.prefix);
+ if (message.lexicographicStart != null && Object.hasOwnProperty.call(message, "lexicographicStart"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.lexicographicStart);
+ if (message.lexicographicEnd != null && Object.hasOwnProperty.call(message, "lexicographicEnd"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.lexicographicEnd);
+ if (message.delimiter != null && Object.hasOwnProperty.call(message, "delimiter"))
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.delimiter);
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.requestId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListFoldersRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.ListFoldersRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.storage.control.v2.ListFoldersRequest
+ * @static
+ * @param {google.storage.control.v2.IListFoldersRequest} message ListFoldersRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListFoldersRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListFoldersRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.storage.control.v2.ListFoldersRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.storage.control.v2.ListFoldersRequest} ListFoldersRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListFoldersRequest.decode = function decode(reader, length, error) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.storage.control.v2.ListFoldersRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ 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.prefix = reader.string();
+ break;
+ }
+ case 8: {
+ message.delimiter = reader.string();
+ break;
+ }
+ case 6: {
+ message.lexicographicStart = reader.string();
+ break;
+ }
+ case 7: {
+ message.lexicographicEnd = reader.string();
+ break;
+ }
+ case 9: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListFoldersRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.storage.control.v2.ListFoldersRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.storage.control.v2.ListFoldersRequest} ListFoldersRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListFoldersRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListFoldersRequest message.
+ * @function verify
+ * @memberof google.storage.control.v2.ListFoldersRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListFoldersRequest.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.prefix != null && message.hasOwnProperty("prefix"))
+ if (!$util.isString(message.prefix))
+ return "prefix: string expected";
+ if (message.delimiter != null && message.hasOwnProperty("delimiter"))
+ if (!$util.isString(message.delimiter))
+ return "delimiter: string expected";
+ if (message.lexicographicStart != null && message.hasOwnProperty("lexicographicStart"))
+ if (!$util.isString(message.lexicographicStart))
+ return "lexicographicStart: string expected";
+ if (message.lexicographicEnd != null && message.hasOwnProperty("lexicographicEnd"))
+ if (!$util.isString(message.lexicographicEnd))
+ return "lexicographicEnd: string expected";
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListFoldersRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.storage.control.v2.ListFoldersRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.storage.control.v2.ListFoldersRequest} ListFoldersRequest
+ */
+ ListFoldersRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.storage.control.v2.ListFoldersRequest)
+ return object;
+ var message = new $root.google.storage.control.v2.ListFoldersRequest();
+ 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.prefix != null)
+ message.prefix = String(object.prefix);
+ if (object.delimiter != null)
+ message.delimiter = String(object.delimiter);
+ if (object.lexicographicStart != null)
+ message.lexicographicStart = String(object.lexicographicStart);
+ if (object.lexicographicEnd != null)
+ message.lexicographicEnd = String(object.lexicographicEnd);
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListFoldersRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.storage.control.v2.ListFoldersRequest
+ * @static
+ * @param {google.storage.control.v2.ListFoldersRequest} message ListFoldersRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListFoldersRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ object.prefix = "";
+ object.lexicographicStart = "";
+ object.lexicographicEnd = "";
+ object.delimiter = "";
+ object.requestId = "";
+ }
+ 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.prefix != null && message.hasOwnProperty("prefix"))
+ object.prefix = message.prefix;
+ if (message.lexicographicStart != null && message.hasOwnProperty("lexicographicStart"))
+ object.lexicographicStart = message.lexicographicStart;
+ if (message.lexicographicEnd != null && message.hasOwnProperty("lexicographicEnd"))
+ object.lexicographicEnd = message.lexicographicEnd;
+ if (message.delimiter != null && message.hasOwnProperty("delimiter"))
+ object.delimiter = message.delimiter;
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this ListFoldersRequest to JSON.
+ * @function toJSON
+ * @memberof google.storage.control.v2.ListFoldersRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListFoldersRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListFoldersRequest
+ * @function getTypeUrl
+ * @memberof google.storage.control.v2.ListFoldersRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListFoldersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.storage.control.v2.ListFoldersRequest";
+ };
+
+ return ListFoldersRequest;
+ })();
+
+ v2.ListFoldersResponse = (function() {
+
+ /**
+ * Properties of a ListFoldersResponse.
+ * @memberof google.storage.control.v2
+ * @interface IListFoldersResponse
+ * @property {Array.|null} [folders] ListFoldersResponse folders
+ * @property {string|null} [nextPageToken] ListFoldersResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListFoldersResponse.
+ * @memberof google.storage.control.v2
+ * @classdesc Represents a ListFoldersResponse.
+ * @implements IListFoldersResponse
+ * @constructor
+ * @param {google.storage.control.v2.IListFoldersResponse=} [properties] Properties to set
+ */
+ function ListFoldersResponse(properties) {
+ this.folders = [];
+ 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]];
+ }
+
+ /**
+ * ListFoldersResponse folders.
+ * @member {Array.} folders
+ * @memberof google.storage.control.v2.ListFoldersResponse
+ * @instance
+ */
+ ListFoldersResponse.prototype.folders = $util.emptyArray;
+
+ /**
+ * ListFoldersResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.storage.control.v2.ListFoldersResponse
+ * @instance
+ */
+ ListFoldersResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListFoldersResponse instance using the specified properties.
+ * @function create
+ * @memberof google.storage.control.v2.ListFoldersResponse
+ * @static
+ * @param {google.storage.control.v2.IListFoldersResponse=} [properties] Properties to set
+ * @returns {google.storage.control.v2.ListFoldersResponse} ListFoldersResponse instance
+ */
+ ListFoldersResponse.create = function create(properties) {
+ return new ListFoldersResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListFoldersResponse message. Does not implicitly {@link google.storage.control.v2.ListFoldersResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.storage.control.v2.ListFoldersResponse
+ * @static
+ * @param {google.storage.control.v2.IListFoldersResponse} message ListFoldersResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListFoldersResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.folders != null && message.folders.length)
+ for (var i = 0; i < message.folders.length; ++i)
+ $root.google.storage.control.v2.Folder.encode(message.folders[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 ListFoldersResponse message, length delimited. Does not implicitly {@link google.storage.control.v2.ListFoldersResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.storage.control.v2.ListFoldersResponse
+ * @static
+ * @param {google.storage.control.v2.IListFoldersResponse} message ListFoldersResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListFoldersResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListFoldersResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.storage.control.v2.ListFoldersResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.storage.control.v2.ListFoldersResponse} ListFoldersResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListFoldersResponse.decode = function decode(reader, length, error) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.storage.control.v2.ListFoldersResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.folders && message.folders.length))
+ message.folders = [];
+ message.folders.push($root.google.storage.control.v2.Folder.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListFoldersResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.storage.control.v2.ListFoldersResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.storage.control.v2.ListFoldersResponse} ListFoldersResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListFoldersResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListFoldersResponse message.
+ * @function verify
+ * @memberof google.storage.control.v2.ListFoldersResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListFoldersResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.folders != null && message.hasOwnProperty("folders")) {
+ if (!Array.isArray(message.folders))
+ return "folders: array expected";
+ for (var i = 0; i < message.folders.length; ++i) {
+ var error = $root.google.storage.control.v2.Folder.verify(message.folders[i]);
+ if (error)
+ return "folders." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListFoldersResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.storage.control.v2.ListFoldersResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.storage.control.v2.ListFoldersResponse} ListFoldersResponse
+ */
+ ListFoldersResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.storage.control.v2.ListFoldersResponse)
+ return object;
+ var message = new $root.google.storage.control.v2.ListFoldersResponse();
+ if (object.folders) {
+ if (!Array.isArray(object.folders))
+ throw TypeError(".google.storage.control.v2.ListFoldersResponse.folders: array expected");
+ message.folders = [];
+ for (var i = 0; i < object.folders.length; ++i) {
+ if (typeof object.folders[i] !== "object")
+ throw TypeError(".google.storage.control.v2.ListFoldersResponse.folders: object expected");
+ message.folders[i] = $root.google.storage.control.v2.Folder.fromObject(object.folders[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListFoldersResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.storage.control.v2.ListFoldersResponse
+ * @static
+ * @param {google.storage.control.v2.ListFoldersResponse} message ListFoldersResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListFoldersResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.folders = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.folders && message.folders.length) {
+ object.folders = [];
+ for (var j = 0; j < message.folders.length; ++j)
+ object.folders[j] = $root.google.storage.control.v2.Folder.toObject(message.folders[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListFoldersResponse to JSON.
+ * @function toJSON
+ * @memberof google.storage.control.v2.ListFoldersResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListFoldersResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListFoldersResponse
+ * @function getTypeUrl
+ * @memberof google.storage.control.v2.ListFoldersResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListFoldersResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.storage.control.v2.ListFoldersResponse";
+ };
+
+ return ListFoldersResponse;
+ })();
+
+ v2.RenameFolderRequest = (function() {
+
+ /**
+ * Properties of a RenameFolderRequest.
+ * @memberof google.storage.control.v2
+ * @interface IRenameFolderRequest
+ * @property {string|null} [name] RenameFolderRequest name
+ * @property {string|null} [destinationFolderId] RenameFolderRequest destinationFolderId
+ * @property {number|Long|null} [ifMetagenerationMatch] RenameFolderRequest ifMetagenerationMatch
+ * @property {number|Long|null} [ifMetagenerationNotMatch] RenameFolderRequest ifMetagenerationNotMatch
+ * @property {string|null} [requestId] RenameFolderRequest requestId
+ */
+
+ /**
+ * Constructs a new RenameFolderRequest.
+ * @memberof google.storage.control.v2
+ * @classdesc Represents a RenameFolderRequest.
+ * @implements IRenameFolderRequest
+ * @constructor
+ * @param {google.storage.control.v2.IRenameFolderRequest=} [properties] Properties to set
+ */
+ function RenameFolderRequest(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]];
+ }
+
+ /**
+ * RenameFolderRequest name.
+ * @member {string} name
+ * @memberof google.storage.control.v2.RenameFolderRequest
+ * @instance
+ */
+ RenameFolderRequest.prototype.name = "";
+
+ /**
+ * RenameFolderRequest destinationFolderId.
+ * @member {string} destinationFolderId
+ * @memberof google.storage.control.v2.RenameFolderRequest
+ * @instance
+ */
+ RenameFolderRequest.prototype.destinationFolderId = "";
+
+ /**
+ * RenameFolderRequest ifMetagenerationMatch.
+ * @member {number|Long|null|undefined} ifMetagenerationMatch
+ * @memberof google.storage.control.v2.RenameFolderRequest
+ * @instance
+ */
+ RenameFolderRequest.prototype.ifMetagenerationMatch = null;
+
+ /**
+ * RenameFolderRequest ifMetagenerationNotMatch.
+ * @member {number|Long|null|undefined} ifMetagenerationNotMatch
+ * @memberof google.storage.control.v2.RenameFolderRequest
+ * @instance
+ */
+ RenameFolderRequest.prototype.ifMetagenerationNotMatch = null;
+
+ /**
+ * RenameFolderRequest requestId.
+ * @member {string} requestId
+ * @memberof google.storage.control.v2.RenameFolderRequest
+ * @instance
+ */
+ RenameFolderRequest.prototype.requestId = "";
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ // Virtual OneOf for proto3 optional field
+ Object.defineProperty(RenameFolderRequest.prototype, "_ifMetagenerationMatch", {
+ get: $util.oneOfGetter($oneOfFields = ["ifMetagenerationMatch"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ // Virtual OneOf for proto3 optional field
+ Object.defineProperty(RenameFolderRequest.prototype, "_ifMetagenerationNotMatch", {
+ get: $util.oneOfGetter($oneOfFields = ["ifMetagenerationNotMatch"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new RenameFolderRequest instance using the specified properties.
+ * @function create
+ * @memberof google.storage.control.v2.RenameFolderRequest
+ * @static
+ * @param {google.storage.control.v2.IRenameFolderRequest=} [properties] Properties to set
+ * @returns {google.storage.control.v2.RenameFolderRequest} RenameFolderRequest instance
+ */
+ RenameFolderRequest.create = function create(properties) {
+ return new RenameFolderRequest(properties);
+ };
+
+ /**
+ * Encodes the specified RenameFolderRequest message. Does not implicitly {@link google.storage.control.v2.RenameFolderRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.storage.control.v2.RenameFolderRequest
+ * @static
+ * @param {google.storage.control.v2.IRenameFolderRequest} message RenameFolderRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RenameFolderRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.ifMetagenerationMatch != null && Object.hasOwnProperty.call(message, "ifMetagenerationMatch"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int64(message.ifMetagenerationMatch);
+ if (message.ifMetagenerationNotMatch != null && Object.hasOwnProperty.call(message, "ifMetagenerationNotMatch"))
+ writer.uint32(/* id 5, wireType 0 =*/40).int64(message.ifMetagenerationNotMatch);
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.requestId);
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.name);
+ if (message.destinationFolderId != null && Object.hasOwnProperty.call(message, "destinationFolderId"))
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.destinationFolderId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified RenameFolderRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.RenameFolderRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.storage.control.v2.RenameFolderRequest
+ * @static
+ * @param {google.storage.control.v2.IRenameFolderRequest} message RenameFolderRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RenameFolderRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a RenameFolderRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.storage.control.v2.RenameFolderRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.storage.control.v2.RenameFolderRequest} RenameFolderRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RenameFolderRequest.decode = function decode(reader, length, error) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.storage.control.v2.RenameFolderRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 7: {
+ message.name = reader.string();
+ break;
+ }
+ case 8: {
+ message.destinationFolderId = reader.string();
+ break;
+ }
+ case 4: {
+ message.ifMetagenerationMatch = reader.int64();
+ break;
+ }
+ case 5: {
+ message.ifMetagenerationNotMatch = reader.int64();
+ break;
+ }
+ case 6: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a RenameFolderRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.storage.control.v2.RenameFolderRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.storage.control.v2.RenameFolderRequest} RenameFolderRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RenameFolderRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a RenameFolderRequest message.
+ * @function verify
+ * @memberof google.storage.control.v2.RenameFolderRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ RenameFolderRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.destinationFolderId != null && message.hasOwnProperty("destinationFolderId"))
+ if (!$util.isString(message.destinationFolderId))
+ return "destinationFolderId: string expected";
+ if (message.ifMetagenerationMatch != null && message.hasOwnProperty("ifMetagenerationMatch")) {
+ properties._ifMetagenerationMatch = 1;
+ if (!$util.isInteger(message.ifMetagenerationMatch) && !(message.ifMetagenerationMatch && $util.isInteger(message.ifMetagenerationMatch.low) && $util.isInteger(message.ifMetagenerationMatch.high)))
+ return "ifMetagenerationMatch: integer|Long expected";
+ }
+ if (message.ifMetagenerationNotMatch != null && message.hasOwnProperty("ifMetagenerationNotMatch")) {
+ properties._ifMetagenerationNotMatch = 1;
+ if (!$util.isInteger(message.ifMetagenerationNotMatch) && !(message.ifMetagenerationNotMatch && $util.isInteger(message.ifMetagenerationNotMatch.low) && $util.isInteger(message.ifMetagenerationNotMatch.high)))
+ return "ifMetagenerationNotMatch: integer|Long expected";
+ }
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a RenameFolderRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.storage.control.v2.RenameFolderRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.storage.control.v2.RenameFolderRequest} RenameFolderRequest
+ */
+ RenameFolderRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.storage.control.v2.RenameFolderRequest)
+ return object;
+ var message = new $root.google.storage.control.v2.RenameFolderRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.destinationFolderId != null)
+ message.destinationFolderId = String(object.destinationFolderId);
+ if (object.ifMetagenerationMatch != null)
+ if ($util.Long)
+ (message.ifMetagenerationMatch = $util.Long.fromValue(object.ifMetagenerationMatch)).unsigned = false;
+ else if (typeof object.ifMetagenerationMatch === "string")
+ message.ifMetagenerationMatch = parseInt(object.ifMetagenerationMatch, 10);
+ else if (typeof object.ifMetagenerationMatch === "number")
+ message.ifMetagenerationMatch = object.ifMetagenerationMatch;
+ else if (typeof object.ifMetagenerationMatch === "object")
+ message.ifMetagenerationMatch = new $util.LongBits(object.ifMetagenerationMatch.low >>> 0, object.ifMetagenerationMatch.high >>> 0).toNumber();
+ if (object.ifMetagenerationNotMatch != null)
+ if ($util.Long)
+ (message.ifMetagenerationNotMatch = $util.Long.fromValue(object.ifMetagenerationNotMatch)).unsigned = false;
+ else if (typeof object.ifMetagenerationNotMatch === "string")
+ message.ifMetagenerationNotMatch = parseInt(object.ifMetagenerationNotMatch, 10);
+ else if (typeof object.ifMetagenerationNotMatch === "number")
+ message.ifMetagenerationNotMatch = object.ifMetagenerationNotMatch;
+ else if (typeof object.ifMetagenerationNotMatch === "object")
+ message.ifMetagenerationNotMatch = new $util.LongBits(object.ifMetagenerationNotMatch.low >>> 0, object.ifMetagenerationNotMatch.high >>> 0).toNumber();
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a RenameFolderRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.storage.control.v2.RenameFolderRequest
+ * @static
+ * @param {google.storage.control.v2.RenameFolderRequest} message RenameFolderRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ RenameFolderRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.requestId = "";
+ object.name = "";
+ object.destinationFolderId = "";
+ }
+ if (message.ifMetagenerationMatch != null && message.hasOwnProperty("ifMetagenerationMatch")) {
+ if (typeof message.ifMetagenerationMatch === "number")
+ object.ifMetagenerationMatch = options.longs === String ? String(message.ifMetagenerationMatch) : message.ifMetagenerationMatch;
+ else
+ object.ifMetagenerationMatch = options.longs === String ? $util.Long.prototype.toString.call(message.ifMetagenerationMatch) : options.longs === Number ? new $util.LongBits(message.ifMetagenerationMatch.low >>> 0, message.ifMetagenerationMatch.high >>> 0).toNumber() : message.ifMetagenerationMatch;
+ if (options.oneofs)
+ object._ifMetagenerationMatch = "ifMetagenerationMatch";
+ }
+ if (message.ifMetagenerationNotMatch != null && message.hasOwnProperty("ifMetagenerationNotMatch")) {
+ if (typeof message.ifMetagenerationNotMatch === "number")
+ object.ifMetagenerationNotMatch = options.longs === String ? String(message.ifMetagenerationNotMatch) : message.ifMetagenerationNotMatch;
+ else
+ object.ifMetagenerationNotMatch = options.longs === String ? $util.Long.prototype.toString.call(message.ifMetagenerationNotMatch) : options.longs === Number ? new $util.LongBits(message.ifMetagenerationNotMatch.low >>> 0, message.ifMetagenerationNotMatch.high >>> 0).toNumber() : message.ifMetagenerationNotMatch;
+ if (options.oneofs)
+ object._ifMetagenerationNotMatch = "ifMetagenerationNotMatch";
+ }
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.destinationFolderId != null && message.hasOwnProperty("destinationFolderId"))
+ object.destinationFolderId = message.destinationFolderId;
+ return object;
+ };
+
+ /**
+ * Converts this RenameFolderRequest to JSON.
+ * @function toJSON
+ * @memberof google.storage.control.v2.RenameFolderRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ RenameFolderRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for RenameFolderRequest
+ * @function getTypeUrl
+ * @memberof google.storage.control.v2.RenameFolderRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ RenameFolderRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.storage.control.v2.RenameFolderRequest";
+ };
+
+ return RenameFolderRequest;
+ })();
+
+ v2.DeleteFolderRecursiveRequest = (function() {
+
+ /**
+ * Properties of a DeleteFolderRecursiveRequest.
+ * @memberof google.storage.control.v2
+ * @interface IDeleteFolderRecursiveRequest
+ * @property {string|null} [name] DeleteFolderRecursiveRequest name
+ * @property {number|Long|null} [ifMetagenerationMatch] DeleteFolderRecursiveRequest ifMetagenerationMatch
+ * @property {number|Long|null} [ifMetagenerationNotMatch] DeleteFolderRecursiveRequest ifMetagenerationNotMatch
+ * @property {string|null} [requestId] DeleteFolderRecursiveRequest requestId
+ */
+
+ /**
+ * Constructs a new DeleteFolderRecursiveRequest.
+ * @memberof google.storage.control.v2
+ * @classdesc Represents a DeleteFolderRecursiveRequest.
+ * @implements IDeleteFolderRecursiveRequest
+ * @constructor
+ * @param {google.storage.control.v2.IDeleteFolderRecursiveRequest=} [properties] Properties to set
+ */
+ function DeleteFolderRecursiveRequest(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]];
+ }
+
+ /**
+ * DeleteFolderRecursiveRequest name.
+ * @member {string} name
+ * @memberof google.storage.control.v2.DeleteFolderRecursiveRequest
+ * @instance
+ */
+ DeleteFolderRecursiveRequest.prototype.name = "";
+
+ /**
+ * DeleteFolderRecursiveRequest ifMetagenerationMatch.
+ * @member {number|Long|null|undefined} ifMetagenerationMatch
+ * @memberof google.storage.control.v2.DeleteFolderRecursiveRequest
+ * @instance
+ */
+ DeleteFolderRecursiveRequest.prototype.ifMetagenerationMatch = null;
+
+ /**
+ * DeleteFolderRecursiveRequest ifMetagenerationNotMatch.
+ * @member {number|Long|null|undefined} ifMetagenerationNotMatch
+ * @memberof google.storage.control.v2.DeleteFolderRecursiveRequest
+ * @instance
+ */
+ DeleteFolderRecursiveRequest.prototype.ifMetagenerationNotMatch = null;
+
+ /**
+ * DeleteFolderRecursiveRequest requestId.
+ * @member {string} requestId
+ * @memberof google.storage.control.v2.DeleteFolderRecursiveRequest
+ * @instance
+ */
+ DeleteFolderRecursiveRequest.prototype.requestId = "";
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ // Virtual OneOf for proto3 optional field
+ Object.defineProperty(DeleteFolderRecursiveRequest.prototype, "_ifMetagenerationMatch", {
+ get: $util.oneOfGetter($oneOfFields = ["ifMetagenerationMatch"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ // Virtual OneOf for proto3 optional field
+ Object.defineProperty(DeleteFolderRecursiveRequest.prototype, "_ifMetagenerationNotMatch", {
+ get: $util.oneOfGetter($oneOfFields = ["ifMetagenerationNotMatch"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new DeleteFolderRecursiveRequest instance using the specified properties.
+ * @function create
+ * @memberof google.storage.control.v2.DeleteFolderRecursiveRequest
+ * @static
+ * @param {google.storage.control.v2.IDeleteFolderRecursiveRequest=} [properties] Properties to set
+ * @returns {google.storage.control.v2.DeleteFolderRecursiveRequest} DeleteFolderRecursiveRequest instance
+ */
+ DeleteFolderRecursiveRequest.create = function create(properties) {
+ return new DeleteFolderRecursiveRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteFolderRecursiveRequest message. Does not implicitly {@link google.storage.control.v2.DeleteFolderRecursiveRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.storage.control.v2.DeleteFolderRecursiveRequest
+ * @static
+ * @param {google.storage.control.v2.IDeleteFolderRecursiveRequest} message DeleteFolderRecursiveRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteFolderRecursiveRequest.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.ifMetagenerationMatch != null && Object.hasOwnProperty.call(message, "ifMetagenerationMatch"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int64(message.ifMetagenerationMatch);
+ if (message.ifMetagenerationNotMatch != null && Object.hasOwnProperty.call(message, "ifMetagenerationNotMatch"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int64(message.ifMetagenerationNotMatch);
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DeleteFolderRecursiveRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.DeleteFolderRecursiveRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.storage.control.v2.DeleteFolderRecursiveRequest
+ * @static
+ * @param {google.storage.control.v2.IDeleteFolderRecursiveRequest} message DeleteFolderRecursiveRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteFolderRecursiveRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteFolderRecursiveRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.storage.control.v2.DeleteFolderRecursiveRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.storage.control.v2.DeleteFolderRecursiveRequest} DeleteFolderRecursiveRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteFolderRecursiveRequest.decode = function decode(reader, length, error) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.storage.control.v2.DeleteFolderRecursiveRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.ifMetagenerationMatch = reader.int64();
+ break;
+ }
+ case 3: {
+ message.ifMetagenerationNotMatch = reader.int64();
+ break;
+ }
+ case 4: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DeleteFolderRecursiveRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.storage.control.v2.DeleteFolderRecursiveRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.storage.control.v2.DeleteFolderRecursiveRequest} DeleteFolderRecursiveRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteFolderRecursiveRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteFolderRecursiveRequest message.
+ * @function verify
+ * @memberof google.storage.control.v2.DeleteFolderRecursiveRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteFolderRecursiveRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.ifMetagenerationMatch != null && message.hasOwnProperty("ifMetagenerationMatch")) {
+ properties._ifMetagenerationMatch = 1;
+ if (!$util.isInteger(message.ifMetagenerationMatch) && !(message.ifMetagenerationMatch && $util.isInteger(message.ifMetagenerationMatch.low) && $util.isInteger(message.ifMetagenerationMatch.high)))
+ return "ifMetagenerationMatch: integer|Long expected";
+ }
+ if (message.ifMetagenerationNotMatch != null && message.hasOwnProperty("ifMetagenerationNotMatch")) {
+ properties._ifMetagenerationNotMatch = 1;
+ if (!$util.isInteger(message.ifMetagenerationNotMatch) && !(message.ifMetagenerationNotMatch && $util.isInteger(message.ifMetagenerationNotMatch.low) && $util.isInteger(message.ifMetagenerationNotMatch.high)))
+ return "ifMetagenerationNotMatch: integer|Long expected";
+ }
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a DeleteFolderRecursiveRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.storage.control.v2.DeleteFolderRecursiveRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.storage.control.v2.DeleteFolderRecursiveRequest} DeleteFolderRecursiveRequest
+ */
+ DeleteFolderRecursiveRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.storage.control.v2.DeleteFolderRecursiveRequest)
+ return object;
+ var message = new $root.google.storage.control.v2.DeleteFolderRecursiveRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.ifMetagenerationMatch != null)
+ if ($util.Long)
+ (message.ifMetagenerationMatch = $util.Long.fromValue(object.ifMetagenerationMatch)).unsigned = false;
+ else if (typeof object.ifMetagenerationMatch === "string")
+ message.ifMetagenerationMatch = parseInt(object.ifMetagenerationMatch, 10);
+ else if (typeof object.ifMetagenerationMatch === "number")
+ message.ifMetagenerationMatch = object.ifMetagenerationMatch;
+ else if (typeof object.ifMetagenerationMatch === "object")
+ message.ifMetagenerationMatch = new $util.LongBits(object.ifMetagenerationMatch.low >>> 0, object.ifMetagenerationMatch.high >>> 0).toNumber();
+ if (object.ifMetagenerationNotMatch != null)
+ if ($util.Long)
+ (message.ifMetagenerationNotMatch = $util.Long.fromValue(object.ifMetagenerationNotMatch)).unsigned = false;
+ else if (typeof object.ifMetagenerationNotMatch === "string")
+ message.ifMetagenerationNotMatch = parseInt(object.ifMetagenerationNotMatch, 10);
+ else if (typeof object.ifMetagenerationNotMatch === "number")
+ message.ifMetagenerationNotMatch = object.ifMetagenerationNotMatch;
+ else if (typeof object.ifMetagenerationNotMatch === "object")
+ message.ifMetagenerationNotMatch = new $util.LongBits(object.ifMetagenerationNotMatch.low >>> 0, object.ifMetagenerationNotMatch.high >>> 0).toNumber();
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteFolderRecursiveRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.storage.control.v2.DeleteFolderRecursiveRequest
+ * @static
+ * @param {google.storage.control.v2.DeleteFolderRecursiveRequest} message DeleteFolderRecursiveRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteFolderRecursiveRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.requestId = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.ifMetagenerationMatch != null && message.hasOwnProperty("ifMetagenerationMatch")) {
+ if (typeof message.ifMetagenerationMatch === "number")
+ object.ifMetagenerationMatch = options.longs === String ? String(message.ifMetagenerationMatch) : message.ifMetagenerationMatch;
+ else
+ object.ifMetagenerationMatch = options.longs === String ? $util.Long.prototype.toString.call(message.ifMetagenerationMatch) : options.longs === Number ? new $util.LongBits(message.ifMetagenerationMatch.low >>> 0, message.ifMetagenerationMatch.high >>> 0).toNumber() : message.ifMetagenerationMatch;
+ if (options.oneofs)
+ object._ifMetagenerationMatch = "ifMetagenerationMatch";
+ }
+ if (message.ifMetagenerationNotMatch != null && message.hasOwnProperty("ifMetagenerationNotMatch")) {
+ if (typeof message.ifMetagenerationNotMatch === "number")
+ object.ifMetagenerationNotMatch = options.longs === String ? String(message.ifMetagenerationNotMatch) : message.ifMetagenerationNotMatch;
+ else
+ object.ifMetagenerationNotMatch = options.longs === String ? $util.Long.prototype.toString.call(message.ifMetagenerationNotMatch) : options.longs === Number ? new $util.LongBits(message.ifMetagenerationNotMatch.low >>> 0, message.ifMetagenerationNotMatch.high >>> 0).toNumber() : message.ifMetagenerationNotMatch;
+ if (options.oneofs)
+ object._ifMetagenerationNotMatch = "ifMetagenerationNotMatch";
+ }
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this DeleteFolderRecursiveRequest to JSON.
+ * @function toJSON
+ * @memberof google.storage.control.v2.DeleteFolderRecursiveRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteFolderRecursiveRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteFolderRecursiveRequest
+ * @function getTypeUrl
+ * @memberof google.storage.control.v2.DeleteFolderRecursiveRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteFolderRecursiveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.storage.control.v2.DeleteFolderRecursiveRequest";
+ };
+
+ return DeleteFolderRecursiveRequest;
+ })();
+
+ v2.CommonLongRunningOperationMetadata = (function() {
+
+ /**
+ * Properties of a CommonLongRunningOperationMetadata.
+ * @memberof google.storage.control.v2
+ * @interface ICommonLongRunningOperationMetadata
+ * @property {google.protobuf.ITimestamp|null} [createTime] CommonLongRunningOperationMetadata createTime
+ * @property {google.protobuf.ITimestamp|null} [endTime] CommonLongRunningOperationMetadata endTime
+ * @property {google.protobuf.ITimestamp|null} [updateTime] CommonLongRunningOperationMetadata updateTime
+ * @property {string|null} [type] CommonLongRunningOperationMetadata type
+ * @property {boolean|null} [requestedCancellation] CommonLongRunningOperationMetadata requestedCancellation
+ * @property {number|null} [progressPercent] CommonLongRunningOperationMetadata progressPercent
+ */
+
+ /**
+ * Constructs a new CommonLongRunningOperationMetadata.
+ * @memberof google.storage.control.v2
+ * @classdesc Represents a CommonLongRunningOperationMetadata.
+ * @implements ICommonLongRunningOperationMetadata
+ * @constructor
+ * @param {google.storage.control.v2.ICommonLongRunningOperationMetadata=} [properties] Properties to set
+ */
+ function CommonLongRunningOperationMetadata(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]];
+ }
+
+ /**
+ * CommonLongRunningOperationMetadata createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.storage.control.v2.CommonLongRunningOperationMetadata
+ * @instance
+ */
+ CommonLongRunningOperationMetadata.prototype.createTime = null;
+
+ /**
+ * CommonLongRunningOperationMetadata endTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} endTime
+ * @memberof google.storage.control.v2.CommonLongRunningOperationMetadata
+ * @instance
+ */
+ CommonLongRunningOperationMetadata.prototype.endTime = null;
+
+ /**
+ * CommonLongRunningOperationMetadata updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.storage.control.v2.CommonLongRunningOperationMetadata
+ * @instance
+ */
+ CommonLongRunningOperationMetadata.prototype.updateTime = null;
+
+ /**
+ * CommonLongRunningOperationMetadata type.
+ * @member {string} type
+ * @memberof google.storage.control.v2.CommonLongRunningOperationMetadata
+ * @instance
+ */
+ CommonLongRunningOperationMetadata.prototype.type = "";
+
+ /**
+ * CommonLongRunningOperationMetadata requestedCancellation.
+ * @member {boolean} requestedCancellation
+ * @memberof google.storage.control.v2.CommonLongRunningOperationMetadata
+ * @instance
+ */
+ CommonLongRunningOperationMetadata.prototype.requestedCancellation = false;
+
+ /**
+ * CommonLongRunningOperationMetadata progressPercent.
+ * @member {number} progressPercent
+ * @memberof google.storage.control.v2.CommonLongRunningOperationMetadata
+ * @instance
+ */
+ CommonLongRunningOperationMetadata.prototype.progressPercent = 0;
+
+ /**
+ * Creates a new CommonLongRunningOperationMetadata instance using the specified properties.
+ * @function create
+ * @memberof google.storage.control.v2.CommonLongRunningOperationMetadata
+ * @static
+ * @param {google.storage.control.v2.ICommonLongRunningOperationMetadata=} [properties] Properties to set
+ * @returns {google.storage.control.v2.CommonLongRunningOperationMetadata} CommonLongRunningOperationMetadata instance
+ */
+ CommonLongRunningOperationMetadata.create = function create(properties) {
+ return new CommonLongRunningOperationMetadata(properties);
+ };
+
+ /**
+ * Encodes the specified CommonLongRunningOperationMetadata message. Does not implicitly {@link google.storage.control.v2.CommonLongRunningOperationMetadata.verify|verify} messages.
+ * @function encode
+ * @memberof google.storage.control.v2.CommonLongRunningOperationMetadata
+ * @static
+ * @param {google.storage.control.v2.ICommonLongRunningOperationMetadata} message CommonLongRunningOperationMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CommonLongRunningOperationMetadata.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.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.type != null && Object.hasOwnProperty.call(message, "type"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.type);
+ if (message.requestedCancellation != null && Object.hasOwnProperty.call(message, "requestedCancellation"))
+ writer.uint32(/* id 5, wireType 0 =*/40).bool(message.requestedCancellation);
+ if (message.progressPercent != null && Object.hasOwnProperty.call(message, "progressPercent"))
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.progressPercent);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CommonLongRunningOperationMetadata message, length delimited. Does not implicitly {@link google.storage.control.v2.CommonLongRunningOperationMetadata.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.storage.control.v2.CommonLongRunningOperationMetadata
+ * @static
+ * @param {google.storage.control.v2.ICommonLongRunningOperationMetadata} message CommonLongRunningOperationMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CommonLongRunningOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CommonLongRunningOperationMetadata message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.storage.control.v2.CommonLongRunningOperationMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.storage.control.v2.CommonLongRunningOperationMetadata} CommonLongRunningOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CommonLongRunningOperationMetadata.decode = function decode(reader, length, error) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.storage.control.v2.CommonLongRunningOperationMetadata();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ 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.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.type = reader.string();
+ break;
+ }
+ case 5: {
+ message.requestedCancellation = reader.bool();
+ break;
+ }
+ case 6: {
+ message.progressPercent = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CommonLongRunningOperationMetadata message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.storage.control.v2.CommonLongRunningOperationMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.storage.control.v2.CommonLongRunningOperationMetadata} CommonLongRunningOperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CommonLongRunningOperationMetadata.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CommonLongRunningOperationMetadata message.
+ * @function verify
+ * @memberof google.storage.control.v2.CommonLongRunningOperationMetadata
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CommonLongRunningOperationMetadata.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.updateTime != null && message.hasOwnProperty("updateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.updateTime);
+ if (error)
+ return "updateTime." + error;
+ }
+ if (message.type != null && message.hasOwnProperty("type"))
+ if (!$util.isString(message.type))
+ return "type: string expected";
+ if (message.requestedCancellation != null && message.hasOwnProperty("requestedCancellation"))
+ if (typeof message.requestedCancellation !== "boolean")
+ return "requestedCancellation: boolean expected";
+ if (message.progressPercent != null && message.hasOwnProperty("progressPercent"))
+ if (!$util.isInteger(message.progressPercent))
+ return "progressPercent: integer expected";
+ return null;
+ };
+
+ /**
+ * Creates a CommonLongRunningOperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.storage.control.v2.CommonLongRunningOperationMetadata
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.storage.control.v2.CommonLongRunningOperationMetadata} CommonLongRunningOperationMetadata
+ */
+ CommonLongRunningOperationMetadata.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.storage.control.v2.CommonLongRunningOperationMetadata)
+ return object;
+ var message = new $root.google.storage.control.v2.CommonLongRunningOperationMetadata();
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.storage.control.v2.CommonLongRunningOperationMetadata.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
+ }
+ if (object.endTime != null) {
+ if (typeof object.endTime !== "object")
+ throw TypeError(".google.storage.control.v2.CommonLongRunningOperationMetadata.endTime: object expected");
+ message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime);
+ }
+ if (object.updateTime != null) {
+ if (typeof object.updateTime !== "object")
+ throw TypeError(".google.storage.control.v2.CommonLongRunningOperationMetadata.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ if (object.type != null)
+ message.type = String(object.type);
+ if (object.requestedCancellation != null)
+ message.requestedCancellation = Boolean(object.requestedCancellation);
+ if (object.progressPercent != null)
+ message.progressPercent = object.progressPercent | 0;
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CommonLongRunningOperationMetadata message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.storage.control.v2.CommonLongRunningOperationMetadata
+ * @static
+ * @param {google.storage.control.v2.CommonLongRunningOperationMetadata} message CommonLongRunningOperationMetadata
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CommonLongRunningOperationMetadata.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.createTime = null;
+ object.endTime = null;
+ object.updateTime = null;
+ object.type = "";
+ object.requestedCancellation = false;
+ object.progressPercent = 0;
+ }
+ 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.updateTime != null && message.hasOwnProperty("updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
+ if (message.type != null && message.hasOwnProperty("type"))
+ object.type = message.type;
+ if (message.requestedCancellation != null && message.hasOwnProperty("requestedCancellation"))
+ object.requestedCancellation = message.requestedCancellation;
+ if (message.progressPercent != null && message.hasOwnProperty("progressPercent"))
+ object.progressPercent = message.progressPercent;
+ return object;
+ };
+
+ /**
+ * Converts this CommonLongRunningOperationMetadata to JSON.
+ * @function toJSON
+ * @memberof google.storage.control.v2.CommonLongRunningOperationMetadata
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CommonLongRunningOperationMetadata.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CommonLongRunningOperationMetadata
+ * @function getTypeUrl
+ * @memberof google.storage.control.v2.CommonLongRunningOperationMetadata
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CommonLongRunningOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.storage.control.v2.CommonLongRunningOperationMetadata";
+ };
+
+ return CommonLongRunningOperationMetadata;
+ })();
+
+ v2.RenameFolderMetadata = (function() {
+
+ /**
+ * Properties of a RenameFolderMetadata.
+ * @memberof google.storage.control.v2
+ * @interface IRenameFolderMetadata
+ * @property {google.storage.control.v2.ICommonLongRunningOperationMetadata|null} [commonMetadata] RenameFolderMetadata commonMetadata
+ * @property {string|null} [sourceFolderId] RenameFolderMetadata sourceFolderId
+ * @property {string|null} [destinationFolderId] RenameFolderMetadata destinationFolderId
+ */
+
+ /**
+ * Constructs a new RenameFolderMetadata.
+ * @memberof google.storage.control.v2
+ * @classdesc Represents a RenameFolderMetadata.
+ * @implements IRenameFolderMetadata
+ * @constructor
+ * @param {google.storage.control.v2.IRenameFolderMetadata=} [properties] Properties to set
+ */
+ function RenameFolderMetadata(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]];
+ }
+
+ /**
+ * RenameFolderMetadata commonMetadata.
+ * @member {google.storage.control.v2.ICommonLongRunningOperationMetadata|null|undefined} commonMetadata
+ * @memberof google.storage.control.v2.RenameFolderMetadata
+ * @instance
+ */
+ RenameFolderMetadata.prototype.commonMetadata = null;
+
+ /**
+ * RenameFolderMetadata sourceFolderId.
+ * @member {string} sourceFolderId
+ * @memberof google.storage.control.v2.RenameFolderMetadata
+ * @instance
+ */
+ RenameFolderMetadata.prototype.sourceFolderId = "";
+
+ /**
+ * RenameFolderMetadata destinationFolderId.
+ * @member {string} destinationFolderId
+ * @memberof google.storage.control.v2.RenameFolderMetadata
+ * @instance
+ */
+ RenameFolderMetadata.prototype.destinationFolderId = "";
+
+ /**
+ * Creates a new RenameFolderMetadata instance using the specified properties.
+ * @function create
+ * @memberof google.storage.control.v2.RenameFolderMetadata
+ * @static
+ * @param {google.storage.control.v2.IRenameFolderMetadata=} [properties] Properties to set
+ * @returns {google.storage.control.v2.RenameFolderMetadata} RenameFolderMetadata instance
+ */
+ RenameFolderMetadata.create = function create(properties) {
+ return new RenameFolderMetadata(properties);
+ };
+
+ /**
+ * Encodes the specified RenameFolderMetadata message. Does not implicitly {@link google.storage.control.v2.RenameFolderMetadata.verify|verify} messages.
+ * @function encode
+ * @memberof google.storage.control.v2.RenameFolderMetadata
+ * @static
+ * @param {google.storage.control.v2.IRenameFolderMetadata} message RenameFolderMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RenameFolderMetadata.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.commonMetadata != null && Object.hasOwnProperty.call(message, "commonMetadata"))
+ $root.google.storage.control.v2.CommonLongRunningOperationMetadata.encode(message.commonMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.sourceFolderId != null && Object.hasOwnProperty.call(message, "sourceFolderId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceFolderId);
+ if (message.destinationFolderId != null && Object.hasOwnProperty.call(message, "destinationFolderId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.destinationFolderId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified RenameFolderMetadata message, length delimited. Does not implicitly {@link google.storage.control.v2.RenameFolderMetadata.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.storage.control.v2.RenameFolderMetadata
+ * @static
+ * @param {google.storage.control.v2.IRenameFolderMetadata} message RenameFolderMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RenameFolderMetadata.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a RenameFolderMetadata message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.storage.control.v2.RenameFolderMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.storage.control.v2.RenameFolderMetadata} RenameFolderMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RenameFolderMetadata.decode = function decode(reader, length, error) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.storage.control.v2.RenameFolderMetadata();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.commonMetadata = $root.google.storage.control.v2.CommonLongRunningOperationMetadata.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.sourceFolderId = reader.string();
+ break;
+ }
+ case 3: {
+ message.destinationFolderId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a RenameFolderMetadata message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.storage.control.v2.RenameFolderMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.storage.control.v2.RenameFolderMetadata} RenameFolderMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RenameFolderMetadata.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a RenameFolderMetadata message.
+ * @function verify
+ * @memberof google.storage.control.v2.RenameFolderMetadata
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ RenameFolderMetadata.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.commonMetadata != null && message.hasOwnProperty("commonMetadata")) {
+ var error = $root.google.storage.control.v2.CommonLongRunningOperationMetadata.verify(message.commonMetadata);
+ if (error)
+ return "commonMetadata." + error;
+ }
+ if (message.sourceFolderId != null && message.hasOwnProperty("sourceFolderId"))
+ if (!$util.isString(message.sourceFolderId))
+ return "sourceFolderId: string expected";
+ if (message.destinationFolderId != null && message.hasOwnProperty("destinationFolderId"))
+ if (!$util.isString(message.destinationFolderId))
+ return "destinationFolderId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a RenameFolderMetadata message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.storage.control.v2.RenameFolderMetadata
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.storage.control.v2.RenameFolderMetadata} RenameFolderMetadata
+ */
+ RenameFolderMetadata.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.storage.control.v2.RenameFolderMetadata)
+ return object;
+ var message = new $root.google.storage.control.v2.RenameFolderMetadata();
+ if (object.commonMetadata != null) {
+ if (typeof object.commonMetadata !== "object")
+ throw TypeError(".google.storage.control.v2.RenameFolderMetadata.commonMetadata: object expected");
+ message.commonMetadata = $root.google.storage.control.v2.CommonLongRunningOperationMetadata.fromObject(object.commonMetadata);
+ }
+ if (object.sourceFolderId != null)
+ message.sourceFolderId = String(object.sourceFolderId);
+ if (object.destinationFolderId != null)
+ message.destinationFolderId = String(object.destinationFolderId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a RenameFolderMetadata message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.storage.control.v2.RenameFolderMetadata
+ * @static
+ * @param {google.storage.control.v2.RenameFolderMetadata} message RenameFolderMetadata
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ RenameFolderMetadata.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.commonMetadata = null;
+ object.sourceFolderId = "";
+ object.destinationFolderId = "";
+ }
+ if (message.commonMetadata != null && message.hasOwnProperty("commonMetadata"))
+ object.commonMetadata = $root.google.storage.control.v2.CommonLongRunningOperationMetadata.toObject(message.commonMetadata, options);
+ if (message.sourceFolderId != null && message.hasOwnProperty("sourceFolderId"))
+ object.sourceFolderId = message.sourceFolderId;
+ if (message.destinationFolderId != null && message.hasOwnProperty("destinationFolderId"))
+ object.destinationFolderId = message.destinationFolderId;
+ return object;
+ };
+
+ /**
+ * Converts this RenameFolderMetadata to JSON.
+ * @function toJSON
+ * @memberof google.storage.control.v2.RenameFolderMetadata
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ RenameFolderMetadata.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for RenameFolderMetadata
+ * @function getTypeUrl
+ * @memberof google.storage.control.v2.RenameFolderMetadata
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ RenameFolderMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.storage.control.v2.RenameFolderMetadata";
+ };
+
+ return RenameFolderMetadata;
+ })();
+
+ v2.DeleteFolderRecursiveMetadata = (function() {
+
+ /**
+ * Properties of a DeleteFolderRecursiveMetadata.
+ * @memberof google.storage.control.v2
+ * @interface IDeleteFolderRecursiveMetadata
+ * @property {google.storage.control.v2.ICommonLongRunningOperationMetadata|null} [commonMetadata] DeleteFolderRecursiveMetadata commonMetadata
+ * @property {string|null} [folderId] DeleteFolderRecursiveMetadata folderId
+ */
+
+ /**
+ * Constructs a new DeleteFolderRecursiveMetadata.
+ * @memberof google.storage.control.v2
+ * @classdesc Represents a DeleteFolderRecursiveMetadata.
+ * @implements IDeleteFolderRecursiveMetadata
+ * @constructor
+ * @param {google.storage.control.v2.IDeleteFolderRecursiveMetadata=} [properties] Properties to set
+ */
+ function DeleteFolderRecursiveMetadata(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]];
+ }
+
+ /**
+ * DeleteFolderRecursiveMetadata commonMetadata.
+ * @member {google.storage.control.v2.ICommonLongRunningOperationMetadata|null|undefined} commonMetadata
+ * @memberof google.storage.control.v2.DeleteFolderRecursiveMetadata
+ * @instance
+ */
+ DeleteFolderRecursiveMetadata.prototype.commonMetadata = null;
+
+ /**
+ * DeleteFolderRecursiveMetadata folderId.
+ * @member {string} folderId
+ * @memberof google.storage.control.v2.DeleteFolderRecursiveMetadata
+ * @instance
+ */
+ DeleteFolderRecursiveMetadata.prototype.folderId = "";
+
+ /**
+ * Creates a new DeleteFolderRecursiveMetadata instance using the specified properties.
+ * @function create
+ * @memberof google.storage.control.v2.DeleteFolderRecursiveMetadata
+ * @static
+ * @param {google.storage.control.v2.IDeleteFolderRecursiveMetadata=} [properties] Properties to set
+ * @returns {google.storage.control.v2.DeleteFolderRecursiveMetadata} DeleteFolderRecursiveMetadata instance
+ */
+ DeleteFolderRecursiveMetadata.create = function create(properties) {
+ return new DeleteFolderRecursiveMetadata(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteFolderRecursiveMetadata message. Does not implicitly {@link google.storage.control.v2.DeleteFolderRecursiveMetadata.verify|verify} messages.
+ * @function encode
+ * @memberof google.storage.control.v2.DeleteFolderRecursiveMetadata
+ * @static
+ * @param {google.storage.control.v2.IDeleteFolderRecursiveMetadata} message DeleteFolderRecursiveMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteFolderRecursiveMetadata.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.commonMetadata != null && Object.hasOwnProperty.call(message, "commonMetadata"))
+ $root.google.storage.control.v2.CommonLongRunningOperationMetadata.encode(message.commonMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.folderId != null && Object.hasOwnProperty.call(message, "folderId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.folderId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DeleteFolderRecursiveMetadata message, length delimited. Does not implicitly {@link google.storage.control.v2.DeleteFolderRecursiveMetadata.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.storage.control.v2.DeleteFolderRecursiveMetadata
+ * @static
+ * @param {google.storage.control.v2.IDeleteFolderRecursiveMetadata} message DeleteFolderRecursiveMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteFolderRecursiveMetadata.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteFolderRecursiveMetadata message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.storage.control.v2.DeleteFolderRecursiveMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.storage.control.v2.DeleteFolderRecursiveMetadata} DeleteFolderRecursiveMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteFolderRecursiveMetadata.decode = function decode(reader, length, error) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.storage.control.v2.DeleteFolderRecursiveMetadata();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.commonMetadata = $root.google.storage.control.v2.CommonLongRunningOperationMetadata.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.folderId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DeleteFolderRecursiveMetadata message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.storage.control.v2.DeleteFolderRecursiveMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.storage.control.v2.DeleteFolderRecursiveMetadata} DeleteFolderRecursiveMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteFolderRecursiveMetadata.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteFolderRecursiveMetadata message.
+ * @function verify
+ * @memberof google.storage.control.v2.DeleteFolderRecursiveMetadata
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteFolderRecursiveMetadata.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.commonMetadata != null && message.hasOwnProperty("commonMetadata")) {
+ var error = $root.google.storage.control.v2.CommonLongRunningOperationMetadata.verify(message.commonMetadata);
+ if (error)
+ return "commonMetadata." + error;
+ }
+ if (message.folderId != null && message.hasOwnProperty("folderId"))
+ if (!$util.isString(message.folderId))
+ return "folderId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a DeleteFolderRecursiveMetadata message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.storage.control.v2.DeleteFolderRecursiveMetadata
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.storage.control.v2.DeleteFolderRecursiveMetadata} DeleteFolderRecursiveMetadata
+ */
+ DeleteFolderRecursiveMetadata.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.storage.control.v2.DeleteFolderRecursiveMetadata)
+ return object;
+ var message = new $root.google.storage.control.v2.DeleteFolderRecursiveMetadata();
+ if (object.commonMetadata != null) {
+ if (typeof object.commonMetadata !== "object")
+ throw TypeError(".google.storage.control.v2.DeleteFolderRecursiveMetadata.commonMetadata: object expected");
+ message.commonMetadata = $root.google.storage.control.v2.CommonLongRunningOperationMetadata.fromObject(object.commonMetadata);
+ }
+ if (object.folderId != null)
+ message.folderId = String(object.folderId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteFolderRecursiveMetadata message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.storage.control.v2.DeleteFolderRecursiveMetadata
+ * @static
+ * @param {google.storage.control.v2.DeleteFolderRecursiveMetadata} message DeleteFolderRecursiveMetadata
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteFolderRecursiveMetadata.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.commonMetadata = null;
+ object.folderId = "";
+ }
+ if (message.commonMetadata != null && message.hasOwnProperty("commonMetadata"))
+ object.commonMetadata = $root.google.storage.control.v2.CommonLongRunningOperationMetadata.toObject(message.commonMetadata, options);
+ if (message.folderId != null && message.hasOwnProperty("folderId"))
+ object.folderId = message.folderId;
+ return object;
+ };
+
+ /**
+ * Converts this DeleteFolderRecursiveMetadata to JSON.
+ * @function toJSON
+ * @memberof google.storage.control.v2.DeleteFolderRecursiveMetadata
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteFolderRecursiveMetadata.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteFolderRecursiveMetadata
+ * @function getTypeUrl
+ * @memberof google.storage.control.v2.DeleteFolderRecursiveMetadata
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteFolderRecursiveMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.storage.control.v2.DeleteFolderRecursiveMetadata";
+ };
+
+ return DeleteFolderRecursiveMetadata;
+ })();
+
+ v2.StorageLayout = (function() {
+
+ /**
+ * Properties of a StorageLayout.
+ * @memberof google.storage.control.v2
+ * @interface IStorageLayout
+ * @property {string|null} [name] StorageLayout name
+ * @property {string|null} [location] StorageLayout location
+ * @property {string|null} [locationType] StorageLayout locationType
+ * @property {google.storage.control.v2.StorageLayout.ICustomPlacementConfig|null} [customPlacementConfig] StorageLayout customPlacementConfig
+ * @property {google.storage.control.v2.StorageLayout.IHierarchicalNamespace|null} [hierarchicalNamespace] StorageLayout hierarchicalNamespace
+ */
+
+ /**
+ * Constructs a new StorageLayout.
+ * @memberof google.storage.control.v2
+ * @classdesc Represents a StorageLayout.
+ * @implements IStorageLayout
+ * @constructor
+ * @param {google.storage.control.v2.IStorageLayout=} [properties] Properties to set
+ */
+ function StorageLayout(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]];
+ }
+
+ /**
+ * StorageLayout name.
+ * @member {string} name
+ * @memberof google.storage.control.v2.StorageLayout
+ * @instance
+ */
+ StorageLayout.prototype.name = "";
+
+ /**
+ * StorageLayout location.
+ * @member {string} location
+ * @memberof google.storage.control.v2.StorageLayout
+ * @instance
+ */
+ StorageLayout.prototype.location = "";
+
+ /**
+ * StorageLayout locationType.
+ * @member {string} locationType
+ * @memberof google.storage.control.v2.StorageLayout
+ * @instance
+ */
+ StorageLayout.prototype.locationType = "";
+
+ /**
+ * StorageLayout customPlacementConfig.
+ * @member {google.storage.control.v2.StorageLayout.ICustomPlacementConfig|null|undefined} customPlacementConfig
+ * @memberof google.storage.control.v2.StorageLayout
+ * @instance
+ */
+ StorageLayout.prototype.customPlacementConfig = null;
+
+ /**
+ * StorageLayout hierarchicalNamespace.
+ * @member {google.storage.control.v2.StorageLayout.IHierarchicalNamespace|null|undefined} hierarchicalNamespace
+ * @memberof google.storage.control.v2.StorageLayout
+ * @instance
+ */
+ StorageLayout.prototype.hierarchicalNamespace = null;
+
+ /**
+ * Creates a new StorageLayout instance using the specified properties.
+ * @function create
+ * @memberof google.storage.control.v2.StorageLayout
+ * @static
+ * @param {google.storage.control.v2.IStorageLayout=} [properties] Properties to set
+ * @returns {google.storage.control.v2.StorageLayout} StorageLayout instance
+ */
+ StorageLayout.create = function create(properties) {
+ return new StorageLayout(properties);
+ };
+
+ /**
+ * Encodes the specified StorageLayout message. Does not implicitly {@link google.storage.control.v2.StorageLayout.verify|verify} messages.
+ * @function encode
+ * @memberof google.storage.control.v2.StorageLayout
+ * @static
+ * @param {google.storage.control.v2.IStorageLayout} message StorageLayout message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ StorageLayout.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.location != null && Object.hasOwnProperty.call(message, "location"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.location);
+ if (message.locationType != null && Object.hasOwnProperty.call(message, "locationType"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.locationType);
+ if (message.customPlacementConfig != null && Object.hasOwnProperty.call(message, "customPlacementConfig"))
+ $root.google.storage.control.v2.StorageLayout.CustomPlacementConfig.encode(message.customPlacementConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.hierarchicalNamespace != null && Object.hasOwnProperty.call(message, "hierarchicalNamespace"))
+ $root.google.storage.control.v2.StorageLayout.HierarchicalNamespace.encode(message.hierarchicalNamespace, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified StorageLayout message, length delimited. Does not implicitly {@link google.storage.control.v2.StorageLayout.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.storage.control.v2.StorageLayout
+ * @static
+ * @param {google.storage.control.v2.IStorageLayout} message StorageLayout message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ StorageLayout.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a StorageLayout message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.storage.control.v2.StorageLayout
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.storage.control.v2.StorageLayout} StorageLayout
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ StorageLayout.decode = function decode(reader, length, error) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.storage.control.v2.StorageLayout();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.location = reader.string();
+ break;
+ }
+ case 3: {
+ message.locationType = reader.string();
+ break;
+ }
+ case 4: {
+ message.customPlacementConfig = $root.google.storage.control.v2.StorageLayout.CustomPlacementConfig.decode(reader, reader.uint32());
+ break;
+ }
+ case 5: {
+ message.hierarchicalNamespace = $root.google.storage.control.v2.StorageLayout.HierarchicalNamespace.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a StorageLayout message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.storage.control.v2.StorageLayout
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.storage.control.v2.StorageLayout} StorageLayout
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ StorageLayout.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a StorageLayout message.
+ * @function verify
+ * @memberof google.storage.control.v2.StorageLayout
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ StorageLayout.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.location != null && message.hasOwnProperty("location"))
+ if (!$util.isString(message.location))
+ return "location: string expected";
+ if (message.locationType != null && message.hasOwnProperty("locationType"))
+ if (!$util.isString(message.locationType))
+ return "locationType: string expected";
+ if (message.customPlacementConfig != null && message.hasOwnProperty("customPlacementConfig")) {
+ var error = $root.google.storage.control.v2.StorageLayout.CustomPlacementConfig.verify(message.customPlacementConfig);
+ if (error)
+ return "customPlacementConfig." + error;
+ }
+ if (message.hierarchicalNamespace != null && message.hasOwnProperty("hierarchicalNamespace")) {
+ var error = $root.google.storage.control.v2.StorageLayout.HierarchicalNamespace.verify(message.hierarchicalNamespace);
+ if (error)
+ return "hierarchicalNamespace." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a StorageLayout message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.storage.control.v2.StorageLayout
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.storage.control.v2.StorageLayout} StorageLayout
+ */
+ StorageLayout.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.storage.control.v2.StorageLayout)
+ return object;
+ var message = new $root.google.storage.control.v2.StorageLayout();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.location != null)
+ message.location = String(object.location);
+ if (object.locationType != null)
+ message.locationType = String(object.locationType);
+ if (object.customPlacementConfig != null) {
+ if (typeof object.customPlacementConfig !== "object")
+ throw TypeError(".google.storage.control.v2.StorageLayout.customPlacementConfig: object expected");
+ message.customPlacementConfig = $root.google.storage.control.v2.StorageLayout.CustomPlacementConfig.fromObject(object.customPlacementConfig);
+ }
+ if (object.hierarchicalNamespace != null) {
+ if (typeof object.hierarchicalNamespace !== "object")
+ throw TypeError(".google.storage.control.v2.StorageLayout.hierarchicalNamespace: object expected");
+ message.hierarchicalNamespace = $root.google.storage.control.v2.StorageLayout.HierarchicalNamespace.fromObject(object.hierarchicalNamespace);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a StorageLayout message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.storage.control.v2.StorageLayout
+ * @static
+ * @param {google.storage.control.v2.StorageLayout} message StorageLayout
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ StorageLayout.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.location = "";
+ object.locationType = "";
+ object.customPlacementConfig = null;
+ object.hierarchicalNamespace = null;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.location != null && message.hasOwnProperty("location"))
+ object.location = message.location;
+ if (message.locationType != null && message.hasOwnProperty("locationType"))
+ object.locationType = message.locationType;
+ if (message.customPlacementConfig != null && message.hasOwnProperty("customPlacementConfig"))
+ object.customPlacementConfig = $root.google.storage.control.v2.StorageLayout.CustomPlacementConfig.toObject(message.customPlacementConfig, options);
+ if (message.hierarchicalNamespace != null && message.hasOwnProperty("hierarchicalNamespace"))
+ object.hierarchicalNamespace = $root.google.storage.control.v2.StorageLayout.HierarchicalNamespace.toObject(message.hierarchicalNamespace, options);
+ return object;
+ };
+
+ /**
+ * Converts this StorageLayout to JSON.
+ * @function toJSON
+ * @memberof google.storage.control.v2.StorageLayout
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ StorageLayout.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for StorageLayout
+ * @function getTypeUrl
+ * @memberof google.storage.control.v2.StorageLayout
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ StorageLayout.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.storage.control.v2.StorageLayout";
+ };
+
+ StorageLayout.CustomPlacementConfig = (function() {
+
+ /**
+ * Properties of a CustomPlacementConfig.
+ * @memberof google.storage.control.v2.StorageLayout
+ * @interface ICustomPlacementConfig
+ * @property {Array.|null} [dataLocations] CustomPlacementConfig dataLocations
+ */
+
+ /**
+ * Constructs a new CustomPlacementConfig.
+ * @memberof google.storage.control.v2.StorageLayout
+ * @classdesc Represents a CustomPlacementConfig.
+ * @implements ICustomPlacementConfig
+ * @constructor
+ * @param {google.storage.control.v2.StorageLayout.ICustomPlacementConfig=} [properties] Properties to set
+ */
+ function CustomPlacementConfig(properties) {
+ this.dataLocations = [];
+ 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]];
+ }
+
+ /**
+ * CustomPlacementConfig dataLocations.
+ * @member {Array.} dataLocations
+ * @memberof google.storage.control.v2.StorageLayout.CustomPlacementConfig
+ * @instance
+ */
+ CustomPlacementConfig.prototype.dataLocations = $util.emptyArray;
+
+ /**
+ * Creates a new CustomPlacementConfig instance using the specified properties.
+ * @function create
+ * @memberof google.storage.control.v2.StorageLayout.CustomPlacementConfig
+ * @static
+ * @param {google.storage.control.v2.StorageLayout.ICustomPlacementConfig=} [properties] Properties to set
+ * @returns {google.storage.control.v2.StorageLayout.CustomPlacementConfig} CustomPlacementConfig instance
+ */
+ CustomPlacementConfig.create = function create(properties) {
+ return new CustomPlacementConfig(properties);
+ };
+
+ /**
+ * Encodes the specified CustomPlacementConfig message. Does not implicitly {@link google.storage.control.v2.StorageLayout.CustomPlacementConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.storage.control.v2.StorageLayout.CustomPlacementConfig
+ * @static
+ * @param {google.storage.control.v2.StorageLayout.ICustomPlacementConfig} message CustomPlacementConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CustomPlacementConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.dataLocations != null && message.dataLocations.length)
+ for (var i = 0; i < message.dataLocations.length; ++i)
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataLocations[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CustomPlacementConfig message, length delimited. Does not implicitly {@link google.storage.control.v2.StorageLayout.CustomPlacementConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.storage.control.v2.StorageLayout.CustomPlacementConfig
+ * @static
+ * @param {google.storage.control.v2.StorageLayout.ICustomPlacementConfig} message CustomPlacementConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CustomPlacementConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CustomPlacementConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.storage.control.v2.StorageLayout.CustomPlacementConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.storage.control.v2.StorageLayout.CustomPlacementConfig} CustomPlacementConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CustomPlacementConfig.decode = function decode(reader, length, error) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.storage.control.v2.StorageLayout.CustomPlacementConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.dataLocations && message.dataLocations.length))
+ message.dataLocations = [];
+ message.dataLocations.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CustomPlacementConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.storage.control.v2.StorageLayout.CustomPlacementConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.storage.control.v2.StorageLayout.CustomPlacementConfig} CustomPlacementConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CustomPlacementConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CustomPlacementConfig message.
+ * @function verify
+ * @memberof google.storage.control.v2.StorageLayout.CustomPlacementConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CustomPlacementConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.dataLocations != null && message.hasOwnProperty("dataLocations")) {
+ if (!Array.isArray(message.dataLocations))
+ return "dataLocations: array expected";
+ for (var i = 0; i < message.dataLocations.length; ++i)
+ if (!$util.isString(message.dataLocations[i]))
+ return "dataLocations: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a CustomPlacementConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.storage.control.v2.StorageLayout.CustomPlacementConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.storage.control.v2.StorageLayout.CustomPlacementConfig} CustomPlacementConfig
+ */
+ CustomPlacementConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.storage.control.v2.StorageLayout.CustomPlacementConfig)
+ return object;
+ var message = new $root.google.storage.control.v2.StorageLayout.CustomPlacementConfig();
+ if (object.dataLocations) {
+ if (!Array.isArray(object.dataLocations))
+ throw TypeError(".google.storage.control.v2.StorageLayout.CustomPlacementConfig.dataLocations: array expected");
+ message.dataLocations = [];
+ for (var i = 0; i < object.dataLocations.length; ++i)
+ message.dataLocations[i] = String(object.dataLocations[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CustomPlacementConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.storage.control.v2.StorageLayout.CustomPlacementConfig
+ * @static
+ * @param {google.storage.control.v2.StorageLayout.CustomPlacementConfig} message CustomPlacementConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CustomPlacementConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.dataLocations = [];
+ if (message.dataLocations && message.dataLocations.length) {
+ object.dataLocations = [];
+ for (var j = 0; j < message.dataLocations.length; ++j)
+ object.dataLocations[j] = message.dataLocations[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this CustomPlacementConfig to JSON.
+ * @function toJSON
+ * @memberof google.storage.control.v2.StorageLayout.CustomPlacementConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CustomPlacementConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CustomPlacementConfig
+ * @function getTypeUrl
+ * @memberof google.storage.control.v2.StorageLayout.CustomPlacementConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CustomPlacementConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.storage.control.v2.StorageLayout.CustomPlacementConfig";
+ };
+
+ return CustomPlacementConfig;
+ })();
+
+ StorageLayout.HierarchicalNamespace = (function() {
+
+ /**
+ * Properties of a HierarchicalNamespace.
+ * @memberof google.storage.control.v2.StorageLayout
+ * @interface IHierarchicalNamespace
+ * @property {boolean|null} [enabled] HierarchicalNamespace enabled
+ */
+
+ /**
+ * Constructs a new HierarchicalNamespace.
+ * @memberof google.storage.control.v2.StorageLayout
+ * @classdesc Represents a HierarchicalNamespace.
+ * @implements IHierarchicalNamespace
+ * @constructor
+ * @param {google.storage.control.v2.StorageLayout.IHierarchicalNamespace=} [properties] Properties to set
+ */
+ function HierarchicalNamespace(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]];
+ }
+
+ /**
+ * HierarchicalNamespace enabled.
+ * @member {boolean} enabled
+ * @memberof google.storage.control.v2.StorageLayout.HierarchicalNamespace
+ * @instance
+ */
+ HierarchicalNamespace.prototype.enabled = false;
+
+ /**
+ * Creates a new HierarchicalNamespace instance using the specified properties.
+ * @function create
+ * @memberof google.storage.control.v2.StorageLayout.HierarchicalNamespace
+ * @static
+ * @param {google.storage.control.v2.StorageLayout.IHierarchicalNamespace=} [properties] Properties to set
+ * @returns {google.storage.control.v2.StorageLayout.HierarchicalNamespace} HierarchicalNamespace instance
+ */
+ HierarchicalNamespace.create = function create(properties) {
+ return new HierarchicalNamespace(properties);
+ };
+
+ /**
+ * Encodes the specified HierarchicalNamespace message. Does not implicitly {@link google.storage.control.v2.StorageLayout.HierarchicalNamespace.verify|verify} messages.
+ * @function encode
+ * @memberof google.storage.control.v2.StorageLayout.HierarchicalNamespace
+ * @static
+ * @param {google.storage.control.v2.StorageLayout.IHierarchicalNamespace} message HierarchicalNamespace message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ HierarchicalNamespace.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled"))
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified HierarchicalNamespace message, length delimited. Does not implicitly {@link google.storage.control.v2.StorageLayout.HierarchicalNamespace.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.storage.control.v2.StorageLayout.HierarchicalNamespace
+ * @static
+ * @param {google.storage.control.v2.StorageLayout.IHierarchicalNamespace} message HierarchicalNamespace message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ HierarchicalNamespace.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a HierarchicalNamespace message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.storage.control.v2.StorageLayout.HierarchicalNamespace
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.storage.control.v2.StorageLayout.HierarchicalNamespace} HierarchicalNamespace
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ HierarchicalNamespace.decode = function decode(reader, length, error) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.storage.control.v2.StorageLayout.HierarchicalNamespace();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.enabled = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a HierarchicalNamespace message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.storage.control.v2.StorageLayout.HierarchicalNamespace
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.storage.control.v2.StorageLayout.HierarchicalNamespace} HierarchicalNamespace
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ HierarchicalNamespace.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a HierarchicalNamespace message.
+ * @function verify
+ * @memberof google.storage.control.v2.StorageLayout.HierarchicalNamespace
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ HierarchicalNamespace.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
+ if (typeof message.enabled !== "boolean")
+ return "enabled: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a HierarchicalNamespace message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.storage.control.v2.StorageLayout.HierarchicalNamespace
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.storage.control.v2.StorageLayout.HierarchicalNamespace} HierarchicalNamespace
+ */
+ HierarchicalNamespace.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.storage.control.v2.StorageLayout.HierarchicalNamespace)
+ return object;
+ var message = new $root.google.storage.control.v2.StorageLayout.HierarchicalNamespace();
+ if (object.enabled != null)
+ message.enabled = Boolean(object.enabled);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a HierarchicalNamespace message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.storage.control.v2.StorageLayout.HierarchicalNamespace
+ * @static
+ * @param {google.storage.control.v2.StorageLayout.HierarchicalNamespace} message HierarchicalNamespace
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ HierarchicalNamespace.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.enabled = false;
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
+ object.enabled = message.enabled;
+ return object;
+ };
+
+ /**
+ * Converts this HierarchicalNamespace to JSON.
+ * @function toJSON
+ * @memberof google.storage.control.v2.StorageLayout.HierarchicalNamespace
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ HierarchicalNamespace.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for HierarchicalNamespace
+ * @function getTypeUrl
+ * @memberof google.storage.control.v2.StorageLayout.HierarchicalNamespace
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ HierarchicalNamespace.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.storage.control.v2.StorageLayout.HierarchicalNamespace";
+ };
+
+ return HierarchicalNamespace;
+ })();
+
+ return StorageLayout;
+ })();
+
+ v2.GetStorageLayoutRequest = (function() {
+
+ /**
+ * Properties of a GetStorageLayoutRequest.
+ * @memberof google.storage.control.v2
+ * @interface IGetStorageLayoutRequest
+ * @property {string|null} [name] GetStorageLayoutRequest name
+ * @property {string|null} [prefix] GetStorageLayoutRequest prefix
+ * @property {string|null} [requestId] GetStorageLayoutRequest requestId
+ */
+
+ /**
+ * Constructs a new GetStorageLayoutRequest.
+ * @memberof google.storage.control.v2
+ * @classdesc Represents a GetStorageLayoutRequest.
+ * @implements IGetStorageLayoutRequest
+ * @constructor
+ * @param {google.storage.control.v2.IGetStorageLayoutRequest=} [properties] Properties to set
+ */
+ function GetStorageLayoutRequest(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]];
+ }
+
+ /**
+ * GetStorageLayoutRequest name.
+ * @member {string} name
+ * @memberof google.storage.control.v2.GetStorageLayoutRequest
+ * @instance
+ */
+ GetStorageLayoutRequest.prototype.name = "";
+
+ /**
+ * GetStorageLayoutRequest prefix.
+ * @member {string} prefix
+ * @memberof google.storage.control.v2.GetStorageLayoutRequest
+ * @instance
+ */
+ GetStorageLayoutRequest.prototype.prefix = "";
+
+ /**
+ * GetStorageLayoutRequest requestId.
+ * @member {string} requestId
+ * @memberof google.storage.control.v2.GetStorageLayoutRequest
+ * @instance
+ */
+ GetStorageLayoutRequest.prototype.requestId = "";
+
+ /**
+ * Creates a new GetStorageLayoutRequest instance using the specified properties.
+ * @function create
+ * @memberof google.storage.control.v2.GetStorageLayoutRequest
+ * @static
+ * @param {google.storage.control.v2.IGetStorageLayoutRequest=} [properties] Properties to set
+ * @returns {google.storage.control.v2.GetStorageLayoutRequest} GetStorageLayoutRequest instance
+ */
+ GetStorageLayoutRequest.create = function create(properties) {
+ return new GetStorageLayoutRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetStorageLayoutRequest message. Does not implicitly {@link google.storage.control.v2.GetStorageLayoutRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.storage.control.v2.GetStorageLayoutRequest
+ * @static
+ * @param {google.storage.control.v2.IGetStorageLayoutRequest} message GetStorageLayoutRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetStorageLayoutRequest.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.prefix != null && Object.hasOwnProperty.call(message, "prefix"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.prefix);
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GetStorageLayoutRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.GetStorageLayoutRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.storage.control.v2.GetStorageLayoutRequest
+ * @static
+ * @param {google.storage.control.v2.IGetStorageLayoutRequest} message GetStorageLayoutRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetStorageLayoutRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetStorageLayoutRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.storage.control.v2.GetStorageLayoutRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.storage.control.v2.GetStorageLayoutRequest} GetStorageLayoutRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetStorageLayoutRequest.decode = function decode(reader, length, error) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.storage.control.v2.GetStorageLayoutRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.prefix = reader.string();
+ break;
+ }
+ case 3: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GetStorageLayoutRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.storage.control.v2.GetStorageLayoutRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.storage.control.v2.GetStorageLayoutRequest} GetStorageLayoutRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetStorageLayoutRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetStorageLayoutRequest message.
+ * @function verify
+ * @memberof google.storage.control.v2.GetStorageLayoutRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetStorageLayoutRequest.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.prefix != null && message.hasOwnProperty("prefix"))
+ if (!$util.isString(message.prefix))
+ return "prefix: string expected";
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GetStorageLayoutRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.storage.control.v2.GetStorageLayoutRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.storage.control.v2.GetStorageLayoutRequest} GetStorageLayoutRequest
+ */
+ GetStorageLayoutRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.storage.control.v2.GetStorageLayoutRequest)
+ return object;
+ var message = new $root.google.storage.control.v2.GetStorageLayoutRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.prefix != null)
+ message.prefix = String(object.prefix);
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetStorageLayoutRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.storage.control.v2.GetStorageLayoutRequest
+ * @static
+ * @param {google.storage.control.v2.GetStorageLayoutRequest} message GetStorageLayoutRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetStorageLayoutRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.prefix = "";
+ object.requestId = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.prefix != null && message.hasOwnProperty("prefix"))
+ object.prefix = message.prefix;
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this GetStorageLayoutRequest to JSON.
+ * @function toJSON
+ * @memberof google.storage.control.v2.GetStorageLayoutRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetStorageLayoutRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetStorageLayoutRequest
+ * @function getTypeUrl
+ * @memberof google.storage.control.v2.GetStorageLayoutRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetStorageLayoutRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.storage.control.v2.GetStorageLayoutRequest";
+ };
+
+ return GetStorageLayoutRequest;
+ })();
+
+ v2.ManagedFolder = (function() {
+
+ /**
+ * Properties of a ManagedFolder.
+ * @memberof google.storage.control.v2
+ * @interface IManagedFolder
+ * @property {string|null} [name] ManagedFolder name
+ * @property {number|Long|null} [metageneration] ManagedFolder metageneration
+ * @property {google.protobuf.ITimestamp|null} [createTime] ManagedFolder createTime
+ * @property {google.protobuf.ITimestamp|null} [updateTime] ManagedFolder updateTime
+ */
+
+ /**
+ * Constructs a new ManagedFolder.
+ * @memberof google.storage.control.v2
+ * @classdesc Represents a ManagedFolder.
+ * @implements IManagedFolder
+ * @constructor
+ * @param {google.storage.control.v2.IManagedFolder=} [properties] Properties to set
+ */
+ function ManagedFolder(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]];
+ }
+
+ /**
+ * ManagedFolder name.
+ * @member {string} name
+ * @memberof google.storage.control.v2.ManagedFolder
+ * @instance
+ */
+ ManagedFolder.prototype.name = "";
+
+ /**
+ * ManagedFolder metageneration.
+ * @member {number|Long} metageneration
+ * @memberof google.storage.control.v2.ManagedFolder
+ * @instance
+ */
+ ManagedFolder.prototype.metageneration = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * ManagedFolder createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.storage.control.v2.ManagedFolder
+ * @instance
+ */
+ ManagedFolder.prototype.createTime = null;
+
+ /**
+ * ManagedFolder updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.storage.control.v2.ManagedFolder
+ * @instance
+ */
+ ManagedFolder.prototype.updateTime = null;
+
+ /**
+ * Creates a new ManagedFolder instance using the specified properties.
+ * @function create
+ * @memberof google.storage.control.v2.ManagedFolder
+ * @static
+ * @param {google.storage.control.v2.IManagedFolder=} [properties] Properties to set
+ * @returns {google.storage.control.v2.ManagedFolder} ManagedFolder instance
+ */
+ ManagedFolder.create = function create(properties) {
+ return new ManagedFolder(properties);
+ };
+
+ /**
+ * Encodes the specified ManagedFolder message. Does not implicitly {@link google.storage.control.v2.ManagedFolder.verify|verify} messages.
+ * @function encode
+ * @memberof google.storage.control.v2.ManagedFolder
+ * @static
+ * @param {google.storage.control.v2.IManagedFolder} message ManagedFolder message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ManagedFolder.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.metageneration != null && Object.hasOwnProperty.call(message, "metageneration"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int64(message.metageneration);
+ 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();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ManagedFolder message, length delimited. Does not implicitly {@link google.storage.control.v2.ManagedFolder.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.storage.control.v2.ManagedFolder
+ * @static
+ * @param {google.storage.control.v2.IManagedFolder} message ManagedFolder message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ManagedFolder.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ManagedFolder message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.storage.control.v2.ManagedFolder
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.storage.control.v2.ManagedFolder} ManagedFolder
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ManagedFolder.decode = function decode(reader, length, error) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.storage.control.v2.ManagedFolder();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 3: {
+ message.metageneration = reader.int64();
+ 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;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ManagedFolder message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.storage.control.v2.ManagedFolder
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.storage.control.v2.ManagedFolder} ManagedFolder
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ManagedFolder.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ManagedFolder message.
+ * @function verify
+ * @memberof google.storage.control.v2.ManagedFolder
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ManagedFolder.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.metageneration != null && message.hasOwnProperty("metageneration"))
+ if (!$util.isInteger(message.metageneration) && !(message.metageneration && $util.isInteger(message.metageneration.low) && $util.isInteger(message.metageneration.high)))
+ return "metageneration: integer|Long 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;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ManagedFolder message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.storage.control.v2.ManagedFolder
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.storage.control.v2.ManagedFolder} ManagedFolder
+ */
+ ManagedFolder.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.storage.control.v2.ManagedFolder)
+ return object;
+ var message = new $root.google.storage.control.v2.ManagedFolder();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.metageneration != null)
+ if ($util.Long)
+ (message.metageneration = $util.Long.fromValue(object.metageneration)).unsigned = false;
+ else if (typeof object.metageneration === "string")
+ message.metageneration = parseInt(object.metageneration, 10);
+ else if (typeof object.metageneration === "number")
+ message.metageneration = object.metageneration;
+ else if (typeof object.metageneration === "object")
+ message.metageneration = new $util.LongBits(object.metageneration.low >>> 0, object.metageneration.high >>> 0).toNumber();
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.storage.control.v2.ManagedFolder.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
+ }
+ if (object.updateTime != null) {
+ if (typeof object.updateTime !== "object")
+ throw TypeError(".google.storage.control.v2.ManagedFolder.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ManagedFolder message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.storage.control.v2.ManagedFolder
+ * @static
+ * @param {google.storage.control.v2.ManagedFolder} message ManagedFolder
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ManagedFolder.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.metageneration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
+ } else
+ object.metageneration = options.longs === String ? "0" : 0;
+ object.createTime = null;
+ object.updateTime = null;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.metageneration != null && message.hasOwnProperty("metageneration"))
+ if (typeof message.metageneration === "number")
+ object.metageneration = options.longs === String ? String(message.metageneration) : message.metageneration;
+ else
+ object.metageneration = options.longs === String ? $util.Long.prototype.toString.call(message.metageneration) : options.longs === Number ? new $util.LongBits(message.metageneration.low >>> 0, message.metageneration.high >>> 0).toNumber() : message.metageneration;
+ 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);
+ return object;
+ };
+
+ /**
+ * Converts this ManagedFolder to JSON.
+ * @function toJSON
+ * @memberof google.storage.control.v2.ManagedFolder
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ManagedFolder.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ManagedFolder
+ * @function getTypeUrl
+ * @memberof google.storage.control.v2.ManagedFolder
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ManagedFolder.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.storage.control.v2.ManagedFolder";
+ };
+
+ return ManagedFolder;
+ })();
+
+ v2.GetManagedFolderRequest = (function() {
+
+ /**
+ * Properties of a GetManagedFolderRequest.
+ * @memberof google.storage.control.v2
+ * @interface IGetManagedFolderRequest
+ * @property {string|null} [name] GetManagedFolderRequest name
+ * @property {number|Long|null} [ifMetagenerationMatch] GetManagedFolderRequest ifMetagenerationMatch
+ * @property {number|Long|null} [ifMetagenerationNotMatch] GetManagedFolderRequest ifMetagenerationNotMatch
+ * @property {string|null} [requestId] GetManagedFolderRequest requestId
+ */
+
+ /**
+ * Constructs a new GetManagedFolderRequest.
+ * @memberof google.storage.control.v2
+ * @classdesc Represents a GetManagedFolderRequest.
+ * @implements IGetManagedFolderRequest
+ * @constructor
+ * @param {google.storage.control.v2.IGetManagedFolderRequest=} [properties] Properties to set
+ */
+ function GetManagedFolderRequest(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]];
+ }
+
+ /**
+ * GetManagedFolderRequest name.
+ * @member {string} name
+ * @memberof google.storage.control.v2.GetManagedFolderRequest
+ * @instance
+ */
+ GetManagedFolderRequest.prototype.name = "";
+
+ /**
+ * GetManagedFolderRequest ifMetagenerationMatch.
+ * @member {number|Long|null|undefined} ifMetagenerationMatch
+ * @memberof google.storage.control.v2.GetManagedFolderRequest
+ * @instance
+ */
+ GetManagedFolderRequest.prototype.ifMetagenerationMatch = null;
+
+ /**
+ * GetManagedFolderRequest ifMetagenerationNotMatch.
+ * @member {number|Long|null|undefined} ifMetagenerationNotMatch
+ * @memberof google.storage.control.v2.GetManagedFolderRequest
+ * @instance
+ */
+ GetManagedFolderRequest.prototype.ifMetagenerationNotMatch = null;
+
+ /**
+ * GetManagedFolderRequest requestId.
+ * @member {string} requestId
+ * @memberof google.storage.control.v2.GetManagedFolderRequest
+ * @instance
+ */
+ GetManagedFolderRequest.prototype.requestId = "";
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ // Virtual OneOf for proto3 optional field
+ Object.defineProperty(GetManagedFolderRequest.prototype, "_ifMetagenerationMatch", {
+ get: $util.oneOfGetter($oneOfFields = ["ifMetagenerationMatch"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ // Virtual OneOf for proto3 optional field
+ Object.defineProperty(GetManagedFolderRequest.prototype, "_ifMetagenerationNotMatch", {
+ get: $util.oneOfGetter($oneOfFields = ["ifMetagenerationNotMatch"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new GetManagedFolderRequest instance using the specified properties.
+ * @function create
+ * @memberof google.storage.control.v2.GetManagedFolderRequest
+ * @static
+ * @param {google.storage.control.v2.IGetManagedFolderRequest=} [properties] Properties to set
+ * @returns {google.storage.control.v2.GetManagedFolderRequest} GetManagedFolderRequest instance
+ */
+ GetManagedFolderRequest.create = function create(properties) {
+ return new GetManagedFolderRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetManagedFolderRequest message. Does not implicitly {@link google.storage.control.v2.GetManagedFolderRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.storage.control.v2.GetManagedFolderRequest
+ * @static
+ * @param {google.storage.control.v2.IGetManagedFolderRequest} message GetManagedFolderRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetManagedFolderRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.ifMetagenerationMatch != null && Object.hasOwnProperty.call(message, "ifMetagenerationMatch"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int64(message.ifMetagenerationMatch);
+ if (message.ifMetagenerationNotMatch != null && Object.hasOwnProperty.call(message, "ifMetagenerationNotMatch"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int64(message.ifMetagenerationNotMatch);
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.requestId);
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.name);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GetManagedFolderRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.GetManagedFolderRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.storage.control.v2.GetManagedFolderRequest
+ * @static
+ * @param {google.storage.control.v2.IGetManagedFolderRequest} message GetManagedFolderRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetManagedFolderRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetManagedFolderRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.storage.control.v2.GetManagedFolderRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.storage.control.v2.GetManagedFolderRequest} GetManagedFolderRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetManagedFolderRequest.decode = function decode(reader, length, error) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.storage.control.v2.GetManagedFolderRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 6: {
+ message.name = reader.string();
+ break;
+ }
+ case 3: {
+ message.ifMetagenerationMatch = reader.int64();
+ break;
+ }
+ case 4: {
+ message.ifMetagenerationNotMatch = reader.int64();
+ break;
+ }
+ case 5: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GetManagedFolderRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.storage.control.v2.GetManagedFolderRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.storage.control.v2.GetManagedFolderRequest} GetManagedFolderRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetManagedFolderRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetManagedFolderRequest message.
+ * @function verify
+ * @memberof google.storage.control.v2.GetManagedFolderRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetManagedFolderRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.ifMetagenerationMatch != null && message.hasOwnProperty("ifMetagenerationMatch")) {
+ properties._ifMetagenerationMatch = 1;
+ if (!$util.isInteger(message.ifMetagenerationMatch) && !(message.ifMetagenerationMatch && $util.isInteger(message.ifMetagenerationMatch.low) && $util.isInteger(message.ifMetagenerationMatch.high)))
+ return "ifMetagenerationMatch: integer|Long expected";
+ }
+ if (message.ifMetagenerationNotMatch != null && message.hasOwnProperty("ifMetagenerationNotMatch")) {
+ properties._ifMetagenerationNotMatch = 1;
+ if (!$util.isInteger(message.ifMetagenerationNotMatch) && !(message.ifMetagenerationNotMatch && $util.isInteger(message.ifMetagenerationNotMatch.low) && $util.isInteger(message.ifMetagenerationNotMatch.high)))
+ return "ifMetagenerationNotMatch: integer|Long expected";
+ }
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GetManagedFolderRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.storage.control.v2.GetManagedFolderRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.storage.control.v2.GetManagedFolderRequest} GetManagedFolderRequest
+ */
+ GetManagedFolderRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.storage.control.v2.GetManagedFolderRequest)
+ return object;
+ var message = new $root.google.storage.control.v2.GetManagedFolderRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.ifMetagenerationMatch != null)
+ if ($util.Long)
+ (message.ifMetagenerationMatch = $util.Long.fromValue(object.ifMetagenerationMatch)).unsigned = false;
+ else if (typeof object.ifMetagenerationMatch === "string")
+ message.ifMetagenerationMatch = parseInt(object.ifMetagenerationMatch, 10);
+ else if (typeof object.ifMetagenerationMatch === "number")
+ message.ifMetagenerationMatch = object.ifMetagenerationMatch;
+ else if (typeof object.ifMetagenerationMatch === "object")
+ message.ifMetagenerationMatch = new $util.LongBits(object.ifMetagenerationMatch.low >>> 0, object.ifMetagenerationMatch.high >>> 0).toNumber();
+ if (object.ifMetagenerationNotMatch != null)
+ if ($util.Long)
+ (message.ifMetagenerationNotMatch = $util.Long.fromValue(object.ifMetagenerationNotMatch)).unsigned = false;
+ else if (typeof object.ifMetagenerationNotMatch === "string")
+ message.ifMetagenerationNotMatch = parseInt(object.ifMetagenerationNotMatch, 10);
+ else if (typeof object.ifMetagenerationNotMatch === "number")
+ message.ifMetagenerationNotMatch = object.ifMetagenerationNotMatch;
+ else if (typeof object.ifMetagenerationNotMatch === "object")
+ message.ifMetagenerationNotMatch = new $util.LongBits(object.ifMetagenerationNotMatch.low >>> 0, object.ifMetagenerationNotMatch.high >>> 0).toNumber();
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetManagedFolderRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.storage.control.v2.GetManagedFolderRequest
+ * @static
+ * @param {google.storage.control.v2.GetManagedFolderRequest} message GetManagedFolderRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetManagedFolderRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.requestId = "";
+ object.name = "";
+ }
+ if (message.ifMetagenerationMatch != null && message.hasOwnProperty("ifMetagenerationMatch")) {
+ if (typeof message.ifMetagenerationMatch === "number")
+ object.ifMetagenerationMatch = options.longs === String ? String(message.ifMetagenerationMatch) : message.ifMetagenerationMatch;
+ else
+ object.ifMetagenerationMatch = options.longs === String ? $util.Long.prototype.toString.call(message.ifMetagenerationMatch) : options.longs === Number ? new $util.LongBits(message.ifMetagenerationMatch.low >>> 0, message.ifMetagenerationMatch.high >>> 0).toNumber() : message.ifMetagenerationMatch;
+ if (options.oneofs)
+ object._ifMetagenerationMatch = "ifMetagenerationMatch";
+ }
+ if (message.ifMetagenerationNotMatch != null && message.hasOwnProperty("ifMetagenerationNotMatch")) {
+ if (typeof message.ifMetagenerationNotMatch === "number")
+ object.ifMetagenerationNotMatch = options.longs === String ? String(message.ifMetagenerationNotMatch) : message.ifMetagenerationNotMatch;
+ else
+ object.ifMetagenerationNotMatch = options.longs === String ? $util.Long.prototype.toString.call(message.ifMetagenerationNotMatch) : options.longs === Number ? new $util.LongBits(message.ifMetagenerationNotMatch.low >>> 0, message.ifMetagenerationNotMatch.high >>> 0).toNumber() : message.ifMetagenerationNotMatch;
+ if (options.oneofs)
+ object._ifMetagenerationNotMatch = "ifMetagenerationNotMatch";
+ }
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ return object;
+ };
+
+ /**
+ * Converts this GetManagedFolderRequest to JSON.
+ * @function toJSON
+ * @memberof google.storage.control.v2.GetManagedFolderRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetManagedFolderRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetManagedFolderRequest
+ * @function getTypeUrl
+ * @memberof google.storage.control.v2.GetManagedFolderRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetManagedFolderRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.storage.control.v2.GetManagedFolderRequest";
+ };
+
+ return GetManagedFolderRequest;
+ })();
+
+ v2.CreateManagedFolderRequest = (function() {
+
+ /**
+ * Properties of a CreateManagedFolderRequest.
+ * @memberof google.storage.control.v2
+ * @interface ICreateManagedFolderRequest
+ * @property {string|null} [parent] CreateManagedFolderRequest parent
+ * @property {google.storage.control.v2.IManagedFolder|null} [managedFolder] CreateManagedFolderRequest managedFolder
+ * @property {string|null} [managedFolderId] CreateManagedFolderRequest managedFolderId
+ * @property {string|null} [requestId] CreateManagedFolderRequest requestId
+ */
+
+ /**
+ * Constructs a new CreateManagedFolderRequest.
+ * @memberof google.storage.control.v2
+ * @classdesc Represents a CreateManagedFolderRequest.
+ * @implements ICreateManagedFolderRequest
+ * @constructor
+ * @param {google.storage.control.v2.ICreateManagedFolderRequest=} [properties] Properties to set
+ */
+ function CreateManagedFolderRequest(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]];
+ }
+
+ /**
+ * CreateManagedFolderRequest parent.
+ * @member {string} parent
+ * @memberof google.storage.control.v2.CreateManagedFolderRequest
+ * @instance
+ */
+ CreateManagedFolderRequest.prototype.parent = "";
+
+ /**
+ * CreateManagedFolderRequest managedFolder.
+ * @member {google.storage.control.v2.IManagedFolder|null|undefined} managedFolder
+ * @memberof google.storage.control.v2.CreateManagedFolderRequest
+ * @instance
+ */
+ CreateManagedFolderRequest.prototype.managedFolder = null;
+
+ /**
+ * CreateManagedFolderRequest managedFolderId.
+ * @member {string} managedFolderId
+ * @memberof google.storage.control.v2.CreateManagedFolderRequest
+ * @instance
+ */
+ CreateManagedFolderRequest.prototype.managedFolderId = "";
+
+ /**
+ * CreateManagedFolderRequest requestId.
+ * @member {string} requestId
+ * @memberof google.storage.control.v2.CreateManagedFolderRequest
+ * @instance
+ */
+ CreateManagedFolderRequest.prototype.requestId = "";
+
+ /**
+ * Creates a new CreateManagedFolderRequest instance using the specified properties.
+ * @function create
+ * @memberof google.storage.control.v2.CreateManagedFolderRequest
+ * @static
+ * @param {google.storage.control.v2.ICreateManagedFolderRequest=} [properties] Properties to set
+ * @returns {google.storage.control.v2.CreateManagedFolderRequest} CreateManagedFolderRequest instance
+ */
+ CreateManagedFolderRequest.create = function create(properties) {
+ return new CreateManagedFolderRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateManagedFolderRequest message. Does not implicitly {@link google.storage.control.v2.CreateManagedFolderRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.storage.control.v2.CreateManagedFolderRequest
+ * @static
+ * @param {google.storage.control.v2.ICreateManagedFolderRequest} message CreateManagedFolderRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateManagedFolderRequest.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.managedFolder != null && Object.hasOwnProperty.call(message, "managedFolder"))
+ $root.google.storage.control.v2.ManagedFolder.encode(message.managedFolder, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.managedFolderId != null && Object.hasOwnProperty.call(message, "managedFolderId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.managedFolderId);
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateManagedFolderRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.CreateManagedFolderRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.storage.control.v2.CreateManagedFolderRequest
+ * @static
+ * @param {google.storage.control.v2.ICreateManagedFolderRequest} message CreateManagedFolderRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateManagedFolderRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateManagedFolderRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.storage.control.v2.CreateManagedFolderRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.storage.control.v2.CreateManagedFolderRequest} CreateManagedFolderRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateManagedFolderRequest.decode = function decode(reader, length, error) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.storage.control.v2.CreateManagedFolderRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.managedFolder = $root.google.storage.control.v2.ManagedFolder.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.managedFolderId = reader.string();
+ break;
+ }
+ case 4: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateManagedFolderRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.storage.control.v2.CreateManagedFolderRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.storage.control.v2.CreateManagedFolderRequest} CreateManagedFolderRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateManagedFolderRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateManagedFolderRequest message.
+ * @function verify
+ * @memberof google.storage.control.v2.CreateManagedFolderRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateManagedFolderRequest.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.managedFolder != null && message.hasOwnProperty("managedFolder")) {
+ var error = $root.google.storage.control.v2.ManagedFolder.verify(message.managedFolder);
+ if (error)
+ return "managedFolder." + error;
+ }
+ if (message.managedFolderId != null && message.hasOwnProperty("managedFolderId"))
+ if (!$util.isString(message.managedFolderId))
+ return "managedFolderId: string expected";
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a CreateManagedFolderRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.storage.control.v2.CreateManagedFolderRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.storage.control.v2.CreateManagedFolderRequest} CreateManagedFolderRequest
+ */
+ CreateManagedFolderRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.storage.control.v2.CreateManagedFolderRequest)
+ return object;
+ var message = new $root.google.storage.control.v2.CreateManagedFolderRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.managedFolder != null) {
+ if (typeof object.managedFolder !== "object")
+ throw TypeError(".google.storage.control.v2.CreateManagedFolderRequest.managedFolder: object expected");
+ message.managedFolder = $root.google.storage.control.v2.ManagedFolder.fromObject(object.managedFolder);
+ }
+ if (object.managedFolderId != null)
+ message.managedFolderId = String(object.managedFolderId);
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateManagedFolderRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.storage.control.v2.CreateManagedFolderRequest
+ * @static
+ * @param {google.storage.control.v2.CreateManagedFolderRequest} message CreateManagedFolderRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateManagedFolderRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.managedFolder = null;
+ object.managedFolderId = "";
+ object.requestId = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.managedFolder != null && message.hasOwnProperty("managedFolder"))
+ object.managedFolder = $root.google.storage.control.v2.ManagedFolder.toObject(message.managedFolder, options);
+ if (message.managedFolderId != null && message.hasOwnProperty("managedFolderId"))
+ object.managedFolderId = message.managedFolderId;
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this CreateManagedFolderRequest to JSON.
+ * @function toJSON
+ * @memberof google.storage.control.v2.CreateManagedFolderRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateManagedFolderRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateManagedFolderRequest
+ * @function getTypeUrl
+ * @memberof google.storage.control.v2.CreateManagedFolderRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateManagedFolderRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.storage.control.v2.CreateManagedFolderRequest";
+ };
+
+ return CreateManagedFolderRequest;
+ })();
+
+ v2.DeleteManagedFolderRequest = (function() {
+
+ /**
+ * Properties of a DeleteManagedFolderRequest.
+ * @memberof google.storage.control.v2
+ * @interface IDeleteManagedFolderRequest
+ * @property {string|null} [name] DeleteManagedFolderRequest name
+ * @property {number|Long|null} [ifMetagenerationMatch] DeleteManagedFolderRequest ifMetagenerationMatch
+ * @property {number|Long|null} [ifMetagenerationNotMatch] DeleteManagedFolderRequest ifMetagenerationNotMatch
+ * @property {boolean|null} [allowNonEmpty] DeleteManagedFolderRequest allowNonEmpty
+ * @property {string|null} [requestId] DeleteManagedFolderRequest requestId
+ */
+
+ /**
+ * Constructs a new DeleteManagedFolderRequest.
+ * @memberof google.storage.control.v2
+ * @classdesc Represents a DeleteManagedFolderRequest.
+ * @implements IDeleteManagedFolderRequest
+ * @constructor
+ * @param {google.storage.control.v2.IDeleteManagedFolderRequest=} [properties] Properties to set
+ */
+ function DeleteManagedFolderRequest(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]];
+ }
+
+ /**
+ * DeleteManagedFolderRequest name.
+ * @member {string} name
+ * @memberof google.storage.control.v2.DeleteManagedFolderRequest
+ * @instance
+ */
+ DeleteManagedFolderRequest.prototype.name = "";
+
+ /**
+ * DeleteManagedFolderRequest ifMetagenerationMatch.
+ * @member {number|Long|null|undefined} ifMetagenerationMatch
+ * @memberof google.storage.control.v2.DeleteManagedFolderRequest
+ * @instance
+ */
+ DeleteManagedFolderRequest.prototype.ifMetagenerationMatch = null;
+
+ /**
+ * DeleteManagedFolderRequest ifMetagenerationNotMatch.
+ * @member {number|Long|null|undefined} ifMetagenerationNotMatch
+ * @memberof google.storage.control.v2.DeleteManagedFolderRequest
+ * @instance
+ */
+ DeleteManagedFolderRequest.prototype.ifMetagenerationNotMatch = null;
+
+ /**
+ * DeleteManagedFolderRequest allowNonEmpty.
+ * @member {boolean} allowNonEmpty
+ * @memberof google.storage.control.v2.DeleteManagedFolderRequest
+ * @instance
+ */
+ DeleteManagedFolderRequest.prototype.allowNonEmpty = false;
+
+ /**
+ * DeleteManagedFolderRequest requestId.
+ * @member {string} requestId
+ * @memberof google.storage.control.v2.DeleteManagedFolderRequest
+ * @instance
+ */
+ DeleteManagedFolderRequest.prototype.requestId = "";
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ // Virtual OneOf for proto3 optional field
+ Object.defineProperty(DeleteManagedFolderRequest.prototype, "_ifMetagenerationMatch", {
+ get: $util.oneOfGetter($oneOfFields = ["ifMetagenerationMatch"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ // Virtual OneOf for proto3 optional field
+ Object.defineProperty(DeleteManagedFolderRequest.prototype, "_ifMetagenerationNotMatch", {
+ get: $util.oneOfGetter($oneOfFields = ["ifMetagenerationNotMatch"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new DeleteManagedFolderRequest instance using the specified properties.
+ * @function create
+ * @memberof google.storage.control.v2.DeleteManagedFolderRequest
+ * @static
+ * @param {google.storage.control.v2.IDeleteManagedFolderRequest=} [properties] Properties to set
+ * @returns {google.storage.control.v2.DeleteManagedFolderRequest} DeleteManagedFolderRequest instance
+ */
+ DeleteManagedFolderRequest.create = function create(properties) {
+ return new DeleteManagedFolderRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteManagedFolderRequest message. Does not implicitly {@link google.storage.control.v2.DeleteManagedFolderRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.storage.control.v2.DeleteManagedFolderRequest
+ * @static
+ * @param {google.storage.control.v2.IDeleteManagedFolderRequest} message DeleteManagedFolderRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteManagedFolderRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.ifMetagenerationMatch != null && Object.hasOwnProperty.call(message, "ifMetagenerationMatch"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int64(message.ifMetagenerationMatch);
+ if (message.ifMetagenerationNotMatch != null && Object.hasOwnProperty.call(message, "ifMetagenerationNotMatch"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int64(message.ifMetagenerationNotMatch);
+ if (message.allowNonEmpty != null && Object.hasOwnProperty.call(message, "allowNonEmpty"))
+ writer.uint32(/* id 5, wireType 0 =*/40).bool(message.allowNonEmpty);
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.requestId);
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.name);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DeleteManagedFolderRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.DeleteManagedFolderRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.storage.control.v2.DeleteManagedFolderRequest
+ * @static
+ * @param {google.storage.control.v2.IDeleteManagedFolderRequest} message DeleteManagedFolderRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteManagedFolderRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteManagedFolderRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.storage.control.v2.DeleteManagedFolderRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.storage.control.v2.DeleteManagedFolderRequest} DeleteManagedFolderRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteManagedFolderRequest.decode = function decode(reader, length, error) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.storage.control.v2.DeleteManagedFolderRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 7: {
+ message.name = reader.string();
+ break;
+ }
+ case 3: {
+ message.ifMetagenerationMatch = reader.int64();
+ break;
+ }
+ case 4: {
+ message.ifMetagenerationNotMatch = reader.int64();
+ break;
+ }
+ case 5: {
+ message.allowNonEmpty = reader.bool();
+ break;
+ }
+ case 6: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DeleteManagedFolderRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.storage.control.v2.DeleteManagedFolderRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.storage.control.v2.DeleteManagedFolderRequest} DeleteManagedFolderRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteManagedFolderRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteManagedFolderRequest message.
+ * @function verify
+ * @memberof google.storage.control.v2.DeleteManagedFolderRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteManagedFolderRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.ifMetagenerationMatch != null && message.hasOwnProperty("ifMetagenerationMatch")) {
+ properties._ifMetagenerationMatch = 1;
+ if (!$util.isInteger(message.ifMetagenerationMatch) && !(message.ifMetagenerationMatch && $util.isInteger(message.ifMetagenerationMatch.low) && $util.isInteger(message.ifMetagenerationMatch.high)))
+ return "ifMetagenerationMatch: integer|Long expected";
+ }
+ if (message.ifMetagenerationNotMatch != null && message.hasOwnProperty("ifMetagenerationNotMatch")) {
+ properties._ifMetagenerationNotMatch = 1;
+ if (!$util.isInteger(message.ifMetagenerationNotMatch) && !(message.ifMetagenerationNotMatch && $util.isInteger(message.ifMetagenerationNotMatch.low) && $util.isInteger(message.ifMetagenerationNotMatch.high)))
+ return "ifMetagenerationNotMatch: integer|Long expected";
+ }
+ if (message.allowNonEmpty != null && message.hasOwnProperty("allowNonEmpty"))
+ if (typeof message.allowNonEmpty !== "boolean")
+ return "allowNonEmpty: boolean expected";
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a DeleteManagedFolderRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.storage.control.v2.DeleteManagedFolderRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.storage.control.v2.DeleteManagedFolderRequest} DeleteManagedFolderRequest
+ */
+ DeleteManagedFolderRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.storage.control.v2.DeleteManagedFolderRequest)
+ return object;
+ var message = new $root.google.storage.control.v2.DeleteManagedFolderRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.ifMetagenerationMatch != null)
+ if ($util.Long)
+ (message.ifMetagenerationMatch = $util.Long.fromValue(object.ifMetagenerationMatch)).unsigned = false;
+ else if (typeof object.ifMetagenerationMatch === "string")
+ message.ifMetagenerationMatch = parseInt(object.ifMetagenerationMatch, 10);
+ else if (typeof object.ifMetagenerationMatch === "number")
+ message.ifMetagenerationMatch = object.ifMetagenerationMatch;
+ else if (typeof object.ifMetagenerationMatch === "object")
+ message.ifMetagenerationMatch = new $util.LongBits(object.ifMetagenerationMatch.low >>> 0, object.ifMetagenerationMatch.high >>> 0).toNumber();
+ if (object.ifMetagenerationNotMatch != null)
+ if ($util.Long)
+ (message.ifMetagenerationNotMatch = $util.Long.fromValue(object.ifMetagenerationNotMatch)).unsigned = false;
+ else if (typeof object.ifMetagenerationNotMatch === "string")
+ message.ifMetagenerationNotMatch = parseInt(object.ifMetagenerationNotMatch, 10);
+ else if (typeof object.ifMetagenerationNotMatch === "number")
+ message.ifMetagenerationNotMatch = object.ifMetagenerationNotMatch;
+ else if (typeof object.ifMetagenerationNotMatch === "object")
+ message.ifMetagenerationNotMatch = new $util.LongBits(object.ifMetagenerationNotMatch.low >>> 0, object.ifMetagenerationNotMatch.high >>> 0).toNumber();
+ if (object.allowNonEmpty != null)
+ message.allowNonEmpty = Boolean(object.allowNonEmpty);
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteManagedFolderRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.storage.control.v2.DeleteManagedFolderRequest
+ * @static
+ * @param {google.storage.control.v2.DeleteManagedFolderRequest} message DeleteManagedFolderRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteManagedFolderRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.allowNonEmpty = false;
+ object.requestId = "";
+ object.name = "";
+ }
+ if (message.ifMetagenerationMatch != null && message.hasOwnProperty("ifMetagenerationMatch")) {
+ if (typeof message.ifMetagenerationMatch === "number")
+ object.ifMetagenerationMatch = options.longs === String ? String(message.ifMetagenerationMatch) : message.ifMetagenerationMatch;
+ else
+ object.ifMetagenerationMatch = options.longs === String ? $util.Long.prototype.toString.call(message.ifMetagenerationMatch) : options.longs === Number ? new $util.LongBits(message.ifMetagenerationMatch.low >>> 0, message.ifMetagenerationMatch.high >>> 0).toNumber() : message.ifMetagenerationMatch;
+ if (options.oneofs)
+ object._ifMetagenerationMatch = "ifMetagenerationMatch";
+ }
+ if (message.ifMetagenerationNotMatch != null && message.hasOwnProperty("ifMetagenerationNotMatch")) {
+ if (typeof message.ifMetagenerationNotMatch === "number")
+ object.ifMetagenerationNotMatch = options.longs === String ? String(message.ifMetagenerationNotMatch) : message.ifMetagenerationNotMatch;
+ else
+ object.ifMetagenerationNotMatch = options.longs === String ? $util.Long.prototype.toString.call(message.ifMetagenerationNotMatch) : options.longs === Number ? new $util.LongBits(message.ifMetagenerationNotMatch.low >>> 0, message.ifMetagenerationNotMatch.high >>> 0).toNumber() : message.ifMetagenerationNotMatch;
+ if (options.oneofs)
+ object._ifMetagenerationNotMatch = "ifMetagenerationNotMatch";
+ }
+ if (message.allowNonEmpty != null && message.hasOwnProperty("allowNonEmpty"))
+ object.allowNonEmpty = message.allowNonEmpty;
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ return object;
+ };
+
+ /**
+ * Converts this DeleteManagedFolderRequest to JSON.
+ * @function toJSON
+ * @memberof google.storage.control.v2.DeleteManagedFolderRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteManagedFolderRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteManagedFolderRequest
+ * @function getTypeUrl
+ * @memberof google.storage.control.v2.DeleteManagedFolderRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteManagedFolderRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.storage.control.v2.DeleteManagedFolderRequest";
+ };
+
+ return DeleteManagedFolderRequest;
+ })();
+
+ v2.ListManagedFoldersRequest = (function() {
+
+ /**
+ * Properties of a ListManagedFoldersRequest.
+ * @memberof google.storage.control.v2
+ * @interface IListManagedFoldersRequest
+ * @property {string|null} [parent] ListManagedFoldersRequest parent
+ * @property {number|null} [pageSize] ListManagedFoldersRequest pageSize
+ * @property {string|null} [pageToken] ListManagedFoldersRequest pageToken
+ * @property {string|null} [prefix] ListManagedFoldersRequest prefix
+ * @property {string|null} [requestId] ListManagedFoldersRequest requestId
+ */
+
+ /**
+ * Constructs a new ListManagedFoldersRequest.
+ * @memberof google.storage.control.v2
+ * @classdesc Represents a ListManagedFoldersRequest.
+ * @implements IListManagedFoldersRequest
+ * @constructor
+ * @param {google.storage.control.v2.IListManagedFoldersRequest=} [properties] Properties to set
+ */
+ function ListManagedFoldersRequest(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]];
+ }
+
+ /**
+ * ListManagedFoldersRequest parent.
+ * @member {string} parent
+ * @memberof google.storage.control.v2.ListManagedFoldersRequest
+ * @instance
+ */
+ ListManagedFoldersRequest.prototype.parent = "";
+
+ /**
+ * ListManagedFoldersRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.storage.control.v2.ListManagedFoldersRequest
+ * @instance
+ */
+ ListManagedFoldersRequest.prototype.pageSize = 0;
+
+ /**
+ * ListManagedFoldersRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.storage.control.v2.ListManagedFoldersRequest
+ * @instance
+ */
+ ListManagedFoldersRequest.prototype.pageToken = "";
+
+ /**
+ * ListManagedFoldersRequest prefix.
+ * @member {string} prefix
+ * @memberof google.storage.control.v2.ListManagedFoldersRequest
+ * @instance
+ */
+ ListManagedFoldersRequest.prototype.prefix = "";
+
+ /**
+ * ListManagedFoldersRequest requestId.
+ * @member {string} requestId
+ * @memberof google.storage.control.v2.ListManagedFoldersRequest
+ * @instance
+ */
+ ListManagedFoldersRequest.prototype.requestId = "";
+
+ /**
+ * Creates a new ListManagedFoldersRequest instance using the specified properties.
+ * @function create
+ * @memberof google.storage.control.v2.ListManagedFoldersRequest
+ * @static
+ * @param {google.storage.control.v2.IListManagedFoldersRequest=} [properties] Properties to set
+ * @returns {google.storage.control.v2.ListManagedFoldersRequest} ListManagedFoldersRequest instance
+ */
+ ListManagedFoldersRequest.create = function create(properties) {
+ return new ListManagedFoldersRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListManagedFoldersRequest message. Does not implicitly {@link google.storage.control.v2.ListManagedFoldersRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.storage.control.v2.ListManagedFoldersRequest
+ * @static
+ * @param {google.storage.control.v2.IListManagedFoldersRequest} message ListManagedFoldersRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListManagedFoldersRequest.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.prefix != null && Object.hasOwnProperty.call(message, "prefix"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.prefix);
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.requestId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListManagedFoldersRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.ListManagedFoldersRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.storage.control.v2.ListManagedFoldersRequest
+ * @static
+ * @param {google.storage.control.v2.IListManagedFoldersRequest} message ListManagedFoldersRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListManagedFoldersRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListManagedFoldersRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.storage.control.v2.ListManagedFoldersRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.storage.control.v2.ListManagedFoldersRequest} ListManagedFoldersRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListManagedFoldersRequest.decode = function decode(reader, length, error) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.storage.control.v2.ListManagedFoldersRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ 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.prefix = reader.string();
+ break;
+ }
+ case 5: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListManagedFoldersRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.storage.control.v2.ListManagedFoldersRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.storage.control.v2.ListManagedFoldersRequest} ListManagedFoldersRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListManagedFoldersRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListManagedFoldersRequest message.
+ * @function verify
+ * @memberof google.storage.control.v2.ListManagedFoldersRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListManagedFoldersRequest.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.prefix != null && message.hasOwnProperty("prefix"))
+ if (!$util.isString(message.prefix))
+ return "prefix: string expected";
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListManagedFoldersRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.storage.control.v2.ListManagedFoldersRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.storage.control.v2.ListManagedFoldersRequest} ListManagedFoldersRequest
+ */
+ ListManagedFoldersRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.storage.control.v2.ListManagedFoldersRequest)
+ return object;
+ var message = new $root.google.storage.control.v2.ListManagedFoldersRequest();
+ 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.prefix != null)
+ message.prefix = String(object.prefix);
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListManagedFoldersRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.storage.control.v2.ListManagedFoldersRequest
+ * @static
+ * @param {google.storage.control.v2.ListManagedFoldersRequest} message ListManagedFoldersRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListManagedFoldersRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ object.prefix = "";
+ object.requestId = "";
+ }
+ 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.prefix != null && message.hasOwnProperty("prefix"))
+ object.prefix = message.prefix;
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this ListManagedFoldersRequest to JSON.
+ * @function toJSON
+ * @memberof google.storage.control.v2.ListManagedFoldersRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListManagedFoldersRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListManagedFoldersRequest
+ * @function getTypeUrl
+ * @memberof google.storage.control.v2.ListManagedFoldersRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListManagedFoldersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.storage.control.v2.ListManagedFoldersRequest";
+ };
+
+ return ListManagedFoldersRequest;
+ })();
+
+ v2.ListManagedFoldersResponse = (function() {
+
+ /**
+ * Properties of a ListManagedFoldersResponse.
+ * @memberof google.storage.control.v2
+ * @interface IListManagedFoldersResponse
+ * @property {Array.|null} [managedFolders] ListManagedFoldersResponse managedFolders
+ * @property {string|null} [nextPageToken] ListManagedFoldersResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListManagedFoldersResponse.
+ * @memberof google.storage.control.v2
+ * @classdesc Represents a ListManagedFoldersResponse.
+ * @implements IListManagedFoldersResponse
+ * @constructor
+ * @param {google.storage.control.v2.IListManagedFoldersResponse=} [properties] Properties to set
+ */
+ function ListManagedFoldersResponse(properties) {
+ this.managedFolders = [];
+ 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]];
+ }
+
+ /**
+ * ListManagedFoldersResponse managedFolders.
+ * @member {Array.} managedFolders
+ * @memberof google.storage.control.v2.ListManagedFoldersResponse
+ * @instance
+ */
+ ListManagedFoldersResponse.prototype.managedFolders = $util.emptyArray;
+
+ /**
+ * ListManagedFoldersResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.storage.control.v2.ListManagedFoldersResponse
+ * @instance
+ */
+ ListManagedFoldersResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListManagedFoldersResponse instance using the specified properties.
+ * @function create
+ * @memberof google.storage.control.v2.ListManagedFoldersResponse
+ * @static
+ * @param {google.storage.control.v2.IListManagedFoldersResponse=} [properties] Properties to set
+ * @returns {google.storage.control.v2.ListManagedFoldersResponse} ListManagedFoldersResponse instance
+ */
+ ListManagedFoldersResponse.create = function create(properties) {
+ return new ListManagedFoldersResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListManagedFoldersResponse message. Does not implicitly {@link google.storage.control.v2.ListManagedFoldersResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.storage.control.v2.ListManagedFoldersResponse
+ * @static
+ * @param {google.storage.control.v2.IListManagedFoldersResponse} message ListManagedFoldersResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListManagedFoldersResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.managedFolders != null && message.managedFolders.length)
+ for (var i = 0; i < message.managedFolders.length; ++i)
+ $root.google.storage.control.v2.ManagedFolder.encode(message.managedFolders[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 ListManagedFoldersResponse message, length delimited. Does not implicitly {@link google.storage.control.v2.ListManagedFoldersResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.storage.control.v2.ListManagedFoldersResponse
+ * @static
+ * @param {google.storage.control.v2.IListManagedFoldersResponse} message ListManagedFoldersResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListManagedFoldersResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListManagedFoldersResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.storage.control.v2.ListManagedFoldersResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.storage.control.v2.ListManagedFoldersResponse} ListManagedFoldersResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListManagedFoldersResponse.decode = function decode(reader, length, error) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.storage.control.v2.ListManagedFoldersResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.managedFolders && message.managedFolders.length))
+ message.managedFolders = [];
+ message.managedFolders.push($root.google.storage.control.v2.ManagedFolder.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListManagedFoldersResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.storage.control.v2.ListManagedFoldersResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.storage.control.v2.ListManagedFoldersResponse} ListManagedFoldersResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListManagedFoldersResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListManagedFoldersResponse message.
+ * @function verify
+ * @memberof google.storage.control.v2.ListManagedFoldersResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListManagedFoldersResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.managedFolders != null && message.hasOwnProperty("managedFolders")) {
+ if (!Array.isArray(message.managedFolders))
+ return "managedFolders: array expected";
+ for (var i = 0; i < message.managedFolders.length; ++i) {
+ var error = $root.google.storage.control.v2.ManagedFolder.verify(message.managedFolders[i]);
+ if (error)
+ return "managedFolders." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListManagedFoldersResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.storage.control.v2.ListManagedFoldersResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.storage.control.v2.ListManagedFoldersResponse} ListManagedFoldersResponse
+ */
+ ListManagedFoldersResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.storage.control.v2.ListManagedFoldersResponse)
+ return object;
+ var message = new $root.google.storage.control.v2.ListManagedFoldersResponse();
+ if (object.managedFolders) {
+ if (!Array.isArray(object.managedFolders))
+ throw TypeError(".google.storage.control.v2.ListManagedFoldersResponse.managedFolders: array expected");
+ message.managedFolders = [];
+ for (var i = 0; i < object.managedFolders.length; ++i) {
+ if (typeof object.managedFolders[i] !== "object")
+ throw TypeError(".google.storage.control.v2.ListManagedFoldersResponse.managedFolders: object expected");
+ message.managedFolders[i] = $root.google.storage.control.v2.ManagedFolder.fromObject(object.managedFolders[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListManagedFoldersResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.storage.control.v2.ListManagedFoldersResponse
+ * @static
+ * @param {google.storage.control.v2.ListManagedFoldersResponse} message ListManagedFoldersResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListManagedFoldersResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.managedFolders = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.managedFolders && message.managedFolders.length) {
+ object.managedFolders = [];
+ for (var j = 0; j < message.managedFolders.length; ++j)
+ object.managedFolders[j] = $root.google.storage.control.v2.ManagedFolder.toObject(message.managedFolders[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListManagedFoldersResponse to JSON.
+ * @function toJSON
+ * @memberof google.storage.control.v2.ListManagedFoldersResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListManagedFoldersResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListManagedFoldersResponse
+ * @function getTypeUrl
+ * @memberof google.storage.control.v2.ListManagedFoldersResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListManagedFoldersResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.storage.control.v2.ListManagedFoldersResponse";
+ };
+
+ return ListManagedFoldersResponse;
+ })();
+
+ v2.CreateAnywhereCacheMetadata = (function() {
+
+ /**
+ * Properties of a CreateAnywhereCacheMetadata.
+ * @memberof google.storage.control.v2
+ * @interface ICreateAnywhereCacheMetadata
+ * @property {google.storage.control.v2.ICommonLongRunningOperationMetadata|null} [commonMetadata] CreateAnywhereCacheMetadata commonMetadata
+ * @property {string|null} [anywhereCacheId] CreateAnywhereCacheMetadata anywhereCacheId
+ * @property {string|null} [zone] CreateAnywhereCacheMetadata zone
+ * @property {google.protobuf.IDuration|null} [ttl] CreateAnywhereCacheMetadata ttl
+ * @property {string|null} [admissionPolicy] CreateAnywhereCacheMetadata admissionPolicy
+ */
+
+ /**
+ * Constructs a new CreateAnywhereCacheMetadata.
+ * @memberof google.storage.control.v2
+ * @classdesc Represents a CreateAnywhereCacheMetadata.
+ * @implements ICreateAnywhereCacheMetadata
+ * @constructor
+ * @param {google.storage.control.v2.ICreateAnywhereCacheMetadata=} [properties] Properties to set
+ */
+ function CreateAnywhereCacheMetadata(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]];
+ }
+
+ /**
+ * CreateAnywhereCacheMetadata commonMetadata.
+ * @member {google.storage.control.v2.ICommonLongRunningOperationMetadata|null|undefined} commonMetadata
+ * @memberof google.storage.control.v2.CreateAnywhereCacheMetadata
+ * @instance
+ */
+ CreateAnywhereCacheMetadata.prototype.commonMetadata = null;
+
+ /**
+ * CreateAnywhereCacheMetadata anywhereCacheId.
+ * @member {string|null|undefined} anywhereCacheId
+ * @memberof google.storage.control.v2.CreateAnywhereCacheMetadata
+ * @instance
+ */
+ CreateAnywhereCacheMetadata.prototype.anywhereCacheId = null;
+
+ /**
+ * CreateAnywhereCacheMetadata zone.
+ * @member {string|null|undefined} zone
+ * @memberof google.storage.control.v2.CreateAnywhereCacheMetadata
+ * @instance
+ */
+ CreateAnywhereCacheMetadata.prototype.zone = null;
+
+ /**
+ * CreateAnywhereCacheMetadata ttl.
+ * @member {google.protobuf.IDuration|null|undefined} ttl
+ * @memberof google.storage.control.v2.CreateAnywhereCacheMetadata
+ * @instance
+ */
+ CreateAnywhereCacheMetadata.prototype.ttl = null;
+
+ /**
+ * CreateAnywhereCacheMetadata admissionPolicy.
+ * @member {string|null|undefined} admissionPolicy
+ * @memberof google.storage.control.v2.CreateAnywhereCacheMetadata
+ * @instance
+ */
+ CreateAnywhereCacheMetadata.prototype.admissionPolicy = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ // Virtual OneOf for proto3 optional field
+ Object.defineProperty(CreateAnywhereCacheMetadata.prototype, "_anywhereCacheId", {
+ get: $util.oneOfGetter($oneOfFields = ["anywhereCacheId"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ // Virtual OneOf for proto3 optional field
+ Object.defineProperty(CreateAnywhereCacheMetadata.prototype, "_zone", {
+ get: $util.oneOfGetter($oneOfFields = ["zone"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ // Virtual OneOf for proto3 optional field
+ Object.defineProperty(CreateAnywhereCacheMetadata.prototype, "_ttl", {
+ get: $util.oneOfGetter($oneOfFields = ["ttl"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ // Virtual OneOf for proto3 optional field
+ Object.defineProperty(CreateAnywhereCacheMetadata.prototype, "_admissionPolicy", {
+ get: $util.oneOfGetter($oneOfFields = ["admissionPolicy"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new CreateAnywhereCacheMetadata instance using the specified properties.
+ * @function create
+ * @memberof google.storage.control.v2.CreateAnywhereCacheMetadata
+ * @static
+ * @param {google.storage.control.v2.ICreateAnywhereCacheMetadata=} [properties] Properties to set
+ * @returns {google.storage.control.v2.CreateAnywhereCacheMetadata} CreateAnywhereCacheMetadata instance
+ */
+ CreateAnywhereCacheMetadata.create = function create(properties) {
+ return new CreateAnywhereCacheMetadata(properties);
+ };
+
+ /**
+ * Encodes the specified CreateAnywhereCacheMetadata message. Does not implicitly {@link google.storage.control.v2.CreateAnywhereCacheMetadata.verify|verify} messages.
+ * @function encode
+ * @memberof google.storage.control.v2.CreateAnywhereCacheMetadata
+ * @static
+ * @param {google.storage.control.v2.ICreateAnywhereCacheMetadata} message CreateAnywhereCacheMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateAnywhereCacheMetadata.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.commonMetadata != null && Object.hasOwnProperty.call(message, "commonMetadata"))
+ $root.google.storage.control.v2.CommonLongRunningOperationMetadata.encode(message.commonMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.anywhereCacheId != null && Object.hasOwnProperty.call(message, "anywhereCacheId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.anywhereCacheId);
+ if (message.ttl != null && Object.hasOwnProperty.call(message, "ttl"))
+ $root.google.protobuf.Duration.encode(message.ttl, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.admissionPolicy != null && Object.hasOwnProperty.call(message, "admissionPolicy"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.admissionPolicy);
+ if (message.zone != null && Object.hasOwnProperty.call(message, "zone"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.zone);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateAnywhereCacheMetadata message, length delimited. Does not implicitly {@link google.storage.control.v2.CreateAnywhereCacheMetadata.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.storage.control.v2.CreateAnywhereCacheMetadata
+ * @static
+ * @param {google.storage.control.v2.ICreateAnywhereCacheMetadata} message CreateAnywhereCacheMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateAnywhereCacheMetadata.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateAnywhereCacheMetadata message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.storage.control.v2.CreateAnywhereCacheMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.storage.control.v2.CreateAnywhereCacheMetadata} CreateAnywhereCacheMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateAnywhereCacheMetadata.decode = function decode(reader, length, error) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.storage.control.v2.CreateAnywhereCacheMetadata();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.commonMetadata = $root.google.storage.control.v2.CommonLongRunningOperationMetadata.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.anywhereCacheId = reader.string();
+ break;
+ }
+ case 6: {
+ message.zone = reader.string();
+ break;
+ }
+ case 3: {
+ message.ttl = $root.google.protobuf.Duration.decode(reader, reader.uint32());
+ break;
+ }
+ case 5: {
+ message.admissionPolicy = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateAnywhereCacheMetadata message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.storage.control.v2.CreateAnywhereCacheMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.storage.control.v2.CreateAnywhereCacheMetadata} CreateAnywhereCacheMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateAnywhereCacheMetadata.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateAnywhereCacheMetadata message.
+ * @function verify
+ * @memberof google.storage.control.v2.CreateAnywhereCacheMetadata
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateAnywhereCacheMetadata.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.commonMetadata != null && message.hasOwnProperty("commonMetadata")) {
+ var error = $root.google.storage.control.v2.CommonLongRunningOperationMetadata.verify(message.commonMetadata);
+ if (error)
+ return "commonMetadata." + error;
+ }
+ if (message.anywhereCacheId != null && message.hasOwnProperty("anywhereCacheId")) {
+ properties._anywhereCacheId = 1;
+ if (!$util.isString(message.anywhereCacheId))
+ return "anywhereCacheId: string expected";
+ }
+ if (message.zone != null && message.hasOwnProperty("zone")) {
+ properties._zone = 1;
+ if (!$util.isString(message.zone))
+ return "zone: string expected";
+ }
+ if (message.ttl != null && message.hasOwnProperty("ttl")) {
+ properties._ttl = 1;
+ {
+ var error = $root.google.protobuf.Duration.verify(message.ttl);
+ if (error)
+ return "ttl." + error;
+ }
+ }
+ if (message.admissionPolicy != null && message.hasOwnProperty("admissionPolicy")) {
+ properties._admissionPolicy = 1;
+ if (!$util.isString(message.admissionPolicy))
+ return "admissionPolicy: string expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a CreateAnywhereCacheMetadata message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.storage.control.v2.CreateAnywhereCacheMetadata
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.storage.control.v2.CreateAnywhereCacheMetadata} CreateAnywhereCacheMetadata
+ */
+ CreateAnywhereCacheMetadata.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.storage.control.v2.CreateAnywhereCacheMetadata)
+ return object;
+ var message = new $root.google.storage.control.v2.CreateAnywhereCacheMetadata();
+ if (object.commonMetadata != null) {
+ if (typeof object.commonMetadata !== "object")
+ throw TypeError(".google.storage.control.v2.CreateAnywhereCacheMetadata.commonMetadata: object expected");
+ message.commonMetadata = $root.google.storage.control.v2.CommonLongRunningOperationMetadata.fromObject(object.commonMetadata);
+ }
+ if (object.anywhereCacheId != null)
+ message.anywhereCacheId = String(object.anywhereCacheId);
+ if (object.zone != null)
+ message.zone = String(object.zone);
+ if (object.ttl != null) {
+ if (typeof object.ttl !== "object")
+ throw TypeError(".google.storage.control.v2.CreateAnywhereCacheMetadata.ttl: object expected");
+ message.ttl = $root.google.protobuf.Duration.fromObject(object.ttl);
+ }
+ if (object.admissionPolicy != null)
+ message.admissionPolicy = String(object.admissionPolicy);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateAnywhereCacheMetadata message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.storage.control.v2.CreateAnywhereCacheMetadata
+ * @static
+ * @param {google.storage.control.v2.CreateAnywhereCacheMetadata} message CreateAnywhereCacheMetadata
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateAnywhereCacheMetadata.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.commonMetadata = null;
+ if (message.commonMetadata != null && message.hasOwnProperty("commonMetadata"))
+ object.commonMetadata = $root.google.storage.control.v2.CommonLongRunningOperationMetadata.toObject(message.commonMetadata, options);
+ if (message.anywhereCacheId != null && message.hasOwnProperty("anywhereCacheId")) {
+ object.anywhereCacheId = message.anywhereCacheId;
+ if (options.oneofs)
+ object._anywhereCacheId = "anywhereCacheId";
+ }
+ if (message.ttl != null && message.hasOwnProperty("ttl")) {
+ object.ttl = $root.google.protobuf.Duration.toObject(message.ttl, options);
+ if (options.oneofs)
+ object._ttl = "ttl";
+ }
+ if (message.admissionPolicy != null && message.hasOwnProperty("admissionPolicy")) {
+ object.admissionPolicy = message.admissionPolicy;
+ if (options.oneofs)
+ object._admissionPolicy = "admissionPolicy";
+ }
+ if (message.zone != null && message.hasOwnProperty("zone")) {
+ object.zone = message.zone;
+ if (options.oneofs)
+ object._zone = "zone";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this CreateAnywhereCacheMetadata to JSON.
+ * @function toJSON
+ * @memberof google.storage.control.v2.CreateAnywhereCacheMetadata
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateAnywhereCacheMetadata.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateAnywhereCacheMetadata
+ * @function getTypeUrl
+ * @memberof google.storage.control.v2.CreateAnywhereCacheMetadata
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateAnywhereCacheMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.storage.control.v2.CreateAnywhereCacheMetadata";
+ };
+
+ return CreateAnywhereCacheMetadata;
+ })();
+
+ v2.UpdateAnywhereCacheMetadata = (function() {
+
+ /**
+ * Properties of an UpdateAnywhereCacheMetadata.
+ * @memberof google.storage.control.v2
+ * @interface IUpdateAnywhereCacheMetadata
+ * @property {google.storage.control.v2.ICommonLongRunningOperationMetadata|null} [commonMetadata] UpdateAnywhereCacheMetadata commonMetadata
+ * @property {string|null} [anywhereCacheId] UpdateAnywhereCacheMetadata anywhereCacheId
+ * @property {string|null} [zone] UpdateAnywhereCacheMetadata zone
+ * @property {google.protobuf.IDuration|null} [ttl] UpdateAnywhereCacheMetadata ttl
+ * @property {string|null} [admissionPolicy] UpdateAnywhereCacheMetadata admissionPolicy
+ */
+
+ /**
+ * Constructs a new UpdateAnywhereCacheMetadata.
+ * @memberof google.storage.control.v2
+ * @classdesc Represents an UpdateAnywhereCacheMetadata.
+ * @implements IUpdateAnywhereCacheMetadata
+ * @constructor
+ * @param {google.storage.control.v2.IUpdateAnywhereCacheMetadata=} [properties] Properties to set
+ */
+ function UpdateAnywhereCacheMetadata(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]];
+ }
+
+ /**
+ * UpdateAnywhereCacheMetadata commonMetadata.
+ * @member {google.storage.control.v2.ICommonLongRunningOperationMetadata|null|undefined} commonMetadata
+ * @memberof google.storage.control.v2.UpdateAnywhereCacheMetadata
+ * @instance
+ */
+ UpdateAnywhereCacheMetadata.prototype.commonMetadata = null;
+
+ /**
+ * UpdateAnywhereCacheMetadata anywhereCacheId.
+ * @member {string|null|undefined} anywhereCacheId
+ * @memberof google.storage.control.v2.UpdateAnywhereCacheMetadata
+ * @instance
+ */
+ UpdateAnywhereCacheMetadata.prototype.anywhereCacheId = null;
+
+ /**
+ * UpdateAnywhereCacheMetadata zone.
+ * @member {string|null|undefined} zone
+ * @memberof google.storage.control.v2.UpdateAnywhereCacheMetadata
+ * @instance
+ */
+ UpdateAnywhereCacheMetadata.prototype.zone = null;
+
+ /**
+ * UpdateAnywhereCacheMetadata ttl.
+ * @member {google.protobuf.IDuration|null|undefined} ttl
+ * @memberof google.storage.control.v2.UpdateAnywhereCacheMetadata
+ * @instance
+ */
+ UpdateAnywhereCacheMetadata.prototype.ttl = null;
+
+ /**
+ * UpdateAnywhereCacheMetadata admissionPolicy.
+ * @member {string|null|undefined} admissionPolicy
+ * @memberof google.storage.control.v2.UpdateAnywhereCacheMetadata
+ * @instance
+ */
+ UpdateAnywhereCacheMetadata.prototype.admissionPolicy = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ // Virtual OneOf for proto3 optional field
+ Object.defineProperty(UpdateAnywhereCacheMetadata.prototype, "_anywhereCacheId", {
+ get: $util.oneOfGetter($oneOfFields = ["anywhereCacheId"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ // Virtual OneOf for proto3 optional field
+ Object.defineProperty(UpdateAnywhereCacheMetadata.prototype, "_zone", {
+ get: $util.oneOfGetter($oneOfFields = ["zone"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ // Virtual OneOf for proto3 optional field
+ Object.defineProperty(UpdateAnywhereCacheMetadata.prototype, "_ttl", {
+ get: $util.oneOfGetter($oneOfFields = ["ttl"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ // Virtual OneOf for proto3 optional field
+ Object.defineProperty(UpdateAnywhereCacheMetadata.prototype, "_admissionPolicy", {
+ get: $util.oneOfGetter($oneOfFields = ["admissionPolicy"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new UpdateAnywhereCacheMetadata instance using the specified properties.
+ * @function create
+ * @memberof google.storage.control.v2.UpdateAnywhereCacheMetadata
+ * @static
+ * @param {google.storage.control.v2.IUpdateAnywhereCacheMetadata=} [properties] Properties to set
+ * @returns {google.storage.control.v2.UpdateAnywhereCacheMetadata} UpdateAnywhereCacheMetadata instance
+ */
+ UpdateAnywhereCacheMetadata.create = function create(properties) {
+ return new UpdateAnywhereCacheMetadata(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateAnywhereCacheMetadata message. Does not implicitly {@link google.storage.control.v2.UpdateAnywhereCacheMetadata.verify|verify} messages.
+ * @function encode
+ * @memberof google.storage.control.v2.UpdateAnywhereCacheMetadata
+ * @static
+ * @param {google.storage.control.v2.IUpdateAnywhereCacheMetadata} message UpdateAnywhereCacheMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateAnywhereCacheMetadata.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.commonMetadata != null && Object.hasOwnProperty.call(message, "commonMetadata"))
+ $root.google.storage.control.v2.CommonLongRunningOperationMetadata.encode(message.commonMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.anywhereCacheId != null && Object.hasOwnProperty.call(message, "anywhereCacheId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.anywhereCacheId);
+ if (message.ttl != null && Object.hasOwnProperty.call(message, "ttl"))
+ $root.google.protobuf.Duration.encode(message.ttl, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.admissionPolicy != null && Object.hasOwnProperty.call(message, "admissionPolicy"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.admissionPolicy);
+ if (message.zone != null && Object.hasOwnProperty.call(message, "zone"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.zone);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateAnywhereCacheMetadata message, length delimited. Does not implicitly {@link google.storage.control.v2.UpdateAnywhereCacheMetadata.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.storage.control.v2.UpdateAnywhereCacheMetadata
+ * @static
+ * @param {google.storage.control.v2.IUpdateAnywhereCacheMetadata} message UpdateAnywhereCacheMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateAnywhereCacheMetadata.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateAnywhereCacheMetadata message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.storage.control.v2.UpdateAnywhereCacheMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.storage.control.v2.UpdateAnywhereCacheMetadata} UpdateAnywhereCacheMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateAnywhereCacheMetadata.decode = function decode(reader, length, error) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.storage.control.v2.UpdateAnywhereCacheMetadata();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.commonMetadata = $root.google.storage.control.v2.CommonLongRunningOperationMetadata.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.anywhereCacheId = reader.string();
+ break;
+ }
+ case 5: {
+ message.zone = reader.string();
+ break;
+ }
+ case 3: {
+ message.ttl = $root.google.protobuf.Duration.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.admissionPolicy = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateAnywhereCacheMetadata message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.storage.control.v2.UpdateAnywhereCacheMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.storage.control.v2.UpdateAnywhereCacheMetadata} UpdateAnywhereCacheMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateAnywhereCacheMetadata.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateAnywhereCacheMetadata message.
+ * @function verify
+ * @memberof google.storage.control.v2.UpdateAnywhereCacheMetadata
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateAnywhereCacheMetadata.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.commonMetadata != null && message.hasOwnProperty("commonMetadata")) {
+ var error = $root.google.storage.control.v2.CommonLongRunningOperationMetadata.verify(message.commonMetadata);
+ if (error)
+ return "commonMetadata." + error;
+ }
+ if (message.anywhereCacheId != null && message.hasOwnProperty("anywhereCacheId")) {
+ properties._anywhereCacheId = 1;
+ if (!$util.isString(message.anywhereCacheId))
+ return "anywhereCacheId: string expected";
+ }
+ if (message.zone != null && message.hasOwnProperty("zone")) {
+ properties._zone = 1;
+ if (!$util.isString(message.zone))
+ return "zone: string expected";
+ }
+ if (message.ttl != null && message.hasOwnProperty("ttl")) {
+ properties._ttl = 1;
+ {
+ var error = $root.google.protobuf.Duration.verify(message.ttl);
+ if (error)
+ return "ttl." + error;
+ }
+ }
+ if (message.admissionPolicy != null && message.hasOwnProperty("admissionPolicy")) {
+ properties._admissionPolicy = 1;
+ if (!$util.isString(message.admissionPolicy))
+ return "admissionPolicy: string expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates an UpdateAnywhereCacheMetadata message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.storage.control.v2.UpdateAnywhereCacheMetadata
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.storage.control.v2.UpdateAnywhereCacheMetadata} UpdateAnywhereCacheMetadata
+ */
+ UpdateAnywhereCacheMetadata.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.storage.control.v2.UpdateAnywhereCacheMetadata)
+ return object;
+ var message = new $root.google.storage.control.v2.UpdateAnywhereCacheMetadata();
+ if (object.commonMetadata != null) {
+ if (typeof object.commonMetadata !== "object")
+ throw TypeError(".google.storage.control.v2.UpdateAnywhereCacheMetadata.commonMetadata: object expected");
+ message.commonMetadata = $root.google.storage.control.v2.CommonLongRunningOperationMetadata.fromObject(object.commonMetadata);
+ }
+ if (object.anywhereCacheId != null)
+ message.anywhereCacheId = String(object.anywhereCacheId);
+ if (object.zone != null)
+ message.zone = String(object.zone);
+ if (object.ttl != null) {
+ if (typeof object.ttl !== "object")
+ throw TypeError(".google.storage.control.v2.UpdateAnywhereCacheMetadata.ttl: object expected");
+ message.ttl = $root.google.protobuf.Duration.fromObject(object.ttl);
+ }
+ if (object.admissionPolicy != null)
+ message.admissionPolicy = String(object.admissionPolicy);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateAnywhereCacheMetadata message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.storage.control.v2.UpdateAnywhereCacheMetadata
+ * @static
+ * @param {google.storage.control.v2.UpdateAnywhereCacheMetadata} message UpdateAnywhereCacheMetadata
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateAnywhereCacheMetadata.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.commonMetadata = null;
+ if (message.commonMetadata != null && message.hasOwnProperty("commonMetadata"))
+ object.commonMetadata = $root.google.storage.control.v2.CommonLongRunningOperationMetadata.toObject(message.commonMetadata, options);
+ if (message.anywhereCacheId != null && message.hasOwnProperty("anywhereCacheId")) {
+ object.anywhereCacheId = message.anywhereCacheId;
+ if (options.oneofs)
+ object._anywhereCacheId = "anywhereCacheId";
+ }
+ if (message.ttl != null && message.hasOwnProperty("ttl")) {
+ object.ttl = $root.google.protobuf.Duration.toObject(message.ttl, options);
+ if (options.oneofs)
+ object._ttl = "ttl";
+ }
+ if (message.admissionPolicy != null && message.hasOwnProperty("admissionPolicy")) {
+ object.admissionPolicy = message.admissionPolicy;
+ if (options.oneofs)
+ object._admissionPolicy = "admissionPolicy";
+ }
+ if (message.zone != null && message.hasOwnProperty("zone")) {
+ object.zone = message.zone;
+ if (options.oneofs)
+ object._zone = "zone";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this UpdateAnywhereCacheMetadata to JSON.
+ * @function toJSON
+ * @memberof google.storage.control.v2.UpdateAnywhereCacheMetadata
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateAnywhereCacheMetadata.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateAnywhereCacheMetadata
+ * @function getTypeUrl
+ * @memberof google.storage.control.v2.UpdateAnywhereCacheMetadata
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateAnywhereCacheMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.storage.control.v2.UpdateAnywhereCacheMetadata";
+ };
+
+ return UpdateAnywhereCacheMetadata;
+ })();
+
+ v2.AnywhereCache = (function() {
+
+ /**
+ * Properties of an AnywhereCache.
+ * @memberof google.storage.control.v2
+ * @interface IAnywhereCache
+ * @property {string|null} [name] AnywhereCache name
+ * @property {string|null} [zone] AnywhereCache zone
+ * @property {google.protobuf.IDuration|null} [ttl] AnywhereCache ttl
+ * @property {string|null} [admissionPolicy] AnywhereCache admissionPolicy
+ * @property {string|null} [state] AnywhereCache state
+ * @property {google.protobuf.ITimestamp|null} [createTime] AnywhereCache createTime
+ * @property {google.protobuf.ITimestamp|null} [updateTime] AnywhereCache updateTime
+ * @property {boolean|null} [pendingUpdate] AnywhereCache pendingUpdate
+ */
+
+ /**
+ * Constructs a new AnywhereCache.
+ * @memberof google.storage.control.v2
+ * @classdesc Represents an AnywhereCache.
+ * @implements IAnywhereCache
+ * @constructor
+ * @param {google.storage.control.v2.IAnywhereCache=} [properties] Properties to set
+ */
+ function AnywhereCache(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]];
+ }
+
+ /**
+ * AnywhereCache name.
+ * @member {string} name
+ * @memberof google.storage.control.v2.AnywhereCache
+ * @instance
+ */
+ AnywhereCache.prototype.name = "";
+
+ /**
+ * AnywhereCache zone.
+ * @member {string} zone
+ * @memberof google.storage.control.v2.AnywhereCache
+ * @instance
+ */
+ AnywhereCache.prototype.zone = "";
+
+ /**
+ * AnywhereCache ttl.
+ * @member {google.protobuf.IDuration|null|undefined} ttl
+ * @memberof google.storage.control.v2.AnywhereCache
+ * @instance
+ */
+ AnywhereCache.prototype.ttl = null;
+
+ /**
+ * AnywhereCache admissionPolicy.
+ * @member {string} admissionPolicy
+ * @memberof google.storage.control.v2.AnywhereCache
+ * @instance
+ */
+ AnywhereCache.prototype.admissionPolicy = "";
+
+ /**
+ * AnywhereCache state.
+ * @member {string} state
+ * @memberof google.storage.control.v2.AnywhereCache
+ * @instance
+ */
+ AnywhereCache.prototype.state = "";
+
+ /**
+ * AnywhereCache createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.storage.control.v2.AnywhereCache
+ * @instance
+ */
+ AnywhereCache.prototype.createTime = null;
+
+ /**
+ * AnywhereCache updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.storage.control.v2.AnywhereCache
+ * @instance
+ */
+ AnywhereCache.prototype.updateTime = null;
+
+ /**
+ * AnywhereCache pendingUpdate.
+ * @member {boolean} pendingUpdate
+ * @memberof google.storage.control.v2.AnywhereCache
+ * @instance
+ */
+ AnywhereCache.prototype.pendingUpdate = false;
+
+ /**
+ * Creates a new AnywhereCache instance using the specified properties.
+ * @function create
+ * @memberof google.storage.control.v2.AnywhereCache
+ * @static
+ * @param {google.storage.control.v2.IAnywhereCache=} [properties] Properties to set
+ * @returns {google.storage.control.v2.AnywhereCache} AnywhereCache instance
+ */
+ AnywhereCache.create = function create(properties) {
+ return new AnywhereCache(properties);
+ };
+
+ /**
+ * Encodes the specified AnywhereCache message. Does not implicitly {@link google.storage.control.v2.AnywhereCache.verify|verify} messages.
+ * @function encode
+ * @memberof google.storage.control.v2.AnywhereCache
+ * @static
+ * @param {google.storage.control.v2.IAnywhereCache} message AnywhereCache message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AnywhereCache.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.ttl != null && Object.hasOwnProperty.call(message, "ttl"))
+ $root.google.protobuf.Duration.encode(message.ttl, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.state);
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+ if (message.pendingUpdate != null && Object.hasOwnProperty.call(message, "pendingUpdate"))
+ writer.uint32(/* id 8, wireType 0 =*/64).bool(message.pendingUpdate);
+ if (message.admissionPolicy != null && Object.hasOwnProperty.call(message, "admissionPolicy"))
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.admissionPolicy);
+ if (message.zone != null && Object.hasOwnProperty.call(message, "zone"))
+ writer.uint32(/* id 10, wireType 2 =*/82).string(message.zone);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified AnywhereCache message, length delimited. Does not implicitly {@link google.storage.control.v2.AnywhereCache.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.storage.control.v2.AnywhereCache
+ * @static
+ * @param {google.storage.control.v2.IAnywhereCache} message AnywhereCache message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AnywhereCache.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an AnywhereCache message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.storage.control.v2.AnywhereCache
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.storage.control.v2.AnywhereCache} AnywhereCache
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AnywhereCache.decode = function decode(reader, length, error) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.storage.control.v2.AnywhereCache();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 10: {
+ message.zone = reader.string();
+ break;
+ }
+ case 3: {
+ message.ttl = $root.google.protobuf.Duration.decode(reader, reader.uint32());
+ break;
+ }
+ case 9: {
+ message.admissionPolicy = reader.string();
+ break;
+ }
+ case 5: {
+ message.state = reader.string();
+ break;
+ }
+ case 6: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 7: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 8: {
+ message.pendingUpdate = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an AnywhereCache message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.storage.control.v2.AnywhereCache
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.storage.control.v2.AnywhereCache} AnywhereCache
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AnywhereCache.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an AnywhereCache message.
+ * @function verify
+ * @memberof google.storage.control.v2.AnywhereCache
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ AnywhereCache.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.zone != null && message.hasOwnProperty("zone"))
+ if (!$util.isString(message.zone))
+ return "zone: string expected";
+ if (message.ttl != null && message.hasOwnProperty("ttl")) {
+ var error = $root.google.protobuf.Duration.verify(message.ttl);
+ if (error)
+ return "ttl." + error;
+ }
+ if (message.admissionPolicy != null && message.hasOwnProperty("admissionPolicy"))
+ if (!$util.isString(message.admissionPolicy))
+ return "admissionPolicy: string expected";
+ if (message.state != null && message.hasOwnProperty("state"))
+ if (!$util.isString(message.state))
+ return "state: 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.pendingUpdate != null && message.hasOwnProperty("pendingUpdate"))
+ if (typeof message.pendingUpdate !== "boolean")
+ return "pendingUpdate: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates an AnywhereCache message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.storage.control.v2.AnywhereCache
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.storage.control.v2.AnywhereCache} AnywhereCache
+ */
+ AnywhereCache.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.storage.control.v2.AnywhereCache)
+ return object;
+ var message = new $root.google.storage.control.v2.AnywhereCache();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.zone != null)
+ message.zone = String(object.zone);
+ if (object.ttl != null) {
+ if (typeof object.ttl !== "object")
+ throw TypeError(".google.storage.control.v2.AnywhereCache.ttl: object expected");
+ message.ttl = $root.google.protobuf.Duration.fromObject(object.ttl);
+ }
+ if (object.admissionPolicy != null)
+ message.admissionPolicy = String(object.admissionPolicy);
+ if (object.state != null)
+ message.state = String(object.state);
+ if (object.createTime != null) {
+ if (typeof object.createTime !== "object")
+ throw TypeError(".google.storage.control.v2.AnywhereCache.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime);
+ }
+ if (object.updateTime != null) {
+ if (typeof object.updateTime !== "object")
+ throw TypeError(".google.storage.control.v2.AnywhereCache.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ if (object.pendingUpdate != null)
+ message.pendingUpdate = Boolean(object.pendingUpdate);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an AnywhereCache message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.storage.control.v2.AnywhereCache
+ * @static
+ * @param {google.storage.control.v2.AnywhereCache} message AnywhereCache
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ AnywhereCache.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.ttl = null;
+ object.state = "";
+ object.createTime = null;
+ object.updateTime = null;
+ object.pendingUpdate = false;
+ object.admissionPolicy = "";
+ object.zone = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.ttl != null && message.hasOwnProperty("ttl"))
+ object.ttl = $root.google.protobuf.Duration.toObject(message.ttl, options);
+ if (message.state != null && message.hasOwnProperty("state"))
+ object.state = message.state;
+ 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.pendingUpdate != null && message.hasOwnProperty("pendingUpdate"))
+ object.pendingUpdate = message.pendingUpdate;
+ if (message.admissionPolicy != null && message.hasOwnProperty("admissionPolicy"))
+ object.admissionPolicy = message.admissionPolicy;
+ if (message.zone != null && message.hasOwnProperty("zone"))
+ object.zone = message.zone;
+ return object;
+ };
+
+ /**
+ * Converts this AnywhereCache to JSON.
+ * @function toJSON
+ * @memberof google.storage.control.v2.AnywhereCache
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ AnywhereCache.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for AnywhereCache
+ * @function getTypeUrl
+ * @memberof google.storage.control.v2.AnywhereCache
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ AnywhereCache.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.storage.control.v2.AnywhereCache";
+ };
+
+ return AnywhereCache;
+ })();
+
+ v2.CreateAnywhereCacheRequest = (function() {
+
+ /**
+ * Properties of a CreateAnywhereCacheRequest.
+ * @memberof google.storage.control.v2
+ * @interface ICreateAnywhereCacheRequest
+ * @property {string|null} [parent] CreateAnywhereCacheRequest parent
+ * @property {google.storage.control.v2.IAnywhereCache|null} [anywhereCache] CreateAnywhereCacheRequest anywhereCache
+ * @property {string|null} [requestId] CreateAnywhereCacheRequest requestId
+ */
+
+ /**
+ * Constructs a new CreateAnywhereCacheRequest.
+ * @memberof google.storage.control.v2
+ * @classdesc Represents a CreateAnywhereCacheRequest.
+ * @implements ICreateAnywhereCacheRequest
+ * @constructor
+ * @param {google.storage.control.v2.ICreateAnywhereCacheRequest=} [properties] Properties to set
+ */
+ function CreateAnywhereCacheRequest(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]];
+ }
+
+ /**
+ * CreateAnywhereCacheRequest parent.
+ * @member {string} parent
+ * @memberof google.storage.control.v2.CreateAnywhereCacheRequest
+ * @instance
+ */
+ CreateAnywhereCacheRequest.prototype.parent = "";
+
+ /**
+ * CreateAnywhereCacheRequest anywhereCache.
+ * @member {google.storage.control.v2.IAnywhereCache|null|undefined} anywhereCache
+ * @memberof google.storage.control.v2.CreateAnywhereCacheRequest
+ * @instance
+ */
+ CreateAnywhereCacheRequest.prototype.anywhereCache = null;
+
+ /**
+ * CreateAnywhereCacheRequest requestId.
+ * @member {string} requestId
+ * @memberof google.storage.control.v2.CreateAnywhereCacheRequest
+ * @instance
+ */
+ CreateAnywhereCacheRequest.prototype.requestId = "";
+
+ /**
+ * Creates a new CreateAnywhereCacheRequest instance using the specified properties.
+ * @function create
+ * @memberof google.storage.control.v2.CreateAnywhereCacheRequest
+ * @static
+ * @param {google.storage.control.v2.ICreateAnywhereCacheRequest=} [properties] Properties to set
+ * @returns {google.storage.control.v2.CreateAnywhereCacheRequest} CreateAnywhereCacheRequest instance
+ */
+ CreateAnywhereCacheRequest.create = function create(properties) {
+ return new CreateAnywhereCacheRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateAnywhereCacheRequest message. Does not implicitly {@link google.storage.control.v2.CreateAnywhereCacheRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.storage.control.v2.CreateAnywhereCacheRequest
+ * @static
+ * @param {google.storage.control.v2.ICreateAnywhereCacheRequest} message CreateAnywhereCacheRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateAnywhereCacheRequest.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.anywhereCache != null && Object.hasOwnProperty.call(message, "anywhereCache"))
+ $root.google.storage.control.v2.AnywhereCache.encode(message.anywhereCache, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateAnywhereCacheRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.CreateAnywhereCacheRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.storage.control.v2.CreateAnywhereCacheRequest
+ * @static
+ * @param {google.storage.control.v2.ICreateAnywhereCacheRequest} message CreateAnywhereCacheRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateAnywhereCacheRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateAnywhereCacheRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.storage.control.v2.CreateAnywhereCacheRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.storage.control.v2.CreateAnywhereCacheRequest} CreateAnywhereCacheRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateAnywhereCacheRequest.decode = function decode(reader, length, error) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.storage.control.v2.CreateAnywhereCacheRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 3: {
+ message.anywhereCache = $root.google.storage.control.v2.AnywhereCache.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateAnywhereCacheRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.storage.control.v2.CreateAnywhereCacheRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.storage.control.v2.CreateAnywhereCacheRequest} CreateAnywhereCacheRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateAnywhereCacheRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateAnywhereCacheRequest message.
+ * @function verify
+ * @memberof google.storage.control.v2.CreateAnywhereCacheRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateAnywhereCacheRequest.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.anywhereCache != null && message.hasOwnProperty("anywhereCache")) {
+ var error = $root.google.storage.control.v2.AnywhereCache.verify(message.anywhereCache);
+ if (error)
+ return "anywhereCache." + error;
+ }
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a CreateAnywhereCacheRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.storage.control.v2.CreateAnywhereCacheRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.storage.control.v2.CreateAnywhereCacheRequest} CreateAnywhereCacheRequest
+ */
+ CreateAnywhereCacheRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.storage.control.v2.CreateAnywhereCacheRequest)
+ return object;
+ var message = new $root.google.storage.control.v2.CreateAnywhereCacheRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.anywhereCache != null) {
+ if (typeof object.anywhereCache !== "object")
+ throw TypeError(".google.storage.control.v2.CreateAnywhereCacheRequest.anywhereCache: object expected");
+ message.anywhereCache = $root.google.storage.control.v2.AnywhereCache.fromObject(object.anywhereCache);
+ }
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateAnywhereCacheRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.storage.control.v2.CreateAnywhereCacheRequest
+ * @static
+ * @param {google.storage.control.v2.CreateAnywhereCacheRequest} message CreateAnywhereCacheRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateAnywhereCacheRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.anywhereCache = null;
+ object.requestId = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.anywhereCache != null && message.hasOwnProperty("anywhereCache"))
+ object.anywhereCache = $root.google.storage.control.v2.AnywhereCache.toObject(message.anywhereCache, options);
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this CreateAnywhereCacheRequest to JSON.
+ * @function toJSON
+ * @memberof google.storage.control.v2.CreateAnywhereCacheRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateAnywhereCacheRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateAnywhereCacheRequest
+ * @function getTypeUrl
+ * @memberof google.storage.control.v2.CreateAnywhereCacheRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateAnywhereCacheRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.storage.control.v2.CreateAnywhereCacheRequest";
+ };
+
+ return CreateAnywhereCacheRequest;
+ })();
+
+ v2.UpdateAnywhereCacheRequest = (function() {
+
+ /**
+ * Properties of an UpdateAnywhereCacheRequest.
+ * @memberof google.storage.control.v2
+ * @interface IUpdateAnywhereCacheRequest
+ * @property {google.storage.control.v2.IAnywhereCache|null} [anywhereCache] UpdateAnywhereCacheRequest anywhereCache
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateAnywhereCacheRequest updateMask
+ * @property {string|null} [requestId] UpdateAnywhereCacheRequest requestId
+ */
+
+ /**
+ * Constructs a new UpdateAnywhereCacheRequest.
+ * @memberof google.storage.control.v2
+ * @classdesc Represents an UpdateAnywhereCacheRequest.
+ * @implements IUpdateAnywhereCacheRequest
+ * @constructor
+ * @param {google.storage.control.v2.IUpdateAnywhereCacheRequest=} [properties] Properties to set
+ */
+ function UpdateAnywhereCacheRequest(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]];
+ }
+
+ /**
+ * UpdateAnywhereCacheRequest anywhereCache.
+ * @member {google.storage.control.v2.IAnywhereCache|null|undefined} anywhereCache
+ * @memberof google.storage.control.v2.UpdateAnywhereCacheRequest
+ * @instance
+ */
+ UpdateAnywhereCacheRequest.prototype.anywhereCache = null;
+
+ /**
+ * UpdateAnywhereCacheRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.storage.control.v2.UpdateAnywhereCacheRequest
+ * @instance
+ */
+ UpdateAnywhereCacheRequest.prototype.updateMask = null;
+
+ /**
+ * UpdateAnywhereCacheRequest requestId.
+ * @member {string} requestId
+ * @memberof google.storage.control.v2.UpdateAnywhereCacheRequest
+ * @instance
+ */
+ UpdateAnywhereCacheRequest.prototype.requestId = "";
+
+ /**
+ * Creates a new UpdateAnywhereCacheRequest instance using the specified properties.
+ * @function create
+ * @memberof google.storage.control.v2.UpdateAnywhereCacheRequest
+ * @static
+ * @param {google.storage.control.v2.IUpdateAnywhereCacheRequest=} [properties] Properties to set
+ * @returns {google.storage.control.v2.UpdateAnywhereCacheRequest} UpdateAnywhereCacheRequest instance
+ */
+ UpdateAnywhereCacheRequest.create = function create(properties) {
+ return new UpdateAnywhereCacheRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateAnywhereCacheRequest message. Does not implicitly {@link google.storage.control.v2.UpdateAnywhereCacheRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.storage.control.v2.UpdateAnywhereCacheRequest
+ * @static
+ * @param {google.storage.control.v2.IUpdateAnywhereCacheRequest} message UpdateAnywhereCacheRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateAnywhereCacheRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.anywhereCache != null && Object.hasOwnProperty.call(message, "anywhereCache"))
+ $root.google.storage.control.v2.AnywhereCache.encode(message.anywhereCache, 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.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateAnywhereCacheRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.UpdateAnywhereCacheRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.storage.control.v2.UpdateAnywhereCacheRequest
+ * @static
+ * @param {google.storage.control.v2.IUpdateAnywhereCacheRequest} message UpdateAnywhereCacheRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateAnywhereCacheRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateAnywhereCacheRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.storage.control.v2.UpdateAnywhereCacheRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.storage.control.v2.UpdateAnywhereCacheRequest} UpdateAnywhereCacheRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateAnywhereCacheRequest.decode = function decode(reader, length, error) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.storage.control.v2.UpdateAnywhereCacheRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.anywhereCache = $root.google.storage.control.v2.AnywhereCache.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateAnywhereCacheRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.storage.control.v2.UpdateAnywhereCacheRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.storage.control.v2.UpdateAnywhereCacheRequest} UpdateAnywhereCacheRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateAnywhereCacheRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateAnywhereCacheRequest message.
+ * @function verify
+ * @memberof google.storage.control.v2.UpdateAnywhereCacheRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateAnywhereCacheRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.anywhereCache != null && message.hasOwnProperty("anywhereCache")) {
+ var error = $root.google.storage.control.v2.AnywhereCache.verify(message.anywhereCache);
+ if (error)
+ return "anywhereCache." + error;
+ }
+ if (message.updateMask != null && message.hasOwnProperty("updateMask")) {
+ var error = $root.google.protobuf.FieldMask.verify(message.updateMask);
+ if (error)
+ return "updateMask." + error;
+ }
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an UpdateAnywhereCacheRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.storage.control.v2.UpdateAnywhereCacheRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.storage.control.v2.UpdateAnywhereCacheRequest} UpdateAnywhereCacheRequest
+ */
+ UpdateAnywhereCacheRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.storage.control.v2.UpdateAnywhereCacheRequest)
+ return object;
+ var message = new $root.google.storage.control.v2.UpdateAnywhereCacheRequest();
+ if (object.anywhereCache != null) {
+ if (typeof object.anywhereCache !== "object")
+ throw TypeError(".google.storage.control.v2.UpdateAnywhereCacheRequest.anywhereCache: object expected");
+ message.anywhereCache = $root.google.storage.control.v2.AnywhereCache.fromObject(object.anywhereCache);
+ }
+ if (object.updateMask != null) {
+ if (typeof object.updateMask !== "object")
+ throw TypeError(".google.storage.control.v2.UpdateAnywhereCacheRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
+ }
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateAnywhereCacheRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.storage.control.v2.UpdateAnywhereCacheRequest
+ * @static
+ * @param {google.storage.control.v2.UpdateAnywhereCacheRequest} message UpdateAnywhereCacheRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateAnywhereCacheRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.anywhereCache = null;
+ object.updateMask = null;
+ object.requestId = "";
+ }
+ if (message.anywhereCache != null && message.hasOwnProperty("anywhereCache"))
+ object.anywhereCache = $root.google.storage.control.v2.AnywhereCache.toObject(message.anywhereCache, options);
+ if (message.updateMask != null && message.hasOwnProperty("updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this UpdateAnywhereCacheRequest to JSON.
+ * @function toJSON
+ * @memberof google.storage.control.v2.UpdateAnywhereCacheRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateAnywhereCacheRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateAnywhereCacheRequest
+ * @function getTypeUrl
+ * @memberof google.storage.control.v2.UpdateAnywhereCacheRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateAnywhereCacheRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.storage.control.v2.UpdateAnywhereCacheRequest";
+ };
+
+ return UpdateAnywhereCacheRequest;
+ })();
+
+ v2.DisableAnywhereCacheRequest = (function() {
+
+ /**
+ * Properties of a DisableAnywhereCacheRequest.
+ * @memberof google.storage.control.v2
+ * @interface IDisableAnywhereCacheRequest
+ * @property {string|null} [name] DisableAnywhereCacheRequest name
+ * @property {string|null} [requestId] DisableAnywhereCacheRequest requestId
+ */
+
+ /**
+ * Constructs a new DisableAnywhereCacheRequest.
+ * @memberof google.storage.control.v2
+ * @classdesc Represents a DisableAnywhereCacheRequest.
+ * @implements IDisableAnywhereCacheRequest
+ * @constructor
+ * @param {google.storage.control.v2.IDisableAnywhereCacheRequest=} [properties] Properties to set
+ */
+ function DisableAnywhereCacheRequest(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]];
+ }
+
+ /**
+ * DisableAnywhereCacheRequest name.
+ * @member {string} name
+ * @memberof google.storage.control.v2.DisableAnywhereCacheRequest
+ * @instance
+ */
+ DisableAnywhereCacheRequest.prototype.name = "";
+
+ /**
+ * DisableAnywhereCacheRequest requestId.
+ * @member {string} requestId
+ * @memberof google.storage.control.v2.DisableAnywhereCacheRequest
+ * @instance
+ */
+ DisableAnywhereCacheRequest.prototype.requestId = "";
+
+ /**
+ * Creates a new DisableAnywhereCacheRequest instance using the specified properties.
+ * @function create
+ * @memberof google.storage.control.v2.DisableAnywhereCacheRequest
+ * @static
+ * @param {google.storage.control.v2.IDisableAnywhereCacheRequest=} [properties] Properties to set
+ * @returns {google.storage.control.v2.DisableAnywhereCacheRequest} DisableAnywhereCacheRequest instance
+ */
+ DisableAnywhereCacheRequest.create = function create(properties) {
+ return new DisableAnywhereCacheRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DisableAnywhereCacheRequest message. Does not implicitly {@link google.storage.control.v2.DisableAnywhereCacheRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.storage.control.v2.DisableAnywhereCacheRequest
+ * @static
+ * @param {google.storage.control.v2.IDisableAnywhereCacheRequest} message DisableAnywhereCacheRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DisableAnywhereCacheRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DisableAnywhereCacheRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.DisableAnywhereCacheRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.storage.control.v2.DisableAnywhereCacheRequest
+ * @static
+ * @param {google.storage.control.v2.IDisableAnywhereCacheRequest} message DisableAnywhereCacheRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DisableAnywhereCacheRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DisableAnywhereCacheRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.storage.control.v2.DisableAnywhereCacheRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.storage.control.v2.DisableAnywhereCacheRequest} DisableAnywhereCacheRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DisableAnywhereCacheRequest.decode = function decode(reader, length, error) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.storage.control.v2.DisableAnywhereCacheRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DisableAnywhereCacheRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.storage.control.v2.DisableAnywhereCacheRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.storage.control.v2.DisableAnywhereCacheRequest} DisableAnywhereCacheRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DisableAnywhereCacheRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DisableAnywhereCacheRequest message.
+ * @function verify
+ * @memberof google.storage.control.v2.DisableAnywhereCacheRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DisableAnywhereCacheRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a DisableAnywhereCacheRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.storage.control.v2.DisableAnywhereCacheRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.storage.control.v2.DisableAnywhereCacheRequest} DisableAnywhereCacheRequest
+ */
+ DisableAnywhereCacheRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.storage.control.v2.DisableAnywhereCacheRequest)
+ return object;
+ var message = new $root.google.storage.control.v2.DisableAnywhereCacheRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DisableAnywhereCacheRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.storage.control.v2.DisableAnywhereCacheRequest
+ * @static
+ * @param {google.storage.control.v2.DisableAnywhereCacheRequest} message DisableAnywhereCacheRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DisableAnywhereCacheRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.requestId = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this DisableAnywhereCacheRequest to JSON.
+ * @function toJSON
+ * @memberof google.storage.control.v2.DisableAnywhereCacheRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DisableAnywhereCacheRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DisableAnywhereCacheRequest
+ * @function getTypeUrl
+ * @memberof google.storage.control.v2.DisableAnywhereCacheRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DisableAnywhereCacheRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.storage.control.v2.DisableAnywhereCacheRequest";
+ };
+
+ return DisableAnywhereCacheRequest;
+ })();
+
+ v2.PauseAnywhereCacheRequest = (function() {
+
+ /**
+ * Properties of a PauseAnywhereCacheRequest.
+ * @memberof google.storage.control.v2
+ * @interface IPauseAnywhereCacheRequest
+ * @property {string|null} [name] PauseAnywhereCacheRequest name
+ * @property {string|null} [requestId] PauseAnywhereCacheRequest requestId
+ */
+
+ /**
+ * Constructs a new PauseAnywhereCacheRequest.
+ * @memberof google.storage.control.v2
+ * @classdesc Represents a PauseAnywhereCacheRequest.
+ * @implements IPauseAnywhereCacheRequest
+ * @constructor
+ * @param {google.storage.control.v2.IPauseAnywhereCacheRequest=} [properties] Properties to set
+ */
+ function PauseAnywhereCacheRequest(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]];
+ }
+
+ /**
+ * PauseAnywhereCacheRequest name.
+ * @member {string} name
+ * @memberof google.storage.control.v2.PauseAnywhereCacheRequest
+ * @instance
+ */
+ PauseAnywhereCacheRequest.prototype.name = "";
+
+ /**
+ * PauseAnywhereCacheRequest requestId.
+ * @member {string} requestId
+ * @memberof google.storage.control.v2.PauseAnywhereCacheRequest
+ * @instance
+ */
+ PauseAnywhereCacheRequest.prototype.requestId = "";
+
+ /**
+ * Creates a new PauseAnywhereCacheRequest instance using the specified properties.
+ * @function create
+ * @memberof google.storage.control.v2.PauseAnywhereCacheRequest
+ * @static
+ * @param {google.storage.control.v2.IPauseAnywhereCacheRequest=} [properties] Properties to set
+ * @returns {google.storage.control.v2.PauseAnywhereCacheRequest} PauseAnywhereCacheRequest instance
+ */
+ PauseAnywhereCacheRequest.create = function create(properties) {
+ return new PauseAnywhereCacheRequest(properties);
+ };
+
+ /**
+ * Encodes the specified PauseAnywhereCacheRequest message. Does not implicitly {@link google.storage.control.v2.PauseAnywhereCacheRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.storage.control.v2.PauseAnywhereCacheRequest
+ * @static
+ * @param {google.storage.control.v2.IPauseAnywhereCacheRequest} message PauseAnywhereCacheRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ PauseAnywhereCacheRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified PauseAnywhereCacheRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.PauseAnywhereCacheRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.storage.control.v2.PauseAnywhereCacheRequest
+ * @static
+ * @param {google.storage.control.v2.IPauseAnywhereCacheRequest} message PauseAnywhereCacheRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ PauseAnywhereCacheRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a PauseAnywhereCacheRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.storage.control.v2.PauseAnywhereCacheRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.storage.control.v2.PauseAnywhereCacheRequest} PauseAnywhereCacheRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ PauseAnywhereCacheRequest.decode = function decode(reader, length, error) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.storage.control.v2.PauseAnywhereCacheRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a PauseAnywhereCacheRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.storage.control.v2.PauseAnywhereCacheRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.storage.control.v2.PauseAnywhereCacheRequest} PauseAnywhereCacheRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ PauseAnywhereCacheRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a PauseAnywhereCacheRequest message.
+ * @function verify
+ * @memberof google.storage.control.v2.PauseAnywhereCacheRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ PauseAnywhereCacheRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a PauseAnywhereCacheRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.storage.control.v2.PauseAnywhereCacheRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.storage.control.v2.PauseAnywhereCacheRequest} PauseAnywhereCacheRequest
+ */
+ PauseAnywhereCacheRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.storage.control.v2.PauseAnywhereCacheRequest)
+ return object;
+ var message = new $root.google.storage.control.v2.PauseAnywhereCacheRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a PauseAnywhereCacheRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.storage.control.v2.PauseAnywhereCacheRequest
+ * @static
+ * @param {google.storage.control.v2.PauseAnywhereCacheRequest} message PauseAnywhereCacheRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ PauseAnywhereCacheRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.requestId = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this PauseAnywhereCacheRequest to JSON.
+ * @function toJSON
+ * @memberof google.storage.control.v2.PauseAnywhereCacheRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ PauseAnywhereCacheRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for PauseAnywhereCacheRequest
+ * @function getTypeUrl
+ * @memberof google.storage.control.v2.PauseAnywhereCacheRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ PauseAnywhereCacheRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.storage.control.v2.PauseAnywhereCacheRequest";
+ };
+
+ return PauseAnywhereCacheRequest;
+ })();
+
+ v2.ResumeAnywhereCacheRequest = (function() {
+
+ /**
+ * Properties of a ResumeAnywhereCacheRequest.
+ * @memberof google.storage.control.v2
+ * @interface IResumeAnywhereCacheRequest
+ * @property {string|null} [name] ResumeAnywhereCacheRequest name
+ * @property {string|null} [requestId] ResumeAnywhereCacheRequest requestId
+ */
+
+ /**
+ * Constructs a new ResumeAnywhereCacheRequest.
+ * @memberof google.storage.control.v2
+ * @classdesc Represents a ResumeAnywhereCacheRequest.
+ * @implements IResumeAnywhereCacheRequest
+ * @constructor
+ * @param {google.storage.control.v2.IResumeAnywhereCacheRequest=} [properties] Properties to set
+ */
+ function ResumeAnywhereCacheRequest(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]];
+ }
+
+ /**
+ * ResumeAnywhereCacheRequest name.
+ * @member {string} name
+ * @memberof google.storage.control.v2.ResumeAnywhereCacheRequest
+ * @instance
+ */
+ ResumeAnywhereCacheRequest.prototype.name = "";
+
+ /**
+ * ResumeAnywhereCacheRequest requestId.
+ * @member {string} requestId
+ * @memberof google.storage.control.v2.ResumeAnywhereCacheRequest
+ * @instance
+ */
+ ResumeAnywhereCacheRequest.prototype.requestId = "";
+
+ /**
+ * Creates a new ResumeAnywhereCacheRequest instance using the specified properties.
+ * @function create
+ * @memberof google.storage.control.v2.ResumeAnywhereCacheRequest
+ * @static
+ * @param {google.storage.control.v2.IResumeAnywhereCacheRequest=} [properties] Properties to set
+ * @returns {google.storage.control.v2.ResumeAnywhereCacheRequest} ResumeAnywhereCacheRequest instance
+ */
+ ResumeAnywhereCacheRequest.create = function create(properties) {
+ return new ResumeAnywhereCacheRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ResumeAnywhereCacheRequest message. Does not implicitly {@link google.storage.control.v2.ResumeAnywhereCacheRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.storage.control.v2.ResumeAnywhereCacheRequest
+ * @static
+ * @param {google.storage.control.v2.IResumeAnywhereCacheRequest} message ResumeAnywhereCacheRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ResumeAnywhereCacheRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ResumeAnywhereCacheRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.ResumeAnywhereCacheRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.storage.control.v2.ResumeAnywhereCacheRequest
+ * @static
+ * @param {google.storage.control.v2.IResumeAnywhereCacheRequest} message ResumeAnywhereCacheRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ResumeAnywhereCacheRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ResumeAnywhereCacheRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.storage.control.v2.ResumeAnywhereCacheRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.storage.control.v2.ResumeAnywhereCacheRequest} ResumeAnywhereCacheRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ResumeAnywhereCacheRequest.decode = function decode(reader, length, error) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.storage.control.v2.ResumeAnywhereCacheRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ResumeAnywhereCacheRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.storage.control.v2.ResumeAnywhereCacheRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.storage.control.v2.ResumeAnywhereCacheRequest} ResumeAnywhereCacheRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ResumeAnywhereCacheRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ResumeAnywhereCacheRequest message.
+ * @function verify
+ * @memberof google.storage.control.v2.ResumeAnywhereCacheRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ResumeAnywhereCacheRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ResumeAnywhereCacheRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.storage.control.v2.ResumeAnywhereCacheRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.storage.control.v2.ResumeAnywhereCacheRequest} ResumeAnywhereCacheRequest
+ */
+ ResumeAnywhereCacheRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.storage.control.v2.ResumeAnywhereCacheRequest)
+ return object;
+ var message = new $root.google.storage.control.v2.ResumeAnywhereCacheRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ResumeAnywhereCacheRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.storage.control.v2.ResumeAnywhereCacheRequest
+ * @static
+ * @param {google.storage.control.v2.ResumeAnywhereCacheRequest} message ResumeAnywhereCacheRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ResumeAnywhereCacheRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.requestId = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this ResumeAnywhereCacheRequest to JSON.
+ * @function toJSON
+ * @memberof google.storage.control.v2.ResumeAnywhereCacheRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ResumeAnywhereCacheRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ResumeAnywhereCacheRequest
+ * @function getTypeUrl
+ * @memberof google.storage.control.v2.ResumeAnywhereCacheRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ResumeAnywhereCacheRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.storage.control.v2.ResumeAnywhereCacheRequest";
+ };
+
+ return ResumeAnywhereCacheRequest;
+ })();
+
+ v2.GetAnywhereCacheRequest = (function() {
+
+ /**
+ * Properties of a GetAnywhereCacheRequest.
+ * @memberof google.storage.control.v2
+ * @interface IGetAnywhereCacheRequest
+ * @property {string|null} [name] GetAnywhereCacheRequest name
+ * @property {string|null} [requestId] GetAnywhereCacheRequest requestId
+ */
+
+ /**
+ * Constructs a new GetAnywhereCacheRequest.
+ * @memberof google.storage.control.v2
+ * @classdesc Represents a GetAnywhereCacheRequest.
+ * @implements IGetAnywhereCacheRequest
+ * @constructor
+ * @param {google.storage.control.v2.IGetAnywhereCacheRequest=} [properties] Properties to set
+ */
+ function GetAnywhereCacheRequest(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]];
+ }
+
+ /**
+ * GetAnywhereCacheRequest name.
+ * @member {string} name
+ * @memberof google.storage.control.v2.GetAnywhereCacheRequest
+ * @instance
+ */
+ GetAnywhereCacheRequest.prototype.name = "";
+
+ /**
+ * GetAnywhereCacheRequest requestId.
+ * @member {string} requestId
+ * @memberof google.storage.control.v2.GetAnywhereCacheRequest
+ * @instance
+ */
+ GetAnywhereCacheRequest.prototype.requestId = "";
+
+ /**
+ * Creates a new GetAnywhereCacheRequest instance using the specified properties.
+ * @function create
+ * @memberof google.storage.control.v2.GetAnywhereCacheRequest
+ * @static
+ * @param {google.storage.control.v2.IGetAnywhereCacheRequest=} [properties] Properties to set
+ * @returns {google.storage.control.v2.GetAnywhereCacheRequest} GetAnywhereCacheRequest instance
+ */
+ GetAnywhereCacheRequest.create = function create(properties) {
+ return new GetAnywhereCacheRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetAnywhereCacheRequest message. Does not implicitly {@link google.storage.control.v2.GetAnywhereCacheRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.storage.control.v2.GetAnywhereCacheRequest
+ * @static
+ * @param {google.storage.control.v2.IGetAnywhereCacheRequest} message GetAnywhereCacheRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetAnywhereCacheRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GetAnywhereCacheRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.GetAnywhereCacheRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.storage.control.v2.GetAnywhereCacheRequest
+ * @static
+ * @param {google.storage.control.v2.IGetAnywhereCacheRequest} message GetAnywhereCacheRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetAnywhereCacheRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetAnywhereCacheRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.storage.control.v2.GetAnywhereCacheRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.storage.control.v2.GetAnywhereCacheRequest} GetAnywhereCacheRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetAnywhereCacheRequest.decode = function decode(reader, length, error) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.storage.control.v2.GetAnywhereCacheRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GetAnywhereCacheRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.storage.control.v2.GetAnywhereCacheRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.storage.control.v2.GetAnywhereCacheRequest} GetAnywhereCacheRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetAnywhereCacheRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetAnywhereCacheRequest message.
+ * @function verify
+ * @memberof google.storage.control.v2.GetAnywhereCacheRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetAnywhereCacheRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GetAnywhereCacheRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.storage.control.v2.GetAnywhereCacheRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.storage.control.v2.GetAnywhereCacheRequest} GetAnywhereCacheRequest
+ */
+ GetAnywhereCacheRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.storage.control.v2.GetAnywhereCacheRequest)
+ return object;
+ var message = new $root.google.storage.control.v2.GetAnywhereCacheRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetAnywhereCacheRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.storage.control.v2.GetAnywhereCacheRequest
+ * @static
+ * @param {google.storage.control.v2.GetAnywhereCacheRequest} message GetAnywhereCacheRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetAnywhereCacheRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.requestId = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this GetAnywhereCacheRequest to JSON.
+ * @function toJSON
+ * @memberof google.storage.control.v2.GetAnywhereCacheRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetAnywhereCacheRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetAnywhereCacheRequest
+ * @function getTypeUrl
+ * @memberof google.storage.control.v2.GetAnywhereCacheRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetAnywhereCacheRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.storage.control.v2.GetAnywhereCacheRequest";
+ };
+
+ return GetAnywhereCacheRequest;
+ })();
+
+ v2.ListAnywhereCachesRequest = (function() {
+
+ /**
+ * Properties of a ListAnywhereCachesRequest.
+ * @memberof google.storage.control.v2
+ * @interface IListAnywhereCachesRequest
+ * @property {string|null} [parent] ListAnywhereCachesRequest parent
+ * @property {number|null} [pageSize] ListAnywhereCachesRequest pageSize
+ * @property {string|null} [pageToken] ListAnywhereCachesRequest pageToken
+ * @property {string|null} [requestId] ListAnywhereCachesRequest requestId
+ */
+
+ /**
+ * Constructs a new ListAnywhereCachesRequest.
+ * @memberof google.storage.control.v2
+ * @classdesc Represents a ListAnywhereCachesRequest.
+ * @implements IListAnywhereCachesRequest
+ * @constructor
+ * @param {google.storage.control.v2.IListAnywhereCachesRequest=} [properties] Properties to set
+ */
+ function ListAnywhereCachesRequest(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]];
+ }
+
+ /**
+ * ListAnywhereCachesRequest parent.
+ * @member {string} parent
+ * @memberof google.storage.control.v2.ListAnywhereCachesRequest
+ * @instance
+ */
+ ListAnywhereCachesRequest.prototype.parent = "";
+
+ /**
+ * ListAnywhereCachesRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.storage.control.v2.ListAnywhereCachesRequest
+ * @instance
+ */
+ ListAnywhereCachesRequest.prototype.pageSize = 0;
+
+ /**
+ * ListAnywhereCachesRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.storage.control.v2.ListAnywhereCachesRequest
+ * @instance
+ */
+ ListAnywhereCachesRequest.prototype.pageToken = "";
+
+ /**
+ * ListAnywhereCachesRequest requestId.
+ * @member {string} requestId
+ * @memberof google.storage.control.v2.ListAnywhereCachesRequest
+ * @instance
+ */
+ ListAnywhereCachesRequest.prototype.requestId = "";
+
+ /**
+ * Creates a new ListAnywhereCachesRequest instance using the specified properties.
+ * @function create
+ * @memberof google.storage.control.v2.ListAnywhereCachesRequest
+ * @static
+ * @param {google.storage.control.v2.IListAnywhereCachesRequest=} [properties] Properties to set
+ * @returns {google.storage.control.v2.ListAnywhereCachesRequest} ListAnywhereCachesRequest instance
+ */
+ ListAnywhereCachesRequest.create = function create(properties) {
+ return new ListAnywhereCachesRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListAnywhereCachesRequest message. Does not implicitly {@link google.storage.control.v2.ListAnywhereCachesRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.storage.control.v2.ListAnywhereCachesRequest
+ * @static
+ * @param {google.storage.control.v2.IListAnywhereCachesRequest} message ListAnywhereCachesRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListAnywhereCachesRequest.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.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListAnywhereCachesRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.ListAnywhereCachesRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.storage.control.v2.ListAnywhereCachesRequest
+ * @static
+ * @param {google.storage.control.v2.IListAnywhereCachesRequest} message ListAnywhereCachesRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListAnywhereCachesRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListAnywhereCachesRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.storage.control.v2.ListAnywhereCachesRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.storage.control.v2.ListAnywhereCachesRequest} ListAnywhereCachesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListAnywhereCachesRequest.decode = function decode(reader, length, error) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.storage.control.v2.ListAnywhereCachesRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ 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.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListAnywhereCachesRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.storage.control.v2.ListAnywhereCachesRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.storage.control.v2.ListAnywhereCachesRequest} ListAnywhereCachesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListAnywhereCachesRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListAnywhereCachesRequest message.
+ * @function verify
+ * @memberof google.storage.control.v2.ListAnywhereCachesRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListAnywhereCachesRequest.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.requestId != null && message.hasOwnProperty("requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListAnywhereCachesRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.storage.control.v2.ListAnywhereCachesRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.storage.control.v2.ListAnywhereCachesRequest} ListAnywhereCachesRequest
+ */
+ ListAnywhereCachesRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.storage.control.v2.ListAnywhereCachesRequest)
+ return object;
+ var message = new $root.google.storage.control.v2.ListAnywhereCachesRequest();
+ 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.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListAnywhereCachesRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.storage.control.v2.ListAnywhereCachesRequest
+ * @static
+ * @param {google.storage.control.v2.ListAnywhereCachesRequest} message ListAnywhereCachesRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListAnywhereCachesRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ object.requestId = "";
+ }
+ 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.requestId != null && message.hasOwnProperty("requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this ListAnywhereCachesRequest to JSON.
+ * @function toJSON
+ * @memberof google.storage.control.v2.ListAnywhereCachesRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListAnywhereCachesRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListAnywhereCachesRequest
+ * @function getTypeUrl
+ * @memberof google.storage.control.v2.ListAnywhereCachesRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListAnywhereCachesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.storage.control.v2.ListAnywhereCachesRequest";
+ };
+
+ return ListAnywhereCachesRequest;
+ })();
+
+ v2.ListAnywhereCachesResponse = (function() {
+
+ /**
+ * Properties of a ListAnywhereCachesResponse.
+ * @memberof google.storage.control.v2
+ * @interface IListAnywhereCachesResponse
+ * @property {Array.|null} [anywhereCaches] ListAnywhereCachesResponse anywhereCaches
+ * @property {string|null} [nextPageToken] ListAnywhereCachesResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListAnywhereCachesResponse.
+ * @memberof google.storage.control.v2
+ * @classdesc Represents a ListAnywhereCachesResponse.
+ * @implements IListAnywhereCachesResponse
+ * @constructor
+ * @param {google.storage.control.v2.IListAnywhereCachesResponse=} [properties] Properties to set
+ */
+ function ListAnywhereCachesResponse(properties) {
+ this.anywhereCaches = [];
+ 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]];
+ }
+
+ /**
+ * ListAnywhereCachesResponse anywhereCaches.
+ * @member {Array.} anywhereCaches
+ * @memberof google.storage.control.v2.ListAnywhereCachesResponse
+ * @instance
+ */
+ ListAnywhereCachesResponse.prototype.anywhereCaches = $util.emptyArray;
+
+ /**
+ * ListAnywhereCachesResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.storage.control.v2.ListAnywhereCachesResponse
+ * @instance
+ */
+ ListAnywhereCachesResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListAnywhereCachesResponse instance using the specified properties.
+ * @function create
+ * @memberof google.storage.control.v2.ListAnywhereCachesResponse
+ * @static
+ * @param {google.storage.control.v2.IListAnywhereCachesResponse=} [properties] Properties to set
+ * @returns {google.storage.control.v2.ListAnywhereCachesResponse} ListAnywhereCachesResponse instance
+ */
+ ListAnywhereCachesResponse.create = function create(properties) {
+ return new ListAnywhereCachesResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListAnywhereCachesResponse message. Does not implicitly {@link google.storage.control.v2.ListAnywhereCachesResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.storage.control.v2.ListAnywhereCachesResponse
+ * @static
+ * @param {google.storage.control.v2.IListAnywhereCachesResponse} message ListAnywhereCachesResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListAnywhereCachesResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.anywhereCaches != null && message.anywhereCaches.length)
+ for (var i = 0; i < message.anywhereCaches.length; ++i)
+ $root.google.storage.control.v2.AnywhereCache.encode(message.anywhereCaches[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 ListAnywhereCachesResponse message, length delimited. Does not implicitly {@link google.storage.control.v2.ListAnywhereCachesResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.storage.control.v2.ListAnywhereCachesResponse
+ * @static
+ * @param {google.storage.control.v2.IListAnywhereCachesResponse} message ListAnywhereCachesResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListAnywhereCachesResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListAnywhereCachesResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.storage.control.v2.ListAnywhereCachesResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.storage.control.v2.ListAnywhereCachesResponse} ListAnywhereCachesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListAnywhereCachesResponse.decode = function decode(reader, length, error) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.storage.control.v2.ListAnywhereCachesResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.anywhereCaches && message.anywhereCaches.length))
+ message.anywhereCaches = [];
+ message.anywhereCaches.push($root.google.storage.control.v2.AnywhereCache.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListAnywhereCachesResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.storage.control.v2.ListAnywhereCachesResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.storage.control.v2.ListAnywhereCachesResponse} ListAnywhereCachesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListAnywhereCachesResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListAnywhereCachesResponse message.
+ * @function verify
+ * @memberof google.storage.control.v2.ListAnywhereCachesResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListAnywhereCachesResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.anywhereCaches != null && message.hasOwnProperty("anywhereCaches")) {
+ if (!Array.isArray(message.anywhereCaches))
+ return "anywhereCaches: array expected";
+ for (var i = 0; i < message.anywhereCaches.length; ++i) {
+ var error = $root.google.storage.control.v2.AnywhereCache.verify(message.anywhereCaches[i]);
+ if (error)
+ return "anywhereCaches." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListAnywhereCachesResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.storage.control.v2.ListAnywhereCachesResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.storage.control.v2.ListAnywhereCachesResponse} ListAnywhereCachesResponse
+ */
+ ListAnywhereCachesResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.storage.control.v2.ListAnywhereCachesResponse)
+ return object;
+ var message = new $root.google.storage.control.v2.ListAnywhereCachesResponse();
+ if (object.anywhereCaches) {
+ if (!Array.isArray(object.anywhereCaches))
+ throw TypeError(".google.storage.control.v2.ListAnywhereCachesResponse.anywhereCaches: array expected");
+ message.anywhereCaches = [];
+ for (var i = 0; i < object.anywhereCaches.length; ++i) {
+ if (typeof object.anywhereCaches[i] !== "object")
+ throw TypeError(".google.storage.control.v2.ListAnywhereCachesResponse.anywhereCaches: object expected");
+ message.anywhereCaches[i] = $root.google.storage.control.v2.AnywhereCache.fromObject(object.anywhereCaches[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListAnywhereCachesResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.storage.control.v2.ListAnywhereCachesResponse
+ * @static
+ * @param {google.storage.control.v2.ListAnywhereCachesResponse} message ListAnywhereCachesResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListAnywhereCachesResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.anywhereCaches = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.anywhereCaches && message.anywhereCaches.length) {
+ object.anywhereCaches = [];
+ for (var j = 0; j < message.anywhereCaches.length; ++j)
+ object.anywhereCaches[j] = $root.google.storage.control.v2.AnywhereCache.toObject(message.anywhereCaches[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListAnywhereCachesResponse to JSON.
+ * @function toJSON
+ * @memberof google.storage.control.v2.ListAnywhereCachesResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListAnywhereCachesResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListAnywhereCachesResponse
+ * @function getTypeUrl
+ * @memberof google.storage.control.v2.ListAnywhereCachesResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListAnywhereCachesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.storage.control.v2.ListAnywhereCachesResponse";
+ };
+
+ return ListAnywhereCachesResponse;
+ })();
+
+ v2.IntelligenceConfig = (function() {
+
+ /**
+ * Properties of an IntelligenceConfig.
+ * @memberof google.storage.control.v2
+ * @interface IIntelligenceConfig
+ * @property {string|null} [name] IntelligenceConfig name
+ * @property {google.storage.control.v2.IntelligenceConfig.EditionConfig|null} [editionConfig] IntelligenceConfig editionConfig
+ * @property {google.protobuf.ITimestamp|null} [updateTime] IntelligenceConfig updateTime
+ * @property {google.storage.control.v2.IntelligenceConfig.IFilter|null} [filter] IntelligenceConfig filter
+ * @property {google.storage.control.v2.IntelligenceConfig.IEffectiveIntelligenceConfig|null} [effectiveIntelligenceConfig] IntelligenceConfig effectiveIntelligenceConfig
+ * @property {google.storage.control.v2.IntelligenceConfig.ITrialConfig|null} [trialConfig] IntelligenceConfig trialConfig
+ */
+
+ /**
+ * Constructs a new IntelligenceConfig.
+ * @memberof google.storage.control.v2
+ * @classdesc Represents an IntelligenceConfig.
+ * @implements IIntelligenceConfig
+ * @constructor
+ * @param {google.storage.control.v2.IIntelligenceConfig=} [properties] Properties to set
+ */
+ function IntelligenceConfig(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]];
+ }
+
+ /**
+ * IntelligenceConfig name.
+ * @member {string} name
+ * @memberof google.storage.control.v2.IntelligenceConfig
+ * @instance
+ */
+ IntelligenceConfig.prototype.name = "";
+
+ /**
+ * IntelligenceConfig editionConfig.
+ * @member {google.storage.control.v2.IntelligenceConfig.EditionConfig} editionConfig
+ * @memberof google.storage.control.v2.IntelligenceConfig
+ * @instance
+ */
+ IntelligenceConfig.prototype.editionConfig = 0;
+
+ /**
+ * IntelligenceConfig updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.storage.control.v2.IntelligenceConfig
+ * @instance
+ */
+ IntelligenceConfig.prototype.updateTime = null;
+
+ /**
+ * IntelligenceConfig filter.
+ * @member {google.storage.control.v2.IntelligenceConfig.IFilter|null|undefined} filter
+ * @memberof google.storage.control.v2.IntelligenceConfig
+ * @instance
+ */
+ IntelligenceConfig.prototype.filter = null;
+
+ /**
+ * IntelligenceConfig effectiveIntelligenceConfig.
+ * @member {google.storage.control.v2.IntelligenceConfig.IEffectiveIntelligenceConfig|null|undefined} effectiveIntelligenceConfig
+ * @memberof google.storage.control.v2.IntelligenceConfig
+ * @instance
+ */
+ IntelligenceConfig.prototype.effectiveIntelligenceConfig = null;
+
+ /**
+ * IntelligenceConfig trialConfig.
+ * @member {google.storage.control.v2.IntelligenceConfig.ITrialConfig|null|undefined} trialConfig
+ * @memberof google.storage.control.v2.IntelligenceConfig
+ * @instance
+ */
+ IntelligenceConfig.prototype.trialConfig = null;
+
+ /**
+ * Creates a new IntelligenceConfig instance using the specified properties.
+ * @function create
+ * @memberof google.storage.control.v2.IntelligenceConfig
+ * @static
+ * @param {google.storage.control.v2.IIntelligenceConfig=} [properties] Properties to set
+ * @returns {google.storage.control.v2.IntelligenceConfig} IntelligenceConfig instance
+ */
+ IntelligenceConfig.create = function create(properties) {
+ return new IntelligenceConfig(properties);
+ };
+
+ /**
+ * Encodes the specified IntelligenceConfig message. Does not implicitly {@link google.storage.control.v2.IntelligenceConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.storage.control.v2.IntelligenceConfig
+ * @static
+ * @param {google.storage.control.v2.IIntelligenceConfig} message IntelligenceConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ IntelligenceConfig.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.editionConfig != null && Object.hasOwnProperty.call(message, "editionConfig"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.editionConfig);
+ 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.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ $root.google.storage.control.v2.IntelligenceConfig.Filter.encode(message.filter, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.effectiveIntelligenceConfig != null && Object.hasOwnProperty.call(message, "effectiveIntelligenceConfig"))
+ $root.google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig.encode(message.effectiveIntelligenceConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.trialConfig != null && Object.hasOwnProperty.call(message, "trialConfig"))
+ $root.google.storage.control.v2.IntelligenceConfig.TrialConfig.encode(message.trialConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified IntelligenceConfig message, length delimited. Does not implicitly {@link google.storage.control.v2.IntelligenceConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.storage.control.v2.IntelligenceConfig
+ * @static
+ * @param {google.storage.control.v2.IIntelligenceConfig} message IntelligenceConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ IntelligenceConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an IntelligenceConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.storage.control.v2.IntelligenceConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.storage.control.v2.IntelligenceConfig} IntelligenceConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ IntelligenceConfig.decode = function decode(reader, length, error) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.storage.control.v2.IntelligenceConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.editionConfig = reader.int32();
+ break;
+ }
+ case 3: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.filter = $root.google.storage.control.v2.IntelligenceConfig.Filter.decode(reader, reader.uint32());
+ break;
+ }
+ case 5: {
+ message.effectiveIntelligenceConfig = $root.google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig.decode(reader, reader.uint32());
+ break;
+ }
+ case 7: {
+ message.trialConfig = $root.google.storage.control.v2.IntelligenceConfig.TrialConfig.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an IntelligenceConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.storage.control.v2.IntelligenceConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.storage.control.v2.IntelligenceConfig} IntelligenceConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ IntelligenceConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an IntelligenceConfig message.
+ * @function verify
+ * @memberof google.storage.control.v2.IntelligenceConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ IntelligenceConfig.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.editionConfig != null && message.hasOwnProperty("editionConfig"))
+ switch (message.editionConfig) {
+ default:
+ return "editionConfig: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 5:
+ break;
+ }
+ if (message.updateTime != null && message.hasOwnProperty("updateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.updateTime);
+ if (error)
+ return "updateTime." + error;
+ }
+ if (message.filter != null && message.hasOwnProperty("filter")) {
+ var error = $root.google.storage.control.v2.IntelligenceConfig.Filter.verify(message.filter);
+ if (error)
+ return "filter." + error;
+ }
+ if (message.effectiveIntelligenceConfig != null && message.hasOwnProperty("effectiveIntelligenceConfig")) {
+ var error = $root.google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig.verify(message.effectiveIntelligenceConfig);
+ if (error)
+ return "effectiveIntelligenceConfig." + error;
+ }
+ if (message.trialConfig != null && message.hasOwnProperty("trialConfig")) {
+ var error = $root.google.storage.control.v2.IntelligenceConfig.TrialConfig.verify(message.trialConfig);
+ if (error)
+ return "trialConfig." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an IntelligenceConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.storage.control.v2.IntelligenceConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.storage.control.v2.IntelligenceConfig} IntelligenceConfig
+ */
+ IntelligenceConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.storage.control.v2.IntelligenceConfig)
+ return object;
+ var message = new $root.google.storage.control.v2.IntelligenceConfig();
+ if (object.name != null)
+ message.name = String(object.name);
+ switch (object.editionConfig) {
+ default:
+ if (typeof object.editionConfig === "number") {
+ message.editionConfig = object.editionConfig;
+ break;
+ }
+ break;
+ case "EDITION_CONFIG_UNSPECIFIED":
+ case 0:
+ message.editionConfig = 0;
+ break;
+ case "INHERIT":
+ case 1:
+ message.editionConfig = 1;
+ break;
+ case "DISABLED":
+ case 2:
+ message.editionConfig = 2;
+ break;
+ case "STANDARD":
+ case 3:
+ message.editionConfig = 3;
+ break;
+ case "TRIAL":
+ case 5:
+ message.editionConfig = 5;
+ break;
+ }
+ if (object.updateTime != null) {
+ if (typeof object.updateTime !== "object")
+ throw TypeError(".google.storage.control.v2.IntelligenceConfig.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ if (object.filter != null) {
+ if (typeof object.filter !== "object")
+ throw TypeError(".google.storage.control.v2.IntelligenceConfig.filter: object expected");
+ message.filter = $root.google.storage.control.v2.IntelligenceConfig.Filter.fromObject(object.filter);
+ }
+ if (object.effectiveIntelligenceConfig != null) {
+ if (typeof object.effectiveIntelligenceConfig !== "object")
+ throw TypeError(".google.storage.control.v2.IntelligenceConfig.effectiveIntelligenceConfig: object expected");
+ message.effectiveIntelligenceConfig = $root.google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig.fromObject(object.effectiveIntelligenceConfig);
+ }
+ if (object.trialConfig != null) {
+ if (typeof object.trialConfig !== "object")
+ throw TypeError(".google.storage.control.v2.IntelligenceConfig.trialConfig: object expected");
+ message.trialConfig = $root.google.storage.control.v2.IntelligenceConfig.TrialConfig.fromObject(object.trialConfig);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an IntelligenceConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.storage.control.v2.IntelligenceConfig
+ * @static
+ * @param {google.storage.control.v2.IntelligenceConfig} message IntelligenceConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ IntelligenceConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.editionConfig = options.enums === String ? "EDITION_CONFIG_UNSPECIFIED" : 0;
+ object.updateTime = null;
+ object.filter = null;
+ object.effectiveIntelligenceConfig = null;
+ object.trialConfig = null;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.editionConfig != null && message.hasOwnProperty("editionConfig"))
+ object.editionConfig = options.enums === String ? $root.google.storage.control.v2.IntelligenceConfig.EditionConfig[message.editionConfig] === undefined ? message.editionConfig : $root.google.storage.control.v2.IntelligenceConfig.EditionConfig[message.editionConfig] : message.editionConfig;
+ if (message.updateTime != null && message.hasOwnProperty("updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ object.filter = $root.google.storage.control.v2.IntelligenceConfig.Filter.toObject(message.filter, options);
+ if (message.effectiveIntelligenceConfig != null && message.hasOwnProperty("effectiveIntelligenceConfig"))
+ object.effectiveIntelligenceConfig = $root.google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig.toObject(message.effectiveIntelligenceConfig, options);
+ if (message.trialConfig != null && message.hasOwnProperty("trialConfig"))
+ object.trialConfig = $root.google.storage.control.v2.IntelligenceConfig.TrialConfig.toObject(message.trialConfig, options);
+ return object;
+ };
+
+ /**
+ * Converts this IntelligenceConfig to JSON.
+ * @function toJSON
+ * @memberof google.storage.control.v2.IntelligenceConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ IntelligenceConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for IntelligenceConfig
+ * @function getTypeUrl
+ * @memberof google.storage.control.v2.IntelligenceConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ IntelligenceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.storage.control.v2.IntelligenceConfig";
+ };
+
+ /**
+ * EditionConfig enum.
+ * @name google.storage.control.v2.IntelligenceConfig.EditionConfig
+ * @enum {number}
+ * @property {number} EDITION_CONFIG_UNSPECIFIED=0 EDITION_CONFIG_UNSPECIFIED value
+ * @property {number} INHERIT=1 INHERIT value
+ * @property {number} DISABLED=2 DISABLED value
+ * @property {number} STANDARD=3 STANDARD value
+ * @property {number} TRIAL=5 TRIAL value
+ */
+ IntelligenceConfig.EditionConfig = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "EDITION_CONFIG_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "INHERIT"] = 1;
+ values[valuesById[2] = "DISABLED"] = 2;
+ values[valuesById[3] = "STANDARD"] = 3;
+ values[valuesById[5] = "TRIAL"] = 5;
+ return values;
+ })();
+
+ IntelligenceConfig.Filter = (function() {
+
+ /**
+ * Properties of a Filter.
+ * @memberof google.storage.control.v2.IntelligenceConfig
+ * @interface IFilter
+ * @property {google.storage.control.v2.IntelligenceConfig.Filter.ICloudStorageLocations|null} [includedCloudStorageLocations] Filter includedCloudStorageLocations
+ * @property {google.storage.control.v2.IntelligenceConfig.Filter.ICloudStorageLocations|null} [excludedCloudStorageLocations] Filter excludedCloudStorageLocations
+ * @property {google.storage.control.v2.IntelligenceConfig.Filter.ICloudStorageBuckets|null} [includedCloudStorageBuckets] Filter includedCloudStorageBuckets
+ * @property {google.storage.control.v2.IntelligenceConfig.Filter.ICloudStorageBuckets|null} [excludedCloudStorageBuckets] Filter excludedCloudStorageBuckets
+ */
+
+ /**
+ * Constructs a new Filter.
+ * @memberof google.storage.control.v2.IntelligenceConfig
+ * @classdesc Represents a Filter.
+ * @implements IFilter
+ * @constructor
+ * @param {google.storage.control.v2.IntelligenceConfig.IFilter=} [properties] Properties to set
+ */
+ function Filter(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]];
+ }
+
+ /**
+ * Filter includedCloudStorageLocations.
+ * @member {google.storage.control.v2.IntelligenceConfig.Filter.ICloudStorageLocations|null|undefined} includedCloudStorageLocations
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter
+ * @instance
+ */
+ Filter.prototype.includedCloudStorageLocations = null;
+
+ /**
+ * Filter excludedCloudStorageLocations.
+ * @member {google.storage.control.v2.IntelligenceConfig.Filter.ICloudStorageLocations|null|undefined} excludedCloudStorageLocations
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter
+ * @instance
+ */
+ Filter.prototype.excludedCloudStorageLocations = null;
+
+ /**
+ * Filter includedCloudStorageBuckets.
+ * @member {google.storage.control.v2.IntelligenceConfig.Filter.ICloudStorageBuckets|null|undefined} includedCloudStorageBuckets
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter
+ * @instance
+ */
+ Filter.prototype.includedCloudStorageBuckets = null;
+
+ /**
+ * Filter excludedCloudStorageBuckets.
+ * @member {google.storage.control.v2.IntelligenceConfig.Filter.ICloudStorageBuckets|null|undefined} excludedCloudStorageBuckets
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter
+ * @instance
+ */
+ Filter.prototype.excludedCloudStorageBuckets = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * Filter cloudStorageLocations.
+ * @member {"includedCloudStorageLocations"|"excludedCloudStorageLocations"|undefined} cloudStorageLocations
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter
+ * @instance
+ */
+ Object.defineProperty(Filter.prototype, "cloudStorageLocations", {
+ get: $util.oneOfGetter($oneOfFields = ["includedCloudStorageLocations", "excludedCloudStorageLocations"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Filter cloudStorageBuckets.
+ * @member {"includedCloudStorageBuckets"|"excludedCloudStorageBuckets"|undefined} cloudStorageBuckets
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter
+ * @instance
+ */
+ Object.defineProperty(Filter.prototype, "cloudStorageBuckets", {
+ get: $util.oneOfGetter($oneOfFields = ["includedCloudStorageBuckets", "excludedCloudStorageBuckets"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new Filter instance using the specified properties.
+ * @function create
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter
+ * @static
+ * @param {google.storage.control.v2.IntelligenceConfig.IFilter=} [properties] Properties to set
+ * @returns {google.storage.control.v2.IntelligenceConfig.Filter} Filter instance
+ */
+ Filter.create = function create(properties) {
+ return new Filter(properties);
+ };
+
+ /**
+ * Encodes the specified Filter message. Does not implicitly {@link google.storage.control.v2.IntelligenceConfig.Filter.verify|verify} messages.
+ * @function encode
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter
+ * @static
+ * @param {google.storage.control.v2.IntelligenceConfig.IFilter} message Filter message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Filter.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.includedCloudStorageLocations != null && Object.hasOwnProperty.call(message, "includedCloudStorageLocations"))
+ $root.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations.encode(message.includedCloudStorageLocations, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.excludedCloudStorageLocations != null && Object.hasOwnProperty.call(message, "excludedCloudStorageLocations"))
+ $root.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations.encode(message.excludedCloudStorageLocations, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.includedCloudStorageBuckets != null && Object.hasOwnProperty.call(message, "includedCloudStorageBuckets"))
+ $root.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets.encode(message.includedCloudStorageBuckets, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.excludedCloudStorageBuckets != null && Object.hasOwnProperty.call(message, "excludedCloudStorageBuckets"))
+ $root.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets.encode(message.excludedCloudStorageBuckets, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Filter message, length delimited. Does not implicitly {@link google.storage.control.v2.IntelligenceConfig.Filter.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter
+ * @static
+ * @param {google.storage.control.v2.IntelligenceConfig.IFilter} message Filter message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Filter.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Filter message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.storage.control.v2.IntelligenceConfig.Filter} Filter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Filter.decode = function decode(reader, length, error) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.storage.control.v2.IntelligenceConfig.Filter();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.includedCloudStorageLocations = $root.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.excludedCloudStorageLocations = $root.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ message.includedCloudStorageBuckets = $root.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.excludedCloudStorageBuckets = $root.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Filter message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.storage.control.v2.IntelligenceConfig.Filter} Filter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Filter.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Filter message.
+ * @function verify
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Filter.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.includedCloudStorageLocations != null && message.hasOwnProperty("includedCloudStorageLocations")) {
+ properties.cloudStorageLocations = 1;
+ {
+ var error = $root.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations.verify(message.includedCloudStorageLocations);
+ if (error)
+ return "includedCloudStorageLocations." + error;
+ }
+ }
+ if (message.excludedCloudStorageLocations != null && message.hasOwnProperty("excludedCloudStorageLocations")) {
+ if (properties.cloudStorageLocations === 1)
+ return "cloudStorageLocations: multiple values";
+ properties.cloudStorageLocations = 1;
+ {
+ var error = $root.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations.verify(message.excludedCloudStorageLocations);
+ if (error)
+ return "excludedCloudStorageLocations." + error;
+ }
+ }
+ if (message.includedCloudStorageBuckets != null && message.hasOwnProperty("includedCloudStorageBuckets")) {
+ properties.cloudStorageBuckets = 1;
+ {
+ var error = $root.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets.verify(message.includedCloudStorageBuckets);
+ if (error)
+ return "includedCloudStorageBuckets." + error;
+ }
+ }
+ if (message.excludedCloudStorageBuckets != null && message.hasOwnProperty("excludedCloudStorageBuckets")) {
+ if (properties.cloudStorageBuckets === 1)
+ return "cloudStorageBuckets: multiple values";
+ properties.cloudStorageBuckets = 1;
+ {
+ var error = $root.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets.verify(message.excludedCloudStorageBuckets);
+ if (error)
+ return "excludedCloudStorageBuckets." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Filter message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.storage.control.v2.IntelligenceConfig.Filter} Filter
+ */
+ Filter.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.storage.control.v2.IntelligenceConfig.Filter)
+ return object;
+ var message = new $root.google.storage.control.v2.IntelligenceConfig.Filter();
+ if (object.includedCloudStorageLocations != null) {
+ if (typeof object.includedCloudStorageLocations !== "object")
+ throw TypeError(".google.storage.control.v2.IntelligenceConfig.Filter.includedCloudStorageLocations: object expected");
+ message.includedCloudStorageLocations = $root.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations.fromObject(object.includedCloudStorageLocations);
+ }
+ if (object.excludedCloudStorageLocations != null) {
+ if (typeof object.excludedCloudStorageLocations !== "object")
+ throw TypeError(".google.storage.control.v2.IntelligenceConfig.Filter.excludedCloudStorageLocations: object expected");
+ message.excludedCloudStorageLocations = $root.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations.fromObject(object.excludedCloudStorageLocations);
+ }
+ if (object.includedCloudStorageBuckets != null) {
+ if (typeof object.includedCloudStorageBuckets !== "object")
+ throw TypeError(".google.storage.control.v2.IntelligenceConfig.Filter.includedCloudStorageBuckets: object expected");
+ message.includedCloudStorageBuckets = $root.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets.fromObject(object.includedCloudStorageBuckets);
+ }
+ if (object.excludedCloudStorageBuckets != null) {
+ if (typeof object.excludedCloudStorageBuckets !== "object")
+ throw TypeError(".google.storage.control.v2.IntelligenceConfig.Filter.excludedCloudStorageBuckets: object expected");
+ message.excludedCloudStorageBuckets = $root.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets.fromObject(object.excludedCloudStorageBuckets);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Filter message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter
+ * @static
+ * @param {google.storage.control.v2.IntelligenceConfig.Filter} message Filter
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Filter.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (message.includedCloudStorageLocations != null && message.hasOwnProperty("includedCloudStorageLocations")) {
+ object.includedCloudStorageLocations = $root.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations.toObject(message.includedCloudStorageLocations, options);
+ if (options.oneofs)
+ object.cloudStorageLocations = "includedCloudStorageLocations";
+ }
+ if (message.excludedCloudStorageLocations != null && message.hasOwnProperty("excludedCloudStorageLocations")) {
+ object.excludedCloudStorageLocations = $root.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations.toObject(message.excludedCloudStorageLocations, options);
+ if (options.oneofs)
+ object.cloudStorageLocations = "excludedCloudStorageLocations";
+ }
+ if (message.includedCloudStorageBuckets != null && message.hasOwnProperty("includedCloudStorageBuckets")) {
+ object.includedCloudStorageBuckets = $root.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets.toObject(message.includedCloudStorageBuckets, options);
+ if (options.oneofs)
+ object.cloudStorageBuckets = "includedCloudStorageBuckets";
+ }
+ if (message.excludedCloudStorageBuckets != null && message.hasOwnProperty("excludedCloudStorageBuckets")) {
+ object.excludedCloudStorageBuckets = $root.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets.toObject(message.excludedCloudStorageBuckets, options);
+ if (options.oneofs)
+ object.cloudStorageBuckets = "excludedCloudStorageBuckets";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this Filter to JSON.
+ * @function toJSON
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Filter.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Filter
+ * @function getTypeUrl
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Filter.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.storage.control.v2.IntelligenceConfig.Filter";
+ };
+
+ Filter.CloudStorageLocations = (function() {
+
+ /**
+ * Properties of a CloudStorageLocations.
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter
+ * @interface ICloudStorageLocations
+ * @property {Array.|null} [locations] CloudStorageLocations locations
+ */
+
+ /**
+ * Constructs a new CloudStorageLocations.
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter
+ * @classdesc Represents a CloudStorageLocations.
+ * @implements ICloudStorageLocations
+ * @constructor
+ * @param {google.storage.control.v2.IntelligenceConfig.Filter.ICloudStorageLocations=} [properties] Properties to set
+ */
+ function CloudStorageLocations(properties) {
+ this.locations = [];
+ 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]];
+ }
+
+ /**
+ * CloudStorageLocations locations.
+ * @member {Array.} locations
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations
+ * @instance
+ */
+ CloudStorageLocations.prototype.locations = $util.emptyArray;
+
+ /**
+ * Creates a new CloudStorageLocations instance using the specified properties.
+ * @function create
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations
+ * @static
+ * @param {google.storage.control.v2.IntelligenceConfig.Filter.ICloudStorageLocations=} [properties] Properties to set
+ * @returns {google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations} CloudStorageLocations instance
+ */
+ CloudStorageLocations.create = function create(properties) {
+ return new CloudStorageLocations(properties);
+ };
+
+ /**
+ * Encodes the specified CloudStorageLocations message. Does not implicitly {@link google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations.verify|verify} messages.
+ * @function encode
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations
+ * @static
+ * @param {google.storage.control.v2.IntelligenceConfig.Filter.ICloudStorageLocations} message CloudStorageLocations message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CloudStorageLocations.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.locations != null && message.locations.length)
+ for (var i = 0; i < message.locations.length; ++i)
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.locations[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CloudStorageLocations message, length delimited. Does not implicitly {@link google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations
+ * @static
+ * @param {google.storage.control.v2.IntelligenceConfig.Filter.ICloudStorageLocations} message CloudStorageLocations message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CloudStorageLocations.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CloudStorageLocations message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations} CloudStorageLocations
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CloudStorageLocations.decode = function decode(reader, length, error) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.locations && message.locations.length))
+ message.locations = [];
+ message.locations.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CloudStorageLocations message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations} CloudStorageLocations
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CloudStorageLocations.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CloudStorageLocations message.
+ * @function verify
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CloudStorageLocations.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.locations != null && message.hasOwnProperty("locations")) {
+ if (!Array.isArray(message.locations))
+ return "locations: array expected";
+ for (var i = 0; i < message.locations.length; ++i)
+ if (!$util.isString(message.locations[i]))
+ return "locations: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a CloudStorageLocations message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations} CloudStorageLocations
+ */
+ CloudStorageLocations.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations)
+ return object;
+ var message = new $root.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations();
+ if (object.locations) {
+ if (!Array.isArray(object.locations))
+ throw TypeError(".google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations.locations: array expected");
+ message.locations = [];
+ for (var i = 0; i < object.locations.length; ++i)
+ message.locations[i] = String(object.locations[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CloudStorageLocations message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations
+ * @static
+ * @param {google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations} message CloudStorageLocations
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CloudStorageLocations.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.locations = [];
+ if (message.locations && message.locations.length) {
+ object.locations = [];
+ for (var j = 0; j < message.locations.length; ++j)
+ object.locations[j] = message.locations[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this CloudStorageLocations to JSON.
+ * @function toJSON
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CloudStorageLocations.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CloudStorageLocations
+ * @function getTypeUrl
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CloudStorageLocations.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations";
+ };
+
+ return CloudStorageLocations;
+ })();
+
+ Filter.CloudStorageBuckets = (function() {
+
+ /**
+ * Properties of a CloudStorageBuckets.
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter
+ * @interface ICloudStorageBuckets
+ * @property {Array.|null} [bucketIdRegexes] CloudStorageBuckets bucketIdRegexes
+ */
+
+ /**
+ * Constructs a new CloudStorageBuckets.
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter
+ * @classdesc Represents a CloudStorageBuckets.
+ * @implements ICloudStorageBuckets
+ * @constructor
+ * @param {google.storage.control.v2.IntelligenceConfig.Filter.ICloudStorageBuckets=} [properties] Properties to set
+ */
+ function CloudStorageBuckets(properties) {
+ this.bucketIdRegexes = [];
+ 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]];
+ }
+
+ /**
+ * CloudStorageBuckets bucketIdRegexes.
+ * @member {Array.} bucketIdRegexes
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets
+ * @instance
+ */
+ CloudStorageBuckets.prototype.bucketIdRegexes = $util.emptyArray;
+
+ /**
+ * Creates a new CloudStorageBuckets instance using the specified properties.
+ * @function create
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets
+ * @static
+ * @param {google.storage.control.v2.IntelligenceConfig.Filter.ICloudStorageBuckets=} [properties] Properties to set
+ * @returns {google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets} CloudStorageBuckets instance
+ */
+ CloudStorageBuckets.create = function create(properties) {
+ return new CloudStorageBuckets(properties);
+ };
+
+ /**
+ * Encodes the specified CloudStorageBuckets message. Does not implicitly {@link google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets.verify|verify} messages.
+ * @function encode
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets
+ * @static
+ * @param {google.storage.control.v2.IntelligenceConfig.Filter.ICloudStorageBuckets} message CloudStorageBuckets message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CloudStorageBuckets.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.bucketIdRegexes != null && message.bucketIdRegexes.length)
+ for (var i = 0; i < message.bucketIdRegexes.length; ++i)
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.bucketIdRegexes[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CloudStorageBuckets message, length delimited. Does not implicitly {@link google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets
+ * @static
+ * @param {google.storage.control.v2.IntelligenceConfig.Filter.ICloudStorageBuckets} message CloudStorageBuckets message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CloudStorageBuckets.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CloudStorageBuckets message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets} CloudStorageBuckets
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CloudStorageBuckets.decode = function decode(reader, length, error) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.bucketIdRegexes && message.bucketIdRegexes.length))
+ message.bucketIdRegexes = [];
+ message.bucketIdRegexes.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CloudStorageBuckets message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets} CloudStorageBuckets
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CloudStorageBuckets.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CloudStorageBuckets message.
+ * @function verify
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CloudStorageBuckets.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.bucketIdRegexes != null && message.hasOwnProperty("bucketIdRegexes")) {
+ if (!Array.isArray(message.bucketIdRegexes))
+ return "bucketIdRegexes: array expected";
+ for (var i = 0; i < message.bucketIdRegexes.length; ++i)
+ if (!$util.isString(message.bucketIdRegexes[i]))
+ return "bucketIdRegexes: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a CloudStorageBuckets message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets} CloudStorageBuckets
+ */
+ CloudStorageBuckets.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets)
+ return object;
+ var message = new $root.google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets();
+ if (object.bucketIdRegexes) {
+ if (!Array.isArray(object.bucketIdRegexes))
+ throw TypeError(".google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets.bucketIdRegexes: array expected");
+ message.bucketIdRegexes = [];
+ for (var i = 0; i < object.bucketIdRegexes.length; ++i)
+ message.bucketIdRegexes[i] = String(object.bucketIdRegexes[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CloudStorageBuckets message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets
+ * @static
+ * @param {google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets} message CloudStorageBuckets
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CloudStorageBuckets.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.bucketIdRegexes = [];
+ if (message.bucketIdRegexes && message.bucketIdRegexes.length) {
+ object.bucketIdRegexes = [];
+ for (var j = 0; j < message.bucketIdRegexes.length; ++j)
+ object.bucketIdRegexes[j] = message.bucketIdRegexes[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this CloudStorageBuckets to JSON.
+ * @function toJSON
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CloudStorageBuckets.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CloudStorageBuckets
+ * @function getTypeUrl
+ * @memberof google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CloudStorageBuckets.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets";
+ };
+
+ return CloudStorageBuckets;
+ })();
+
+ return Filter;
+ })();
+
+ IntelligenceConfig.EffectiveIntelligenceConfig = (function() {
+
+ /**
+ * Properties of an EffectiveIntelligenceConfig.
+ * @memberof google.storage.control.v2.IntelligenceConfig
+ * @interface IEffectiveIntelligenceConfig
+ * @property {google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig.EffectiveEdition|null} [effectiveEdition] EffectiveIntelligenceConfig effectiveEdition
+ * @property {string|null} [intelligenceConfig] EffectiveIntelligenceConfig intelligenceConfig
+ */
+
+ /**
+ * Constructs a new EffectiveIntelligenceConfig.
+ * @memberof google.storage.control.v2.IntelligenceConfig
+ * @classdesc Represents an EffectiveIntelligenceConfig.
+ * @implements IEffectiveIntelligenceConfig
+ * @constructor
+ * @param {google.storage.control.v2.IntelligenceConfig.IEffectiveIntelligenceConfig=} [properties] Properties to set
+ */
+ function EffectiveIntelligenceConfig(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]];
+ }
+
+ /**
+ * EffectiveIntelligenceConfig effectiveEdition.
+ * @member {google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig.EffectiveEdition} effectiveEdition
+ * @memberof google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig
+ * @instance
+ */
+ EffectiveIntelligenceConfig.prototype.effectiveEdition = 0;
+
+ /**
+ * EffectiveIntelligenceConfig intelligenceConfig.
+ * @member {string} intelligenceConfig
+ * @memberof google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig
+ * @instance
+ */
+ EffectiveIntelligenceConfig.prototype.intelligenceConfig = "";
+
+ /**
+ * Creates a new EffectiveIntelligenceConfig instance using the specified properties.
+ * @function create
+ * @memberof google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig
+ * @static
+ * @param {google.storage.control.v2.IntelligenceConfig.IEffectiveIntelligenceConfig=} [properties] Properties to set
+ * @returns {google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig} EffectiveIntelligenceConfig instance
+ */
+ EffectiveIntelligenceConfig.create = function create(properties) {
+ return new EffectiveIntelligenceConfig(properties);
+ };
+
+ /**
+ * Encodes the specified EffectiveIntelligenceConfig message. Does not implicitly {@link google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig
+ * @static
+ * @param {google.storage.control.v2.IntelligenceConfig.IEffectiveIntelligenceConfig} message EffectiveIntelligenceConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EffectiveIntelligenceConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.effectiveEdition != null && Object.hasOwnProperty.call(message, "effectiveEdition"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.effectiveEdition);
+ if (message.intelligenceConfig != null && Object.hasOwnProperty.call(message, "intelligenceConfig"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.intelligenceConfig);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified EffectiveIntelligenceConfig message, length delimited. Does not implicitly {@link google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig
+ * @static
+ * @param {google.storage.control.v2.IntelligenceConfig.IEffectiveIntelligenceConfig} message EffectiveIntelligenceConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EffectiveIntelligenceConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an EffectiveIntelligenceConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig} EffectiveIntelligenceConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EffectiveIntelligenceConfig.decode = function decode(reader, length, error) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.effectiveEdition = reader.int32();
+ break;
+ }
+ case 2: {
+ message.intelligenceConfig = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an EffectiveIntelligenceConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig} EffectiveIntelligenceConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EffectiveIntelligenceConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an EffectiveIntelligenceConfig message.
+ * @function verify
+ * @memberof google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ EffectiveIntelligenceConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.effectiveEdition != null && message.hasOwnProperty("effectiveEdition"))
+ switch (message.effectiveEdition) {
+ default:
+ return "effectiveEdition: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.intelligenceConfig != null && message.hasOwnProperty("intelligenceConfig"))
+ if (!$util.isString(message.intelligenceConfig))
+ return "intelligenceConfig: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an EffectiveIntelligenceConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig} EffectiveIntelligenceConfig
+ */
+ EffectiveIntelligenceConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig)
+ return object;
+ var message = new $root.google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig();
+ switch (object.effectiveEdition) {
+ default:
+ if (typeof object.effectiveEdition === "number") {
+ message.effectiveEdition = object.effectiveEdition;
+ break;
+ }
+ break;
+ case "EFFECTIVE_EDITION_UNSPECIFIED":
+ case 0:
+ message.effectiveEdition = 0;
+ break;
+ case "NONE":
+ case 1:
+ message.effectiveEdition = 1;
+ break;
+ case "STANDARD":
+ case 2:
+ message.effectiveEdition = 2;
+ break;
+ }
+ if (object.intelligenceConfig != null)
+ message.intelligenceConfig = String(object.intelligenceConfig);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an EffectiveIntelligenceConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig
+ * @static
+ * @param {google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig} message EffectiveIntelligenceConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ EffectiveIntelligenceConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.effectiveEdition = options.enums === String ? "EFFECTIVE_EDITION_UNSPECIFIED" : 0;
+ object.intelligenceConfig = "";
+ }
+ if (message.effectiveEdition != null && message.hasOwnProperty("effectiveEdition"))
+ object.effectiveEdition = options.enums === String ? $root.google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig.EffectiveEdition[message.effectiveEdition] === undefined ? message.effectiveEdition : $root.google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig.EffectiveEdition[message.effectiveEdition] : message.effectiveEdition;
+ if (message.intelligenceConfig != null && message.hasOwnProperty("intelligenceConfig"))
+ object.intelligenceConfig = message.intelligenceConfig;
+ return object;
+ };
+
+ /**
+ * Converts this EffectiveIntelligenceConfig to JSON.
+ * @function toJSON
+ * @memberof google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ EffectiveIntelligenceConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for EffectiveIntelligenceConfig
+ * @function getTypeUrl
+ * @memberof google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ EffectiveIntelligenceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig";
+ };
+
+ /**
+ * EffectiveEdition enum.
+ * @name google.storage.control.v2.IntelligenceConfig.EffectiveIntelligenceConfig.EffectiveEdition
+ * @enum {number}
+ * @property {number} EFFECTIVE_EDITION_UNSPECIFIED=0 EFFECTIVE_EDITION_UNSPECIFIED value
+ * @property {number} NONE=1 NONE value
+ * @property {number} STANDARD=2 STANDARD value
+ */
+ EffectiveIntelligenceConfig.EffectiveEdition = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "EFFECTIVE_EDITION_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "NONE"] = 1;
+ values[valuesById[2] = "STANDARD"] = 2;
+ return values;
+ })();
+
+ return EffectiveIntelligenceConfig;
+ })();
+
+ IntelligenceConfig.TrialConfig = (function() {
+
+ /**
+ * Properties of a TrialConfig.
+ * @memberof google.storage.control.v2.IntelligenceConfig
+ * @interface ITrialConfig
+ * @property {google.protobuf.ITimestamp|null} [expireTime] TrialConfig expireTime
+ */
+
+ /**
+ * Constructs a new TrialConfig.
+ * @memberof google.storage.control.v2.IntelligenceConfig
+ * @classdesc Represents a TrialConfig.
+ * @implements ITrialConfig
+ * @constructor
+ * @param {google.storage.control.v2.IntelligenceConfig.ITrialConfig=} [properties] Properties to set
+ */
+ function TrialConfig(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]];
+ }
+
+ /**
+ * TrialConfig expireTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} expireTime
+ * @memberof google.storage.control.v2.IntelligenceConfig.TrialConfig
+ * @instance
+ */
+ TrialConfig.prototype.expireTime = null;
+
+ /**
+ * Creates a new TrialConfig instance using the specified properties.
+ * @function create
+ * @memberof google.storage.control.v2.IntelligenceConfig.TrialConfig
+ * @static
+ * @param {google.storage.control.v2.IntelligenceConfig.ITrialConfig=} [properties] Properties to set
+ * @returns {google.storage.control.v2.IntelligenceConfig.TrialConfig} TrialConfig instance
+ */
+ TrialConfig.create = function create(properties) {
+ return new TrialConfig(properties);
+ };
+
+ /**
+ * Encodes the specified TrialConfig message. Does not implicitly {@link google.storage.control.v2.IntelligenceConfig.TrialConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.storage.control.v2.IntelligenceConfig.TrialConfig
+ * @static
+ * @param {google.storage.control.v2.IntelligenceConfig.ITrialConfig} message TrialConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TrialConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.expireTime != null && Object.hasOwnProperty.call(message, "expireTime"))
+ $root.google.protobuf.Timestamp.encode(message.expireTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified TrialConfig message, length delimited. Does not implicitly {@link google.storage.control.v2.IntelligenceConfig.TrialConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.storage.control.v2.IntelligenceConfig.TrialConfig
+ * @static
+ * @param {google.storage.control.v2.IntelligenceConfig.ITrialConfig} message TrialConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TrialConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a TrialConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.storage.control.v2.IntelligenceConfig.TrialConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.storage.control.v2.IntelligenceConfig.TrialConfig} TrialConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TrialConfig.decode = function decode(reader, length, error) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.storage.control.v2.IntelligenceConfig.TrialConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 3: {
+ message.expireTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a TrialConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.storage.control.v2.IntelligenceConfig.TrialConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.storage.control.v2.IntelligenceConfig.TrialConfig} TrialConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TrialConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a TrialConfig message.
+ * @function verify
+ * @memberof google.storage.control.v2.IntelligenceConfig.TrialConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ TrialConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.expireTime != null && message.hasOwnProperty("expireTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.expireTime);
+ if (error)
+ return "expireTime." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a TrialConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.storage.control.v2.IntelligenceConfig.TrialConfig
+ * @static
+ * @param {Object.